Skip to main content

Enums Definitions

locale

  • de-DE
  • en-US
  • es-AR
  • es-ES
  • es-MX
  • fr-FR
  • kk-KZ
  • id-ID
  • uk-UA
  • ja-JP
  • ru-RU
  • th-TH
  • pt-BR
  • tr-TR
  • vi-VN
  • zh-TW
  • ar-SA
  • hi-IN
  • fil-PH

category

Normal Account

  • linearUSDT perp
  • inverseInverse contract, including Inverse perp, Inverse futures

orderStatus

  • Createdorder has been accepted by the system but not yet put through the matching engine
  • Neworder has been placed successfully
  • Rejected
  • PartiallyFilled
  • Filled
  • CancelledIn derivatives, orders with this status may have an executed qty
  • Untriggered
  • Triggered
  • Deactivated
  • Activeorder has been triggered and the new active order has been successfully placed. Is the final state of a successful conditional order

timeInForce

  • GTCGoodTillCancel
  • IOCImmediateOrCancel
  • FOKFillOrKill
  • PostOnly

execType

  • Trade
  • AdlTradeAuto-Deleveraging
  • FundingFunding fee
  • BustTradeLiquidation
  • BlockTrade

stopOrderType

  • TakeProfit
  • StopLoss
  • TrailingStop
  • Stop
  • PartialTakeProfit
  • PartialStopLoss

tickDirection

  • PlusTickprice rise
  • ZeroPlusTicktrade occurs at the same price as the previous trade, which occurred at a price higher than that for the trade preceding it
  • MinusTickprice drop
  • ZeroMinusTicktrade occurs at the same price as the previous trade, which occurred at a price lower than that for the trade preceding it

interval

  • 1 3 5 15 30 60 120 240 360 720minute
  • Dday
  • Wweek
  • Mmonth

positionIdx

  • 0one-way mode position
  • 1Buy side of hedge-mode position
  • 2Sell side of hedge-mode position

positionStatus

  • Normal
  • Liqin the liquidation progress
  • Adlin the auto-deleverage progress

rejectReason

  • EC_NoError
  • EC_Others
  • EC_UnknownMessageType
  • EC_MissingClOrdID
  • EC_MissingOrigClOrdID
  • EC_ClOrdIDOrigClOrdIDAreTheSame
  • EC_DuplicatedClOrdID
  • EC_OrigClOrdIDDoesNotExist
  • EC_TooLateToCancel
  • EC_UnknownOrderType
  • EC_UnknownSide
  • EC_UnknownTimeInForce
  • EC_WronglyRouted
  • EC_MarketOrderPriceIsNotZero
  • EC_LimitOrderInvalidPrice
  • EC_NoEnoughQtyToFill
  • EC_NoImmediateQtyToFill
  • EC_PerCancelRequest
  • EC_MarketOrderCannotBePostOnly
  • EC_PostOnlyWillTakeLiquidity
  • EC_CancelReplaceOrder
  • EC_InvalidSymbolStatus

accountType

  • CONTRACTDerivatives Account
  • SPOTSpot Account
  • FUNDFunding Account
  • COPYTRADINGCopy trade Account

transferStatus

  • SUCCESS
  • PENDING
  • FAILED

depositStatus

  • 0unknown
  • 1toBeConfirmed
  • 2processing
  • 3success
  • 4deposit failed

withdrawStatus

  • Pending Review
  • Pending Transfer
  • Rejected
  • Transferred successfully
  • Cancelled
  • Fail

triggerBy

  • LastPrice
  • IndexPrice
  • MarkPrice

cancelType

  • CancelByUser
  • CancelByReduceOnly
  • CancelByPrepareLiq CancelAllBeforeLiqCancelled due to liquidation
  • CancelByPrepareAdl CancelAllBeforeAdlCancelled due to ADL
  • CancelByAdmin
  • CancelByTpSlTsClear
  • CancelByPzSideCh
  • CancelBySmp

period

  • BTC: 7,14,21,30,60,90,180,270days
  • ETH: 7,14,21,30,60,90,180,270days
  • SOL: 7,14,21,30,60,90days

contractType

  • InversePerpetual
  • LinearPerpetual

status

  • PreLaunch
  • Trading
  • Settling
  • Closed

type

  • TRANSFER_IN
  • TRANSFER_OUT
  • TRADE
  • SETTLEMENT
  • DELIVERY
  • LIQUIDATION
  • BONUS
  • FEE_REFUND
  • INTEREST
  • CURRENCY_BUY
  • CURRENCY_SELL

unifiedMarginStatus

  • 1Regular account

ltStatus

  • 1LT can be purchased and redeemed
  • 2LT can be purchased, but not redeemed
  • 3LT can be redeemed, but not purchased
  • 4LT cannot be purchased nor redeemed
  • 5Adjusting position

symbol

USDT Perpetual:

  • BTCUSDT
  • ETHUSDT

Inverse Perpetual:

  • BTCUSD
  • ETHUSD

vipLevel

  • No VIP
  • PRO-1
  • PRO-2
  • PRO-3
  • VIP-1
  • VIP-2
  • VIP-3
  • MM-1
  • MM-2
  • MM-3

adlRankIndicator

  • 0default value of empty position
  • 1
  • 2
  • 3
  • 4
  • 5