账户
GET /v1/balance — 账户余额与交易状态
查询您的 CSBoard 美元余额,已结算和冻结的金额,以及您的 API 密钥是否启用了交易。
GET
Account balance and trading status
balance 端点返回您当前以美元计的余额,以及对自动化购买至关重要的明细:有多少是已结算(不可撤销且可用于不可撤销购买)的,以及当前有多少处于冻结状态。请使用
trading_enabled 在尝试下单之前确认该密钥已开启购买功能。
需要身份验证。 请将密钥作为 Authorization: Bearer csb_pub_... 发送。
参数
此端点不接受任何查询参数。响应字段
始终为
"USD"。所有金额均以美元计价。您以美元计的总余额。
此 API 密钥是否启用了购买功能。如果为
false,购买端点将返回 trading_not_enabled。您余额中已结算且不可撤销的部分。这部分余额可用于不可撤销的购买,例如
POST /v1/market/buy。您余额中当前处于冻结状态的部分。
冻结部分解冻时的 ISO 8601 时间戳;如果没有冻结金额,则为
null。示例请求
示例响应
错误代码
| HTTP 状态码 | 代码 | 含义 |
|---|---|---|
| 401 | missing_api_key / invalid_api_key | API 密钥缺失或无效。 |
| 429 | rate_limit_exceeded | 请求过多。请按照 Retry-After 响应头中的秒数退避。 |
授权
Send your key as a Bearer token on every request: Authorization: Bearer csb_pub_.... Generate keys in your CSBoard profile.
响应
Current balance and trading status.
示例:
"USD"
Total balance in USD.
Whether buying is enabled for this key.
Portion of the balance that is settled (reversal-safe) and spendable on reversal-safe purchases.
Portion of the balance currently held.
When the held portion clears, or null if nothing is held.