Trades
Request append param
name
type
required
detail
pair
String
√
period
String
√
1MIN,3MIN,5MIN,15MIN,30MIN,1HOUR,4HOUR,8HOUR,12HOUR,1DAY
Receive data:
name
type
required
detail
data
Object[] Arrray list
trade info
event
String
api_trade
success
Boolean
true,false
data object:
name
type
required
detail
contractMatchPairId
long
ID
pair
String
price
BigDecimal
quantity
BigDecimal
amount
BigDecimal
isLong
Boolean
true/false
time
String
timestamp
Long
contractPairId
Long
pair ID
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