跳到主要內容

獲取輪證發行商 ID

該接口用於獲取輪證發行商 ID 數據 (可每天同步一次)。

信息

Request

Request Example

# 獲取輪證發行商 ID
# https://open.longportapp.com/docs/quote/pull/issuer
# 運行前請訪問“開發者中心“確保賬戶有正確的行情權限。
# 如沒有開通行情權限,可以通過“LongPort”手機客戶端,並進入“我的 - 我的行情 - 行情商城”購買開通行情權限。
from longport.openapi import QuoteContext, Config

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

resp = ctx.warrant_issuers()
print(resp)

Response

Parameters

NameTypeDescription
issuer_infoobject[]發行機構信息
∟ idint32機構 ID
∟ name_cnstring機構名稱 (简)
∟ name_enstring機構名稱 (英)
∟ name_hkstring機構名稱 (繁)

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": "花旗"
}
]
}

錯誤碼

協議錯誤碼業務錯誤碼描述排查建議
3301600無效的請求請求參數有誤或解包失敗
3301606限流降低請求頻次
7301602服務端內部錯誤請重試或聯繫技術人員處理