Get recent trades for a product
Retrieve a paginated list of recent trades executed for a specific product, with optional time range filtering.
OBSIDIAN-KEY<token>
In: header
OBSIDIAN-SECRET<token>
In: header
Path Parameters
product_idstring
Product ID to retrieve trades for (e.g., "BTC-PERP", "ETH-PERP")
Query Parameters
start_time?string
Optional: Start timestamp in nanoseconds for filtering trades (inclusive)
Format
uint64end_time?string
Optional: End timestamp in nanoseconds for filtering trades (inclusive)
Format
uint64page?string
Page number for pagination, starting at 1 (default: 1)
Format
int64limit?string
Number of records per page (default: 100)
Format
int64Response Body
application/json
application/json
curl -X GET "https://api.dev.obsidian.exchange/products/string/trades"{
"trades": [
{
"id": "string",
"maker_side": "BUY",
"price": "string",
"size": "string",
"quote_size": "string",
"created_at": "string"
}
]
}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string",
"property1": null,
"property2": null
}
]
}