Skip to main content

Get Warrant Issuer IDs

This API is used to obtain the warrant issuer IDs data (which can be synchronized once a day).

SDK Links

Python
longport.openapi.QuoteContext.warrant_issuers
Rust
longport::quote::QuoteContext#warrant_issuers
Go
QuoteContext.WarrantIssuers
Node.js
QuoteContext#warrantIssuers

Request

Request Example

# Get Warrant Issuer IDs
# https://open.longportapp.com/docs/quote/pull/issuer
# 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.warrant_issuers()
print(resp)

Response

Parameters

NameTypeDescription
issuer_infoobject[]Issuer information
∟ idint32Issuer ID
∟ name_cnstringIssuer Name (zh-CN)
∟ name_enstringIssuer Name (en)
∟ name_hkstringIssuer Name (zh-HK)

Protobuf

message IssuerInfoResponse {
repeated IssuerInfo issuer_info = 1;
}

message IssuerInfo {
int32 id = 1;
string name_cn = 2;
string name_en = 3;
string name_hk = 4;
}

Response JSON Example

{
"issuer_info": [
{
"id": 15,
"name_cn": "瑞银",
"name_en": "UB",
"name_hk": "瑞銀"
},
{
"id": 14,
"name_cn": "汇丰",
"name_en": "HS",
"name_hk": "滙豐"
},
{
"id": 12,
"name_cn": "花旗",
"name_en": "CT",
"name_hk": "花旗"
}
]
}

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