Skip to main content

Order Book

Interface Description

  • Function description:

    • Query the depth quote of securities according to the stock code list.
  • Request URL:/market-data/quotes

  • Request method:Establish a GRPC through the Webull SDK to establish a persistent connection, and then call the interface to obtain it.

  • Frequency limit:The calling frequency of each AppId is limited to one time per second.

Request Parameters

ParameterTypeRequired fieldsDescription
symbolStringYesexample: single:00700
categoryStringYesSecurity type,enumeration, reference: Category, such as: HK_STOCK

Response Parameter

FieldTypeDescription
symbolStringSecurities code
instrument_idStringUnique identifier for the security
asks[]AskBidAsk
bids[]AskBidBid

AskBid

FieldTypeDescription
priceStringCurrent price
sizeStringPending Order Volume
order[]OrderOrder
broker[]BrokerBroker

Order

FieldTypeDescription
mpidStringMarket Participant Identifier definition
sizeStringNumber of orders

Broker

FieldTypeDescription
bidStringBroker ID
nameStringBroker name

Request Example

from webullsdktrade.grpc_api import API
from webullsdkquotescore.grpc.grpc_client import GrpcApiClient
from webullsdkcore.common.region import Region

grpc_client = GrpcApiClient(your_app_key, your_app_secret, Region.HK.value)
api = API(grpc_client)
response = api.market_data.get_quote(symbol, category)
if response.status_code == 200:
result = response.json()

Response Example