Enums Definitions
category
Contract
linear
Linear Contract, including USDT Perpetualinverse
Inverse Contract, including Inverse Perpetual, Inverse Futures
Unified Margin
linear
Linear Contract, including USDT Perpetual, USDC Perpetualoption
symbol
USDT Perpetual:
BTCUSDT
ETHUSDT
USDC Perpetual:
BTCPERP
ETHPERP
Inverse Perpetual:
BTCUSD
ETHUSD
Inverse Futures:
BTCUSDH23
H: First quarter; 23: 2023BTCUSDM23
M: Second quarter; 23: 2023BTCUSDU23
U: Third quarter; 23: 2023BTCUSDZ23
Z: Fourth quarter; 23: 2023
positionIdx
0
one-way mode1
Buy side of hedge-mode2
Sell side of hedge-mode
positionStatus
Normal
Liq
in the liquidation progressAdl
in the auto-deleverage progress
interval
1
3
5
15
30
60
120
240
360
720
minuteD
dayW
weekM
month
triggerBy
LastPrice
MarkPrice
IndexPrice
timeInForce
GoodTillCancel
ImmediateOrCancel
FillOrKlii
- PostOnly
orderFilter
Order
active orderStopOrder
conditional order
orderStatus
Created
New
Rejected
PartiallyFilled
Filled
PendingCancel
Cancelled
Untriggered
Triggered
Deactivated
Active
cancelType
CancelByUser
CancelByReduceOnly
CancelByPrepareLiq
CancelAllBeforeLiq
CancelByPrepareAdl
CancelAllBeforeAdl
CancelByAdmin
CancelByTpSlTsClear
CancelByPzSideCh
CancelBySmp
Options:
CancelByUser
CancelByReduceOnly
CancelAllBeforeLiq
Cancelled due to liquidationCancelAllBeforeAdl
Cancelled due to ADLCancelBySettle
CancelByCannotAffordOrderCost
CancelByPmTrialMmOverEquity
CancelByAccountBlocking
CancelByDelivery
CancelByMmpTriggered
CancelByCrossSelfMuch
CancelByCrossReachMaxTradeNum
CancelByDCP
stopOrderType
TakeProfit
StopLoss
TrailingStop
Stop
PartialTakeProfit
PartialStopLoss
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
positionMode
0
One-Way Mode3
Hedge Mode
execType
Trade
AdlTrade
Auto-DeleveragingFunding
Funding feeBustTrade
LiquidationSettle
lastLiquidityInd
Unified Margin
TAKER
MAKER
Contract
AddedLiquidity
add liquidityRemovedLiquidity
take liquidity
walletFundType
Deposit
Withdraw
RealisedPNL
Commission
Refund
Prize
ExchangeOrderWithdraw
ExchangeOrderDeposit
ReturnServiceCash
Refund of handling fee bonusInsurance
Insurance account transferSubMember
Main-Sub account transferCoupon
Coupon interestAccountTransfer
Account transferCashBack
Cash back
type
TRANSFER_IN
TRANSFER_OUT
TRADE
SETTLEMENT
DELIVERY
LIQUIDATION
BONUS
FEE_REFUND
INTEREST
CURRENCY_BUY
CURRENCY_SELL
adlRankIndicator
0
default value of empty position1
2
3
4
5
tickDirection
It indicates price fluctuation relative to the last trade.
PlusTick
price riseZeroPlusTick
trade occurs at the same price as the previous trade, which occurred at a price higher than that for the trade preceding itMinusTick
price dropZeroMinusTick
trade occurs at the same price as the previous trade, which occurred at a price lower than that for the trade preceding it
smpType
- default:
None
CancelMaker
CancelTaker
CancelBoth
unifiedMarginStatus
1
Regular account2
Unified margin account, it only trades linear perpetual and options.3
Unified trade account, it can trade linear perpetual, options and spot