Stock price chart Pan-African Market Data & Intelligence
Deprecated compatibility shape for older chart UIs. Use /stocks/{symbol}/candles for all new integrations. Retained compatibility route. No removal date is currently scheduled. New integrations should use candles; a future removal requires a published migration notice.
Parameters symbolstring path Required
Example: SCOM.KE
period1d | 1w | 1m | 3m | 6m | 1y | 3y | 5y | max query
Example: 1m
Headers Authorizationstring Required
Bearer sk_sandbox_<your_key> for sandbox requests.
Response fields opensnumber[]
Parallel array of open prices (same order as labels).
highsnumber[]
Parallel array of session highs.
lowsnumber[]
Parallel array of session lows.
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
Sandbox playground Read-only sandbox request symbol Required · path period Optional · query Sandbox API key Your key stays in this page’s memory.
https://mystocks.africa/api/sandbox/v1/partner/stocks/%7Bsymbol%7D/chart Send{
"type": "object",
"properties": {
"symbol": {
"type": "string"
},
"period": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"type": "string"
}
},
"opens": {
"type": "array",
"description": "Parallel array of open prices (same order as labels).",
"items": {
"type": "number"
}
},
"highs": {
"type": "array",
"description": "Parallel array of session highs.",
"items": {
"type": "number"
}
},
"lows": {
"type": "array",
"description": "Parallel array of session lows.",
"items": {
"type": "number"
}
},
"prices": {
"type": "array",
"items": {
"type": "number"
}
},
"volumes": {
"type": "array",
"items": {
"type": "integer"
}
},
"priceHistory": {
"type": "array",
"description": "Per-candle OHLCV objects, same order as labels.",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"open": {
"type": "number",
"description": "Session open. Falls back to close for records pre-dating OHLCV storage."
},
"high": {
"type": "number",
"description": "Session high."
},
"low": {
"type": "number",
"description": "Session low."
},
"price": {
"type": "number",
"description": "Closing price (alias of close, retained for backward compatibility)."
},
"close": {
"type": "number",
"description": "Session closing price in local currency."
},
"usdPrice": {
"type": [
"number",
"null"
],
"description": "Closing price converted to USD at live spot rate."
},
"volume": {
"type": "integer",
"description": "Session trading volume."
}
}
}
},
"rangeChange": {
"type": "number"
},
"rangeChangePct": {
"type": "number"
},
"currentPrice": {
"type": "number"
},
"count": {
"type": "integer"
}
}
}cURL JavaScript Python
Copycurl -X GET 'https://mystocks.africa/api/sandbox/v1/partner/stocks/%7Bsymbol%7D/chart' \
-H "Authorization: Bearer $MYSTOCKS_SANDBOX_API_KEY"