Skip to main content

Get Single Account

  • GET /capi/v2/account/getAccount

Weight(IP): 1, Weight(UID): 1

Request parameters

ParameterTypeRequired?Description
coinStringYesCrypto information

Request example

curl "https://api-contract.weex.com/capi/v2/account/getAccount?coin=USDT" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json"

Response parameters

ParameterTypeDescription
accountObjectAccount information
> defaultFeeSettingObjectDefault fee configuration
>> is_set_fee_rateBooleanWhether fee rates are set
>> taker_fee_rateStringTaker fee rate
>> maker_fee_rateStringMaker fee rate
>> is_set_fee_discountBooleanWhether fee discounts are enabled
>> fee_discountStringFee rate discount
>> is_set_taker_maker_fee_discountBooleanWhether to apply separate fee discounts for takers and makers
>> taker_fee_discountStringTaker fee rate discount
>> maker_fee_discountStringMaker fee rate discount
> feeSettingArray ObjectFee settings
>> symbolStringSymbol name
>> is_set_fee_rateBooleanWhether fee rates are set
>> taker_fee_rateStringTaker fee rate
>> maker_fee_rateStringMaker fee rate
>> is_set_fee_discountBooleanWhether fee discounts are enabled
>> fee_discountStringFee rate discount
>> is_set_taker_maker_fee_discountBooleanWhether to apply separate fee discounts for takers and makers
>> taker_fee_discountStringTaker fee rate discount
>> maker_fee_discountStringMaker fee rate discount
> modeSettingArray ObjectMode settings
>> symbolStringSymbol name
>> margin_modeStringMargin mode
>> separated_modeStringPosition segregation mode
>> position_modeStringPosition mode
> leverageSettingArray ObjectLeverage settings
>> symbolStringSymbol name
>> isolated_long_leverageStringIsolated long position leverage
>> isolated_short_leverageStringIsolated short position leverage
>> cross_leverageStringCross margin leverage
>> shared_leverageStringShared leverage
> create_order_rate_limit_per_minuteIntegerOrder creation rate limit per minute
> create_order_delay_millisecondsIntegerOrder creation delay (milliseconds)
> created_timeStringCreation time
> updated_timeStringUpdate time
collateralArray ObjectCollateral information
> coinStringCurrency
> margin_modeStringMargin mode
> crossSymbolStringWhen margin_mode=CROSS, represents the symbol associated with cross margin mode. Null in other cases.
> isolated_position_idStringWhen margin_mode=ISOLATED, represents the position ID associated with isolated margin. 0 in other cases.
> amountStringCollateral amount
> pending_deposit_amountStringPending deposit amount
> pending_withdraw_amountStringPending withdrawal amount
> pending_transfer_in_amountStringPending inbound transfer amount
> pending_transfer_out_amountStringPending outbound transfer amount
> is_liquidatingBooleanWhether liquidation is triggered (in progress)
> legacy_amountStringLegacy balance (display only)
> cum_deposit_amountStringAccumulated deposit amount
> cum_withdraw_amountStringAccumulated withdrawal amount
> cum_transfer_in_amountStringAccumulated inbound transfer amount
> cum_transfer_out_amountStringAccumulated outbound transfer amount
> cum_margin_move_in_amountStringAccumulated margin deposit amount
> cum_margin_move_out_amountStringAccumulated margin withdrawal amount
> cum_position_open_long_amountStringAccumulated collateral amount for long position openings
> cum_position_open_short_amountStringAccumulated collateral amount for short position openings
> cum_position_close_long_amountStringAccumulated collateral amount for long position closings
> cum_position_close_short_amountStringAccumulated collateral amount for short position closings
> cum_position_fill_fee_amountStringAccumulated trading fees for filled orders
> cum_position_liquidate_fee_amountStringAccumulated liquidation fees
> cum_position_funding_amountStringAccumulated funding fees
> cum_order_fill_fee_income_amountStringAccumulated order fee income
> cum_order_liquidate_fee_income_amountStringAccumulated liquidation fee income
> created_timeStringCreation time
> updated_timeStringUpdate time
versionStringVersion number

Response example

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