跳到主要内容

查询交易标的

接口说明

  • 功能说明:查询交易标的信息。

  • 适用对象:通过OpenApi开发平台对接webull的客户。

  • 请求URL:/trade/instrument

  • 请求方式:GET

  • 频次限制:每个AppId调用频次限制为30秒10次。

请求参数

参数类型是否必填描述示例值
instrument_idString标的id13467788

响应参数

参数类型描述示例值
instrument_idString标的id913257048
symbolString标的代码00831
instrument_typeString标的类型: STOCK 股票STOCK
short_nameString标的缩写
buy_unitString下单购买最小单位2000
trade_policyString交易策略,  TradePolicy数据字典ALL
margin_ratioString融资比例0

请求示例

from webullsdktrade.api import API
from webullsdkcore.client import ApiClient
from webullsdkcore.common.region import Region

api_client = ApiClient(your_app_key, your_app_secret, Region.HK.value)
api = API(api_client)
response = api.trade_instrument.get_trade_instrument_detail(instrument_id)
if response.status_code == 200:
trade_instrument_detail = response.json()

响应示例

{
"instrument_id": "913256409",
"symbol": "00700",
"instrument_type": "STOCK",
"short_name": "腾讯控股",
"buy_unit": "100",
"trade_policy": "ALL",
"margin_ratio": "0.7500000000"
}

异常示例

{
"error_code": "SYSTEM_ERROR",
"message": "Required Integer parameter 'instrument_id' is not present"
}