跳轉到內容

獲取標的當日資金流向

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

CLI安裝 CLI

bash
# Tesla 今日資金流向時序
longbridge capital flow TSLA.US
# Apple 今日資金流向時序
longbridge capital flow AAPL.US
# NVDA 今日資金流向時序
longbridge capital flow NVDA.US
Info

Request

Parameters

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

Protobuf

protobuf
message CapitalFlowIntradayRequest {
  string symbol = 1;
}

Request Example

Response

Response Properties

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

Protobuf

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

Response JSON Example

json
{
  "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無權限沒有獲取標的行情的權限