# Global Liquidity Index — Central Bank Balance Sheets (`dvc-analytics/global-liquidity-index`) Actor

Aggregate balance sheet data from 7 major central banks (Fed, ECB, BOJ, PBOC, BOE, SNB, RBA) into a single Global Liquidity Index in USD. Free public data sources, no API keys required.

- **URL**: https://apify.com/dvc-analytics/global-liquidity-index.md
- **Developed by:** [luc guerin](https://apify.com/dvc-analytics) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 10 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.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

## Global Liquidity Index — Central Bank Balance Sheets

Aggregates balance sheet data from **7 major central banks** into a single **Global Liquidity Index (GLI)** denominated in USD. All data sources are free and public — no paid API keys required.

### What does it do?

This Actor fetches the latest balance sheet totals from:

- 🇺🇸 **US Federal Reserve** — via [FRED API](https://fred.stlouisfed.org/) (balance sheet, M2, TGA, RRP, Fed Funds, 10Y yield)
- 🇪🇺 **European Central Bank** — via [ECB SDW](https://data.ecb.europa.eu/) (total assets, M3)
- 🇯🇵 **Bank of Japan** — via [BIS](https://data.bis.org/topics/CBTA) (total assets in JPY + USD)
- 🇨🇳 **People's Bank of China** — via [BIS](https://data.bis.org/topics/CBTA) (total assets in CNY + USD)
- 🇬🇧 **Bank of England** — via [BIS](https://data.bis.org/topics/CBTA) (total assets in GBP + USD)
- 🇨🇭 **Swiss National Bank** — via [SNB Data Portal](https://data.snb.ch/) (total assets in CHF)
- 🇦🇺 **Reserve Bank of Australia** — via [RBA Statistics](https://www.rba.gov.au/statistics/) (total assets in AUD)

It also:

- Converts all values to USD using live ECB exchange rates
- Computes **US Net Liquidity** (Fed BS - TGA - RRP) when FRED key is provided
- Aggregates into a single **Global Liquidity Index** in USD
- Returns both local currency and USD values

### Coverage

These 7 central banks represent approximately **$27-30 trillion** in combined assets — the vast majority of global central bank balance sheet liquidity.

| Bank | Typical Size | Data Frequency | Lag |
|------|-------------|----------------|-----|
| Fed | ~$6.7T | Weekly | 1 day |
| ECB | ~$7.1T | Weekly | 1 day |
| BOJ | ~$4.4T | Monthly | 1-2 months |
| PBOC | ~$6.9T | Monthly | 1-2 months |
| BOE | ~$1.1T | Monthly | 1-2 months |
| SNB | ~$1.1T | Monthly | 1-2 months |
| RBA | ~$0.3T | Weekly | 1 day |

### Why use this?

- **All 7 banks working** — no stubs, no broken endpoints
- **Zero API cost** — all data sources are free and public
- **One call** instead of querying 7 different APIs with different formats
- **Pre-computed** Net Liquidity and composite index
- **Both currencies** — local currency + USD for every bank
- **JSON output** ready for dashboards, trading bots, or research

### Use cases

- Macro trading signals (crypto, equities, commodities)
- Liquidity-driven investment research
- Central bank policy monitoring
- Economic dashboards and reports
- Quantitative finance data pipelines

### Output

The Actor outputs a JSON dataset with:

- Individual central bank balance sheets (local currency + USD)
- Component details (M2, TGA, RRP, rates) when enabled
- FX rates used for conversion (ECB source)
- Composite GLI in USD millions and trillions
- US Net Liquidity calculation (with FRED key)

### Input options

| Option | Description | Default |
|--------|-------------|---------|
| **FRED API Key** | Free key from fred.stlouisfed.org for rich US Fed data (M2, TGA, RRP, rates) | Optional |
| **Sources** | Which central banks to include | All 7 |
| **Include Components** | Detailed breakdowns per bank | true |
| **Include History** | Last 30 data points per series | false |
| **Output Format** | summary, detailed, or timeseries | summary |

### Data sources

| Bank | API | Auth | Format |
|------|-----|------|--------|
| Fed | FRED | Free API key | JSON |
| ECB | ECB Statistical Data Warehouse | None | CSV |
| BOJ | BIS WS_CBTA | None | CSV |
| PBOC | BIS WS_CBTA | None | CSV |
| BOE | BIS WS_CBTA | None | CSV |
| SNB | SNB Data Portal | None | CSV |
| RBA | RBA Statistical Tables | None | CSV |

### How much does it cost?

Pay per result: **$0.01 per dataset row**. Apify platform usage is included in that price.

- `summary` or `detailed` format: **1 row per run**, so a full GLI snapshot of all 7 banks costs **$0.01**.
- `timeseries` format: one row per selected bank plus one composite row and one FX row, so **$0.09** for all 7 banks.
- A daily snapshot in summary format costs about **$0.30 per month**.

### FAQ

**Do I need an API key?**
No. ECB, BIS (BOJ, PBOC, BOE), SNB and RBA data are public and need no key. A free [FRED API key](https://fred.stlouisfed.org/docs/api/api_key.html) adds the US Fed balance sheet, M2, TGA, RRP, rates and US Net Liquidity. Without it the Fed is skipped and the other 6 banks still work.

**How fresh is the data?**
Each run fetches the latest published value from each source. Fed, ECB and RBA publish weekly; BOJ, PBOC, BOE and SNB monthly, with a lag of 1 to 2 months. Every bank block carries its own `balance_sheet_date`.

**How are values converted to USD?**
With the latest ECB reference exchange rates, which are included in the `fx_rates` block of the output so you can audit the conversion.

**What if one source is down?**
The run still finishes. The missing bank gets `status: no_data` and the composite reports `banks_with_data` versus `banks_requested`, so you can see the coverage of each snapshot.

**Can I build a history?**
Yes. Schedule the Actor (for example daily) and append each snapshot to your own storage, or set `include_history` to get the last 30 data points of each series in one run.

**Is this investment advice?**
No. The Actor aggregates official public statistics. It does not give trading or investment advice.

### Support

Questions or a missing bank? Open an issue on the Actor's **Issues** tab.

# Actor input Schema

## `fred_api_key` (type: `string`):

Free API key from https://fred.stlouisfed.org/docs/api/api_key.html — enables US Fed data (balance sheet, M2, TGA, RRP, rates, net liquidity). Without it, Fed data is skipped but other 6 banks still work.

## `sources` (type: `array`):

Which central banks to fetch. Default: all available.

## `include_components` (type: `boolean`):

If true, outputs individual metrics (M2, TGA, RRP, etc.) in addition to balance sheet totals.

## `include_history` (type: `boolean`):

If true, fetches last 30 data points for each series. If false, only latest value.

## `output_format` (type: `string`):

Structure of the output dataset. summary and detailed push one snapshot row; timeseries pushes one row per bank plus a composite and an FX row.

## Actor input object example

```json
{
  "sources": [
    "fed",
    "ecb",
    "boj",
    "pboc",
    "boe",
    "snb",
    "rba"
  ],
  "include_components": true,
  "include_history": false,
  "output_format": "summary"
}
```

# Actor output Schema

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

Global Liquidity Index rows in the default dataset.

# 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 = {
    "sources": [
        "fed",
        "ecb",
        "boj",
        "pboc",
        "boe",
        "snb",
        "rba"
    ],
    "include_components": true,
    "include_history": false,
    "output_format": "summary"
};

// Run the Actor and wait for it to finish
const run = await client.actor("dvc-analytics/global-liquidity-index").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 = {
    "sources": [
        "fed",
        "ecb",
        "boj",
        "pboc",
        "boe",
        "snb",
        "rba",
    ],
    "include_components": True,
    "include_history": False,
    "output_format": "summary",
}

# Run the Actor and wait for it to finish
run = client.actor("dvc-analytics/global-liquidity-index").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 '{
  "sources": [
    "fed",
    "ecb",
    "boj",
    "pboc",
    "boe",
    "snb",
    "rba"
  ],
  "include_components": true,
  "include_history": false,
  "output_format": "summary"
}' |
apify call dvc-analytics/global-liquidity-index --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dvc-analytics/global-liquidity-index"
        }
    }
}
```

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/QimhagQ2x5RIy1LRN/builds/CEXzNQogvjZZ7DV7p/openapi.json
