Skip to content
MyStocks Developers
API v1

API v1

Current stable contract

Versioning policyRelease changelog
Sandbox console

Price chart

Pan-African Market Data & Intelligence

GET

/companies/{symbol}/chart

Price chart

Sandbox availablelistChart

Returns pre-computed chart data for rendering price charts. Equivalent to /stocks/{symbol}/history but shaped for direct chart rendering.

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.

Response codes

200Chart data.