Ananse
AnanseMarket Data Cloud
Developer hub
Open dashboard
AN
Account

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.

Provenance on every response
Each payload carries source, as_of, and freshness
One consistent envelope
data / meta / pagination — never per-endpoint shapes
Ghana market coverage
GSE equities & indices, BoG FX and T-bills, GSS macro

Base URL

https://anansegh.com/v1

Authentication

Every request needs an API key, passed as a Bearer token. Keys are issued from the hub under API Keys.

Authorization: Bearer YOUR_API_KEY

Requests 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/snapshot

Response Format

Every successful response uses the same envelope: data holds the payload, meta carries provenance, and list endpoints add pagination.

200 OKGET /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.

403 Forbidden
{
  "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.

Free60 / min
Developer600 / min
Pro6,000 / min
Business20,000 / min
Enterprise60,000 / min

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…

Ready to build?

Create a free account and generate an API key in seconds.

View PlansGet API Key