Skip to main content

Get Security Capital Distribution

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

SDK Links

Python
longport.openapi.QuoteContext.capital_distribution
Rust
longport::quote::QuoteContext#capital_distribution
Go
QuoteContext.CapitalDistribution
Node.js
QuoteContext#capitalDistribution

Request

Parameters

NameTypeRequiredDescription
symbolstringYesSecurity code, in ticker.region format, for example: 700.HK

Protobuf

message SecurityRequest {
string symbol = 1;
}

Request Example

# Get Security Capital Distribution
# https://open.longportapp.com/docs/quote/pull/capital-distribution
# 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

NameTypeDescription
symbolstringSecurity code
timestampint64Data update time
capital_inobject[]Inflow capital data
∟ largestringlarge order
∟ mediumstringmedium order
∟ smallstringsmall order
capital_outobject[]Outflow capital data
∟ largestringlarge order
∟ mediumstringmedium order
∟ smallstringsmall order

Protobuf

message CapitalDistributionResponse {
message CapitalDistribution {
string large = 1;
string medium = 2;
string small = 3;
}
string symbol = 1;
int64 timestamp = 2;
CapitalDistribution capital_in = 3;
CapitalDistribution capital_out = 4;
}

Response JSON Example

{
"symbol": "700.HK",
"timestamp": "1655107800",
"capital_in": {
"large": "935389700.000",
"medium": "2056032380.000",
"small": "828715920.000"
},
"capital_out": {
"large": "1175331560.000",
"medium": "2271829740.000",
"small": "751648940.000"
}
}

Error Code

Protocol Error CodeBusiness Error CodeDescriptionTroubleshooting Suggestions
3301600Invalid requestInvalid request parameters or unpacking request failed
3301606Request rate limitReduce the frequency of requests
7301602Server errorPlease try again or contact a technician to resolve the issue
7301600Symbol not foundCheck that the requested symbol is correct
7301603No quotesSecurity no quote
7301604No accessNo access to security quote