Skip to main content

Query trading instruments based on symbol and other information.

Interface Description

  • Function description: Query trading instrument information based on criteria such as symbol, markets, instrument_super_type.

  • Applicable objects: Customers who connect to webull through the OpenApi development platform.

  • Request URL:: /trade/security

  • Request method:: GET

  • Frequency limit: The calling frequency of each AppId is limited to 10 times in 30 seconds.

Request Parameters

ParameterTypeRequired fieldsDescriptionExample value
symbolStringYesEquity codeSPX
marketStringYesMarket,MarketsHK
instrument_super_typeStringYesAsset ClassEQUITY;OPTION
instrument_typeStringNoType of underlying equity,required when querying for options information.CALL_OPTION-看涨期权;PUT_OPTION-看跌期权
strike_priceStringNoOption Strike Price, required when querying for options information.3400
init_exp_dateStringNoOption Expiration Date, Format: yyyy-MM-dd, required when querying for options information.2024-12-20

Response Parameter

ParameterTypeDescriptionExample value
instrument_idStringSymbol ID913257048
symbolStringEquity codeAAPL
instrument_super_typeStringAsset Class: EQUITYEQUITY
instrument_typeStringType of underlying equity: STOCKSTOCK
short_nameStringEquity abbreviationAPPLE INC
buy_unitStringPlace an order to buy the smallest unit2000
trade_policyStringTrading Policies: referring to TradePolicy in the data dictionaryALL
margin_ratioStringFinancing ratio0
marketStringMarket: referring to Markets in the data dictionaryUS
cusipStringCusip code037833100
exchange_codeStringExchange code, reference: ExchangeCodeNSQ
listStatusStringList statusLISTING - Listed; DELISTING - Delisted; OTHER - Other.
currencyStringCurrency, reference: CurrencyHKD
marginableStringMargin Financing Availability.Y - Marginable; N - Non-marginable.
shortableStringShort Selling Allowed.Y - Shortable; N - Non-Shortable.
fractionalTradingStringFractional Shares Trading SupportedY - Supports Fractional Shares Trading; N - Does Not Support Fractional Shares Trading.

Request Example

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_security_detail(symbol, market, instrument_super_type, instrument_type, strike_price, init_exp_date)
if response.status_code == 200:
trade_instrument_detail = response.json()

Response Example

Exception Example