Skip to main content

Notes

  • Keyless. Every read is a POST to /info with a JSON body whose ‘type’ picks the query; reads over POST change nothing.
  • Timestamps (startTime, endTime and every time in answers) are epoch MILLISECONDS. Prices and sizes come back as strings.
  • Coin names: a perp is its name from meta (BTC); a spot pair is PURR/USDC for PURR and @{index} for others, the index being the pair’s position in spotMeta’s universe; HIP-3 perps carry the dex prefix (xyz:XYZ100).
  • Time-range answers are capped (500 elements per the general docs, 2000 for fills); page by sending the last returned timestamp as the next startTime.
  • For an account query, use the master or sub-account address, not an agent wallet’s address, or the answer is empty.

Endpoints

Get mid prices of all coins

  • A read over POST. Falls back to the last trade price when a book is empty.

Get a coin’s order book

  • A read over POST.

Get candles for a coin

  • A read over POST. Only the 5,000 most recent candles of an interval are available.

Get perpetuals metadata and market contexts

  • A read over POST.

Get a coin’s funding rate history

  • A read over POST. Capped per answer; page from the last returned time.

Get an account’s perp positions and margin

  • A read over POST. Public data: any address can be queried.

Get an account’s fills over a time range

  • A read over POST. At most 2,000 fills per answer, and only the 10,000 most recent fills are reachable.