#示例
#Request
{
"method":"deals.query",
"params":[
"BTCBCH", #1.market: See<API invocation description·market>
"10", #2.limit
"0" #3.last_id:largest ID of last returned result
],
"id":16
}
#Response
{
"error": null,
"result": [
{
"type": "sell", #order type
"time": 1496458040.059284, #order time
"price": "17868.41", #order price
"id": 29433, #order no
"amount": "0.0281" #order count
}
],
“id": 16
}
#example
#Request
{
"method":"deals.subscribe",
"params":[
"BTCBCH" #1.market: See<API invocation description·market>
],
"id":16
}
#Notify
{
"method": "deals.update",
"params": [
"BTCBCH", #1.market: See<API invocation description·market>
[
{
"type": "sell", #order type
"time": 1496458040.059284, #order time
"price": "17868.41", #order price
"id": 29433, #order no
"amount": "0.0281", #order count
"client_id": "abc" #client id
}
]
],
"id": null
}