Skip to main content

Get Trading Calendar

The market data request is not supported via Webull OpenAPI at the moment. Please keep tuned.

Interface Description

  • Function description:

    • Get the trading calendar for the specified market.

    • Trading days are obtained by excluding weekends and public holidays, the dates of temporary market closures are not excluded.

    • The query start and end dates cannot be greater than 30 days.

  • Request URL: /trade/calendar

  • Request method: GET

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

Request Parameters

ParameterTypeRequired fieldsDescription
marketStringYesMarkets, enumeration, reference: Markets
startStringYesStart date, eg: "2023-01-01"
endStringYesEnd date, eg: "2023-01-01"

Response Parameter

FieldTypeDescription
trade_dayStringTrading day, eg: "2023-01-01"
trade_date_typeStringTypes of trading date, enumeration, reference: TradingDateType

Request Example

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

api_client = ApiClient(your_app_key, your_app_secret, Region.HK.value)
api = API(api_client)
response = api.trade_calendar.get_trade_calendar(Markets.HK.name, start, end)
if response.status_code == 200:
calendar = response.json()

Response Example