Get Account Balance (USER_DATA)
Get Account Balance (USER_DATA).
Get Account Balance (USER_DATA) › Responses
Successful response
assetAsset name
balanceTotal balance
availableBalanceAvailable balance
frozenFrozen amount
unrealizePnlUnrealized Profit and Loss
Get Commission Rate (USER_DATA)
Get Commission Rate (USER_DATA).
query Parameters
symbolTrading pair
Get Commission Rate (USER_DATA) › Responses
Successful response
symbolTrading pair
makerCommissionRateMaker commission rate applicable to orders manually placed by the current user, e.g. "0.0002" means 0.02%
takerCommissionRateTaker commission rate applicable to orders manually placed by the current user, e.g. "0.0004" means 0.04%
apiMakerCommissionRateMaker commission rate applicable to orders placed via API by the current user, e.g. "0.0002" means 0.02%
apiTakerCommissionRateTaker commission rate applicable to orders placed via API by the current user, e.g. "0.0004" means 0.04%
Get Account Configuration (USER_DATA)
Get Account Configuration (USER_DATA).
Get Account Configuration (USER_DATA) › Responses
Successful response
canTradeWhether trading is enabled
canDepositWhether deposits are enabled
canWithdrawWhether withdrawals are enabled
dualSidePositionWhether dual-side position mode is enabled true: Can hold both long and short positions simultaneously false: One-way position mode
updateTimeUpdate time Unix millisecond timestamp
Get Symbol Configuration (USER_DATA)
Get Symbol Configuration (USER_DATA).
query Parameters
symbolTrading pair If not provided, all will be returned by default
Get Symbol Configuration (USER_DATA) › Responses
Successful response
symbolTrading pair
marginTypeMargin mode CROSSED: Cross Mode ISOLATED: Isolated Mode
separatedTypePosition segregation mode COMBINED: Combined mode SEPARATED: Separated mode
crossLeverageCross margin leverage
isolatedLongLeverageIsolated long position leverage
isolatedShortLeverageIsolated short position leverage
Get Account Income (USER_DATA)
Get Account Income (USER_DATA).
query Parameters
assetAsset name
symbolTrading pair
incomeTypeBusiness typedeposit : Depositwithdraw : Withdrawaltransfer_in : Transfer between different accounts (in)transfer_out : Transfer between different accounts (out)margin_move_in : Collateral transferred within the same account due to opening/closing positions, manual/auto additionmargin_move_out : Collateral transferred out within the same account due to opening/closing positions, manual/auto additionposition_open_long : Collateral change from opening long positions (buying decreases collateral)position_open_short : Collateral change from opening short positions (selling increases collateral)position_close_long : Collateral change from closing long positions (selling increases collateral)position_close_short : Collateral change from closing short positions (buying decreases collateral)position_funding : Collateral change from position funding fee settlementorder_fill_fee_income : Order fill fee income (specific to fee account)order_liquidate_fee_income : Order liquidation fee income (specific to fee account)start_liquidate : Start liquidationfinish_liquidate : Finish liquidationorder_fix_margin_amount : Compensation for liquidation losstracking_follow_pay : Copy trading payment, pre-deducted from followers after position closing if profitabletracking_system_pre_receive : Pre-received commission, commission system account receives pre-deducted amount from followerstracking_follow_back : Copy trading commission refundtracking_trader_income : Lead trader incometracking_third_party_share : Profit sharing (shared by lead trader with others)
startTimeStart timestamp Unit: milliseconds.If only endTime is provided, the system defaults startTime to 30 days before endTime (not earlier than current time).
endTimeEnd timestamp Unit: milliseconds.If only startTime is provided, endTime defaults to the current time.When both are provided, the range must not exceed 100 days.
limitReturn record limit, default: 20 Minimum: 1Maximum: 100
nextKeyIdCursor ID returned from the previous page.
nextKeyTimeCursor time returned from the previous page.
Get Account Income (USER_DATA) › Responses
Successful response
hasNextPageWhether there is a next page
Cursor for the next page.
Data list
Get All Positions (USER_DATA)
Get All Positions (USER_DATA).
Get All Positions (USER_DATA) › Responses
Successful response
idPosition ID
assetAssociated collateral asset
symbolTrading pair
sidePosition direction such as LONG or SHORT
marginTypeMargin mode of current position CROSSED: Cross ModeISOLATED: Isolated Mode
separatedModeCurrent position's separated mode COMBINED: Combined mode SEPARATED: Separated mode
separatedOpenOrderIdOpening order ID of separated position
leveragePosition leverage
sizeCurrent position size
openValueInitial value at position opening
openFeeOpening fee
fundingFeeFunding fee
marginSizeMargin amount (margin coin)
isolatedMarginIsolated margin
isAutoAppendIsolatedMarginWhether the auto-adding of funds for the isolated margin is enabled (only for isolated mode)
cumOpenSizeAccumulated opened positions
cumOpenValueAccumulated value of opened positions
cumOpenFeeAccumulated fees paid for opened positions
cumCloseSizeAccumulated closed positions
cumCloseValueAccumulated value of closed positions
cumCloseFeeAccumulated fees paid for closing positions
cumFundingFeeAccumulated settled funding fees
cumLiquidateFeeAccumulated liquidation fees
createdMatchSequenceIdMatching engine sequence ID at creation
updatedMatchSequenceIdMatching engine sequence ID at last update
createdTimeCreation time Unix millisecond timestamp
updatedTimeUpdate time Unix millisecond timestamp
unrealizePnlUnrealized PnL
liquidatePriceEstimated liquidation price If the value = 0, it means the position is at low risk and there is no liquidation price at this time
Get Single Position (USER_DATA)
Get Single Position (USER_DATA).
query Parameters
symbolTrading pair
Get Single Position (USER_DATA) › Responses
Successful response
idPosition ID
assetAssociated collateral asset
symbolTrading pair
sidePosition direction such as LONG or SHORT
marginTypeMargin mode of current position CROSSED: Cross ModeISOLATED: Isolated Mode
separatedModeCurrent position's separated mode COMBINED: Combined mode SEPARATED: Separated mode
separatedOpenOrderIdOpening order ID of separated position
leveragePosition leverage
sizeCurrent position size
openValueInitial value at position opening
openFeeOpening fee
fundingFeeFunding fee
marginSizeMargin amount (margin coin)
isolatedMarginIsolated margin
isAutoAppendIsolatedMarginWhether the auto-adding of funds for the isolated margin is enabled (only for isolated mode)
cumOpenSizeAccumulated opened positions
cumOpenValueAccumulated value of opened positions
cumOpenFeeAccumulated fees paid for opened positions
cumCloseSizeAccumulated closed positions
cumCloseValueAccumulated value of closed positions
cumCloseFeeAccumulated fees paid for closing positions
cumFundingFeeAccumulated settled funding fees
cumLiquidateFeeAccumulated liquidation fees
createdMatchSequenceIdMatching engine sequence ID at creation
updatedMatchSequenceIdMatching engine sequence ID at last update
createdTimeCreation time Unix millisecond timestamp
updatedTimeUpdate time Unix millisecond timestamp
unrealizePnlUnrealized PnL
liquidatePriceEstimated liquidation price If the value = 0, it means the position is at low risk and there is no liquidation price at this time
Change Margin Mode (TRADE)
Change Margin Mode (TRADE).
query Parameters
symbolTrading pair
marginTypeMargin mode.Supported values: CROSSED (cross margin), ISOLATED (isolated margin).
separatedTypePosition mode.COMBINED keeps both long and short in one position.SEPARATED splits positions.
Change Margin Mode (TRADE) › Responses
Successful response
codeResponse code
msgResponse message
requestTimeTimestampUnix millisecond timestamp
Update Leverage Settings (TRADE)
Update Leverage Settings (TRADE).
query Parameters
symbolTrading pair
marginTypeTarget margin mode.Supported values: CROSSED (cross margin), ISOLATED (isolated margin).
crossLeverageCross leverage to apply when marginType is CROSSED.
isolatedLongLeverageIsolated long leverage. Required when updating the isolated long position.
isolatedShortLeverageIsolated short leverage. Required when updating the isolated short position.
Update Leverage Settings (TRADE) › Responses
Successful response
symbolTrading pair
marginTypeApplied margin modeCROSSED or ISOLATED
crossLeverageResulting cross leverage
isolatedLongLeverageResulting isolated long leverage
isolatedShortLeverageResulting isolated short leverage
Adjust Isolated Margin (TRADE)
Adjust Isolated Margin (TRADE).
query Parameters
isolatedPositionIdIsolated position ID. Obtain via Get Single Position.
amountMargin amount to adjust. Must be greater than 0.
typeAdjustment direction. 1 = increase isolated margin; 2 = decrease isolated margin.
Adjust Isolated Margin (TRADE) › Responses
Successful response
codeResponse code
msgResponse message
requestTimeTimestampUnix millisecond timestamp
Modify Auto-Append Margin (TRADE)
Modify Auto-Append Margin (TRADE).
query Parameters
positionIdIsolated position ID
autoAppendMarginWhether to enable automatic isolated margin top-up
Modify Auto-Append Margin (TRADE) › Responses
Successful response
codeResponse code
msgResponse message
requestTimeTimestampUnix millisecond timestamp