Orders
Request append param
name
type
required
detail
pair
String
√
Receive data:
name
type
required
detail
data
Object
Entrust order info
event
String
api_entrust
success
Boolean
true,false
Data object:
name
type
required
detail
currentEntrustId
Long
order id
changeType
String
ENTRUST; NEW;TRADE; CANCELED
dealQuantity
String
direction
String
LONG/SHORT
lever
Integer
price
String
quantity
String
symbol
String
nowDealQuantity
String
isClose
Boolean
true/false
contractPairId
Long
dealAmount
String
matchType
Integer
1 GTC ;2 IOC;3 FOK ;4 POST_ONLY ;
clientOrderId
String
isMarket
Boolean
true/false
feeCoin
String
fee currency (when the changeType is TRADE)
feeAmt
String
fee amount (when the changeType is TRADE)
isTaker
Boolean
true/false (when the changeType is TRADE)
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