Skip to content
MyStocks Developers
API v1

API v1

Current stable contract

Versioning policyRelease changelog
Sandbox console

ETF price chart

Pan-African Market Data & Intelligence

GET

/etfs/{symbol}/chart

ETF price chart

Sandbox availablegetEtfChart

Returns pre-computed chart data for rendering price charts. Equivalent to /etfs/{symbol}/history but shaped for direct chart rendering with primary prices in local currency. Gated strictly to ETFs; querying standard stocks returns 404.

Parameters

symbolstringpathRequired

Example: GLD.ZA

period1d | 1w | 1m | 3m | 6m | 1y | 3y | 5y | maxquery

Example: 1m

Headers

AuthorizationstringRequired

Bearer sk_sandbox_<your_key> for sandbox requests.

Response fields

symbolstring
namestring
exchangestring
currencystring
rangestring
periodstring
currentPricenumber
rangeChangenumber
rangeChangePctnumber
priceHistoryobject[]

Per-candle OHLCV objects, same order as labels.

priceHistory[].datestring
priceHistory[].opennumber

Session open. Falls back to close for records pre-dating OHLCV storage.

priceHistory[].highnumber

Session high.

priceHistory[].lownumber

Session low.

priceHistory[].pricenumber

Closing price (alias of close, retained for backward compatibility).

priceHistory[].closenumber

Session closing price in local currency.

priceHistory[].usdPricenumber | null

Closing price converted to USD at live spot rate.

priceHistory[].volumeinteger

Session trading volume.

labelsstring[]
opensnumber[]

Parallel array of open prices (same order as labels).

highsnumber[]

Parallel array of session highs.

lowsnumber[]

Parallel array of session lows.

pricesnumber[]
volumesinteger[]
countinteger

Response codes

200Chart data.
404Symbol not found or security is not an ETF.