Skip to Content

Basic Information of Securities

This API is used to obtain the basic information of securities.

ℹ️Info

Request

Parameters

NameTypeRequiredDescription
symbolstring[]YesSecurity code list, in ticker.region format, for example: [700.HK]

Check rules:
The maximum number of symbols in each request is 500

Protobuf

protobuf
message MultiSecurityRequest {
  repeated string symbol = 1;
}

Request Example

python
# Get Basic Information Of Securities
# https://open.longportapp.com/docs/quote/pull/static
# 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.
from longport.openapi import QuoteContext, Config

config = Config.from_env()
ctx = QuoteContext(config)

resp = ctx.static_info(["700.HK", "AAPL.US", "TSLA.US", "NFLX.US"])
print(resp)

Response

Response Properties

NameTypeDescription
secu_static_infoobject[]Securities Basic Information
∟ symbolstringSecurity code
∟ name_cnstringSecurity name (zh-CN)
∟ name_enstringSecurity name (en)
∟ name_hkstringSecurity name (zh-HK)
∟ exchangestringExchange which the security belongs to
∟ currencystringTrading currency

**Optional value: **
CNY
USD
SGD
HKD
∟ lot_sizeint32Lot size
∟ total_sharesint64Total shares
∟ circulating_sharesint64Circulating shares
∟ hk_sharesint64HK shares (only HK stocks)
∟ epsstringEarnings per share
∟ eps_ttmstringEarnings per share (TTM)
∟ bpsstringNet assets per share
∟ dividend_yieldstringDividend yield
∟ stock_derivativesint32[]Types of supported derivatives

Optional value:
1 - Option
2 - Warrant
∟ boardstringThe board to whitch the security belongs, see Board for details

Protobuf

protobuf
message SecurityStaticInfoResponse {
  repeated StaticInfo secu_static_info = 1;
}

message StaticInfo {
  string symbol = 1;
  string name_cn = 2;
  string name_en = 3;
  string name_hk = 4;
  string listing_date = 5;
  string exchange = 6;
  string currency = 7;
  int32 lot_size = 8;
  int64 total_shares = 9;
  int64 circulating_shares = 10;
  int64 hk_shares = 11;
  string eps = 12;
  string eps_ttm = 13;
  string bps = 14;
  string dividend_yield = 15;
  repeated int32 stock_derivatives = 16;
  string board = 17;
}

Response JSON Example

json
{
  "secu_static_info": [
    {
      "symbol": "700.HK",
      "name_cn": "腾讯控股",
      "name_en": "TENCENT",
      "name_hk": "騰訊控股",
      "exchange": "SEHK",
      "currency": "HKD",
      "lot_size": 100,
      "total_shares": 9612464038,
      "circulating_shares": 9612464038,
      "hk_shares": 9612464038,
      "eps": "28.4394",
      "eps_ttm": "28.4394",
      "bps": "103.40413",
      "dividend_yield": "1.6",
      "stock_derivatives": [2],
      "board": "HKEquity"
    },
    {
      "symbol": "AAPL.US",
      "name_cn": "苹果",
      "name_en": "Apple Inc.",
      "exchange": "NASD",
      "currency": "USD",
      "lot_size": 1,
      "total_shares": 1631944100,
      "circulating_shares": 16302661350,
      "eps": "5.669",
      "eps_ttm": "6.0771",
      "bps": "4.40197",
      "dividend_yield": "0.85",
      "stock_derivatives": [1],
      "board": "USMain"
    }
  ]
}

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
7301607Too many request symbolsReduce the number of symbols in a request