# GSE Market Data — Ghana Stock Exchange API (`malmon/gse-market-data`) Actor

The only programmatic source for Ghana Stock Exchange (GSE) data — quotes, indices, 10-day price history, company fundamentals, and official announcements for all ~40 listed equities. Prices in GHS. The data always has a delay (no real-time)

- **URL**: https://apify.com/malmon/gse-market-data.md
- **Developed by:** [Simon M](https://apify.com/malmon) (community)
- **Categories:** Agents, News, Other
- **Stats:** 2 total users, 1 monthly users, 50.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.25 / quotes snapshot

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## GSE Market Data — Ghana Stock Exchange API

Fetch delayed equity quotes, index values, 10-day price history, company fundamentals, and official announcements for all securities listed on the **Ghana Stock Exchange (GSE)** in Accra.

### What is the GSE?

The Ghana Stock Exchange is Ghana's national stock exchange and the principal exchange in West Africa. Key facts:

- ~38 listed equities (ordinary shares, preference shares, ETFs)
- Trading hours: Monday–Friday, 09:30–15:00 GMT
- Prices in **GHS (Ghana Cedi)**
- Two benchmark indices: **GSE Composite Index (GSE-CI)** and **GSE Financial Stocks Index (GSE-FSI)**
- Settlement: T+3 basis via Bank of Ghana's Central Securities Depositary

Notable listed companies include GCB Bank, MTN Ghana (MTNGH), Ecobank Ghana (EGH), Standard Chartered Ghana (SCB), AngloGold Ashanti (AGA/AADS), and TotalEnergies Ghana (TOTAL).

### Modes

| Mode | Description | Source |
|------|-------------|--------|
| `quotes` | Latest price, change, and volume for all listed equities | kwayisi.org API |
| `indices` | GSE Composite Index (GSE-CI) value, change, and date | afx.kwayisi.org |
| `historical` | Daily close prices for the last ~10 trading days per ticker | afx.kwayisi.org |
| `company` | Market cap, shares outstanding, EPS/DPS, sector, contact info | kwayisi.org API |
| `announcements` | Official GSE news and corporate announcements with dates | gse.com.gh RSS |

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `mode` | string | `"quotes"` | Data mode: `quotes`, `indices`, `historical`, `company`, or `announcements` |
| `tickers` | string[] | (all) | Optional list of GSE ticker symbols to filter, e.g. `["GCB", "MTNGH", "EGH"]`. Not used in `indices` mode. |
| `maxItems` | integer | 1000 | Maximum output records. Most useful for `announcements` and `historical` modes. |

### Output Examples

#### quotes

```json
{
  "ticker": "GCB",
  "name": "GCB Bank Limited",
  "isin": null,
  "sector": "Financials",
  "currency": "GHS",
  "price": 36.0,
  "change": 0.0,
  "change_pct": 0.0,
  "volume": null,
  "source": "kwayisi.org",
  "fetched_at": "2026-05-28T19:15:15.121Z"
}
````

#### indices

```json
{
  "code": "GSE-CI",
  "name": "GSE Composite Index",
  "value": 14379.41,
  "change": 0.0,
  "change_pct": 0.0,
  "trading_date": "2026-05-28",
  "source": "afx.kwayisi.org",
  "fetched_at": "2026-05-28T19:15:32.437Z"
}
```

> **Note:** Only GSE-CI is currently machine-readable from the data source. GSE-FSI values are not published in a parseable format.

#### historical

```json
{
  "ticker": "GCB",
  "date": "2026-05-26",
  "close": 36.0,
  "volume": 14893,
  "change": null,
  "change_pct": null,
  "source": "afx.kwayisi.org",
  "fetched_at": "2026-05-28T19:16:00.000Z"
}
```

> **Historical data limitation:** Only the last ~10 trading days are available per ticker. There is no date selector and no way to query older data from the source. The historical data provides **close price and volume only** — open, high, and low are not available and are not fabricated.

#### company

```json
{
  "ticker": "GCB",
  "name": "GCB Bank Limited",
  "isin": null,
  "sector": "Financials",
  "industry": "Banking",
  "market_cap_ghs": 9540000000,
  "shares_outstanding": 265000000,
  "eps": null,
  "dps": null,
  "price": 36.0,
  "website": "www.gcbbank.com.gh",
  "email": "corporateaffairs@gcb.com.gh",
  "address": "GCB Building, Thorpe Road/High Street, PO Box GP 134, Accra, Ghana",
  "source": "kwayisi.org",
  "fetched_at": "2026-05-28T19:15:44.820Z"
}
```

#### announcements

```json
{
  "ticker": null,
  "title": "PR-470 LISTING OF FIRST ATLANTIC BANK PLC",
  "published_at": "2025-12-16",
  "url": "https://gse.com.gh/pr-470-listing-of-first-atlantic-bank-plc/",
  "summary": "PR 470 LISTING OF FIRST...",
  "source": "gse.com.gh",
  "fetched_at": "2026-05-28T19:15:51.862Z"
}
```

### Why Use GSE Market Data?

- **Fintech apps**: display live GHS stock prices for diaspora remittance and investment platforms
- **Academic research**: West African capital markets data for economics and finance studies
- **BI tools**: feed dashboards with GSE equity performance data
- **Portfolio tracking**: monitor GCB Bank, MTN Ghana, Ecobank, AngloGold Ashanti, and more

### Scheduling (Daily EOD)

Recommended cron to pull end-of-day data:

```
0 16 * * 1-5
```

(Runs Monday–Friday at 16:00 UTC, one hour after market close)

### Pricing

This actor uses pay-per-event pricing.

| Event | Price | When charged |
|-------|-------|--------------|
| `apify-actor-start` | $0.00005 | Auto-charged by Apify on each run |
| `quotes-snapshot` | $0.25 | Once per unfiltered `quotes` run (all equities) |
| `quote-filtered` | $0.05 | Per ticker in a filtered `quotes` run |
| `index-snapshot` | $0.10 | Once per `indices` run |
| `historical-row` | $0.01 | Per daily row in `historical` mode |
| `company-record` | $0.10 | Per company in `company` mode |
| `announcement` | $0.01 | Per announcement in `announcements` mode |

**Cost examples:**

- Daily EOD quotes snapshot (all tickers): $0.25
- 5 specific tickers, filtered: $0.25 (5 × $0.05)
- 1 ticker, 10 days of history: $0.10 (10 × $0.01)
- All 38 company records: $3.80 (38 × $0.10)
- 50 announcements: $0.50 (50 × $0.01)

### API Usage

#### JavaScript / Node.js

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('simon_maltzen/gse-market-data').call({
  mode: 'quotes',
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient('YOUR_API_TOKEN')
run = client.actor('simon_maltzen/gse-market-data').call(run_input={'mode': 'quotes'})
items = client.dataset(run['defaultDatasetId']).list_items().items
```

#### curl

```bash
curl -X POST \
  'https://api.apify.com/v2/acts/simon_maltzen~gse-market-data/runs?token=YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"mode":"quotes"}'
```

### For AI Agents

This actor is available via the Apify MCP server. Add it to your Claude or OpenAI assistant to enable live GSE market data queries.

### FAQ

**What is the data latency?**
The kwayisi.org API is updated during market hours. Exact latency is not specified by the provider. Treat data as delayed (not real-time).

**How far back does historical data go?**
Only the last ~10 trading days per ticker are available. There is no historical archive and no date selector. This limitation cannot be worked around — it is a constraint of the data source.

**Are ISINs available?**
ISINs are not published by the GSE API. The `isin` field will always be `null`.

**What currency are prices in?**
All prices are in **GHS (Ghana Cedi)**.

**Is GSE-FSI available?**
Only GSE-CI is published in a machine-readable format. GSE-FSI is mentioned on the page but no numerical value is exposed.

**Does the actor support real-time data?**
No. The exchange data is delayed. Real-time feeds are not available from any free public source.

# Actor input Schema

## `mode` (type: `string`):

Which type of market data to fetch.

## `tickers` (type: `array`):

Leave empty to fetch all 40 listed equities. Enter GSE ticker symbols to filter, e.g. GCB, MTNGH, EGH. Not used in 'indices' mode.

## `maxItems` (type: `integer`):

Hard cap on output records. Primarily useful for announcements and historical modes.

## Actor input object example

```json
{
  "mode": "quotes",
  "tickers": [
    "GCB",
    "MTNGH",
    "EGH"
  ],
  "maxItems": 1000
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tickers": [
        "GCB",
        "MTNGH",
        "EGH"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("malmon/gse-market-data").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "tickers": [
        "GCB",
        "MTNGH",
        "EGH",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("malmon/gse-market-data").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tickers": [
    "GCB",
    "MTNGH",
    "EGH"
  ]
}' |
apify call malmon/gse-market-data --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=malmon/gse-market-data",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "GSE Market Data — Ghana Stock Exchange API",
        "description": "The only programmatic source for Ghana Stock Exchange (GSE) data — quotes, indices, 10-day price history, company fundamentals, and official announcements for all ~40 listed equities. Prices in GHS. The data always has a delay (no real-time)",
        "version": "1.1",
        "x-build-id": "Nnt1px0SGFMD26LVy"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/malmon~gse-market-data/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-malmon-gse-market-data",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/malmon~gse-market-data/runs": {
            "post": {
                "operationId": "runs-sync-malmon-gse-market-data",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/malmon~gse-market-data/run-sync": {
            "post": {
                "operationId": "run-sync-malmon-gse-market-data",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Data mode",
                        "enum": [
                            "quotes",
                            "indices",
                            "historical",
                            "company",
                            "announcements"
                        ],
                        "type": "string",
                        "description": "Which type of market data to fetch.",
                        "default": "quotes"
                    },
                    "tickers": {
                        "title": "Tickers (optional filter)",
                        "type": "array",
                        "description": "Leave empty to fetch all 40 listed equities. Enter GSE ticker symbols to filter, e.g. GCB, MTNGH, EGH. Not used in 'indices' mode.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Hard cap on output records. Primarily useful for announcements and historical modes.",
                        "default": 1000
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
