Enumeration
Enumeration
category​
SPOTSpotMARGINSpot MarginUSDT-FUTURESUSDT FuturesCOIN-FUTURESCoin-M FuturesUSDC-FUTURESUSDC Futures
side​
buyBuysellSell
orderType​
limitLimitmarketMarket
posSide​
longLongshortShort
timeInForce​
gtcGood 'til canceled. It remains active until it is either filled or manually canceled.post_onlyPost only. It will only be added to the order book as a maker.fokFill or Kill. It must be fully executed immediately, or it is canceled entirely.iocImmediate or cancel. It must be executed immediately, with any unfilled portion canceledrpiRetail Price Improvement. A limit order that matches against retail counterparts at a better price than the current best bid/ask.
holdMode​
one_way_modeOneway mode. _Only single direction supported.hedge_modeHedge mode. Both directions supported.
marginMode​
crossedCrossed margin modeisolatedIsolated margin mode
reduceOnly​
yesOnly position reduction supported.noBoth reduction and increase are supported.
execType​
normalNormaloffsetOffsetreduceForced reductionliquidationLiquidationdeliveryDelivery
orderStatus​
newOrder matchingpartially_filledPartially filledfilledFully filledcancelledCancelled
tradeScope​
takerTaker, who executes an existing order, removing liquidity.makerMaker, who places a new order, adding liquidity.
assetMode​
unionunion-margin mode
type (financial records)​
TRANSFER_INTransfer inTRANSFER_OUTTransfer outCONVERSION_UPON_DELISTINGAuto borrow - system debitORDER_DEALT_FROZEN_OUTOrder dealt fund outORDER_DEALT_INOrder dealt fund inORDER_PLF_FEE_OUTTrading fee deductionEXCHANGE_SOURCE_TOKEN_USER_OUTRepayment exchange outEXCHANGE_TARGET_TOKEN_USER_INRepayment exchange inOPEN_LONGOpen long positionOPEN_SHORTOpen short positionBUY_DEALSingle-sided buySELL_DEALSingle-sided sellCLOSE_LONGClose longCLOSE_SHORTClose shortFORCE_CLOSE_LONGForced reduction of long positionFORCE_CLOSE_SHORTForced reduction of short positionBURST_CLOSE_LONGLiquidate long positionBURST_CLOSE_SHORTLiquidate short positionOFFSET_REDUCE_CLOSE_LONGOffset close longOFFSET_REDUCE_CLOSE_SHORTOffset close shortFORCE_BUY_SSMForced buyFORCE_SELL_SSMForced sellBURST_BUY_SSMLiquidation buyBURST_SELL_SSMLiquidation sellRISK_LIQ_USER_INRisk control - liability liquidation, user creditINTEREST_SETTLEMENT_OUTInterest deductionCONTRACT_MAIN_SETTLE_FEE_USER_INCross-margin funding fee inCONTRACT_MAIN_SETTLE_FEE_USER_OUTCross-margin funding fee outRISK_LIQ_USER_OUTRisk control - liability liquidation, user debitBORROWIns Loan borrowRESERVE_TRANSFER_INReserve transfer inRESERVE_TRANSFER_OUTReserve transfer outREPAYMENTIns Loan repaymentINTEREST_REPAYMENTInterest repaymentLIQ_FUND_OUTLiquidation fund outLIQ_CONVERT_USER_OUTLiquidation convert - user outLIQ_CONVERT_SYS_INLiquidation convert - system inLIQ_CONVERT_SYS_OUTLiquidation convert - system outLIQ_CONVERT_USER_INLiquidation convert - user inLIQ_TRANSFER_INLiquidation transfer inLIQ_TRANSFER_OUTLiquidation transfer outLIQ_FUND_INLiquidation fund inLIQ_FEELiquidation feeLIQ_REPAYMENTLiquidation repaymentDELIST_MARGIN_TOKEN_SOURCE_USER_OUTMargin token delist - exchange out, user debitDELIST_MARGIN_TOKEN_SOURCE_SYS_INMargin token delist - exchange in, system creditDELIST_MARGIN_TOKEN_TARGET_SYS_OUTMargin token delist - exchange out, system debitDELIST_MARGIN_TOKEN_TARGET_USER_INMargin token delist - exchange in, user creditCONFISCATE_TOKEN_USER_OUTAsset confiscation - user debitCONFISCATE_TOKEN_SYS_INAsset confiscation - system creditDELIST_SMALL_BALANCE_USER_OUTMargin token delist - small balance, user outDELIST_SMALL_BALANCE_SYS_INMargin token delist - small balance, system inDELIST_SMALL_LIABILITY_SYS_OUTMargin token delist - small liability, system outDELIST_SMALL_LIABILITY_USER_INMargin token delist - small liability, user inSMALL_ASSET_SOURCE_TOKEN_USER_OUTSmall asset conversion - source token, user outSMALL_ASSET_SOURCE_TOKEN_SYS_INSmall asset conversion - source token, system inSMALL_ASSET_TARGET_TOKEN_SYS_OUTSmall asset conversion - target token, system outSMALL_ASSET_TARGET_TOKEN_USER_INSmall asset conversion - target token, user inSMALL_ASSET_FEE_SYS_INSmall asset conversion - fee, system inTRACE_SHARE_BENEFIT_USER_OUTCopy trading profit sharing - user outTRACE_SHARE_BENEFIT_SYSTEM_INCopy trading profit sharing - system inTRACE_SHARE_BENEFIT_SYSTEM_OUTCopy trading profit sharing - system outTRACE_SHARE_BENEFIT_USER_INCopy trading profit sharing - user inMARGIN_OPEN_LONGIsolated open longMARGIN_OPEN_SHORTIsolated open shortMARIN_BUY_DEALIsolated single-sided buyMARIN_SELL_DEALIsolated single-sided sellMARGIN_BACKIsolated position refundINCREASE_MARGINAdd isolated marginREDUCE_MARGINReduce isolated marginMARGIN_SETTLE_FEE_USER_INIsolated funding fee inMARGIN_SETTLE_FEE_USER_OUTIsolated funding fee outMARGIN_LEVER_ORDER_REFROZENIsolated leverage adjustment - order unfreezeMARGIN_LEVER_ORDER_FROZENIsolated leverage adjustment - order freezeMARGIN_LEVER_POS_INIsolated leverage adjustment - position margin addMARGIN_OFFSET_IN_SSM_LONGIsolated single-sided long reduce-onlyMARGIN_OFFSET_IN_SSM_SHORTIsolated single-sided short reduce-onlyFIXED_OFFSET_IN_SSM_LONGIsolated reduce longFIXED_OFFSET_IN_SSM_SHORTIsolated reduce shortFIXED_CLOSE_LONGIsolated close longFIXED_CLOSE_SHORTIsolated close shortFIXED_FORCE_CLOSE_LONGIsolated forced reduction of longFIXED_FORCE_CLOSE_SHORTIsolated forced reduction of shortFIXED_BURST_CLOSE_LONGIsolated liquidate longFIXED_BURST_CLOSE_SHORTIsolated liquidate shortFIXED_ADL_CLOSE_LONGIsolated ADL close longFIXED_ADL_CLOSE_SHORTIsolated ADL close shortFIXED_RISK_LIQ_USER_INIsolated risk control - liability liquidation, user creditFIXED_RISK_LIQ_USER_OUTIsolated risk control - liability liquidation, user debitFIXED_FORCE_BUY_SSMIsolated forced buyFIXED_FORCE_SELL_SSMIsolated forced sellFIXED_BURST_BUY_SSMIsolated liquidation buyFIXED_BURST_SELL_SSMIsolated liquidation sellON_CHAIN_TRANSFER_REFUNDOn-chain transfer - user inON_CHAIN_TRANSFER_OUTOn-chain transfer - user outMT5_TRANSFER_INTransfer in from MT5MT5_REFUND_INMT5 transfer out refundMT5_TRANSFER_OUTTransfer out to MT5TRACE_LOCK_USER_OUTCopy trading freeze - user outTRACE_LOCK_USER_INCopy trading freeze - user inTRACE_TRANSFER_USER_OUTCopy trading - from UTA to funding accountTRACE_TRANSFER_USER_INCopy trading - from funding account to UTA sub-accountTRACE_TRANSFER_REFUND_INCopy trading - funding account refund to UTAFINANCIAL_TRANSFER_OUTEarn transfer outFINANCIAL_TRANSFER_INEarn transfer inCONVERT_TRANSFER_INConvert - transfer inCONVERT_TRANSFER_OUTConvert - transfer outBGPAY_TRANSFER_OUTBG Pay - transfer outBGPAY_REFUND_INBG Pay - refund inRWA_FIXED_SETTLE_FEE_USER_INRWA cash dividend isolated margin funding fee - user creditRWA_FIXED_SETTLE_FEE_USER_OUTRWA cash dividend isolated margin funding fee - user debitRWA_CONTRACT_MAIN_SETTLE_FEE_SYSTEM_INRWA cash dividend cross margin funding fee - aggregation account creditRWA_CONTRACT_MAIN_SETTLE_FEE_SYSTEM_OUTRWA cash dividend cross margin funding fee - aggregation account debitRWA_CONTRACT_MAIN_SETTLE_FEE_SYSTEM_KEEP_INRWA cash dividend cross margin funding fee - reserve account creditRWA_CONTRACT_MAIN_SETTLE_FEE_SYSTEM_KEEP_OUTRWA cash dividend cross margin funding fee - reserve account debitRWA_CONTRACT_MAIN_SETTLE_FEE_USER_INRWA cash dividend cross margin funding fee - user creditRWA_CONTRACT_MAIN_SETTLE_FEE_USER_OUTRWA cash dividend cross margin funding fee - user debitRWA_CONTRACT_REBASE_USER_OPEN_LONGRWA contract rebase - open longRWA_CONTRACT_REBASE_USER_OPEN_SHORTRWA contract rebase - open shortRWA_CONTRACT_REBASE_USER_CLOSE_LONGRWA contract rebase - close longRWA_CONTRACT_REBASE_USER_CLOSE_SHORTRWA contract rebase - close shortRWA_CONTRACT_REBASE_USER_BUY_IN_SSMRWA contract rebase - buy in single side modeRWA_CONTRACT_REBASE_USER_SELL_IN_SSMRWA contract rebase - sell in single side modeRISK_LIQ_DEFAULT_USER_INRisk control - debt liquidation user inFIXED_RISK_LIQ_DEFAULT_USER_INIsolated risk control - debt liquidation user inBONUS_GRANT_USER_INBonus - user creditBONUS_EXPIRE_USER_OUTBonus expiry - user debitBONUS_TRANSFER_USER_OUTBonus transfer expiry - user debitWITHDRAW_TRANSFER_OUTWithdrawal - transfer outWITHDRAW_TRANSFER_INWithdrawal - refund inDELIVERY_LONGLong deliveryDELIVERY_SHORTShort deliveryFIXED_DELIVERY_LONGIsolated long deliveryFIXED_DELIVERY_SHORTIsolated short deliveryREBASE_COIN_SPLIT_OUTSplit/merge shares - split outREBASE_COIN_SPLIT_INSplit/merge shares - split inREBASE_COIN_MERGE_OUTSplit/merge shares - merge outREBASE_COIN_MERGE_INSplit/merge shares - merge in
symbolType​
perpetualPerpetual contractdeliveryDelivery contract
status (instruments)​
listedListed (not yet open)onlineNormallimit_openOrder placement restrictedofflineDelisted / Under maintenancerestrictedAPIAPI restricted
deliveryStatus​
delivery_config_periodDelivery configuration perioddelivery_normalNormal delivery perioddelivery_beforeBefore delivery. No position opening is allowed 10 minutesdelivery_periodDelivery period. Opening, closing, and canceling orders is prohibited
granularity​
1m(1 minute)3m(3 minutes)5m(5 minutes)15m(15 minutes)30m(30 minutes)1H(1 hour)4H(4 hours)6H(6 hours)12H(12 hours)1D(1 day)3D(3 days)1W(1 week)1M(1 month)6Hutc(zero time zone 6-hour line)12Hutc(zero time zone 12-hour line)1Dutc(zero time zone 1-day line)3Dutc(zero time zone 3-day line)1Wutc(zero time zone 1-week line)1Mutc(zero time zone 1-month line)
kLineType​
MARKmark price K lineINDEXindex price K lineMARKETMarket price K line
cancelReason​
normal_cancelNormal cancellationtrade_too_many_times_cancelTrading user restriction, only for special userstrade_count_too_smallOrder cancelled due to too small tradable quantitytrade_too_many_times_cancelYour order has been matched too many times and cannot continue to be filledfok_not_full_cancelFOK order not fully filledioc_not_full_cancelIOC order not fully filledpost_only_fill_cancelPost-only order filled immediately upon placementself_trade_cancelSelf-trade cancellationtrade_max_deal_size_cancelYour order has been filled too many times and cannot continue to be filledtpsl_plan_cancelCancelled by conditional triggerback_contract_cancelReverse position cancellationdelegated_risk_order_cancelRisk control cancellation of delegated orderstrader_order_cancelCopy trading order cancellationdelivery_order_cancelDelivery cancellationmodify_limit_orderLimit order modification cancellationslippage_cancelCancelled due to slippage ratioadl_cancelADL cancellationpenetrate_cancelLiquidation risk controlstp_cancelSelf-trade prevention cancellationcall_auction_cancelOrder cancelled due to call auction failurelimit_price_exceed_cancelOrder price exceeds limit rangeburst_cancelAll your orders are automatically cancelled as your account enters liquidation/reduction statecancel_receiveWindowOrder cancelled because the valid window period (receiveWindow) has expired
tradeSide​
openOpencloseCloseopen_longOpen longclose_longClose longopen_shortOpen Shortclose_shortClose shortreduce_close_long: Liquidate partial long positions for hedge position modereduce_close_short:Liquidate partial short positions for hedge position modeburst_close_long:Liquidate long positions for hedge position modeburst_close_short:Liquidate short positions for hedge position modeoffset_close_long:Liquidate partial long positions for netting for hedge position modeoffset_close_short:Liquidate partial short positions for netting for hedge position modedelivery_close_long:Delivery long positions for hedge position modedelivery_close_short:Delivery short positions for hedge position modedte_sys_adl_close_long:ADL close long position for hedge position modedte_sys_adl_close_short:ADL close short position for hedge position modebuy_single:Buy, one way postion modesell_single:Sell, one way postion modereduce_buy_single:Liquidate partial positions, buy, one way position modereduce_sell_single:Liquidate partial positions, sell, one way position modeburst_buy_single:Liquidate short positions, buy, one way postion modeburst_sell_single:Liquidate partial positions, sell, one way position modedelivery_sell_single:Delivery sell, one way position modedelivery_buy_single:Delivery buy, one way position modedte_sys_adl_buy_in_single_side_mode:ADL close position, buy, one way position modedte_sys_adl_sell_in_single_side_mode:ADL close position, sell, one way position modedte_migrate_position_open_long:Migrate position, open long, hedge position modedte_migrate_position_open_short:Migrate position, open short, hedge position modedte_migrate_position_close_long:Migrate position, close long, hedge position modedte_migrate_position_close_short:Migrate position, close short, hedge position modedte_migrate_position_buy_in_single_side_mode:Migrate position, buy, one way position modedte_migrate_position_sell_in_single_side_mode:Migrate position, sell, one way position modedte_rebase_open_long:Split/merge shares, open long, hedge position modedte_rebase_open_short:Split/merge shares, open short, hedge position modedte_rebase_close_long:Split/merge shares, close long, hedge position modedte_rebase_close_short:Split/merge shares, close short, hedge position modedte_rebase_buy_in_single_side_mode:Split/merge shares, buy, one way position modedte_rebase_sell_in_single_side_mode:Split/merge shares, sell, one way position mode
Tax type​
TRANSFER_INTransfer InTRANSFER_OUTTransfer OutORDER_DEALT_FROZEN_OUTOrder Dealt Deduction - User OutORDER_DEALT_INOrder Dealt In - User InORDER_PLF_FEE_OUTExchange Token Fee Deduction - User OutREPAY_SOURCE_USER_OUTRepayment Out - User OutREPAY_TARGET_USER_INRepayment In - User InOPEN_LONGOpen Long Position SuccessfullyOPEN_SHORTOpen Short Position SuccessfullyBUY_DEALBuy Executed in Single-Side ModeSELL_DEALSell Executed in Single-Side ModeCLOSE_LONGClose LongCLOSE_SHORTClose ShortFORCE_CLOSE_LONGForced Reduce LongFORCE_CLOSE_SHORTForced Reduce ShortBURST_CLOSE_LONGLiquidation Close LongBURST_CLOSE_SHORTLiquidation Close ShortOFFSET_REDUCE_CLOSE_LONGNet-Off Forced Reduce LongOFFSET_REDUCE_CLOSE_SHORTNet-Off Forced Reduce ShortFORCE_BUY_SSMForced BuyFORCE_SELL_SSMForced SellBURST_BUY_SSMLiquidation BuyBURST_SELL_SSMLiquidation SellRISK_LIQ_USER_INRisk Control - Debt Liquidation User InRISK_LIQ_USER_OUTRisk Control - Debt Liquidation User OutINTEREST_SETTLEMENT_OUTInterest Deduction - User OutCONTRACT_MAIN_SETTLE_FEE_USER_INCross Margin Funding Fee - User InCONTRACT_MAIN_SETTLE_FEE_USER_OUTCross Margin Funding Fee - User OutPAPTRADING_USER_INDemo Fund In - User InPAPTRADING_USER_OUTDemo Fund Out - User OutRISK_TARGET_USER_INForced Liquidation In - User InRISK_SOURCE_USER_OUTForced Liquidation Out - User OutADL_CLOSE_LONGADL Close LongADL_CLOSE_SHORTADL Close ShortADL_BUY_IN_SINGLE_SIDE_MODEADL Buy (Single-Side Mode)ADL_SELL_IN_SINGLE_SIDE_MODEADL Sell (Single-Side Mode)INS_LOAN_DISBURSE_USER_INInstitutional Loan Disbursement - User InINS_LOAN_DISBURSE_RESERVE_USER_OUTInstitutional Loan Disbursement to Reserve - User OutINS_LOAN_REPAY_POOL_USER_OUTInstitutional Loan Repayment to Pool - User OutINS_LOAN_REPAY_INTEREST_USER_OUTInstitutional Loan Repayment to Interest - User OutINS_LOAN_REPAY_RESERVE_USER_INInstitutional Loan Repayment to Reserve - User InINS_LOAN_REPAY_FUND_USER_INInstitutional Loan Repayment to Risk Fund - User InINS_LOAN_EXCHANGE_USER_INInstitutional Loan - Forced Liquidation Swap - User InINS_LOAN_EXCHANGE_USER_OUTInstitutional Loan - Forced Liquidation Swap - User OutINS_LOAN_TRANSFER_USER_INInstitutional Loan - Forced Liquidation Transfer - User InINS_LOAN_TRANSFER_USER_OUTInstitutional Loan - Forced Liquidation Transfer - User OutINS_LOAN_REPAY_FEE_USER_OUTInstitutional Loan Repayment - Forced Liquidation Fee - User OutINS_LOAN_REPAY_NON_MARGIN_USER_OUTInstitutional Loan Repayment - Forced Liquidation Recovery - User OutDELIST_MARGIN_TOKEN_TARGET_USER_INMargin Delisted Token Redeem In - User InDELIST_MARGIN_TOKEN_SOURCE_USER_OUTMargin Delisted Token Redeem Out - User OutSYSTEM_TRANSFER_OUTSystem Transfer OutSYSTEM_TRANSFER_INSystem Transfer InSMALL_ASSET_SOURCE_TOKEN_USER_OUTSmall Asset Conversion - Source Token Out - User OutSMALL_ASSET_TARGET_TOKEN_USER_INSmall Asset Conversion - Target Token In - User InFIXED_OPEN_LONGIsolated Margin Open Long Position SuccessfullyFIXED_OPEN_SHORTIsolated Margin Open Short Position SuccessfullyFIXED_BUY_DEALIsolated Margin Open Buy Executed (Single-Side)FIXED_SELL_DEALIsolated Margin Open Sell Executed (Single-Side)FIXED_BACKIsolated Margin ReturnFIXED_INCREASE_MARGINIncrease Isolated MarginFIXED_REDUCE_MARGINDecrease Isolated MarginFIXED_SETTLE_FEE_USER_INIsolated Margin Funding Fee - User InFIXED_SETTLE_FEE_USER_OUTIsolated Margin Funding Fee - User OutFIXED_LEVER_POS_INIsolated Margin Leverage Adjustment - Increase MarginFIXED_REDUCE_ONLY_OFFSET_IN_SSM_LONGIsolated Margin Single-Side Mode Long Reduce OnlyFIXED_REDUCE_ONLY_OFFSET_IN_SSM_SHORTIsolated Margin Single-Side Mode Short Reduce OnlyFIXED_OFFSET_IN_SSM_LONGIsolated Margin Reduce LongFIXED_OFFSET_IN_SSM_SHORTIsolated Margin Reduce ShortFIXED_ORDER_PLACE_FROZENIsolated Margin Order Placed FrozenFIXED_ORDER_FROZEN_RETURNIsolated Margin Unfreeze ReturnFIXED_CLOSE_LONGIsolated Margin Close LongFIXED_CLOSE_SHORTIsolated Margin Close ShortFIXED_FORCE_CLOSE_LONGIsolated Margin Forced Reduce LongFIXED_FORCE_CLOSE_SHORTIsolated Margin Forced Reduce ShortFIXED_BURST_CLOSE_LONGIsolated Margin Liquidation Close LongFIXED_BURST_CLOSE_SHORTIsolated Margin Liquidation Close ShortFIXED_ADL_CLOSE_LONGIsolated Margin ADL Close LongFIXED_ADL_CLOSE_SHORTIsolated Margin ADL Close ShortFIXED_RISK_LIQ_USER_INIsolated Margin Risk Control - Debt Liquidation User InFIXED_RISK_LIQ_USER_OUTIsolated Margin Risk Control - Debt Liquidation User OutFIXED_FORCE_BUY_SSMIsolated Margin Forced BuyFIXED_FORCE_SELL_SSMIsolated Margin Forced SellFIXED_BURST_BUY_SSMIsolated Margin Liquidation BuyFIXED_BURST_SELL_SSMIsolated Margin Liquidation Sell