Read a company's calendar events by requesting the calendar-events module and printing the keys that come back.
The docs describe calendar-events as calendar events. No published sample lists the names inside that module.
To access this endpoint, you must obtain an API key: Get your API key
Request calendar-events
GET /v1/markets/stock/modules with ticker AAPL and module calendar-events is the whole request. Timeframe stays unset. It is for the v2 modules and ratios.
Use the key list the script prints
A dict body yields a sorted key list. Another body yields its type name. Keep that print as the calendar-events record.
import requests
url = "https://api.mboum.com/v1/markets/stock/modules"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
params = {"ticker": "AAPL", "module": "calendar-events"}
response = requests.get(url, headers=headers, params=params)
response.raise_for_status()
payload = response.json()
body = payload["body"]
if isinstance(body, dict):
print(sorted(body.keys()))
else:
print(type(body).__name__)
One limitation: calendar-events has no published key list, so the names to keep are the ones the script prints.
Learn more or explore other endpoints: stock modules