# A股主力资金流向 · China A-Share Money Flow

**Use case:** 

全市场约 5,900 只 A股的主力资金流向快照：超大单/大单/中单/小单净额与占比、价格与涨跌幅。每行带 main_net_check 恒等式自检字段。

## Input

```json
{
  "codes": [
    "002112",
    "600519"
  ],
  "mode": "single",
  "historyDays": 5,
  "includeQuote": true,
  "browserFallback": true,
  "maxRetries": 3,
  "debug": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "code": {
    "label": "Stock code",
    "format": "string"
  },
  "name": {
    "label": "Stock name",
    "format": "string"
  },
  "price": {
    "label": "Last price (CNY)",
    "format": "number"
  },
  "change_pct": {
    "label": "Daily change (%)",
    "format": "number"
  },
  "main_net": {
    "label": "Main-force net inflow (CNY)",
    "format": "number"
  },
  "main_ratio": {
    "label": "Main-force net inflow (% of turnover)",
    "format": "number"
  },
  "has_data": {
    "label": "Has money-flow data",
    "format": "boolean"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The China A-Share Fund Flow API 主力资金流向 · Eastmoney · A股资金流 Actor is ready to run with the inputs already set for "A股主力资金流向 · China A-Share Money Flow". [Sign up or log in](https://console.apify.com/create-task-from-example/1tpDe2cPnpljYNSBW) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "A股主力资金流向 · China A-Share Money Flow" task

The China A-Share Fund Flow API 主力资金流向 · Eastmoney · A股资金流 Actor will start running based on the input automatically. You can also change all the input fields, like stock codes, mode, and more, to match your specific use case.

### 3. Receive the "A股主力资金流向 · China A-Share Money Flow" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as stock code, stock name, last price (cny), and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "A股主力资金流向 · China A-Share Money Flow" task via API](https://apify.com/jfishpw/china-a-share-fund-flow.md).

## FAQ

### 怎么拿全市场数据？

把 mode 设为 market，一次返回约 5,900 只股票的完整快照，$3.9 一次。

### 主力净额准吗？

每行都带 main_net_check：true 表示超大单净额 + 大单净额 == 主力净额，你可以自行验证。

### 退市/停牌股怎么处理？

它们会保留在结果里但 has_data 为 false，金额字段为 null，方便过滤。

## About this Actor

This example demonstrates how to use [China A-Share Fund Flow API 主力资金流向 · Eastmoney · A股资金流](https://apify.com/jfishpw/china-a-share-fund-flow.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/jfishpw/china-a-share-fund-flow.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/jfishpw/china-a-share-fund-flow.md

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`).
