Get Trades
GET/v1/markets/:market_id/trades
GET the current matches of bid and ask by market ID.
Request
Path Parameters
market_id stringrequired
Market identification.
Query Parameters
time string
Timestamp of when the trade matched.
cursor string
A reference to the server indicating the next set of objects to be returned. It is sent back in every response were the number of objects returned is bigger than the limit.
limit integer
Possible values: non-empty
and <= 200 characters
, >= 1
and <= 200
Default value: 20
Max number of objects to be returned as result of request.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- Array [
- ]
result object[]
id string
Trade identification.
time integer
Timestamp of when the trade matched.
price string
Executed price.
size string
Executed size.
side string
Possible values: [BUY
, SELL
]
Used to determine the trade agressor. BUY: Identifies an ask that was removed from the order book. SELL: Identifies a bid that was removed from the order book.
quote_size string
Executed size in the quote currency.
string
{
"result": [
{
"id": "5762572869863580",
"time": 1675901055963852,
"price": "1650.0",
"size": "0.0002356",
"side": "BUY",
"quote_size": "string",
"": "string"
}
]
}
{
"result": [
{
"id": "5762572869863580",
"time": 1682358341331621,
"price": "27638.66",
"size": "0.00017289",
"quote_size": "4.7784479274",
"side": "SELL"
}
]
}
Loading...