跳到主要內容

获取轮证发行商 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服务端内部错误请重试或联系技术人员处理