Super Octopus logoSuper Octopus Docs

Get Prices History

Get historical midpoint prices

GET
/prices-history

Query Parameters

market*string

Token identifier (market) to query.

startTs?integer

Start of the time range (unix timestamp in seconds). Required when interval is absent.

endTs?integer

End of the time range (unix timestamp in seconds). Defaults to now when omitted.

interval?string

Preset time window to query. Cannot be used with startTs/endTs.

fidelity?integer

Bucket size in minutes when using explicit timestamps. Auto-calculated when omitted.

Response Body

application/json

application/json

curl -X GET "https://example.com/prices-history?market=string"
{
  "history": [
    {
      "t": 0,
      "p": 0
    }
  ]
}
{
  "error": "string"
}