# Capital Distribution

`WS` `request · cmd 25`

> **Quote Permission Required · Free**
> Included with OpenAPI activation — no extra purchase needed.
> _OpenAPI quote perms are separate from App/Web perms_

This API is used to obtain the daily capital distribution of security.

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

message CapitalDistributionResponse {
  string symbol = 1;
  int64 timestamp = 2;
  CapitalDistribution capital_in = 3;
  CapitalDistribution capital_out = 4;
}
```

## Request Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `symbol` | string | Yes | Security code, in ticker.region format, for example: 700.HK |

## Response Fields

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `symbol` | string | No | Security code |
| `timestamp` | int64 | No | Data update time |
| `capital_in` | object[] | No | Inflow capital data |
| `└ large` | string | No | large order |
| `└ medium` | string | No | medium order |
| `└ small` | string | No | small order |
| `capital_out` | object[] | No | Outflow capital data |
| `└ large` | string | No | large order |
| `└ medium` | string | No | medium order |
| `└ small` | string | No | small order |

## Response JSON Example

```json
{
  "symbol": "700.HK",
  "timestamp": "1655107800",
  "capital_in": {
    "large": "935389700.000",
    "medium": "2056032380.000",
    "small": "828715920.000"
  },
  "capital_out": {
    "large": "1175331560.000",
    "medium": "2271829740.000",
    "small": "751648940.000"
  }
}
```
