Olympus
Market data

Best bid/ask price and quantity

Returns the best bid and ask price and quantity. When `symbol` is provided, returns a single object. When omitted, returns an array of all symbols.

GET
/api/v1/ticker/bookTicker

Returns the best bid and ask price and quantity. When symbol is provided, returns a single object. When omitted, returns an array of all symbols.

Query Parameters

symbol?string

Instrument symbol. If omitted, returns all symbols.

Response Body

application/json

application/json

curl -X GET "http://localhost:3000/api/v1/ticker/bookTicker"
{
  "symbol": "AAPL-USD",
  "bidPrice": "149.95",
  "bidQty": "25",
  "askPrice": "150.05",
  "askQty": "15",
  "time": 1709123456789
}
{
  "code": -1121,
  "msg": "Invalid symbol."
}