Package com.longbridge.calendar
Class CalendarContext
- java.lang.Object
-
- com.longbridge.calendar.CalendarContext
-
- All Implemented Interfaces:
AutoCloseable
public class CalendarContext extends Object implements AutoCloseable
Financial calendar context
-
-
Constructor Summary
Constructors Constructor Description CalendarContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static CalendarContextcreate(Config config)CompletableFuture<CalendarEventsResponse>getFinanceCalendar(FinanceCalendarOptions opts)Get financial calendar events
-
-
-
Method Detail
-
create
public static CalendarContext create(Config config)
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
getFinanceCalendar
public CompletableFuture<CalendarEventsResponse> getFinanceCalendar(FinanceCalendarOptions opts) throws OpenApiException
Get financial calendar events- Throws:
OpenApiException
-
-