Broker API HubMenu

Saxo OpenAPI GET /chart/v3/charts

GET/chart/v3/chartsversion v3Chart data

Returns timestamped open, high, low and close samples for one instrument, up to 1,200 samples a call. Horizon sets the bar length in minutes.

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

Independent and unofficialdeveloper.saxochecked

Saxo's Chart service group lists only v3 (/chart/v3/charts); no v1 or v2 chart resource appears there. FX instruments return bid and ask OHLC fields (OpenBid, OpenAsk and so on) instead of single values. 503 Service Unavailable is also listed. Saxo's parameter table for this call has no required or optional column; the required flags here are our reading of Saxo's descriptions and example request, not markers on Saxo's page. Method, path and parameter names were re-read on Saxo's reference page for this call on 12 Oct 2026 and agree with this record. That page does not mark which parameters are required, so the required flags here were not re-checked, and the mock reply was not compared field by field.

Parameters

NameInTypeDescription
Uicrequired, not confirmedqueryintegerUic of the instrument.
AssetTyperequired, not confirmedquerystringAsset type of the instrument.
Horizonrequired, not confirmedqueryintegerMinutes per sample: 1, 2, 3, 5, 10, 15, 30, 60, 120, 180, 240, 300, 360, 480, 1440, 10080, 43200, 129600 or 518400.
CountqueryintegerMaximum number of samples to return; max 1200, default 1200.
ModequerystringUpTo or From, relative to Time.
TimequerystringTime of the first or last sample, depending on Mode.
AccountKeyquerystringAccount key.

The required marks on this page are this site's reading of secondary material, as the note above says. Which fields the API insists on is not confirmed on the provider's own reference.

Authentication headers

NameTypeDescription
Authorizationrequired, not confirmedstringOAuth 2.0 bearer access token. In SIM you can use a 24 hour token from the Saxo developer portal. Placeholder only: never paste a real token into this site.

Request

Written from the method, path and parameters recorded on this page, against the demo host. Not executed against a live or demo account. Credentials are read from environment variables on your own machine and are never entered on this site. The request builder writes these same snippets, from the same record.

Python
# Set SAXO_SIM_TOKEN as an environment variable first. Never paste real values into code.
# Replace each {placeholder}, "..." and 0 with a real value before running.
# Optional and not shown: query parameters Count, Mode, Time, AccountKey.
import os
import requests

BASE_URL = "https://gateway.saxobank.com/sim/openapi"  # the demo host
headers = {
    "Authorization": "Bearer " + os.environ["SAXO_SIM_TOKEN"],
}
params = {"Uic": "{Uic}", "AssetType": "{AssetType}", "Horizon": "{Horizon}"}
resp = requests.get(BASE_URL + "/chart/v3/charts", headers=headers, params=params, timeout=10)
resp.raise_for_status()
print(resp.json())
JavaScript
// Set SAXO_SIM_TOKEN as an environment variable first. Never paste real values into code.
// Replace each {placeholder}, "..." and 0 with a real value before running.
// Optional and not shown: query parameters Count, Mode, Time, AccountKey.
// Run as a module, for example a .mjs file, on a Node version that has fetch built in.
const BASE_URL = "https://gateway.saxobank.com/sim/openapi"; // the demo host
const res = await fetch(BASE_URL + "/chart/v3/charts" + "?Uic={Uic}&AssetType={AssetType}&Horizon={Horizon}", {
  method: "GET",
  headers: {
    "Authorization": "Bearer " + process.env.SAXO_SIM_TOKEN,
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
console.log(await res.json());
curl
# Set SAXO_SIM_TOKEN as an environment variable first. Never paste real values into code.
# Replace each {placeholder}, "..." and 0 with a real value before running.
# Optional and not shown: query parameters Count, Mode, Time, AccountKey.
curl -X GET "https://gateway.saxobank.com/sim/openapi/chart/v3/charts?Uic={Uic}&AssetType={AssetType}&Horizon={Horizon}" \
  -H "Authorization: Bearer $SAXO_SIM_TOKEN"

Response

A mock response. The values are invented, so check field names against the official reference.

{
  "_mock": true,
  "ChartInfo": {
    "DelayedByMinutes": 15,
    "ExchangeId": "MOCKEX",
    "FirstSampleTime": "2000-01-01T00:00:00Z",
    "Horizon": 60
  },
  "Data": [
    {
      "Time": "2000-01-01T09:00:00Z",
      "Open": 10,
      "High": 10.5,
      "Low": 9.5,
      "Close": 10.2,
      "Volume": 1000
    }
  ],
  "DataVersion": 1,
  "DisplayAndFormat": {
    "Currency": "EUR",
    "Decimals": 2,
    "Description": "Mock Instrument plc",
    "Format": "Normal",
    "Symbol": "MOCK:xmock"
  }
}

Response schema, HTTP 200

Every field this site's OpenAPI file for Saxo OpenAPI declares for this response.

FieldTypeDescription
ChartInfoobjectNot recorded
DelayedByMinutesintegerNot recorded
ExchangeIdstringNot recorded
FirstSampleTimestringNot recorded
HorizonintegerNot recorded
Dataarray of objectsNot recorded
TimestringNot recorded
OpennumberNot recorded
HighnumberNot recorded
LownumberNot recorded
ClosenumberNot recorded
VolumeintegerNot recorded
DataVersionintegerNot recorded
DisplayAndFormatobjectNot recorded
CurrencystringNot recorded
DecimalsintegerNot recorded
DescriptionstringNot recorded
FormatstringNot recorded
SymbolstringNot recorded

developer.saxochecked

Limits that apply at Saxo OpenAPI

LimitValueScopeSource
Headline limit120/min per session, per service groupsessiondeveloper.saxochecked

Saxo API errors you may meet

All Saxo API error codes, including 137 more not listed here.