Skip to content
MyStocks Developers
API v1

API v1

Current stable contract

Versioning policyRelease changelog
Sandbox console

Stock price chart

Pan-African Market Data & Intelligence

GET

/stocks/{symbol}/chart

Stock price chart

Sandbox availableDeprecatedgetStockChart

Deprecated compatibility shape for older chart UIs. Use /stocks/{symbol}/candles for all new integrations. Scheduled for removal on 2026-10-01.

Parameters

symbolstringpathRequired

Example: SCOM.KE

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

Example: 1m

Headers

AuthorizationstringRequired

Bearer sk_sandbox_<your_key> for sandbox requests.

Response fields

symbolstring
periodstring
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[]
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.

rangeChangenumber
rangeChangePctnumber
currentPricenumber
countinteger

Response codes

200Chart data.
404Symbol not found.