# 🇨🇳 Eastmoney China ETF Flow Tracker · 东方财富ETF资金流向 (`nexgendata/china-etf-flow-tracker`) Actor

Institutional-grade Chinese ETF fund-flow data via Eastmoney. Daily snapshot of 1,468 ETFs with super-large/large/medium/small CNY flow breakdown, per-ETF 30-day historical, and 496 sector aggregates. For hedge funds, cross-border ETF arbitrage, China sector rotation.

- **URL**: https://apify.com/nexgendata/china-etf-flow-tracker.md
- **Developed by:** [Stephan Corbeil](https://apify.com/nexgendata) (community)
- **Categories:** Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $500.00 / 1,000 etf flow records

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

## 🇨🇳 Eastmoney China ETF Flow Tracker · 东方财富ETF资金流向

> **Institutional-grade Chinese ETF fund-flow data.** Daily snapshot of all 1,468 Shanghai + Shenzhen ETFs with super-large/large/medium/small CNY flow breakdown, per-ETF 30-day historical flow series, and 496 sector-level aggregates. Sourced from Eastmoney (东方财富) — the live data feed Mandarin-speaking PMs already use. **No free equivalent exists on the Apify Store.**

### What you get

Three modes, one actor:

| Mode | Records / run | Use case |
|---|---|---|
| `snapshot` | ~1,468 ETFs | Daily flow scan: which ETFs are seeing institutional inflow today? |
| `historical` | 30 daily rows × N ETFs | Trend reconstruction: is money rotating out of bond ETFs into sector ETFs over the past month? |
| `sector_aggregates` | ~496 industry sectors | Top-down view: which CSRC sectors are seeing net inflow before drilling into individual ETFs? |

Every record exposes the **money breakdown** that retail-grade feeds (Sina, StockAnalysis.com) don't carry:
- **Super-large flow** (super-institutional, >1M CNY single trades)
- **Large flow** (institutional, 200K–1M CNY)
- **Medium flow** (semi-pro, 40K–200K CNY)
- **Small flow** (retail, <40K CNY)

This four-tier breakdown is the same dataset Wind, Choice, and Bloomberg-China sell for $20K+/year/seat. Here it ships pay-per-record at $0.50.

### 💻 Code Example — Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("nexgendata/china-etf-flow-tracker").call(run_input={
    "mode": "snapshot",
    "etfFilter": "sector",
    "maxResults": 200
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["ticker"], item["name"], item["net_main_flow_cny"])
````

### 🌐 Code Example — cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/nexgendata~china-etf-flow-tracker/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode": "snapshot", "etfFilter": "sector", "maxResults": 50}'
```

### Use cases

- **Hedge-fund position sizing.** Re-weight a long-China book based on real-time super-large-order flow, not stale weekly fund-flow PDFs.
- **Cross-border ETF arbitrage.** Compare onshore CSI 300 ETF flow (510300) with offshore ASHR flow to detect premium/discount divergence.
- **China sector rotation tracking.** Sector\_aggregates mode shows which CSRC industries are seeing net inflow before competitors can read it in print.
- **Quant signal generation.** Multi-tier flow tiers (super-large vs small) historically separate informed from noise trades.
- **Cross-listed ETF research.** Pair onshore flow with offshore NAV from sister NexGenData actors.

### ❓ FAQ

**Q: How is this different from the eastmoney-china-stock-screener?**
The screener returns equity quotes (price, P/E, market cap). This actor returns **fund-flow** specifically — daily net buying/selling broken down by trade-size tier. Different field set, different use case, same vendor.

**Q: How fresh is the data?**
Eastmoney refreshes flow within ~30 minutes after the Shanghai/Shenzhen market close (CST 15:00). Run this actor any time after 16:00 CST for the same-day record.

**Q: Why no AUM column on snapshot?**
Eastmoney's flow endpoint doesn't expose AUM directly. Pair this actor with [eastmoney-china-stock-screener](https://apify.com/nexgendata/eastmoney-china-stock-screener?fpr=2ayu9b) for the quote dimension; join on ticker.

**Q: Will I get rate-limited?**
The actor uses Apify Residential Proxy by default — Eastmoney's push2 endpoint throttles to ~3-4 reqs/cloud IP, push2his to ~20-25. Residential rotation handles both transparently.

**Q: Can I use the output commercially?**
Yes. You own the output. Eastmoney's data is publicly accessible; consult their ToS for any restrictions on redistribution at scale.

### 💰 Pricing

Pay-per-event — you only pay for what you extract.

- **Actor start:** $0.00005 per run
- **ETF flow record:** $0.50 per record

Example cost: a 50-ETF sector snapshot = $0.00005 + 50 × $0.50 = **~$25.00**.

### 🔗 Related NexGenData China actors

- [Eastmoney China Stock Screener](https://apify.com/nexgendata/eastmoney-china-stock-screener?fpr=2ayu9b) — equity quotes (price/P/E/AUM) across 5,500 A-shares.
- [China Trends Tracker](https://apify.com/nexgendata/china-trends-tracker?fpr=2ayu9b) — Baidu/Weibo trending signals.
- [Bilibili Video Search](https://apify.com/nexgendata/bilibili-video-search?fpr=2ayu9b) — Chinese consumer-sentiment proxy via short-video data.
- [China A-Share Insider Trades](https://apify.com/nexgendata/china-ashare-insider-trades?fpr=2ayu9b) — director/exec transaction tracking.

### Agentic payments (AI agent buyers welcome)

This actor supports autonomous payment via Skyfire — AI agents (Claude Desktop, OpenCode, Cursor, Vercel AI SDK, OpenAI Agents SDK) can discover, fund, and invoke it without a human-in-the-loop credit card flow. Agents using Apify's MCP server can find this actor by searching for `China ETF flow`, `Chinese fund flow`, or `Wind alternative` and pay via a Skyfire PAY token.

### 📚 More From NexGenData

Visit **[thenextgennexus.com](https://thenextgennexus.com)** for the full catalog of 170+ actors, REST APIs, MCP servers, Gumroad data packs, and the NexGenData newsletter.

### 🚀 Apify Affiliate Program

New to Apify? Sign up with our [referral link](https://www.apify.com/?fpr=2ayu9b) — you get free platform credits on signup.

***

*Built and maintained by [NexGenData](https://apify.com/nexgendata?fpr=2ayu9b).*

# Actor input Schema

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

snapshot (default, ~1,468 ETF daily flow records), historical (per-ETF 30-day flow kline, slow, billed per row), or sector\_aggregates (~496 industry-level rollups).

## `etfFilter` (type: `string`):

Filter the universe by category: sector (industry-themed ETFs), index (broad benchmark ETFs like CSI 300, STAR 50), bond (treasury / credit ETFs), commodity (gold, silver, oil), or all (no filter).

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

Maximum ETF flow records to return. Default 200. For snapshot/sector\_aggregates max is 2000. For historical mode max is 5000 (records, ~lookback per ticker).

## `dateRange` (type: `integer`):

Number of trading days of historical fund-flow per ETF (only used when mode = historical). Default 30, max 365.

## `proxyConfiguration` (type: `object`):

Apify residential proxy (auto-on). Required: Eastmoney's push2 endpoint throttles to ~3-4 reqs / cloud IP (502 nginx) and push2his to ~20-25 reqs / IP.

## Actor input object example

```json
{
  "mode": "snapshot",
  "etfFilter": "all",
  "maxResults": 200,
  "dateRange": 30,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "mode": "snapshot",
    "etfFilter": "all",
    "maxResults": 200,
    "dateRange": 30,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nexgendata/china-etf-flow-tracker").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 = {
    "mode": "snapshot",
    "etfFilter": "all",
    "maxResults": 200,
    "dateRange": 30,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("nexgendata/china-etf-flow-tracker").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 '{
  "mode": "snapshot",
  "etfFilter": "all",
  "maxResults": 200,
  "dateRange": 30,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call nexgendata/china-etf-flow-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=nexgendata/china-etf-flow-tracker",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "🇨🇳 Eastmoney China ETF Flow Tracker · 东方财富ETF资金流向",
        "description": "Institutional-grade Chinese ETF fund-flow data via Eastmoney. Daily snapshot of 1,468 ETFs with super-large/large/medium/small CNY flow breakdown, per-ETF 30-day historical, and 496 sector aggregates. For hedge funds, cross-border ETF arbitrage, China sector rotation.",
        "version": "0.0",
        "x-build-id": "x14r04iiqcw1syAu6"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/nexgendata~china-etf-flow-tracker/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-nexgendata-china-etf-flow-tracker",
                "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/nexgendata~china-etf-flow-tracker/runs": {
            "post": {
                "operationId": "runs-sync-nexgendata-china-etf-flow-tracker",
                "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/nexgendata~china-etf-flow-tracker/run-sync": {
            "post": {
                "operationId": "run-sync-nexgendata-china-etf-flow-tracker",
                "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",
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "snapshot",
                            "historical",
                            "sector_aggregates"
                        ],
                        "type": "string",
                        "description": "snapshot (default, ~1,468 ETF daily flow records), historical (per-ETF 30-day flow kline, slow, billed per row), or sector_aggregates (~496 industry-level rollups).",
                        "default": "snapshot"
                    },
                    "etfFilter": {
                        "title": "ETF category filter",
                        "enum": [
                            "all",
                            "sector",
                            "index",
                            "bond",
                            "commodity"
                        ],
                        "type": "string",
                        "description": "Filter the universe by category: sector (industry-themed ETFs), index (broad benchmark ETFs like CSI 300, STAR 50), bond (treasury / credit ETFs), commodity (gold, silver, oil), or all (no filter).",
                        "default": "all"
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum ETF flow records to return. Default 200. For snapshot/sector_aggregates max is 2000. For historical mode max is 5000 (records, ~lookback per ticker).",
                        "default": 200
                    },
                    "dateRange": {
                        "title": "Date range (historical mode only)",
                        "minimum": 1,
                        "maximum": 365,
                        "type": "integer",
                        "description": "Number of trading days of historical fund-flow per ETF (only used when mode = historical). Default 30, max 365.",
                        "default": 30
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Apify residential proxy (auto-on). Required: Eastmoney's push2 endpoint throttles to ~3-4 reqs / cloud IP (502 nginx) and push2his to ~20-25 reqs / IP.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
