跳到主要内容

实时摆盘

目前不支持通过 Webull OpenAPI 请求行情数据,请保持关注。

接口说明

  • 功能说明:

    • 根据证券代码查询标的的摆盘数据。
  • 请求URL:/market-data/quotes

  • 请求方式:通过Webull SDK建立GRPC长连接,然后调用接口获取。

  • 频次限制:每个App ID调用频次限制为1次每秒。

请求参数

参数类型必填说明
symbolString证券代码;例如:AAPL
categoryString证券类型,枚举,参考:证券类型,如:US_STOCK

响应参数

字段类型说明
symbolString证券代码
instrument_idString标的ID
asks[]AskBid卖盘
bids[]AskBid买盘

AskBid

字段类型说明
priceString价格
sizeString挂单量
order[]Order订单
broker[]Broker经纪商

Order

字段类型说明
mpidString市场参与者识别码
sizeString订单数量

Broker

字段类型说明
bidString经纪商ID
nameString经纪商

请求示例

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.US.value)
api = API(grpc_client)
response = api.market_data.get_quote(symbol, category)
if response.status_code == 200:
result = response.json()

响应示例

{
"symbol":"F",
"instrumentId":"913255275",
"asks":[
{
"price":"13.900000",
"size":"5",
"order":[
{
"mpid":"NSDQ",
"size":"5"
}
]
},
{
"price":"13.920000",
"size":"314",
"order":[
{
"mpid":"NSDQ",
"size":"300"
},
{
"mpid":"NSDQ",
"size":"14"
}
]
},
{
"price":"14.010000",
"size":"4",
"order":[
{
"mpid":"NSDQ",
"size":"4"
}
]
},
{
"price":"14.250000",
"size":"2000",
"order":[
{
"mpid":"NSDQ",
"size":"2000"
}
]
},
{
"price":"14.290000",
"size":"400",
"order":[
{
"mpid":"NSDQ",
"size":"400"
}
]
},
{
"price":"14.350000",
"size":"3600",
"order":[
{
"mpid":"NSDQ",
"size":"3600"
}
]
},
{
"price":"14.500000",
"size":"49",
"order":[
{
"mpid":"NSDQ",
"size":"3"
},
{
"mpid":"NSDQ",
"size":"20"
},
{
"mpid":"NSDQ",
"size":"20"
},
{
"mpid":"NSDQ",
"size":"4"
},
{
"mpid":"NSDQ",
"size":"2"
}
]
},
{
"price":"14.570000",
"size":"5300",
"order":[
{
"mpid":"NSDQ",
"size":"5300"
}
]
},
{
"price":"9.900000",
"size":"1",
"order":[
{
"mpid":"NSDQ",
"size":"1"
}
]
}
]
}