API 接口文档

资金流向与沪深港通

北向资金、南向资金、个股资金流向及资金流细分统计。

资金流向与沪深港通 API

北向资金、南向资金、个股资金流向及资金流细分统计。

接口清单汇总(共 4 项)

接口端点请求方法关键查询参数功能说明
/v1/money-flow/capital-flowGETsymbol, start_date, end_date, limit个股资金流向
/v1/money-flow/capital-flow-detailGETsymbol, start_date, end_date, limit资金流拆解 (R12)
/v1/money-flow/north-flowGETstart_date, end_date, limit北向资金
/v1/money-flow/south-flowGETstart_date, end_date, limit南向资金

详细接口规范与调用示例

GET /v1/money-flow/capital-flow

个股资金流向

获取个股资金流向数据,包括主力净流入、超大单/大单/中单/小单净流入等

请求参数

参数名类型必填默认值描述
symbolstring必填—股票代码 (例如: sz.000001, sh.600519)
start_datestring否—开始日期 (YYYY-MM-DD)
end_datestring否—结束日期 (YYYY-MM-DD)
limitinteger否100返回条数

cURL 调用示例

curl -X GET "https://tickerlab.org/v1/money-flow/capital-flow?symbol=sz.000001&start_date=2026-01-01&limit=10" \
  -H "X-API-Key: $TICKERLAB_API_KEY"

Python 调用示例

import requests

url = "https://tickerlab.org/v1/money-flow/capital-flow"
headers = {"X-API-Key": "$TICKERLAB_API_KEY"}
params = {
    "symbol": "sz.000001",
    "start_date": "2026-01-01",
    "end_date": "value"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())

GET /v1/money-flow/capital-flow-detail

资金流拆解 (R12)

获取资金流分单拆解: 超大单/大单/中单/小单 净流入 + 主力净流入 + 5d/10d/20d 滚动累计。

请求参数

参数名类型必填默认值描述
symbolstring必填—股票代码 (例如: sz.000001, sh.600519)
start_datestring否—开始日期 (YYYY-MM-DD)
end_datestring否—结束日期 (YYYY-MM-DD)
limitinteger否30返回条数

cURL 调用示例

curl -X GET "https://tickerlab.org/v1/money-flow/capital-flow-detail?symbol=sz.000001&start_date=2026-01-01&limit=10" \
  -H "X-API-Key: $TICKERLAB_API_KEY"

Python 调用示例

import requests

url = "https://tickerlab.org/v1/money-flow/capital-flow-detail"
headers = {"X-API-Key": "$TICKERLAB_API_KEY"}
params = {
    "symbol": "sz.000001",
    "start_date": "2026-01-01",
    "end_date": "value"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())

GET /v1/money-flow/north-flow

北向资金

获取北向资金流入流出数据(沪股通+深股通)

请求参数

参数名类型必填默认值描述
start_datestring否—开始日期 (YYYY-MM-DD)
end_datestring否—结束日期 (YYYY-MM-DD)
limitinteger否100返回条数

cURL 调用示例

curl -X GET "https://tickerlab.org/v1/money-flow/north-flow?start_date=2026-01-01&limit=10" \
  -H "X-API-Key: $TICKERLAB_API_KEY"

Python 调用示例

import requests

url = "https://tickerlab.org/v1/money-flow/north-flow"
headers = {"X-API-Key": "$TICKERLAB_API_KEY"}
params = {
    "start_date": "2026-01-01",
    "end_date": "value",
    "limit": 10
}
response = requests.get(url, headers=headers, params=params)
print(response.json())

GET /v1/money-flow/south-flow

南向资金

获取南向资金流入流出数据(港股通)

请求参数

参数名类型必填默认值描述
start_datestring否—开始日期 (YYYY-MM-DD)
end_datestring否—结束日期 (YYYY-MM-DD)
limitinteger否100返回条数

cURL 调用示例

curl -X GET "https://tickerlab.org/v1/money-flow/south-flow?start_date=2026-01-01&limit=10" \
  -H "X-API-Key: $TICKERLAB_API_KEY"

Python 调用示例

import requests

url = "https://tickerlab.org/v1/money-flow/south-flow"
headers = {"X-API-Key": "$TICKERLAB_API_KEY"}
params = {
    "start_date": "2026-01-01",
    "end_date": "value",
    "limit": 10
}
response = requests.get(url, headers=headers, params=params)
print(response.json())