Trade History
GET/marketdata/api/v1/history/:symbol
Retrieves historical trade data for a specific market (ticker) based on the specified type (buy/sell).
Request
Path Parameters
Possible values: Value must match regular expression ^[a-z0-9]{3,}_[a-z0-9]{3,}$
market symbol like btc_usdc
Query Parameters
Possible values: [Buy
, Sell
]
Type of Order, Buy or Sell
Number of historical trades to retrieve from time of query. Default 100; max 500.
End time for historical trades query
Cursor for pagination (optional).
Responses
- 200
Success
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
Cursor for fetching next set of records
items
object[]
nullable
Array of trade history
Unique identifier for the trade.
The price at which the trade occurred.
The volume of the base currency traded.
The volume of the target currency traded.
The timestamp of when the trade occurred.
Possible values: [Buy
, Sell
]
{
"nextCursor": "30",
"items": [
{
"tradeId": 10,
"price": 58000.1,
"baseVolume": 1000.01,
"targetVolume": 100000.04,
"timestamp": "3/12/2024 7:47:14 AM",
"side": "Buy"
}
]
}
{
"nextCursor": "20",
"items": [
{
"tradeId": 10,
"price": 60000.1,
"baseVolume": 0.1,
"targetVolume": 6000.04,
"timestamp": "2024-05-14T08:03:04.2652465Z",
"side": "Buy"
},
{
"tradeId": 9,
"price": 60000.02,
"baseVolume": 0.5,
"targetVolume": 10000.06,
"timestamp": "2024-05-14T08:03:04.2652476Z",
"side": "Sell"
}
]
}
- Schema
- Example (from schema)
- Example
Schema
Array [
]
Cursor for fetching next set of records
items
object[]
nullable
Array of trade history
Unique identifier for the trade.
The price at which the trade occurred.
The volume of the base currency traded.
The volume of the target currency traded.
The timestamp of when the trade occurred.
Possible values: [Buy
, Sell
]
{
"nextCursor": "30",
"items": [
{
"tradeId": 10,
"price": 58000.1,
"baseVolume": 1000.01,
"targetVolume": 100000.04,
"timestamp": "3/12/2024 7:47:14 AM",
"side": "Buy"
}
]
}
{
"nextCursor": "20",
"items": [
{
"tradeId": 10,
"price": 60000.1,
"baseVolume": 0.1,
"targetVolume": 6000.04,
"timestamp": "2024-05-14T08:03:04.2652465Z",
"side": "Buy"
},
{
"tradeId": 9,
"price": 60000.02,
"baseVolume": 0.5,
"targetVolume": 10000.06,
"timestamp": "2024-05-14T08:03:04.2652476Z",
"side": "Sell"
}
]
}
- Schema
- Example (from schema)
- Example
Schema
Array [
]
Cursor for fetching next set of records
items
object[]
nullable
Array of trade history
Unique identifier for the trade.
The price at which the trade occurred.
The volume of the base currency traded.
The volume of the target currency traded.
The timestamp of when the trade occurred.
Possible values: [Buy
, Sell
]
{
"nextCursor": "30",
"items": [
{
"tradeId": 10,
"price": 58000.1,
"baseVolume": 1000.01,
"targetVolume": 100000.04,
"timestamp": "3/12/2024 7:47:14 AM",
"side": "Buy"
}
]
}
{
"nextCursor": "20",
"items": [
{
"tradeId": 10,
"price": 60000.1,
"baseVolume": 0.1,
"targetVolume": 6000.04,
"timestamp": "2024-05-14T08:03:04.2652465Z",
"side": "Buy"
},
{
"tradeId": 9,
"price": 60000.02,
"baseVolume": 0.5,
"targetVolume": 10000.06,
"timestamp": "2024-05-14T08:03:04.2652476Z",
"side": "Sell"
}
]
}