Files
2025-04-01 16:04:47 +08:00

3.2 KiB
Raw Permalink Blame History

id, title, slug, sidebar_position
id title slug sidebar_position
quote_capital_flow_intraday Security Capital Flow Intraday capital-flow-intraday 17

This API is used to obtain the daily capital flow intraday of security.

:::info Business Command:24 :::

Request

Parameters

Name Type Required Description
symbol string Yes Security code, in ticker.region format, for example: 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
# Before running, please visit the "Developers to ensure that the account has the correct quotes authority.
# If you do not have the quotes authority, you can enter "Me - My Quotes - Store" to purchase the authority through the "LongPort" mobile app.

Response

Response Properties

Name Type Description
symbol string Security code
capital_flow_lines object[] Capital flow data
∟ inflow string Inflow capital data
∟ timestamp int64 Start time stamp of the minute

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

Error Code

Protocol Error Code Business Error Code Description Troubleshooting Suggestions
3 301600 Invalid request Invalid request parameters or unpacking request failed
3 301606 Request rate limit Reduce the frequency of requests
7 301602 Server error Please try again or contact a technician to resolve the issue
7 301600 Symbol not found Check that the requested symbol is correct
7 301603 No quotes Security no quote
7 301604 No access No access to security quote