My App

Get recent trades for a product

Retrieve a paginated list of recent trades executed for a specific product, with optional time range filtering.

GET
/products/{product_id}/trades
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)

Formatuint64
end_time?string

Optional: End timestamp in nanoseconds for filtering trades (inclusive)

Formatuint64
page?string

Page number for pagination, starting at 1 (default: 1)

Formatint64
limit?string

Number of records per page (default: 100)

Formatint64

Response 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
    }
  ]
}