|
Longbridge OpenAPI C++ SDK
|
Financial calendar context — earnings, dividends, splits, IPOs, macro data. More...
#include <calendar_context.hpp>
Public Member Functions | |
| CalendarContext () | |
| CalendarContext (const lb_calendar_context_t *ctx) | |
| CalendarContext (const CalendarContext &) | |
| CalendarContext (CalendarContext &&) | |
| ~CalendarContext () | |
| CalendarContext & | operator= (const CalendarContext &) |
| void | finance_calendar (CalendarCategory category, const std::string &start, const std::string &end, const std::string &market, std::optional< int32_t > count, std::optional< int32_t > offset, std::optional< CalendarPageDirection > next, AsyncCallback< CalendarContext, CalendarEventsResponse > callback) const |
Static Public Member Functions | |
| static CalendarContext | create (const Config &config) |
| Create a CalendarContext from a Config. More... | |
Financial calendar context — earnings, dividends, splits, IPOs, macro data.
| longbridge::calendar::CalendarContext::CalendarContext | ( | ) |
| longbridge::calendar::CalendarContext::CalendarContext | ( | const lb_calendar_context_t * | ctx | ) |
| longbridge::calendar::CalendarContext::CalendarContext | ( | const CalendarContext & | ) |
| longbridge::calendar::CalendarContext::CalendarContext | ( | CalendarContext && | ) |
| longbridge::calendar::CalendarContext::~CalendarContext | ( | ) |
|
static |
Create a CalendarContext from a Config.
| void longbridge::calendar::CalendarContext::finance_calendar | ( | CalendarCategory | category, |
| const std::string & | start, | ||
| const std::string & | end, | ||
| const std::string & | market, | ||
| std::optional< int32_t > | count, | ||
| std::optional< int32_t > | offset, | ||
| std::optional< CalendarPageDirection > | next, | ||
| AsyncCallback< CalendarContext, CalendarEventsResponse > | callback | ||
| ) | const |
Get financial calendar events for the given date range.
The endpoint paginates: the server caps each response (historically 10 events per page unless a larger count is requested) and returns a next_date cursor. To page through the full window, request a larger count, or re-call with the returned next_date as start. count, offset and next are optional (pass std::nullopt to use the server default).
| CalendarContext& longbridge::calendar::CalendarContext::operator= | ( | const CalendarContext & | ) |