Skip to main content
GET
/
orderbook
/
{marketId}
/
history
Get price history
curl --request GET \
  --url https://api.example.com/orderbook/{marketId}/history
{
  "marketId": "<string>",
  "points": [
    {
      "timestamp": 123,
      "midpoint": 123,
      "bestBid": 123,
      "bestAsk": 123,
      "spread": 123,
      "volume": 123
    }
  ]
}

Path Parameters

marketId
string
required

Query Parameters

startTs
number | null
endTs
number | null
interval
integer
Required range: x >= 1

Response

200 - application/json

200

marketId
string
required
points
object[]
required