Skip to main content
GET
/
v1
/
assets
/
{symbol}
/
prices
/
ohlc
Get OHLC (Open, High, Low, Close) Data for an Asset
curl --request GET \
  --url https://api.gm.ondo.finance/v1/assets/{symbol}/prices/ohlc \
  --header 'x-api-key: <api-key>'
{
  "interval": "1day",
  "range": "3month",
  "primaryMarket": {
    "symbol": "BABAon",
    "data": [
      {
        "timestamp": 1750723200000,
        "open": "117.0544",
        "high": "117.3426",
        "low": "117.0544",
        "close": "117.3426"
      },
      {
        "timestamp": 1750809600000,
        "open": "117.87",
        "high": "117.87",
        "low": "114.3677",
        "close": "114.8076"
      },
      "..."
    ]
  },
  "underlyingMarket": {
    "ticker": "BABA",
    "data": [
      {
        "timestamp": 1750723200000,
        "open": "117.0544",
        "high": "117.3426",
        "low": "117.0544",
        "close": "117.3426"
      },
      {
        "timestamp": 1750809600000,
        "open": "117.87",
        "high": "117.87",
        "low": "114.3677",
        "close": "114.8076"
      },
      "..."
    ]
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

symbol
string
required

The GM token symbol

Query Parameters

interval
enum<string>
required

The time interval between data points.

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

The lookback range for historical data. The look back range for historical data. (Note that '1day' will return a rolling 24-hour period of data and 'all' will return all historical data.)

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

Response

OK

interval
enum<string>
required

The time interval between data points.

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

The look back range for historical data. (Note that '1day' will return a rolling 24-hour period of data and 'all' will return all historical data.)

Available options:
1day,
1month,
3month,
6month,
1year,
all
primaryMarket
object
required
underlyingMarket
object
required