API Documentation
The Ananse Market Data Cloud API serves end-of-day and intraday data for Ghana's capital markets — GSE equities and indices, Bank of Ghana FX and Treasury rates, and GSS macro indicators.
Base URL
https://anansegh.com/v1Authentication
Every request needs an API key, passed as a Bearer token. Keys are issued from the hub under API Keys.
Authorization: Bearer YOUR_API_KEYRequests without a valid key return 401 unauthorized. A key whose plan lacks the data class returns 403 plan_not_entitled.
Your First Request
Fetch the market snapshot — index level, breadth, and today's movers.
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://anansegh.com/v1/market/snapshotResponse Format
Every successful response uses the same envelope: data holds the payload, meta carries provenance, and list endpoints add pagination.
GET /v1/tickers/GCB/price{
"data": {
"symbol": "GCB",
"close": { "amount_minor": 4320, "currency": "GHS", "scale": 2 },
"trade_date": "2026-08-04"
},
"meta": {
"as_of": "2026-08-04T15:35:54.337880+00:00",
"market_timezone": "Africa/Accra",
"source": "gse",
"data_class": "gse_equity",
"is_stale": false,
"version": 1
}
}Money is exact. Prices are integer minor units with a scale — divide by 10scale to get the major value (above: 4320 / 10² = GHS 43.20). No floats, no rounding drift.
Errors
Errors return the matching HTTP status and a machine-readable code.
{
"error": {
"code": "plan_not_entitled",
"message": "Your plan does not include read of gse_equity.",
"docs_url": "https://developer.anansegh.com/docs#errors",
"details": {
"data_class": "gse_equity",
"required_right": "read",
"required_plan": "developer",
"upgrade_url": "https://anansegh.com/pricing"
}
}
}Rate Limits
Limits are per API key, per minute. Every response carries RateLimit-Limit, RateLimit-Remaining, and RateLimit-Reset, so you can back off before being throttled. Exceeding the limit returns 429 with Retry-After.
Endpoint Reference
Generated live from the API's OpenAPI spec, so it always matches what the server actually serves. Parameters marked * are required.
Loading endpoints…
