# Get Trades
GET /v1/addresses/{waves_address}/trades/{amount_currency_id}/{price_currency_id} method retrieves exchange trades (buys and sells) for a given address and currency pair.
Request parameters:
Parameter | Description |
---|---|
waves_address | Waves address of a trader-participant |
amount_currency_id | ID of an amount currency for a given pair, for example: WAVES |
price_currency_id | ID of a price currency for a given pair, for example: USDT |
Optional request parameters:
Parameter | Value type | Description |
---|---|---|
timestamp__gte | timestamp | Timestamp filter — greater or equal. Date format: ISO8601 with time zone |
timestamp__lt | timestamp | Timestamp filter — less. Date format: ISO8601 with time zone |
sort | desc or asc | Descending or ascending order. Default: desc |
limit | int64 | Number of records. Default: 1000 , max: 1000 |
after | string | page_info.last_cursor field of previous response |
# API Access
Use the following URL for API requests:
https://api.waves.exchange
Request example:
https://api.waves.exchange/v1/addresses/3PNtMUVKYy5RNReBW4PwXuhHDtfofLRG325/trades/WAVES/USDT?sort=asc&limit=2
Successful response:
Code : 200 OK
Response example:
{
"type": "list",
"page_info": {
"has_next_page": true,
"last_cursor": ""
},
"items": [
{
"type": "buy",
"id": "E4dTtiN8GaiCJUY4WK8nFdCdiM5UdbX4jLKw1i3vCWWL",
"timestamp": "2021-08-03T11:25:00.156Z",
"amount": 123.74966584,
"price": 15.9173
},
{
"type": "sell",
"id": "CxAhKWoxYUoF5ofe3qEAhXcjos2vrXHxv2ZzCfNqBmSv",
"timestamp": "2021-08-03T11:25:00.156Z",
"amount": 0.58104826,
"price": 15.9751
}
]
}