Appearance
Description
Subscribe the order channel
Data will be pushed when the following events occured:
- Open/Close orders are created
- Open/Close orders are filled
- Orders canceled
Push Parameters
Parameter | Type | Description |
---|---|---|
ch | String | Channel name:position |
ts | Int64 | Time stamp |
data | List<Object> | Subscription data |
> event | String | Event,CREATE/UPDATE/CLOSE |
> orderId | String | order Id |
> symbol | String | Symbol |
> positionType | String | Margin mode,ISOLATION/CROSS |
> positionMode | String | Position mode,ONE_WAY/HEDGE |
> side | String | Sell,BUY/SELL |
> effect | String | Order 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; |
> type | String | LIMIT/MARKET |
> qty | String | Amount (base coin) |
> reductionOnly | Bool | Reduction Only |
> price | String | Price of the order. Required if the order type is LIMIT |
> ctime | String | create timestamp |
> mtime | String | create timestamp |
> leverage | String | Leverage |
> orderStatus | String | INIT:prepare status;NEW:pending;PART_FILLED:partially filled;CANCELED:canceled;FILLEDAll filled |
> fee | String | Deducted transaction fees: transaction fees deducted during the position |
> tpStopType | String | take profit trigger type.MARK_PRICE/LAST_PRICE |
> tpPrice | String | take profit trigger price |
> tpOrderType | String | take profit trigger place order type.LIMIT/MARKET |
> tpOrderPrice | String | take profit trigger place order price.LIMIT/MARKET |
> slStopType | String | stop loss trigger type.MARK_PRICE/LAST_PRICE |
> slPrice | String | stop loss trigger price |
> slOrderType | String | stop loss trigger place order type.LIMIT/MARKET |
> slOrderPrice | String | stop loss trigger place order price.LIMIT/MARKET |