Skip to content

沪深港通分时资金流 ​

GET /api/v1.0/quote/stock-connect/intraday

获取沪深港通当日分时资金净流入。 channel 支持单通道 SH/SZ/HK_SH/HK_SZ,以及北向合计 NORTH(沪股通|深股通)、南向合计 SOUTH(港股通沪|港股通深)。 data_kind=QUOTA 返回额度使用口径净流入;NET_TURNOVER 返回成交净买卖额(同时下发买入/卖出金额)。 金额单位均为元;价格已还原。非交易时段 points 可能为空数组。 历史日/周/月请用 quote.stock_connect_history;累计净流入请用 quote.stock_connect_cumulative。

请求参数 ​

参数类型位置必填说明
channelstring查询是通道:SH=沪股通 / SZ=深股通 / HK_SH=港股通(沪) / HK_SZ=港股通(深) / NORTH=北向合计 / SOUTH=南向合计
data_kindstring查询否数据口径:QUOTA=额度使用净流入(默认)/ NET_TURNOVER=成交净买卖额

请求示例 ​

bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/stock-connect/intraday?channel=1&data_kind=1' \
  -H 'Authorization: Bearer <AccessToken>' | jq

响应参数 ​

参数类型说明
data.pointsobject[]
data.update_timeinteger最近一次更新时间(Unix 秒)
data.next_req_intervalinteger建议下次刷新间隔(秒)
data.sh_daily_quotastring沪股通日额度(元)
data.sz_daily_quotastring深股通日额度(元)
data.hk_sh_daily_quotastring港股通(沪)日额度(元)
data.hk_sz_daily_quotastring港股通(深)日额度(元)
data.points[].timestampinteger数据时间(Unix 秒)
data.points[].shobject沪股通该时点数据;未请求该通道时可能为空
data.points[].sh[].net_inflowstring净流入(元)
data.points[].sh[].close_pricestring对应指数/市场收盘价
data.points[].sh[].last_close_pricestring上一时点收盘价,用于涨跌幅
data.points[].sh[].buy_turnoverstring买入金额(元;仅 NET_TURNOVER)
data.points[].sh[].sell_turnoverstring卖出金额(元;仅 NET_TURNOVER)
data.points[].sh[].trading_amountstring成交总额(元)
data.points[].szobject深股通该时点数据
data.points[].sz[].net_inflowstring净流入(元)
data.points[].sz[].close_pricestring对应指数/市场收盘价
data.points[].sz[].last_close_pricestring上一时点收盘价,用于涨跌幅
data.points[].sz[].buy_turnoverstring买入金额(元;仅 NET_TURNOVER)
data.points[].sz[].sell_turnoverstring卖出金额(元;仅 NET_TURNOVER)
data.points[].sz[].trading_amountstring成交总额(元)
data.points[].hk_shobject港股通(沪)该时点数据
data.points[].hk_sh[].net_inflowstring净流入(元)
data.points[].hk_sh[].close_pricestring对应指数/市场收盘价
data.points[].hk_sh[].last_close_pricestring上一时点收盘价,用于涨跌幅
data.points[].hk_sh[].buy_turnoverstring买入金额(元;仅 NET_TURNOVER)
data.points[].hk_sh[].sell_turnoverstring卖出金额(元;仅 NET_TURNOVER)
data.points[].hk_sh[].trading_amountstring成交总额(元)
data.points[].hk_szobject港股通(深)该时点数据
data.points[].hk_sz[].net_inflowstring净流入(元)
data.points[].hk_sz[].close_pricestring对应指数/市场收盘价
data.points[].hk_sz[].last_close_pricestring上一时点收盘价,用于涨跌幅
data.points[].hk_sz[].buy_turnoverstring买入金额(元;仅 NET_TURNOVER)
data.points[].hk_sz[].sell_turnoverstring卖出金额(元;仅 NET_TURNOVER)
data.points[].hk_sz[].trading_amountstring成交总额(元)

错误码 ​

ret_codeerror.code说明
0—成功
-3invalid_parameter参数缺失或不在允许范围内
-7invalid_symbol标的不存在
-8unsupported市场或品类不支持
-9permission_denied没有对应权限
-10no_data没有可返回的数据
-11rate_limited调用过于频繁

响应示例 ​

json
{
  "ret_code": 0,
  "ret_msg": "success",
  "data": {
    "update_time": "example",
    "next_req_interval": "example",
    "sh_daily_quota": "example",
    "sz_daily_quota": "example",
    "hk_sh_daily_quota": "example",
    "hk_sz_daily_quota": "example",
    "points": [
      {
        "timestamp": 0,
        "sh": "example",
        "sz": "example",
        "hk_sh": "example",
        "hk_sz": "example"
      }
    ]
  }
}