Skip to content

Description

Subscribe the order channel

Data will be pushed when the following events occured:

  1. Open/Close orders are created
  2. Open/Close orders are filled
  3. Orders canceled

Push Parameters

ParameterTypeDescription
chStringChannel name:position
tsInt64Time stamp
data<Object>Subscription data
> eventStringEvent,CREATE/UPDATE/CLOSE
> orderIdStringorder Id
> symbolStringSymbol
> positionTypeStringMargin mode,ISOLATION/CROSS
> positionModeStringPosition mode,ONE_WAY/HEDGE
> sideStringSell,BUY/SELL
> effectStringOrder expiration date.Required if the orderType is limit.IOC: Immediate or cancel;FOK: Fill or kill;GTC: Good till canceled(default value);POST_ONLY: POST only;
> typeStringLIMIT/MARKET
> qtyStringAmount (base coin)
> priceStringPrice of the order. Required if the order type is LIMIT
> ctimeStringcreate timestamp
> mtimeStringcreate timestamp
> leverageStringLeverage
> orderStatusStringINIT:prepare status;NEW:pending;PART_FILLED:partially filled;CANCELED:canceled;FILLEDAll filled;PART_FILLED_CANCELED:part filled canceled;
> feeStringDeducted transaction fees: transaction fees deducted during the position
> averagePriceStringAverage price
> dealAmountStringDeal amount
> clientIdStringClient ID
> tpStopTypeStringTake profit trigger type.MARK_PRICE/LAST_PRICE
> tpPriceStringTake profit trigger price
> tpOrderTypeStringTake profit trigger place order type.LIMIT/MARKET
> tpOrderPriceStringTake profit trigger place order price.LIMIT/MARKET
> slStopTypeStringStop loss trigger type.MARK_PRICE/LAST_PRICE
> slPriceStringStop loss trigger price
> slOrderTypeStringStop loss trigger place order type.LIMIT/MARKET
> slOrderPriceStringStop loss trigger place order price.LIMIT/MARKET