获取账户信息列表
- GET
/capi/v2/account/getAccounts
需要权限: 合约账户权限
权重(IP): 5, 权重(UID): 5
请求参数
NONE
请求示例
curl "https://api-contract.weex.com/capi/v2/account/getAccounts" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json"
返回参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| account | Object | 账户信息 |
| > defaultFeeSetting | Object | 默认费率设置 |
| >> is_set_fee_rate | Boolean | 是否设置费率 |
| > > taker_fee_rate | String | taker 费率 |
| > > maker_fee_rate | String | maker 费率 |
| > > is_set_fee_discount | Boolean | 是否设置费率折扣 |
| > > fee_discount | String | 费率折扣 |
| > > is_set_taker_maker_fee_discount | Boolean | 是否设置按 taker&maker 区分的费率折扣 |
| > > taker_fee_discount | String | taker 费率折扣 |
| > > maker_fee_discount | String | maker 费率折扣 |
| > feeSetting | Array Object | 费率设置 |
| > > symbol | String | 币对名 |
| > > is_set_fee_rate | Boolean | 是否设置费率 |
| > > taker_fee_rate | String | taker 费率 |
| > > maker_fee_rate | String | maker 费率 |
| > > is_set_fee_discount | Boolean | 是否设置费率折扣 |
| > > fee_discount | String | 费率折扣 |
| > > is_set_taker_maker_fee_discount | Boolean | 是否设置按 taker&maker 区分的费率折扣 |
| > > taker_fee_discount | String | taker 费率折扣 |
| > > maker_fee_discount | String | maker 费率折扣 |
| > modeSetting | Array Object | 模式设置 |
| > > symbol | String | 币对名 |
| > > margin_mode | String | 保证金模式 |
| > > separated_mode | String | 分仓模式 |
| > > position_mode | String | 仓位模式 |
| > leverageSetting | Array Object | 杠杆设置 |
| > > symbol | String | 币对名 |
| > > isolated_long_leverage | String | 逐仓多仓杠杆倍数 |
| > > isolated_short_leverage | String | 逐仓空仓杠杆倍数 |
| > > cross_leverage | String | 全仓杠杆倍数 |
| > > shared_leverage | String | 共享杠杆倍数 |
| > create_order_rate_limit_per_minute | integer | 下单频率每分钟限制 |
| > create_order_delay_milliseconds | integer | 下单延迟毫秒 |
| > created_time | String | 创建时间 |
| > updated_time | String | 更新时间 |
| collateral | Array Object | 抵押品信息 |
| > coin | String | 货币 |
| > margin_mode | String | 保证金模式 |
| > crossSymbol | String | 当 margin_mode=CROSS 时,表示全仓保证金模式关联的币对。其他情况为 null |
| > isolated_position_id | String | 当 margin_mode=ISOLATED 时,表示逐仓保证金关联的仓位 id。其他情况为 0 |
| > amount | String | 抵押品数额 |
| > pending_deposit_amount | String | 正在处理中的充值数量 |
| > pending_withdraw_amount | String | 正在处理中的提现数量 |
| > pending_transfer_in_amount | String | 正在处理中的转入数量 |
| > pending_transfer_out_amount | String | 正在处理中的转出数量 |
| > is_liquidating | Boolean | 是否触发清算,正在强平处理中 |
| > legacy_amount | String | 旧余额,仅展示 |
| > cum_deposit_amount | String | 累计的充值数量 |
| > cum_withdraw_amount | String | 累计的提现数量 |
| > cum_transfer_in_amount | String | 累计的转入数量 |
| > cum_transfer_out_amount | String | 累计的转出数量 |
| > cum_margin_move_in_amount | String | 累计的保证金转入数量 |
| > cum_margin_move_out_amount | String | 累计的保证金转出数量 |
| > cum_position_open_long_amount | String | 累计开多对应的抵押品数量 |
| > cum_position_open_short_amount | String | 累计开空对应的抵押品数量 |
| > cum_position_close_long_amount | String | 累计平多对应的抵押品数量 |
| > cum_position_close_short_amount | String | 累计平空对应的抵押品数量 |
| > cum_position_fill_fee_amount | String | 累计的成交手续费数量 |
| > cum_position_liquidate_fee_amount | String | 累计的清算费数量 |
| > cum_position_funding_amount | String | 累计资金费用数量 |
| > cum_order_fill_fee_income_amount | String | 累计的委托单手续费收入数量 |
| > cum_order_liquidate_fee_income_amount | String | 累计的委托单清算手续费收入数量 |
| > created_time | String | 创建时间 |
| > updated_time | String | 更新时间 |
| version | String | 版本号 |
返回示例
{
"account": {
"defaultFeeSetting": {
"is_set_fee_rate": true,
"taker_fee_rate": "0.00072000",
"maker_fee_rate": "0.00018000",
"is_set_fee_discount": false,
"fee_discount": "0",
"is_set_taker_maker_fee_discount": false,
"taker_fee_discount": "0",
"maker_fee_discount": "0"
},
"feeSetting": [
{
"symbol": "cmt_btcusdt",
"is_set_fee_rate": false,
"taker_fee_rate": "0",
"maker_fee_rate": "0",
"is_set_fee_discount": false,
"fee_discount": "0",
"is_set_taker_maker_fee_discount": false,
"taker_fee_discount": "0",
"maker_fee_discount": "0"
}
],
"modeSetting": [
{
"symbol": "cmt_btcusdt",
"marginMode": "SHARED",
"separatedModeEnum": "COMBINED",
"positionModeEnum": "HEDGE"
}
],
"leverageSetting": [
{
"symbol": "cmt_btcusdt",
"isolated_long_leverage": "1",
"isolated_short_leverage": "100",
"cross_leverage": "20.00"
}
],
"createOrderRateLimitPerMinute": 0,
"createOrderDelayMilliseconds": 0,
"createdTime": 1728493655673,
"updatedTime": 1764221456649
},
"collateral": [
{
"coin": "USDT",
"marginMode": "SHARED",
"crossSymbol": null,
"isolatedPositionId": 0,
"amount": "4663.20125463",
"pending_deposit_amount": "0.00000000",
"pending_withdraw_amount": "0.000000",
"pending_transfer_in_amount": "0",
"pending_transfer_out_amount": "0.00000000",
"is_liquidating": false,
"legacy_amount": "5662.90202073",
"cum_deposit_amount": "6860279.70836100",
"cum_withdraw_amount": "6647240.391794",
"cum_transfer_in_amount": "452.09021000",
"cum_transfer_out_amount": "292.75030000",
"cum_margin_move_in_amount": "10208.01422763",
"cum_margin_move_out_amount": "12366.05275584",
"cum_position_open_long_amount": "4672962.7674221",
"cum_position_open_short_amount": "287777.669958",
"cum_position_close_long_amount": "4532201.78518940",
"cum_position_close_short_amount": "287888.538892",
"cum_position_fill_fee_amount": "0.59982046",
"cum_position_liquidate_fee_amount": "76.930498",
"cum_position_funding_amount": "9859.37164167",
"cum_order_fill_fee_income_amount": "0",
"cum_order_liquidate_fee_income_amount": "0",
"created_time": 1728493664997,
"updated_time": 1764306706243
}
],
"version": null
}