Skip to main content

Enums Definitions

accountType​

  • CONTRACT Future account
  • COPYTRADING CopyTrading account

transferStatus​

  • SUCCESS
  • PENDING
  • FAILED

symbol​

CopyTrading supports USDT Perpetual only

  • BTCUSDT
  • ETHUSDT
  • XRPUSDT
  • LTCUSDT
  • SOLUSDT
  • ...

orderType​

  • Market
  • Limit

side​

  • Buy
  • Sell

triggerBy​

  • LastPrice
  • IndexPrice
  • MarkPrice

copyTradeOrderType​

  • All All orders
  • Active Orders in position
  • Closed Closed orders
  • Cancelled Cancelled orders
  • Tpsl Take-profit stop-loss orders

copyTradeOrderStatus​

  • UNKNOWN
  • PendingNew
  • New
  • OpenOrderPartiallyFilled
  • OpenOrderFilled
  • OpenOrderClosing
  • OpenOrderClosedFilled
  • CloseOrderPartiallyFilled
  • CloseOrderFilled
  • Cancelled
  • Untriggered
  • Triggered

timeInForce​

  • GoodTillCancel
  • ImmediateOrCancel
  • FillOrKill
  • PostOnly

positionIdx​

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

interval​

  • 1 3 5 15 30 60 120 240 360 720 minute
  • D day
  • W week
  • M month

tickDirection​

It indicates price fluctuation relative to the last trade.

  • PlusTick price rise
  • ZeroPlusTick trade occurs at the same price as the previous trade, which occurred at a price higher than that for the trade preceding it
  • MinusTick price drop
  • ZeroMinusTick trade occurs at the same price as the previous trade, which occurred at a price lower than that for the trade preceding it

execType​

  • Trade
  • AdlTrade
  • Funding
  • BustTrade

lastLiquidityInd​

  • AddedLiquidity add liquidity
  • RemovedLiquidity take liquidity
  • LiquidityIndNA Liquidity not applicable

transferType​

  • IN transfer from main account to subaccount
  • OUT transfer from subaccount to main account