Skip to main content
GET
/
v2
/
tokenized_assets
/
markets
/
{symbol}
/
ohlc
Python (SDK)
from compass_api_sdk import CompassAPI, models


with CompassAPI(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api:

    res = compass_api.tokenized_assets.tokenized_assets_markets_symbol_ohlc(symbol="<value>", interval=models.TokenizedAssetsOhlcInterval.ONEHOUR, range=models.TokenizedAssetsOhlcRange.ONEMONTH)

    # Handle response
    print(res)
{
  "candles": [
    {
      "close": "353.10",
      "high": "354.27",
      "low": "350.92",
      "open": "351.40",
      "timestamp": "2026-05-04T08:00:00Z"
    },
    {
      "close": "354.05",
      "high": "355.18",
      "low": "352.74",
      "open": "353.10",
      "timestamp": "2026-05-04T09:00:00Z"
    },
    {
      "close": "354.82",
      "high": "356.04",
      "low": "353.61",
      "open": "354.05",
      "timestamp": "2026-05-04T10:00:00Z"
    }
  ],
  "interval": "1hour",
  "range": "1month"
}

Documentation Index

Fetch the complete documentation index at: https://docs.compasslabs.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Path Parameters

symbol
string
required

Query Parameters

interval
enum<string>
default:1hour

Candle interval. Must form a valid pair with range.

Available options:
1min,
5min,
15min,
1hour,
4hour,
12hour,
1day
range
enum<string>
default:1month

Lookback window. Must form a valid pair with interval.

Available options:
1day,
1month,
3month,
6month,
1year,
all

Response

Successful Response

OHLC candle series.

interval
string
required

Echoed candle interval (e.g. 1hour).

range
string
required

Echoed lookback window (e.g. 1month).

candles
OhlcCandle · object[]
required

Candles ordered by ascending timestamp.