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"
      }
    ]
  }
}