Trade
Trades of user
GET /viewer/trades
Parameters
Name | Description | Example | Required |
---|---|---|---|
market_id | market id | ETH-BTC | false |
after | ask for the server to return trades after the cursor | dGVzdGN1cmVzZQo= | false |
before | ask for the server to return trades before the cursor | dGVzdGN1cmVzZQo= | false |
first | slicing count | 20 | false |
last | slicing count | 20 | false |
Response is a Trade collection
{
"edges": [
{
"node": {
"viewer_side": "ASK" // ASK, BID, SELF_TRADING
"taker_side": "BID",
"price": "46.1450000000000000",
"market_id": "ETH-BTC",
"id": 1,
"amount": "0.2465480000000000"
},
"cursor": "dGVzdGN1cmVzZQo="
}
],
"page_info": {
"end_cursor": "dGVzdGN1cmVzZQo=",
"start_cursor": "dGVzdGN1cmVzZQo=",
"has_next_page": true,
"has_previous_page": false
}
}