Enums Definitions
category
Contract
linearLinear Contract, including USDT PerpetualinverseInverse Contract, including Inverse Perpetual, Inverse Futures
Unified Margin
linearLinear Contract, including USDT Perpetual, USDC Perpetualoption
symbol
USDT Perpetual:
BTCUSDTETHUSDT
USDC Perpetual:
BTCPERPETHPERP
Inverse Perpetual:
BTCUSDETHUSD
Inverse Futures:
BTCUSDH23H: First quarter; 23: 2023BTCUSDM23M: Second quarter; 23: 2023BTCUSDU23U: Third quarter; 23: 2023BTCUSDZ23Z: Fourth quarter; 23: 2023
positionIdx
0one-way mode1Buy side of hedge-mode2Sell side of hedge-mode
positionStatus
NormalLiqin the liquidation progressAdlin the auto-deleverage progress
interval
135153060120240360720minuteDdayWweekMmonth
triggerBy
LastPriceMarkPriceIndexPrice
timeInForce
GoodTillCancelImmediateOrCancelFillOrKlii- PostOnly
orderFilter
Orderactive orderStopOrderconditional order
orderStatus
CreatedNewRejectedPartiallyFilledFilledPendingCancelCancelledUntriggeredTriggeredDeactivatedActive
cancelType
CancelByUserCancelByReduceOnlyCancelByPrepareLiqCancelAllBeforeLiqCancelByPrepareAdlCancelAllBeforeAdlCancelByAdminCancelByTpSlTsClearCancelByPzSideChCancelBySmp
Options:
CancelByUserCancelByReduceOnlyCancelAllBeforeLiqCancelled due to liquidationCancelAllBeforeAdlCancelled due to ADLCancelBySettleCancelByCannotAffordOrderCostCancelByPmTrialMmOverEquityCancelByAccountBlockingCancelByDeliveryCancelByMmpTriggeredCancelByCrossSelfMuchCancelByCrossReachMaxTradeNumCancelByDCP
stopOrderType
TakeProfitStopLossTrailingStopStopPartialTakeProfitPartialStopLoss
rejectReason
EC_NoErrorEC_OthersEC_UnknownMessageTypeEC_MissingClOrdIDEC_MissingOrigClOrdIDEC_ClOrdIDOrigClOrdIDAreTheSameEC_DuplicatedClOrdIDEC_OrigClOrdIDDoesNotExistEC_TooLateToCancelEC_UnknownOrderTypeEC_UnknownSideEC_UnknownTimeInForceEC_WronglyRoutedEC_MarketOrderPriceIsNotZeroEC_LimitOrderInvalidPriceEC_NoEnoughQtyToFillEC_NoImmediateQtyToFillEC_PerCancelRequestEC_MarketOrderCannotBePostOnlyEC_PostOnlyWillTakeLiquidityEC_CancelReplaceOrderEC_InvalidSymbolStatus
positionMode
0One-Way Mode3Hedge Mode
execType
TradeAdlTradeAuto-DeleveragingFundingFunding feeBustTradeLiquidationSettle
lastLiquidityInd
Unified Margin
TAKERMAKER
Contract
AddedLiquidityadd liquidityRemovedLiquiditytake liquidity
walletFundType
DepositWithdrawRealisedPNLCommissionRefundPrizeExchangeOrderWithdrawExchangeOrderDepositReturnServiceCashRefund of handling fee bonusInsuranceInsurance account transferSubMemberMain-Sub account transferCouponCoupon interestAccountTransferAccount transferCashBackCash back
type
TRANSFER_INTRANSFER_OUTTRADESETTLEMENTDELIVERYLIQUIDATIONBONUSFEE_REFUNDINTERESTCURRENCY_BUYCURRENCY_SELL
adlRankIndicator
0default value of empty position12345
tickDirection
It indicates price fluctuation relative to the last trade.
PlusTickprice riseZeroPlusTicktrade occurs at the same price as the previous trade, which occurred at a price higher than that for the trade preceding itMinusTickprice dropZeroMinusTicktrade 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 CancelMakerCancelTakerCancelBoth
unifiedMarginStatus
1Regular account2Unified margin account, it only trades linear perpetual and options.3Unified trade account, it can trade linear perpetual, options and spot