跳到主要内容

获取账户信息列表

  • 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"

返回参数

参数名类型说明
accountObject账户信息
> defaultFeeSettingObject默认费率设置
>> is_set_fee_rateBoolean是否设置费率
> > taker_fee_rateStringtaker 费率
> > maker_fee_rateStringmaker 费率
> > is_set_fee_discountBoolean是否设置费率折扣
> > fee_discountString费率折扣
> > is_set_taker_maker_fee_discountBoolean是否设置按 taker&maker 区分的费率折扣
> > taker_fee_discountStringtaker 费率折扣
> > maker_fee_discountStringmaker 费率折扣
> feeSettingArray Object费率设置
> > symbolString币对名
> > is_set_fee_rateBoolean是否设置费率
> > taker_fee_rateStringtaker 费率
> > maker_fee_rateStringmaker 费率
> > is_set_fee_discountBoolean是否设置费率折扣
> > fee_discountString费率折扣
> > is_set_taker_maker_fee_discountBoolean是否设置按 taker&maker 区分的费率折扣
> > taker_fee_discountStringtaker 费率折扣
> > maker_fee_discountStringmaker 费率折扣
> modeSettingArray Object模式设置
> > symbolString币对名
> > margin_modeString保证金模式
> > separated_modeString分仓模式
> > position_modeString仓位模式
> leverageSettingArray Object杠杆设置
> > symbolString币对名
> > isolated_long_leverageString逐仓多仓杠杆倍数
> > isolated_short_leverageString逐仓空仓杠杆倍数
> > cross_leverageString全仓杠杆倍数
> > shared_leverageString共享杠杆倍数
> create_order_rate_limit_per_minuteinteger下单频率每分钟限制
> create_order_delay_millisecondsinteger下单延迟毫秒
> created_timeString创建时间
> updated_timeString更新时间
collateralArray Object抵押品信息
> coinString货币
> margin_modeString保证金模式
> crossSymbolString当 margin_mode=CROSS 时,表示全仓保证金模式关联的币对。其他情况为 null
> isolated_position_idString当 margin_mode=ISOLATED 时,表示逐仓保证金关联的仓位 id。其他情况为 0
> amountString抵押品数额
> pending_deposit_amountString正在处理中的充值数量
> pending_withdraw_amountString正在处理中的提现数量
> pending_transfer_in_amountString正在处理中的转入数量
> pending_transfer_out_amountString正在处理中的转出数量
> is_liquidatingBoolean是否触发清算,正在强平处理中
> legacy_amountString旧余额,仅展示
> cum_deposit_amountString累计的充值数量
> cum_withdraw_amountString累计的提现数量
> cum_transfer_in_amountString累计的转入数量
> cum_transfer_out_amountString累计的转出数量
> cum_margin_move_in_amountString累计的保证金转入数量
> cum_margin_move_out_amountString累计的保证金转出数量
> cum_position_open_long_amountString累计开多对应的抵押品数量
> cum_position_open_short_amountString累计开空对应的抵押品数量
> cum_position_close_long_amountString累计平多对应的抵押品数量
> cum_position_close_short_amountString累计平空对应的抵押品数量
> cum_position_fill_fee_amountString累计的成交手续费数量
> cum_position_liquidate_fee_amountString累计的清算费数量
> cum_position_funding_amountString累计资金费用数量
> cum_order_fill_fee_income_amountString累计的委托单手续费收入数量
> cum_order_liquidate_fee_income_amountString累计的委托单清算手续费收入数量
> created_timeString创建时间
> updated_timeString更新时间
versionString版本号

返回示例

{
"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
}