# 資金流向 (分時)

`WS` `request · cmd 24`

> **行情權限要求 · 免費**
> 開通 OpenAPI 後自動獲得，無需額外購買。
> _OpenAPI 行情權限獨立於 App/Web 行情權限_

該接口用於獲取標的當日的資金流向。

```protobuf
message CapitalFlowIntradayRequest {
  string symbol = 1;
}

message CapitalFlowIntradayResponse {
  string symbol = 1;
  repeated CapitalFlowLine capital_flow_lines = 2;
}
```

## Request Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `symbol` | string | Yes | 標的代碼，使用 ticker.region 格式，例如：700.HK |

## Response Fields

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `symbol` | string | No | 標的代碼 |
| `capital_flow_lines` | object[] | No | 資金流向數據 |
| `└ inflow` | string | No | 淨流入 |
| `└ timestamp` | int64 | No | 分鐘開始時間戳 |

## Response JSON Example

```json
{
  "symbol": "700.HK",
  "capital_flow_lines": [
    {
      "inflow": "-310255860.000",
      "timestamp": "1655106960"
    }
  ]
}
```
