# 单只股票历史资金流 · Stock Fund Flow History

**Use case:** 

拉一只股票过去 N 个交易日的每日主力资金流向：净额、占比、收盘价、涨跌幅。用于判断主力是在持续流入还是流出。

## Input

```json
{
  "codes": [
    "600519"
  ],
  "mode": "history",
  "historyDays": 30,
  "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"
  },
  "date": {
    "label": "Trading date (YYYY-MM-DD)",
    "format": "string"
  },
  "main_net": {
    "label": "Main-force net inflow (CNY)",
    "format": "number"
  },
  "main_ratio": {
    "label": "Main-force net inflow (% of turnover)",
    "format": "number"
  },
  "super_large_net": {
    "label": "Super-large order net inflow (CNY)",
    "format": "number"
  },
  "large_net": {
    "label": "Large order net inflow (CNY)",
    "format": "number"
  },
  "medium_net": {
    "label": "Medium order net inflow (CNY)",
    "format": "number"
  },
  "small_net": {
    "label": "Small order net inflow (CNY)",
    "format": "number"
  },
  "close_price": {
    "label": "Closing price (CNY)",
    "format": "number"
  },
  "change_pct": {
    "label": "Daily change (%)",
    "format": "number"
  }
}
```

## 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 "单只股票历史资金流 · Stock Fund Flow History". [Sign up or log in](https://console.apify.com/create-task-from-example/tXhtmXtVZHGWsc8d7) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "单只股票历史资金流 · Stock Fund Flow History" 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 "单只股票历史资金流 · Stock Fund Flow History" 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, trading date (yyyy-mm-dd), 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 "单只股票历史资金流 · Stock Fund Flow History" task via API](https://apify.com/jfishpw/china-a-share-fund-flow.md).

## FAQ

### 最多能拉多少天？

historyDays 可设 1-30，默认 5。

### 历史数据和实时快照口径一致吗？

都取自东财资金流接口，但历史按交易日收盘值统计，实时是当日盘中快照。

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