Skip to main content

Query Day Orders

Interface Description

  • Function description: Paging query all orders of the day, the number of data returned each time can be specified, the maximum value is 100.

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

  • Request URL: /trade/orders/list-today

  • Request method: GET

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

Request Parameters

ParameterTypeRequired fieldsDescriptionExample value
account_idStringYesAccount ID20150320010101001
page_sizeintYesFor the number of entries per page, the default value is 10, and the maximum value is 100. Integers can be filled.10
last_client_order_idStringNoThe 3rd party order ID is not passed, and the default check is conducted on the first page.2022021819071234

Response Parameter

ParameterTypeRequired fieldsDescriptionExample value
hasNextBooleanYesIs there a next pagetrue
orders[ ]OrderNoOrder ListReference sample code

Order:

FieldTypeDescription
account_idStringAccount ID ID
categoryStringCategory, Category data dictionary
currencyStringCurrency, value reference dictionary value: Currency, such as: HKD
client_order_idStringThe ID passed in when the customer places an order
extended_hours_tradingBooleanWhether to support pre-market and post-market
filled_priceStringAverage transaction price
filled_qtyStringThe number of transactions
instrument_idStringSymbol ID
last_filled_timeStringLast trade time, UTC time, time format: yyyy-MM-ddTHH:mm:ss.SSSZ. Only traded orders have value
limit_priceStringLimit price: it only has values if the order type is a limit order or stop limit order.
order_idStringOrder ID
order_statusStringFor order status, please refer to OrderStatus data dictionary
order_typeStringFor order type, please refer to OrderType data dictionary
place_timeStringOrder time: UTC time. Time format: yyyy-MM-ddTHH:mm:ss.SSSZ
qtyStringQuantity
sideStringFor buy and sell directions, please refer to OrderSide data dictionary
stop_priceStringStop loss price: it only has values when order type is stop loss order or stop loss limit.
symbolStringStock code, eg: 01810
short_nameStringStock name, eg: Xiaomi Group-W
tifStringFor order validity period, please refer to OrderTIF OrderTIF data dictionary
trailing_stop_stepStringTrailing spread: it has values when the order type is trailing stop order.
trailing_typeStringTrailing type, TrailingType only has value when the order type is trailing stop order

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.order.list_today_orders(account_id, page_size, last_client_order_id)
if response.status_code == 200:
today_orders = response.json()

Response Example

{
"hasNext": false,
"pageSize": 10,
"orders": [
{
"account_id": "ULGALPNJ7QMN0MP38UFM2PMN9A",
"category": "HK_STOCK",
"currency": "HKD",
"place_time": "2022-03-14T01:42:13.000+0000",
"order_id": "2EJERSV8SCVU53OLSL5B5M24OB",
"instrument_id": "913256409",
"client_order_id": "019164611754190",
"side": "BUY",
"tif": "DAY",
"order_type": "AT_AUCTION_LIMIT",
"limit_price": "385.0000000000",
"qty": "100.0000000000",
"extended_hours_trading": false,
"order_status": "FILLED",
"filled_qty": "100.0000000000",
"filled_price": "385.0000000000",
"last_filled_time": "2022-03-14T01:42:16.000+0000",
"symbol": "00700",
"short_name": "Tencent Holdings"
},
{
"account_id": "ULGALPNJ7QMN0MP38UFM2PMN9A",
"category": "HK_STOCK",
"currency": "HKD",
"place_time": "2022-03-14T01:37:30.000+0000",
"order_id": "M8H68LS2493O1PMVDSUCCS3P19",
"instrument_id": "913256409",
"client_order_id": "01916462123512190",
"side": "BUY",
"tif": "DAY",
"order_type": "ENHANCED_LIMIT",
"limit_price": "385.0000000000",
"qty": "100.0000000000",
"extended_hours_trading": false,
"order_status": "FILLED",
"filled_qty": "100.0000000000",
"filled_price": "385.0000000000",
"last_filled_time": "2022-03-14T01:37:31.000+0000",
"symbol": "00700",
"short_name": "Tencent Holdings"
}
]
}

Exception Example

{
"error_code": "INVALID_PARAMETER",
"message": "page_size range must be [10,100]"
}