Positions
Request append param
name | type | required | detail |
pair | String | √ |
Receive data:
name | type | required | detail |
data | Object | position info | |
event | String | api_position | |
success | Boolean | true,false |
data object:
name | type | required | detail |
changeType | String | NEW/ INCREASE/ CLOSE/LIQUIDATE/ REDUCE; | |
currentQuantity | String | ||
direction | String | LONG/SHORT | |
operateQuantity | String | ||
positionId | Long | ID | |
symbol | String | ||
canClosedQuantity | String | ||
contractPairId | Long | ||
positionType | Integer | 3 one-way isloate 4 one-way cross | |
openingPrice | String | ||
marginAmount | String | Initial margin amount | |
marginCallAmount | String |
Example:
1 Get current timestamp(ms):
2 Sign the string format of the timestamp, result:
3 Assembling parameters, including basic parameters for subscription and custom additional parameters for the interface.
4 Returns after a successful subscription
5 Server websocket push data.
Last updated