# African Treasury Bill & Bond Yields: T-Bill Rates & Auctions (`mansalabs/african-treasury-bill-bond-yields`) Actor

Treasury bill rates, government yield curves and debt auction results for Nigeria, Ghana, Kenya, South Africa, Zambia, Malawi, Mauritius and Eswatini, including Kenya bond auction yields from 15 to 30 years. Stop rates, yields, offered, bid and allotted amounts in clean JSON.

- **URL**: https://apify.com/mansalabs/african-treasury-bill-bond-yields.md
- **Developed by:** [Mansa Labs](https://apify.com/mansalabs) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 results

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## African Treasury Bill & Bond Yields: T-Bill Rates & Auctions

Government debt data for **8 African markets** in one actor: the latest treasury bill rates, the current yield curve for each country, and the full history of T-bill and bond auction results. Every row carries stop rate, average yield, high and low rates, offered, bid and allotted amounts, and the subscription (bid-to-cover) rate.

| Country | Code | Instruments |
|---|---|---|
| Nigeria | NG | 91, 182, 364-day T-bills |
| Ghana | GH | 91, 182, 364-day T-bills |
| Kenya | KE | 91, 182, 364-day T-bills plus bonds from 15 to 30 years |
| South Africa | ZA | 91, 182, 273, 364-day T-bills |
| Zambia | ZM | 91, 182, 273, 364-day T-bills |
| Malawi | MW | 91, 182, 364-day T-bills |
| Mauritius | MU | 91, 182, 364-day T-bills |
| Eswatini | SZ | 91, 182, 273, 364-day T-bills |

### What you can fetch

| Dataset | What you get | Rows |
|---|---|---|
| `curve` | The latest auction rate for every tenor in each country. One run gives you today's yield curve across Africa. | about 35 for all 8 countries |
| `tbills` | Treasury bill auction results, newest first | up to 500 per country |
| `auctions` | Every government debt auction: T-bills and bonds | up to 600 per country |

### Use cases

- **Treasury and fund desks:** schedule a weekly run and get every new T-bill auction result in Africa in one dataset.
- **Fintech and savings apps:** show current Nigeria, Ghana or Kenya T-bill rates without building your own pipeline.
- **Research and macro analysts:** years of auction history for rate trend charts, spread analysis and bid-to-cover tracking.
- **Newsletters and dashboards:** a weekly "T-bill rates this week" table across Africa.
- **AI agents and LLM apps:** African government yields as a tool call, including via Apify's MCP server.

### Input examples

Current yield curve for every country:

```json
{ "dataset": "curve" }
```

Nigeria, Ghana and Kenya T-bill results since a date (ideal for a weekly schedule):

```json
{ "dataset": "tbills", "countries": ["NG", "GH", "KE"], "sinceDate": "2026-11-01" }
```

Kenya bond auction history only:

```json
{ "dataset": "auctions", "countries": ["Kenya"], "instrumentType": "bond" }
```

### Output example (curve, Nigeria 364-day T-bill)

```json
{
  "country": "Nigeria",
  "country_code": "NG",
  "instrument_type": "tbill",
  "tenor_days": 364,
  "tenor_label": "364-day",
  "auction_date": "2026-11-04",
  "days_since_auction": 3,
  "settlement_date": null,
  "maturity_date": "2027-11-04",
  "stop_rate": 15.8,
  "average_yield": 15.8,
  "high_rate": 15.8,
  "low_rate": 15,
  "offered_amount": 600000000000,
  "bid_amount": 1994159288000,
  "allotted_amount": 461836287000,
  "subscription_rate": 332.3599,
  "currency": "NGN",
  "retrieved_at": "2026-11-07T20:04:24.392Z"
}
```

### Yield curve snapshot (auctions up to 9 Nov 2026)

| Country | 91-day | 182-day | 364-day |
|---|---|---|---|
| Nigeria | 15.40% | 15.79% | 15.80% |
| Ghana | 4.56% | 6.20% | 9.48% |
| Kenya | 8.75% | 8.85% | 9.03% |
| South Africa | 7.28% | 7.39% | 7.42% |
| Zambia | 8.50% | 9.10% | 10.00% |
| Malawi | 12.00% | 14.50% | 16.00% |
| Mauritius | 4.18% | 4.00% | 4.85% |
| Eswatini | 7.50% | 8.80% | 9.40% |

Kenya bond auctions add the long end: 15-year 12.74%, 20-year 13.60%, 25-year 14.44%, 30-year 14.13%.

### Pricing

**$15 per 1,000 results** ($0.015 per row) plus $0.005 per run. You only pay for rows returned.

| Example run | Rows | Cost |
|---|---|---|
| Yield curve, all 8 countries (`curve`) | about 35 | about $0.53 |
| One week of new T-bill results, all countries (`tbills` + `sinceDate`) | about 30 | about $0.46 |
| 100 most recent T-bill auctions for one country | 100 | about $1.51 |

Use **Max results** to cap any run.

For African stock prices, see [African Stock Market Data](https://apify.com/mansalabs/african-stock-market-data), which covers 15+ exchanges. If you need yields every day alongside stocks, FX or macro data, a flat monthly plan from [Mansa API](https://mansaapi.com) (the data layer behind this actor) works out cheaper.

### Data notes

- Rates are percentages per year as published for each auction. `stop_rate` is the marginal (clearing) rate; `average_yield` is the weighted average where the issuer publishes it.
- Amounts are in full units of the local currency. Not every country publishes every amount field, so some are `null`.
- `curve` returns the most recent auction for each tenor, so a tenor that is auctioned less often (for example some Kenya bonds) can carry an older date. Check `days_since_auction`.
- `sinceDate` filters on auction date. A country with no auction since that date is skipped and listed in the run's status message. You are not charged for it.

Powered by [Mansa API](https://mansaapi.com), African market data infrastructure.

# Actor input Schema

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

Which data to fetch.

## `countries` (type: `array`):

Leave empty for all countries. Accepts names or codes: Nigeria (NG), Ghana (GH), Kenya (KE), South Africa (ZA), Zambia (ZM), Malawi (MW), Mauritius (MU), Eswatini (SZ).

## `instrumentType` (type: `string`):

Filter Curve or Auctions to T-bills only or bonds only.

## `sinceDate` (type: `string`):

Optional. For Treasury bills and Auctions, only return auctions on or after this date. Handy for scheduled runs that only want the latest results.

## `limitPerCountry` (type: `integer`):

For Treasury bills and Auctions: how many of the most recent auction rows to return per country.

## `maxResults` (type: `integer`):

Optional cap on rows returned (and charged) in this run.

## `apiKey` (type: `string`):

Optional. Use your own Mansa API key instead of the built-in access.

## Actor input object example

```json
{
  "dataset": "curve",
  "countries": [
    "Nigeria",
    "Ghana",
    "Kenya"
  ],
  "instrumentType": "all",
  "limitPerCountry": 100
}
```

# Actor output Schema

## `results` (type: `string`):

Yield, auction or bond rows returned by this run

# 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 = {
    "countries": [
        "Nigeria",
        "Ghana",
        "Kenya"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mansalabs/african-treasury-bill-bond-yields").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 = { "countries": [
        "Nigeria",
        "Ghana",
        "Kenya",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("mansalabs/african-treasury-bill-bond-yields").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "countries": [
    "Nigeria",
    "Ghana",
    "Kenya"
  ]
}' |
apify call mansalabs/african-treasury-bill-bond-yields --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mansalabs/african-treasury-bill-bond-yields"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/EIdmZeZDa48i0xon1/builds/7YdkSEBkT43NM2KSC/openapi.json
