跳到主要內容

獲取標的當日資金流向

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

信息

Request

Parameters

NameTypeRequiredDescription
symbolstring標的代碼,使用 ticker.region 格式,例如: 700.HK

Protobuf

message CapitalFlowIntradayRequest {
string symbol = 1;
}

Request Example

# Get Security Capital Flow Intraday
# https://open.longportapp.com/docs/quote/pull/capital-flow-intraday
# 運行前請訪問“開發者中心”確保賬戶有正確的行情權限。
# 如沒有開通行情權限,可以通過“LongPort”手機客戶端,並進入“我的 - 我的行情 - 行情商城”購買開通行情權限。

Response

Response Properties

NameTypeDescription
symbolstring標的代碼
capital_flow_linesobject[]資金流向數據
∟ inflowstring淨流入
∟ timestampint64分鐘開始時間戳

Protobuf

message CapitalFlowIntradayResponse {
message CapitalFlowLine {
string inflow = 1;
int64 timestamp = 2;
}
string symbol = 1;
repeated CapitalFlowLine capital_flow_lines = 2;
}

Response JSON Example

{
"symbol": "700.HK",
"capital_flow_lines": [
{ "inflow": "-310255860.000", "timestamp": "1655106960" },
{ "inflow": "-314011220.000", "timestamp": "1655107020" },
{ "inflow": "-314011220.000", "timestamp": "1655107080" },
{ "inflow": "-314011220.000", "timestamp": "1655107140" },
{ "inflow": "-314011220.000", "timestamp": "1655107200" }
]
}

錯誤碼

協議錯誤碼業務錯誤碼描述排查建議
3301600無效的請求請求參數有誤或解包失敗
3301606限流降低請求頻次
7301602服務端內部錯誤請重試或聯繫技術人員處理
7301600請求標的不存在檢查請求的 symbol 是否正確
7301603標的無行情標的沒有請求的行情數據
7301604無權限沒有獲取標的行情的權限