dxFeed Graal Native SDK 3.14.0-rc2
Loading...
Searching...
No Matches
dxfg_schedule.h
Go to the documentation of this file.
1// Copyright (c) 2025 Devexperts LLC.
2// SPDX-License-Identifier: MPL-2.0
3
8
9#ifndef DXFG_SCHEDULE_H
10#define DXFG_SCHEDULE_H
11
12#ifdef __cplusplus
13extern "C" {
14# include <cstdint>
15#else
16# include <stdint.h>
17#endif
18
19#include "dxfg_common.h"
20
21#include "graal_isolate.h"
22#include "dxfg_ipf.h"
23
34
47
63
77
91
106
153
168DXFG_DEPRECATED("use dxfg_v4_SessionFilter_new()")
183DXFG_DEPRECATED("use dxfg_v4_SessionFilter_getInstance()")
185
248
263DXFG_DEPRECATED("use dxfg_v4_DayFilter_new()")
278DXFG_DEPRECATED("use dxfg_v4_DayFilter_getInstance()")
280
281
297DXFG_DEPRECATED("use dxfg_v4_Schedule_getInstanceByProfileHandle()")
314DXFG_DEPRECATED("use dxfg_v4_Schedule_getInstanceByDefinition()")
315dxfg_schedule_t* dxfg_Schedule_getInstance2(graal_isolatethread_t *thread, const char *scheduleDefinition);
332DXFG_DEPRECATED("use dxfg_v4_Schedule_getInstanceByProfileHandleWithVenue()")
348DXFG_DEPRECATED("use dxfg_v4_Schedule_getTradingVenuesByProfileHandle()")
368DXFG_DEPRECATED("use dxfg_v4_Schedule_downloadDefaults()")
369int32_t dxfg_Schedule_downloadDefaults(graal_isolatethread_t *thread, const char *downloadConfig);
383DXFG_DEPRECATED("use dxfg_v4_Schedule_setDefaults()")
384int32_t dxfg_Schedule_setDefaults(graal_isolatethread_t *thread, const char *data, int32_t size);
400DXFG_DEPRECATED("use dxfg_v4_Schedule_getSessionByTime()")
417DXFG_DEPRECATED("use dxfg_v4_Schedule_getDayByTime()")
435DXFG_DEPRECATED("use dxfg_v4_Schedule_getDayById()")
454DXFG_DEPRECATED("use dxfg_v4_Schedule_getDayByYearMonthDay()")
474DXFG_DEPRECATED("use dxfg_v4_Schedule_getNearestSessionByTime()")
493DXFG_DEPRECATED("use dxfg_v4_Schedule_findNearestSessionByTime()")
507DXFG_DEPRECATED("use dxfg_v4_Schedule_getName()")
523DXFG_DEPRECATED("use dxfg_v4_Schedule_getTimeZone()")
537DXFG_DEPRECATED("use dxfg_v4_Schedule_getTimeZone_getID()")
555DXFG_DEPRECATED("use dxfg_v4_Schedule_getDefinition()")
556int32_t dxfg_Schedule_getDefinition(graal_isolatethread_t *thread, dxfg_schedule_t* schedule, DXFG_OUT char **definition);
557
558
571DXFG_DEPRECATED("use dxfg_v4_Session_getDay()")
585DXFG_DEPRECATED("use dxfg_v4_Session_getType()")
599DXFG_DEPRECATED("use dxfg_v4_Session_isTrading()")
615DXFG_DEPRECATED("use dxfg_v4_Session_isEmpty()")
631DXFG_DEPRECATED("use dxfg_v4_Session_getStartTime()")
647DXFG_DEPRECATED("use dxfg_v4_Session_getEndTime()")
662DXFG_DEPRECATED("use dxfg_v4_Session_containsTime()")
663int32_t dxfg_Session_containsTime(graal_isolatethread_t *thread, dxfg_session_t* session, int64_t time);
681DXFG_DEPRECATED("use dxfg_v4_Session_getPrevSession()")
700DXFG_DEPRECATED("use dxfg_v4_Session_getNextSession()")
719DXFG_DEPRECATED("use dxfg_v4_Session_findPrevSession()")
738DXFG_DEPRECATED("use dxfg_v4_Session_findNextSession()")
752DXFG_DEPRECATED("use dxfg_v4_Session_hashCode()")
769DXFG_DEPRECATED("use dxfg_v4_Session_equals()")
783DXFG_DEPRECATED("use dxfg_v4_Session_toString()")
785
786
799DXFG_DEPRECATED("use dxfg_v4_Day_getSchedule()")
814DXFG_DEPRECATED("use dxfg_v4_Day_getDayId()")
830DXFG_DEPRECATED("use dxfg_v4_Day_getYearMonthDay()")
844DXFG_DEPRECATED("use dxfg_v4_Day_getYear()")
858DXFG_DEPRECATED("use dxfg_v4_Day_getMonthOfYear()")
872DXFG_DEPRECATED("use dxfg_v4_Day_getDayOfMonth()")
886DXFG_DEPRECATED("use dxfg_v4_Day_getDayOfWeek()")
902DXFG_DEPRECATED("use dxfg_v4_Day_isHoliday()")
918DXFG_DEPRECATED("use dxfg_v4_Day_isShortDay()")
934DXFG_DEPRECATED("use dxfg_v4_Day_isTrading()")
948DXFG_DEPRECATED("use dxfg_v4_Day_getStartTime()")
962DXFG_DEPRECATED("use dxfg_v4_Day_getEndTime()")
977DXFG_DEPRECATED("use dxfg_v4_Day_containsTime()")
978int32_t dxfg_Day_containsTime(graal_isolatethread_t *thread, dxfg_day_t* day, int64_t time);
993DXFG_DEPRECATED("use dxfg_v4_Day_getResetTime()")
1007DXFG_DEPRECATED("use dxfg_v4_Day_getSessions()")
1024DXFG_DEPRECATED("use dxfg_v4_Day_getSessionByTime()")
1043DXFG_DEPRECATED("use dxfg_v4_Day_getFirstSession()")
1062DXFG_DEPRECATED("use dxfg_v4_Day_getLastSession()")
1080DXFG_DEPRECATED("use dxfg_v4_Day_findFirstSession()")
1098DXFG_DEPRECATED("use dxfg_v4_Day_findLastSession()")
1116DXFG_DEPRECATED("use dxfg_v4_Day_getPrevDay()")
1134DXFG_DEPRECATED("use dxfg_v4_Day_getNextDay()")
1151DXFG_DEPRECATED("use dxfg_v4_Day_findPrevDay()")
1168DXFG_DEPRECATED("use dxfg_v4_Day_findNextDay()")
1182DXFG_DEPRECATED("use dxfg_v4_Day_hashCode()")
1199DXFG_DEPRECATED("use dxfg_v4_Day_equals()")
1213DXFG_DEPRECATED("use dxfg_v4_Day_toString()")
1215
1216
1227DXFG_DEPRECATED("use dxfg_v4_Day_release()")
1239DXFG_DEPRECATED("use dxfg_v4_Session_release()")
1253DXFG_DEPRECATED("use dxfg_v4_session_list_wrapper_release()")
1255
1273DXFG_DEPRECATED("use dxfg_v4_Schedule_getInstance()")
1275
1294DXFG_DEPRECATED("use dxfg_v4_Schedule_getInstanceWithVenue()")
1295int32_t dxfg_Schedule_getInstance5(graal_isolatethread_t *thread, dxfg_instrument_profile2_t *instrumentProfile, const char *venue, DXFG_OUT dxfg_schedule_t** schedule);
1296
1313DXFG_DEPRECATED("use dxfg_v4_Schedule_getTradingVenues()")
1315 // end of Schedule
1317
1318#ifdef __cplusplus
1319}
1320#endif
1321
1322#endif // DXFG_SCHEDULE_H
1323
1324
1325
1326
dxFeed Graal Native SDK Common declarations
dxFeed Graal Native SDK IPF functions and types declarations
The functions of GraalVM that create, attach to and tear down an isolate, the instance of the SDK in ...
struct __graal_isolatethread_t graal_isolatethread_t
The state of one thread attached to an isolate: the first parameter (thread) of the SDK functions.
Definition graal_isolate.h:60
#define DXFG_OUT
Definition dxfg_common.h:37
int32_t dxfg_Session_isTrading(graal_isolatethread_t *thread, dxfg_session_t *session)
int64_t dxfg_Day_getEndTime(graal_isolatethread_t *thread, dxfg_day_t *day)
int32_t dxfg_Day_getMonthOfYear(graal_isolatethread_t *thread, dxfg_day_t *day)
dxfg_session_t * dxfg_Schedule_findNearestSessionByTime(graal_isolatethread_t *thread, dxfg_schedule_t *schedule, int64_t time, dxfg_session_filter_t *filter)
int32_t dxfg_Session_release(graal_isolatethread_t *thread, dxfg_session_t *session)
dxfg_session_t * dxfg_Day_getLastSession(graal_isolatethread_t *thread, dxfg_day_t *day, dxfg_session_filter_t *filter)
int64_t dxfg_Day_getResetTime(graal_isolatethread_t *thread, dxfg_day_t *day)
dxfg_day_t * dxfg_Schedule_getDayByTime(graal_isolatethread_t *thread, dxfg_schedule_t *schedule, int64_t time)
dxfg_session_filter_t * dxfg_SessionFilter_getInstance(graal_isolatethread_t *thread, dxfg_session_filter_prepare_t filter)
int32_t dxfg_Day_getDayOfMonth(graal_isolatethread_t *thread, dxfg_day_t *day)
dxfg_session_t * dxfg_Day_getSessionByTime(graal_isolatethread_t *thread, dxfg_day_t *day, int64_t time)
dxfg_session_type_t
Definition dxfg_schedule.h:53
dxfg_schedule_t * dxfg_Schedule_getInstance3(graal_isolatethread_t *thread, dxfg_instrument_profile_t *instrumentProfile, const char *venue)
dxfg_day_t * dxfg_Day_findNextDay(graal_isolatethread_t *thread, dxfg_day_t *day, dxfg_day_filter_t *filter)
dxfg_session_filter_t * dxfg_SessionFilter_new(graal_isolatethread_t *thread, dxfg_session_filter_function filter)
dxfg_schedule_t * dxfg_Day_getSchedule(graal_isolatethread_t *thread, dxfg_day_t *day)
dxfg_session_t * dxfg_Schedule_getSessionByTime(graal_isolatethread_t *thread, dxfg_schedule_t *schedule, int64_t time)
dxfg_day_t * dxfg_Day_getPrevDay(graal_isolatethread_t *thread, dxfg_day_t *day, dxfg_day_filter_t *filter)
int32_t dxfg_Schedule_getTradingVenues2(graal_isolatethread_t *thread, dxfg_instrument_profile2_t *instrumentProfile, DXFG_OUT dxfg_string_list **venues)
dxfg_session_t * dxfg_Schedule_getNearestSessionByTime(graal_isolatethread_t *thread, dxfg_schedule_t *schedule, int64_t time, dxfg_session_filter_t *filter)
dxfg_session_t * dxfg_Session_findPrevSession(graal_isolatethread_t *thread, dxfg_session_t *session, dxfg_session_filter_t *filter)
dxfg_day_t * dxfg_Day_getNextDay(graal_isolatethread_t *thread, dxfg_day_t *day, dxfg_day_filter_t *filter)
dxfg_day_t * dxfg_Day_findPrevDay(graal_isolatethread_t *thread, dxfg_day_t *day, dxfg_day_filter_t *filter)
const char * dxfg_Schedule_getName(graal_isolatethread_t *thread, dxfg_schedule_t *schedule)
dxfg_session_t * dxfg_Day_findLastSession(graal_isolatethread_t *thread, dxfg_day_t *day, dxfg_session_filter_t *filter)
dxfg_session_t * dxfg_Day_getFirstSession(graal_isolatethread_t *thread, dxfg_day_t *day, dxfg_session_filter_t *filter)
dxfg_session_t * dxfg_Session_findNextSession(graal_isolatethread_t *thread, dxfg_session_t *session, dxfg_session_filter_t *filter)
int32_t dxfg_Day_isTrading(graal_isolatethread_t *thread, dxfg_day_t *day)
int32_t dxfg_Day_hashCode(graal_isolatethread_t *thread, dxfg_day_t *day)
const char * dxfg_Session_toString(graal_isolatethread_t *thread, dxfg_session_t *session)
int64_t dxfg_Day_getStartTime(graal_isolatethread_t *thread, dxfg_day_t *day)
dxfg_day_filter_t * dxfg_DayFilter_getInstance(graal_isolatethread_t *thread, dxfg_day_filter_prepare_t filter)
int32_t(*) dxfg_session_filter_function(graal_isolatethread_t *thread, dxfg_session_t *session)
Definition dxfg_schedule.h:120
const char * dxfg_Schedule_getTimeZone_getID(graal_isolatethread_t *thread, dxfg_schedule_t *schedule)
int32_t dxfg_Day_getYear(graal_isolatethread_t *thread, dxfg_day_t *day)
int32_t dxfg_Schedule_getDefinition(graal_isolatethread_t *thread, dxfg_schedule_t *schedule, DXFG_OUT char **definition)
int32_t dxfg_Session_equals(graal_isolatethread_t *thread, dxfg_session_t *session, dxfg_session_t *otherSession)
int32_t dxfg_Schedule_setDefaults(graal_isolatethread_t *thread, const char *data, int32_t size)
int32_t dxfg_Day_isHoliday(graal_isolatethread_t *thread, dxfg_day_t *day)
const char * dxfg_Day_toString(graal_isolatethread_t *thread, dxfg_day_t *day)
int32_t dxfg_Schedule_getInstance4(graal_isolatethread_t *thread, dxfg_instrument_profile2_t *instrumentProfile, DXFG_OUT dxfg_schedule_t **schedule)
int32_t dxfg_Day_containsTime(graal_isolatethread_t *thread, dxfg_day_t *day, int64_t time)
int32_t dxfg_Day_getDayId(graal_isolatethread_t *thread, dxfg_day_t *day)
dxfg_session_t * dxfg_Session_getNextSession(graal_isolatethread_t *thread, dxfg_session_t *session, dxfg_session_filter_t *filter)
int32_t dxfg_SessionList_wrapper_release(graal_isolatethread_t *thread, dxfg_session_list *sessions)
int32_t dxfg_Schedule_getInstance5(graal_isolatethread_t *thread, dxfg_instrument_profile2_t *instrumentProfile, const char *venue, DXFG_OUT dxfg_schedule_t **schedule)
dxfg_session_t * dxfg_Session_getPrevSession(graal_isolatethread_t *thread, dxfg_session_t *session, dxfg_session_filter_t *filter)
dxfg_session_filter_prepare_t
Definition dxfg_schedule.h:137
int32_t dxfg_Session_containsTime(graal_isolatethread_t *thread, dxfg_session_t *session, int64_t time)
dxfg_day_filter_prepare_t
Definition dxfg_schedule.h:218
int32_t dxfg_Session_isEmpty(graal_isolatethread_t *thread, dxfg_session_t *session)
dxfg_day_t * dxfg_Schedule_getDayById(graal_isolatethread_t *thread, dxfg_schedule_t *schedule, int32_t dayId)
int32_t dxfg_Day_release(graal_isolatethread_t *thread, dxfg_day_t *day)
int32_t dxfg_Day_equals(graal_isolatethread_t *thread, dxfg_day_t *day, dxfg_day_t *otherDay)
int32_t(*) dxfg_day_filter_function(graal_isolatethread_t *thread, dxfg_day_t *day)
Definition dxfg_schedule.h:199
int64_t dxfg_Session_getStartTime(graal_isolatethread_t *thread, dxfg_session_t *session)
const char * dxfg_Schedule_getTimeZone(graal_isolatethread_t *thread, dxfg_schedule_t *schedule)
int32_t dxfg_Schedule_downloadDefaults(graal_isolatethread_t *thread, const char *downloadConfig)
dxfg_session_list * dxfg_Day_getSessions(graal_isolatethread_t *thread, dxfg_day_t *day)
int32_t dxfg_Session_getType(graal_isolatethread_t *thread, dxfg_session_t *session)
int32_t dxfg_Session_hashCode(graal_isolatethread_t *thread, dxfg_session_t *session)
dxfg_day_t * dxfg_Schedule_getDayByYearMonthDay(graal_isolatethread_t *thread, dxfg_schedule_t *schedule, int32_t yearMonthDay)
int32_t dxfg_Day_getYearMonthDay(graal_isolatethread_t *thread, dxfg_day_t *day)
dxfg_string_list * dxfg_Schedule_getTradingVenues(graal_isolatethread_t *thread, dxfg_instrument_profile_t *instrumentProfile)
int64_t dxfg_Session_getEndTime(graal_isolatethread_t *thread, dxfg_session_t *session)
dxfg_schedule_t * dxfg_Schedule_getInstance(graal_isolatethread_t *thread, dxfg_instrument_profile_t *instrumentProfile)
dxfg_day_filter_t * dxfg_DayFilter_new(graal_isolatethread_t *thread, dxfg_day_filter_function filter)
dxfg_schedule_t * dxfg_Schedule_getInstance2(graal_isolatethread_t *thread, const char *scheduleDefinition)
dxfg_session_t * dxfg_Day_findFirstSession(graal_isolatethread_t *thread, dxfg_day_t *day, dxfg_session_filter_t *filter)
int32_t dxfg_Day_getDayOfWeek(graal_isolatethread_t *thread, dxfg_day_t *day)
dxfg_day_t * dxfg_Session_getDay(graal_isolatethread_t *thread, dxfg_session_t *session)
int32_t dxfg_Day_isShortDay(graal_isolatethread_t *thread, dxfg_day_t *day)
@ DXFG_SESSION_TYPE_NO_TRADING
Definition dxfg_schedule.h:55
@ DXFG_SESSION_TYPE_PRE_MARKET
Definition dxfg_schedule.h:57
@ DXFG_SESSION_TYPE_REGULAR
Definition dxfg_schedule.h:59
@ DXFG_SESSION_TYPE_AFTER_MARKET
Definition dxfg_schedule.h:61
@ DXFG_SESSION_FILTER_NON_TRADING
Definition dxfg_schedule.h:143
@ DXFG_SESSION_FILTER_PRE_MARKET
Definition dxfg_schedule.h:147
@ DXFG_SESSION_FILTER_REGULAR
Definition dxfg_schedule.h:149
@ DXFG_SESSION_FILTER_NO_TRADING
Definition dxfg_schedule.h:145
@ DXFG_SESSION_FILTER_AFTER_MARKET
Definition dxfg_schedule.h:151
@ DXFG_SESSION_FILTER_ANY
Definition dxfg_schedule.h:139
@ DXFG_SESSION_FILTER_TRADING
Definition dxfg_schedule.h:141
@ DXFG_DAY_FILTER_TRADING
Definition dxfg_schedule.h:222
@ DXFG_DAY_FILTER_WEEK_END
Definition dxfg_schedule.h:246
@ DXFG_DAY_FILTER_THURSDAY
Definition dxfg_schedule.h:236
@ DXFG_DAY_FILTER_SATURDAY
Definition dxfg_schedule.h:240
@ DXFG_DAY_FILTER_FRIDAY
Definition dxfg_schedule.h:238
@ DXFG_DAY_FILTER_ANY
Definition dxfg_schedule.h:220
@ DXFG_DAY_FILTER_WEEK_DAY
Definition dxfg_schedule.h:244
@ DXFG_DAY_FILTER_HOLIDAY
Definition dxfg_schedule.h:226
@ DXFG_DAY_FILTER_MONDAY
Definition dxfg_schedule.h:230
@ DXFG_DAY_FILTER_TUESDAY
Definition dxfg_schedule.h:232
@ DXFG_DAY_FILTER_NON_TRADING
Definition dxfg_schedule.h:224
@ DXFG_DAY_FILTER_SUNDAY
Definition dxfg_schedule.h:242
@ DXFG_DAY_FILTER_SHORT_DAY
Definition dxfg_schedule.h:228
@ DXFG_DAY_FILTER_WEDNESDAY
Definition dxfg_schedule.h:234
A handle of a Java DayFilter object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_schedule.h:207
dxfg_java_object_handler handler
Definition dxfg_schedule.h:209
A handle of a Java Day object; release it with dxfg_Day_release().
Definition dxfg_schedule.h:102
dxfg_java_object_handler handler
Definition dxfg_schedule.h:104
The fields of an instrument profile in a plain C structure, with the handle of its custom fields.
Definition dxfg_ipf.h:2119
A handle of a Java InstrumentProfile object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_ipf.h:129
The handle of a Java object: the reference by which the C code refers to an object that lives in Java...
Definition dxfg_javac.h:60
A handle of a Java Schedule object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_schedule.h:43
dxfg_java_object_handler handler
Definition dxfg_schedule.h:45
A handle of a Java SessionFilter object; release it with dxfg_JavaObjectHandler_release().
Definition dxfg_schedule.h:128
dxfg_java_object_handler handler
Definition dxfg_schedule.h:130
Definition dxfg_schedule.h:85
dxfg_session_t ** elements
Definition dxfg_schedule.h:89
int32_t size
Definition dxfg_schedule.h:87
A handle of a Java Session object; release it with dxfg_Session_release().
Definition dxfg_schedule.h:73
dxfg_java_object_handler handler
Definition dxfg_schedule.h:75
A list of strings.
Definition dxfg_javac.h:109