dxFeed Graal Native SDK 3.12.0
Loading...
Searching...
No Matches
EventModel (v4)

The v4 functions and type names of the group EventModel. Every function returns DXFG_EXECUTE_SUCCESSFULLY or DXFG_EXECUTE_FAIL and writes its result to a DXFG_OUT parameter, see The v4 functions. More...

Typedefs

typedef dxfg_order_book_model_t dxfg_v4_order_book_model_t
 A handle of a Java OrderBookModel object; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_indexed_event_model_t dxfg_v4_indexed_event_model_t
 A handle of a Java IndexedEventModel object; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_time_series_event_model_t dxfg_v4_time_series_event_model_t
 A handle of a Java TimeSeriesEventModel object; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_observable_list_model_t dxfg_v4_observable_list_model_t
 A handle of a Java ObservableListModel object; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_observable_list_model_listener_t dxfg_v4_observable_list_model_listener_t
 A handle of a Java ObservableListModelListener object; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_observable_list_model_listener_function dxfg_v4_observable_list_model_listener_function
 The function of a dxfg_observable_list_model_listener_t: called after a list of events has changed.
typedef dxfg_order_book_model_listener_t dxfg_v4_order_book_model_listener_t
 A handle of a Java OrderBookModelListener object; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_order_book_model_listener_function dxfg_v4_order_book_model_listener_function
 The function of a dxfg_order_book_model_listener_t: called after an order book model has changed.
typedef dxfg_order_book_model_filter_t dxfg_v4_order_book_model_filter_t
 The filter of an order book model: which scopes of the order events are shown in the book.
typedef dxfg_TimeSeriesTxModelSortOrder_t dxfg_v4_TimeSeriesTxModelSortOrder_t
 The order in which the events of a snapshot are delivered by a time-series transactional model.
typedef dxfg_indexed_tx_model_t dxfg_v4_indexed_tx_model_t
 A handle of a Java IndexedTxModel object; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_indexed_tx_model_builder_t dxfg_v4_indexed_tx_model_builder_t
 A handle of a Java IndexedTxModel.Builder object; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_time_series_tx_model_t dxfg_v4_time_series_tx_model_t
 A handle of a Java TimeSeriesTxModel object; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_time_series_tx_model_builder_t dxfg_v4_time_series_tx_model_builder_t
 A handle of a Java TimeSeriesTxModel.Builder object; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_tx_model_listener_t dxfg_v4_tx_model_listener_t
 A handle of a Java TxModelListener object; release it with dxfg_JavaObjectHandler_release().
typedef dxfg_TxModelListener_function_eventsReceived dxfg_v4_TxModelListener_function_eventsReceived
 The function of a dxfg_tx_model_listener_t: called when one or more complete transactions are received.

Functions

int32_t dxfg_v4_OrderBookModel_new (graal_isolatethread_t *thread, DXFG_OUT dxfg_v4_order_book_model_t **orderBookModel)
 Creates a new order book model.
int32_t dxfg_v4_IndexedEventModel_new (graal_isolatethread_t *thread, dxfg_v4_event_clazz_t clazz, DXFG_OUT dxfg_v4_indexed_event_model_t **indexedEventModel)
 Creates a new model of indexed events of the event type.
int32_t dxfg_v4_TimeSeriesEventModel_new (graal_isolatethread_t *thread, dxfg_v4_event_clazz_t clazz, DXFG_OUT dxfg_v4_time_series_event_model_t **timeSeriesEventModel)
 Creates a new model of time-series events of the event type.
int32_t dxfg_v4_OrderBookModel_attach (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model, dxfg_v4_feed_t *feed)
 Attaches the order book model to the feed: the model starts receiving the events of its symbol.
int32_t dxfg_v4_OrderBookModel_detach (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model, dxfg_v4_feed_t *feed)
 Detaches the order book model from the feed.
int32_t dxfg_v4_OrderBookModel_close (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model)
 Closes the order book model: it becomes permanently detached from all feeds and removes all its listeners.
int32_t dxfg_v4_OrderBookModel_getExecutor (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model, DXFG_OUT dxfg_v4_executor_t **executor)
 Returns the executor that calls the listeners of the order book model.
int32_t dxfg_v4_OrderBookModel_setExecutor (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model, dxfg_v4_executor_t *executor)
 Sets the executor that calls the listeners of the order book model.
int32_t dxfg_v4_OrderBookModel_clear (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model)
 Clears the subscription symbol and, with it, all the orders of the model.
int32_t dxfg_v4_IndexedEventModel_attach (graal_isolatethread_t *thread, dxfg_v4_indexed_event_model_t *model, dxfg_v4_feed_t *feed)
 Attaches the indexed event model to the feed: the model starts receiving the events of its symbol.
int32_t dxfg_v4_IndexedEventModel_detach (graal_isolatethread_t *thread, dxfg_v4_indexed_event_model_t *model, dxfg_v4_feed_t *feed)
 Detaches the indexed event model from the feed.
int32_t dxfg_v4_IndexedEventModel_close (graal_isolatethread_t *thread, dxfg_v4_indexed_event_model_t *model)
 Closes the indexed event model: it becomes permanently detached from all feeds and removes all its listeners.
int32_t dxfg_v4_IndexedEventModel_getExecutor (graal_isolatethread_t *thread, dxfg_v4_indexed_event_model_t *model, DXFG_OUT dxfg_v4_executor_t **executor)
 Returns the executor that calls the listeners of the indexed event model.
int32_t dxfg_v4_IndexedEventModel_setExecutor (graal_isolatethread_t *thread, dxfg_v4_indexed_event_model_t *model, dxfg_v4_executor_t *executor)
 Sets the executor that calls the listeners of the indexed event model.
int32_t dxfg_v4_IndexedEventModel_clear (graal_isolatethread_t *thread, dxfg_v4_indexed_event_model_t *model)
 Clears the subscription symbol and, with it, all the events of the model.
int32_t dxfg_v4_TimeSeriesEventModel_attach (graal_isolatethread_t *thread, dxfg_v4_time_series_event_model_t *model, dxfg_v4_feed_t *feed)
 Attaches the time-series event model to the feed: the model starts receiving the events of its symbol.
int32_t dxfg_v4_TimeSeriesEventModel_detach (graal_isolatethread_t *thread, dxfg_v4_time_series_event_model_t *model, dxfg_v4_feed_t *feed)
 Detaches the time-series event model from the feed.
int32_t dxfg_v4_TimeSeriesEventModel_close (graal_isolatethread_t *thread, dxfg_v4_time_series_event_model_t *model)
 Closes the time-series event model: it becomes permanently detached from all feeds and removes all its listeners.
int32_t dxfg_v4_TimeSeriesEventModel_getExecutor (graal_isolatethread_t *thread, dxfg_v4_time_series_event_model_t *model, DXFG_OUT dxfg_v4_executor_t **executor)
 Returns the executor that calls the listeners of the time-series event model.
int32_t dxfg_v4_TimeSeriesEventModel_setExecutor (graal_isolatethread_t *thread, dxfg_v4_time_series_event_model_t *model, dxfg_v4_executor_t *executor)
 Sets the executor that calls the listeners of the time-series event model.
int32_t dxfg_v4_TimeSeriesEventModel_clear (graal_isolatethread_t *thread, dxfg_v4_time_series_event_model_t *model)
 Clears the subscription symbol, sets the from-time to INT64_MAX and, with it, clears all the events of the model.
int32_t dxfg_v4_OrderBookModel_getFilter (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model, DXFG_OUT dxfg_v4_order_book_model_filter_t *filter)
int32_t dxfg_v4_OrderBookModel_setFilter (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model, dxfg_v4_order_book_model_filter_t filter)
 Sets the filter of the order book model.
int32_t dxfg_v4_OrderBookModel_getSymbol (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model, DXFG_OUT const char **symbol)
 Returns the subscription symbol of the order book model.
int32_t dxfg_v4_OrderBookModel_setSymbol (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model, const char *symbol)
 Sets the subscription symbol of the order book model.
int32_t dxfg_v4_IndexedEventModel_getSymbol (graal_isolatethread_t *thread, dxfg_v4_indexed_event_model_t *model, DXFG_OUT dxfg_v4_symbol_t **symbol)
 Returns the subscription symbol of the indexed event model.
int32_t dxfg_v4_IndexedEventModel_setSymbol (graal_isolatethread_t *thread, dxfg_v4_indexed_event_model_t *model, dxfg_v4_symbol_t *symbol)
 Sets the subscription symbol of the indexed event model.
int32_t dxfg_v4_TimeSeriesEventModel_getSymbol (graal_isolatethread_t *thread, dxfg_v4_time_series_event_model_t *model, DXFG_OUT dxfg_v4_symbol_t **symbol)
 Returns the subscription symbol of the time-series event model.
int32_t dxfg_v4_TimeSeriesEventModel_setSymbol (graal_isolatethread_t *thread, dxfg_v4_time_series_event_model_t *model, dxfg_v4_symbol_t *symbol)
 Sets the subscription symbol of the time-series event model.
int32_t dxfg_v4_OrderBookModel_getLotSize (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model, DXFG_OUT int32_t *lotSize)
 Returns the lot size of the order book model.
int32_t dxfg_v4_OrderBookModel_setLotSize (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model, int32_t lotSize)
 Sets the lot size of the order book model.
int32_t dxfg_v4_IndexedEventModel_getSizeLimit (graal_isolatethread_t *thread, dxfg_v4_indexed_event_model_t *model, DXFG_OUT int32_t *sizeLimit)
 Returns the size limit of the indexed event model.
int32_t dxfg_v4_IndexedEventModel_setSizeLimit (graal_isolatethread_t *thread, dxfg_v4_indexed_event_model_t *model, int32_t sizeLimit)
 Sets the size limit of the indexed event model.
int32_t dxfg_v4_TimeSeriesEventModel_getSizeLimit (graal_isolatethread_t *thread, dxfg_v4_time_series_event_model_t *model, DXFG_OUT int32_t *sizeLimit)
 Returns the size limit of the time-series event model.
int32_t dxfg_v4_TimeSeriesEventModel_setSizeLimit (graal_isolatethread_t *thread, dxfg_v4_time_series_event_model_t *model, int32_t sizeLimit)
 Sets the size limit of the time-series event model.
int32_t dxfg_v4_TimeSeriesEventModel_getFromTime (graal_isolatethread_t *thread, dxfg_v4_time_series_event_model_t *model, DXFG_OUT int64_t *fromTime)
 Returns the time from which the time-series event model subscribes for events.
int32_t dxfg_v4_TimeSeriesEventModel_setFromTime (graal_isolatethread_t *thread, dxfg_v4_time_series_event_model_t *model, int64_t fromTime)
 Sets the time from which the time-series event model subscribes for events.
int32_t dxfg_v4_OrderBookModel_getBuyOrders (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model, DXFG_OUT dxfg_v4_observable_list_model_t **buyOrders)
 Returns the buy orders (the bid side) of the order book model.
int32_t dxfg_v4_OrderBookModel_getSellOrders (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model, DXFG_OUT dxfg_v4_observable_list_model_t **sellOrders)
 Returns the sell orders (the offer side) of the order book model.
int32_t dxfg_v4_IndexedEventModel_getEventsList (graal_isolatethread_t *thread, dxfg_v4_indexed_event_model_t *model, DXFG_OUT dxfg_v4_observable_list_model_t **eventsList)
 Returns the list of events of the indexed event model.
int32_t dxfg_v4_TimeSeriesEventModel_getEventsList (graal_isolatethread_t *thread, dxfg_v4_time_series_event_model_t *model, DXFG_OUT dxfg_v4_observable_list_model_t **eventsList)
 Returns the list of events of the time-series event model.
int32_t dxfg_v4_ObservableListModelListener_new (graal_isolatethread_t *thread, dxfg_v4_observable_list_model_listener_function user_func, void *user_data, DXFG_OUT dxfg_v4_observable_list_model_listener_t **observableListModelListener)
 Creates a listener of the changes of a list that calls the function with the user data.
int32_t dxfg_v4_ObservableListModel_addListener (graal_isolatethread_t *thread, dxfg_v4_observable_list_model_t *list, dxfg_v4_observable_list_model_listener_t *listener)
 Adds the listener to the list.
int32_t dxfg_v4_ObservableListModel_removeListener (graal_isolatethread_t *thread, dxfg_v4_observable_list_model_t *list, dxfg_v4_observable_list_model_listener_t *listener)
 Removes the listener from the list. If the listener is not added to the list, nothing happens.
int32_t dxfg_v4_OrderBookModelListener_new (graal_isolatethread_t *thread, dxfg_v4_order_book_model_listener_function user_func, void *user_data, DXFG_OUT dxfg_v4_order_book_model_listener_t **orderBookModelListener)
 Creates a listener of the changes of an order book model that calls the function with the user data.
int32_t dxfg_v4_OrderBookModel_addListener (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model, dxfg_v4_order_book_model_listener_t *listener)
 Adds the listener to the order book model. A closed model does not add listeners.
int32_t dxfg_v4_OrderBookModel_removeListener (graal_isolatethread_t *thread, dxfg_v4_order_book_model_t *model, dxfg_v4_order_book_model_listener_t *listener)
 Removes the listener from the order book model. If the listener is not added to the model, nothing happens.
int32_t dxfg_v4_ObservableListModel_toArray (graal_isolatethread_t *thread, dxfg_v4_observable_list_model_t *list, DXFG_OUT dxfg_v4_event_type_list **events)
 Returns the events of the list as a new list of events.
int32_t dxfg_v4_IndexedTxModel_newBuilder (graal_isolatethread_t *thread, dxfg_v4_event_clazz_t eventType, DXFG_OUT dxfg_v4_indexed_tx_model_builder_t **indexedTxModelBuilder)
 Creates a new builder of a model of the indexed events of the type.
int32_t dxfg_v4_IndexedTxModel_getSources (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_t *source, DXFG_OUT dxfg_v4_indexed_event_source_list **sources)
 Returns the sources of the model.
int32_t dxfg_v4_IndexedTxModel_setSources (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_t *source, dxfg_v4_indexed_event_source_list *sources)
 Sets the sources of the model: it subscribes to the new ones and unsubscribes from the old ones.
int32_t dxfg_v4_IndexedTxModel_isBatchProcessing (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_t *source, DXFG_OUT int32_t *batchProcessing)
 Returns whether the listener gets all the pending transactions in one call.
int32_t dxfg_v4_IndexedTxModel_isSnapshotProcessing (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_t *source, DXFG_OUT int32_t *snapshotProcessing)
 Returns whether a snapshot is delivered as its resulting state (without the removed events).
int32_t dxfg_v4_IndexedTxModel_attach (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_t *source, dxfg_v4_feed_t *feed)
 Attaches the model to the feed.
int32_t dxfg_v4_IndexedTxModel_detach (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_t *source, dxfg_v4_feed_t *feed)
 Detaches the model from the feed.
int32_t dxfg_v4_IndexedTxModel_setAggregationPeriod (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_t *source, dxfg_v4_time_period_t *aggregationPeriod)
 Sets the aggregation period of the events.
int32_t dxfg_v4_IndexedTxModel_close (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_t *source)
 Closes the model: it is detached from all the feeds for good. Closing it again does nothing.
int32_t dxfg_v4_IndexedTxModel_Builder_withSources (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_builder_t *source, dxfg_v4_indexed_event_source_list *sources, DXFG_OUT dxfg_v4_indexed_tx_model_builder_t **indexedTxModelBuilder)
 Sets the sources (an empty list means all the sources).
int32_t dxfg_v4_IndexedTxModel_Builder_build (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_builder_t *source, DXFG_OUT dxfg_v4_indexed_tx_model_t **indexedTxModel)
 Builds the model (the symbol must be set).
int32_t dxfg_v4_IndexedTxModel_Builder_withBatchProcessing (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_builder_t *source, int32_t isBatchProcessing, DXFG_OUT dxfg_v4_indexed_tx_model_builder_t **indexedTxModelBuilder)
 Sets whether the listener gets all the pending transactions in one call (1, default) or one by one (0).
int32_t dxfg_v4_IndexedTxModel_Builder_withSnapshotProcessing (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_builder_t *source, int32_t isSnapshotProcessing, DXFG_OUT dxfg_v4_indexed_tx_model_builder_t **indexedTxModelBuilder)
 Sets whether a snapshot is delivered as its resulting state (1) or as it comes (0, default).
int32_t dxfg_v4_IndexedTxModel_Builder_withFeed (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_builder_t *source, dxfg_v4_feed_t *feed, DXFG_OUT dxfg_v4_indexed_tx_model_builder_t **indexedTxModelBuilder)
 Sets the feed the model is attached to.
int32_t dxfg_v4_IndexedTxModel_Builder_withAggregationPeriod (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_builder_t *source, dxfg_v4_time_period_t *aggregationPeriod, DXFG_OUT dxfg_v4_indexed_tx_model_builder_t **indexedTxModelBuilder)
 Sets the aggregation period of the events.
int32_t dxfg_v4_IndexedTxModel_Builder_withSymbol (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_builder_t *source, dxfg_v4_symbol_t *symbol, DXFG_OUT dxfg_v4_indexed_tx_model_builder_t **indexedTxModelBuilder)
 Sets the symbol of the subscription.
int32_t dxfg_v4_IndexedTxModel_Builder_withListener (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_builder_t *source, dxfg_v4_tx_model_listener_t *listener, DXFG_OUT dxfg_v4_indexed_tx_model_builder_t **indexedTxModelBuilder)
 Sets the listener of the transactions.
int32_t dxfg_v4_IndexedTxModel_Builder_withExecutor (graal_isolatethread_t *thread, dxfg_v4_indexed_tx_model_builder_t *source, dxfg_v4_executor_t *executor, DXFG_OUT dxfg_v4_indexed_tx_model_builder_t **indexedTxModelBuilder)
 Sets the executor that calls the listener (by default, the executor of the feed).
int32_t dxfg_v4_TimeSeriesTxModel_newBuilder (graal_isolatethread_t *thread, dxfg_v4_event_clazz_t eventType, DXFG_OUT dxfg_v4_time_series_tx_model_builder_t **timeSeriesTxModelBuilder)
 Creates a new builder of a model of the time-series events of the type.
int32_t dxfg_v4_TimeSeriesTxModel_getFromTime (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_t *source, DXFG_OUT int64_t *fromTime)
 Returns the time the model is subscribed from.
int32_t dxfg_v4_TimeSeriesTxModel_setFromTime (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_t *source, int64_t fromTime)
 Sets the time the model is subscribed from (INT64_MAX unsubscribes); the model gets a new snapshot.
int32_t dxfg_v4_TimeSeriesTxModel_isBatchProcessing (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_t *source, DXFG_OUT int32_t *batchProcessing)
 Returns whether the listener gets all the pending transactions in one call.
int32_t dxfg_v4_TimeSeriesTxModel_isSnapshotProcessing (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_t *source, DXFG_OUT int32_t *snapshotProcessing)
 Returns whether a snapshot is delivered as its resulting state (without the removed events).
int32_t dxfg_v4_TimeSeriesTxModel_attach (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_t *source, dxfg_v4_feed_t *feed)
 Attaches the model to the feed.
int32_t dxfg_v4_TimeSeriesTxModel_detach (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_t *source, dxfg_v4_feed_t *feed)
 Detaches the model from the feed.
int32_t dxfg_v4_TimeSeriesTxModel_setAggregationPeriod (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_t *source, dxfg_v4_time_period_t *aggregationPeriod)
 Sets the aggregation period of the events.
int32_t dxfg_v4_TimeSeriesTxModel_close (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_t *source)
 Closes the model: it is detached from all the feeds for good. Closing it again does nothing.
int32_t dxfg_v4_TimeSeriesTxModel_Builder_withFromTime (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_builder_t *source, int64_t fromTime, DXFG_OUT dxfg_v4_time_series_tx_model_builder_t **timeSeriesTxModelBuilder)
 Sets the time to subscribe from, in milliseconds since the epoch (by default INT64_MAX: not subscribed).
int32_t dxfg_v4_TimeSeriesTxModel_Builder_withSorting (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_builder_t *source, dxfg_v4_TimeSeriesTxModelSortOrder_t sortOrder, DXFG_OUT dxfg_v4_time_series_tx_model_builder_t **timeSeriesTxModelBuilder)
 Sets the order of the events of a snapshot.
int32_t dxfg_v4_TimeSeriesTxModel_Builder_ignoreRemoveEvents (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_builder_t *source, int32_t ignoreRemoveEvents, DXFG_OUT dxfg_v4_time_series_tx_model_builder_t **timeSeriesTxModelBuilder)
 Sets whether the removed events are dropped (1) or delivered (0, default).
int32_t dxfg_v4_TimeSeriesTxModel_Builder_ignoreEventsFromPast (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_builder_t *source, int32_t ignoreEventFromPast, DXFG_OUT dxfg_v4_time_series_tx_model_builder_t **timeSeriesTxModelBuilder)
 Sets whether the events with an index not greater than the last processed one are dropped (1) or delivered (0, default).
int32_t dxfg_v4_TimeSeriesTxModel_Builder_withConfirmationTick (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_builder_t *source, int32_t confirmationTick, DXFG_OUT dxfg_v4_time_series_tx_model_builder_t **timeSeriesTxModelBuilder)
 Sets whether a new bar comes after the previous (closing) one, to confirm it (1), or alone (0, default).
int32_t dxfg_v4_TimeSeriesTxModel_Builder_withEventPeek (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_builder_t *source, void *eventPeek, DXFG_OUT dxfg_v4_time_series_tx_model_builder_t **timeSeriesTxModelBuilder)
 Accepted for compatibility: the pointer is ignored, the model gets no event peek (a Java Consumer).
int32_t dxfg_v4_TimeSeriesTxModel_Builder_build (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_builder_t *source, DXFG_OUT dxfg_v4_time_series_tx_model_t **timeSeriesTxModel)
 Builds the model (the symbol must be set).
int32_t dxfg_v4_TimeSeriesTxModel_Builder_withBatchProcessing (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_builder_t *source, int32_t isBatchProcessing, DXFG_OUT dxfg_v4_time_series_tx_model_builder_t **timeSeriesTxModelBuilder)
 Sets whether the listener gets all the pending transactions in one call (1, default) or one by one (0).
int32_t dxfg_v4_TimeSeriesTxModel_Builder_withSnapshotProcessing (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_builder_t *source, int32_t isSnapshotProcessing, DXFG_OUT dxfg_v4_time_series_tx_model_builder_t **timeSeriesTxModelBuilder)
 Sets whether a snapshot is delivered as its resulting state (1) or as it comes (0, default).
int32_t dxfg_v4_TimeSeriesTxModel_Builder_withFeed (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_builder_t *source, dxfg_v4_feed_t *feed, DXFG_OUT dxfg_v4_time_series_tx_model_builder_t **timeSeriesTxModelBuilder)
 Sets the feed the model is attached to.
int32_t dxfg_v4_TimeSeriesTxModel_Builder_withAggregationPeriod (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_builder_t *source, dxfg_v4_time_period_t *aggregationPeriod, DXFG_OUT dxfg_v4_time_series_tx_model_builder_t **timeSeriesTxModelBuilder)
 Sets the aggregation period of the events.
int32_t dxfg_v4_TimeSeriesTxModel_Builder_withSymbol (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_builder_t *source, dxfg_v4_symbol_t *symbol, DXFG_OUT dxfg_v4_time_series_tx_model_builder_t **timeSeriesTxModelBuilder)
 Sets the symbol of the subscription.
int32_t dxfg_v4_TimeSeriesTxModel_Builder_withListener (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_builder_t *source, dxfg_v4_tx_model_listener_t *listener, DXFG_OUT dxfg_v4_time_series_tx_model_builder_t **timeSeriesTxModelBuilder)
 Sets the listener of the transactions.
int32_t dxfg_v4_TimeSeriesTxModel_Builder_withExecutor (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_builder_t *source, dxfg_v4_executor_t *executor, DXFG_OUT dxfg_v4_time_series_tx_model_builder_t **timeSeriesTxModelBuilder)
 Sets the executor that calls the listener (by default, the executor of the feed).
int32_t dxfg_v4_TxModelListener_new (graal_isolatethread_t *thread, dxfg_v4_TxModelListener_function_eventsReceived function_eventsReceived, void *user_data, DXFG_OUT dxfg_v4_tx_model_listener_t **txModelListener)
 Creates a listener that calls the function with the user data.

Detailed Description

The v4 functions and type names of the group EventModel. Every function returns DXFG_EXECUTE_SUCCESSFULLY or DXFG_EXECUTE_FAIL and writes its result to a DXFG_OUT parameter, see The v4 functions.

Typedef Documentation

◆ dxfg_v4_indexed_event_model_t

A handle of a Java IndexedEventModel object; release it with dxfg_JavaObjectHandler_release().

The model of a list of indexed events of its symbol, see dxfg_IndexedEventModel_getEventsList().

Javadoc

◆ dxfg_v4_indexed_tx_model_builder_t

A handle of a Java IndexedTxModel.Builder object; release it with dxfg_JavaObjectHandler_release().

The builder of dxfg_indexed_tx_model_t, see dxfg_IndexedTxModel_newBuilder().

◆ dxfg_v4_indexed_tx_model_t

A handle of a Java IndexedTxModel object; release it with dxfg_JavaObjectHandler_release().

The model is an incremental model of indexed events: it delivers the complete transactions of the events of its symbol and sources to its listener. Close the model with dxfg_IndexedTxModel_close() before releasing the handle: an attached model stays attached to the feed.

◆ dxfg_v4_observable_list_model_listener_function

The function of a dxfg_observable_list_model_listener_t: called after a list of events has changed.

The function is called by the executor of the model that owns the list (by default the executor of the feed the model is attached to, see dxfg_IndexedEventModel_setExecutor()), not by the thread that added the listener. Calls of one model are never concurrent. It is safe to query the model and its lists from inside the call.

The SDK frees the passed list right after the function returns: the callee must not release it and must copy whatever it needs to keep.

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]ordersAll the events of the changed list, not only the changed ones. The list belongs to the SDK and is valid during the call only.
[in]user_dataThe pointer that was passed to dxfg_ObservableListModelListener_new(); the SDK does not use it.

◆ dxfg_v4_observable_list_model_listener_t

A handle of a Java ObservableListModelListener object; release it with dxfg_JavaObjectHandler_release().

Create it with dxfg_ObservableListModelListener_new(). The last handle of the listener that is released deactivates the listener: its function is not called anymore.

Javadoc

◆ dxfg_v4_observable_list_model_t

A handle of a Java ObservableListModel object; release it with dxfg_JavaObjectHandler_release().

A live list of events that notifies its listeners about its changes. The handle refers to the same list that the model keeps: the list changes as the model receives events.

Javadoc

◆ dxfg_v4_order_book_model_filter_t

The filter of an order book model: which scopes of the order events are shown in the book.

If more than one scope is allowed, the events of a more detailed scope hide the events of a less detailed one: an aggregate order of an exchange and a market maker hides the regional order of that exchange, which in turn hides the composite order.

Java: OrderBookModelFilter.

Javadoc

◆ dxfg_v4_order_book_model_listener_function

The function of a dxfg_order_book_model_listener_t: called after an order book model has changed.

The function is called by the executor of the model (by default the executor of the feed the model is attached to, see dxfg_OrderBookModel_setExecutor()), not by the thread that added the listener. The calls of one model are never concurrent. The notification says which model changed, not what changed: query the lists dxfg_OrderBookModel_getBuyOrders() and dxfg_OrderBookModel_getSellOrders() to get the new orders.

The handle of the model is created for the call and released by the SDK right after the function returns: the callee must not release it. To keep the model, clone the handle with dxfg_JavaObjectHandler_clone().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe model that has changed. The handle is valid during the call only.
[in]user_dataThe pointer that was passed to dxfg_OrderBookModelListener_new(); the SDK does not use it.

◆ dxfg_v4_order_book_model_listener_t

A handle of a Java OrderBookModelListener object; release it with dxfg_JavaObjectHandler_release().

Create it with dxfg_OrderBookModelListener_new(). The last handle of the listener that is released deactivates the listener: its function is not called anymore.

Javadoc

◆ dxfg_v4_order_book_model_t

A handle of a Java OrderBookModel object; release it with dxfg_JavaObjectHandler_release().

The model of an order book: it keeps the buy and the sell orders of its symbol in two lists, see dxfg_OrderBookModel_getBuyOrders() and dxfg_OrderBookModel_getSellOrders().

Javadoc

◆ dxfg_v4_time_series_event_model_t

A handle of a Java TimeSeriesEventModel object; release it with dxfg_JavaObjectHandler_release().

The model of a list of time-series events of its symbol, see dxfg_TimeSeriesEventModel_getEventsList().

Javadoc

◆ dxfg_v4_time_series_tx_model_builder_t

◆ dxfg_v4_time_series_tx_model_t

A handle of a Java TimeSeriesTxModel object; release it with dxfg_JavaObjectHandler_release().

The model is an incremental model of time-series events: it delivers the complete transactions of the events of its symbol from its time to its listener. Close the model with dxfg_TimeSeriesTxModel_close() before releasing the handle: an attached model stays attached to the feed.

◆ dxfg_v4_TimeSeriesTxModelSortOrder_t

The order in which the events of a snapshot are delivered by a time-series transactional model.

Java: TimeSeriesTxModel.SortOrder.

◆ dxfg_v4_tx_model_listener_t

A handle of a Java TxModelListener object; release it with dxfg_JavaObjectHandler_release().

The listener of the transactional models, create it with dxfg_TxModelListener_new().

◆ dxfg_v4_TxModelListener_function_eventsReceived

The function of a dxfg_tx_model_listener_t: called when one or more complete transactions are received.

The function is called by the executor of the model (set with dxfg_IndexedTxModel_Builder_withExecutor() or dxfg_TimeSeriesTxModel_Builder_withExecutor(); by default the executor of the feed), not by the thread that built the model. The calls of one model are never concurrent. The events of one call have the same source and symbol.

The SDK creates the source and the list of events for the call and frees them right after the function returns: the callee must not release them and must copy whatever it needs to keep.

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe source of the events. It is valid during the call only.
[in]eventsThe events of one or more transactions. They belong to the SDK and are valid during the call only. The list can be empty if an empty snapshot was received and the snapshot processing is on.
[in]isSnapshot1 if the events are a snapshot (the state kept for the source has to be cleared), 0 otherwise.
[in]user_dataThe pointer that was passed to dxfg_TxModelListener_new(); the SDK does not use it.

Function Documentation

◆ dxfg_v4_IndexedEventModel_attach()

int32_t dxfg_v4_IndexedEventModel_attach ( graal_isolatethread_t * thread,
dxfg_v4_indexed_event_model_t * model,
dxfg_v4_feed_t * feed )

Attaches the indexed event model to the feed: the model starts receiving the events of its symbol.

The feed keeps an attached model: releasing the handle of the model does not detach it. Detach the model with dxfg_v4_IndexedEventModel_detach() or close it with dxfg_v4_IndexedEventModel_close().

Java: IndexedEventModel.attach(DXFeed).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe indexed event model handle.
[in]feedThe feed to attach to.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedEventModel_clear()

int32_t dxfg_v4_IndexedEventModel_clear ( graal_isolatethread_t * thread,
dxfg_v4_indexed_event_model_t * model )

Clears the subscription symbol and, with it, all the events of the model.

This is a shortcut for dxfg_v4_IndexedEventModel_setSymbol() with NULL.

Java: IndexedEventModel.clear().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe indexed event model handle.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedEventModel_close()

int32_t dxfg_v4_IndexedEventModel_close ( graal_isolatethread_t * thread,
dxfg_v4_indexed_event_model_t * model )

Closes the indexed event model: it becomes permanently detached from all feeds and removes all its listeners.

Java: IndexedEventModel.close().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe indexed event model handle.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedEventModel_detach()

int32_t dxfg_v4_IndexedEventModel_detach ( graal_isolatethread_t * thread,
dxfg_v4_indexed_event_model_t * model,
dxfg_v4_feed_t * feed )

Detaches the indexed event model from the feed.

Java: IndexedEventModel.detach(DXFeed).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe indexed event model handle.
[in]feedThe feed to detach from.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedEventModel_getEventsList()

int32_t dxfg_v4_IndexedEventModel_getEventsList ( graal_isolatethread_t * thread,
dxfg_v4_indexed_event_model_t * model,
DXFG_OUT dxfg_v4_observable_list_model_t ** eventsList )

Returns the list of events of the indexed event model.

The events are ordered by the id of their source and by their index. The handle refers to the live list of the model: its content changes as the model receives events. The function creates a new handle on every call. Read the list with dxfg_v4_ObservableListModel_toArray().

Java: IndexedEventModel.getEventsList().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe indexed event model handle.
[out]eventsListThe pointer to the variable that receives the list (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedEventModel_getExecutor()

int32_t dxfg_v4_IndexedEventModel_getExecutor ( graal_isolatethread_t * thread,
dxfg_v4_indexed_event_model_t * model,
DXFG_OUT dxfg_v4_executor_t ** executor )

Returns the executor that calls the listeners of the indexed event model.

Java: IndexedEventModel.getExecutor().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe indexed event model handle.
[out]executorThe pointer to the variable that receives the executor (release it with dxfg_v4_JavaObjectHandler_release()), or NULL if the default executor of the feed is used; must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedEventModel_getSizeLimit()

int32_t dxfg_v4_IndexedEventModel_getSizeLimit ( graal_isolatethread_t * thread,
dxfg_v4_indexed_event_model_t * model,
DXFG_OUT int32_t * sizeLimit )

Returns the size limit of the indexed event model.

Java: IndexedEventModel.getSizeLimit().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe indexed event model handle.
[out]sizeLimitThe pointer to the variable that receives the size limit (INT32_MAX means no limit, it is the default); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedEventModel_getSymbol()

int32_t dxfg_v4_IndexedEventModel_getSymbol ( graal_isolatethread_t * thread,
dxfg_v4_indexed_event_model_t * model,
DXFG_OUT dxfg_v4_symbol_t ** symbol )

Returns the subscription symbol of the indexed event model.

Java: IndexedEventModel.getSymbol().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe indexed event model handle.
[out]symbolThe pointer to the variable that receives the symbol (release it with dxfg_v4_Symbol_release()), or NULL if the model is not subscribed (the default); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedEventModel_new()

int32_t dxfg_v4_IndexedEventModel_new ( graal_isolatethread_t * thread,
dxfg_v4_event_clazz_t clazz,
DXFG_OUT dxfg_v4_indexed_event_model_t ** indexedEventModel )

Creates a new model of indexed events of the event type.

The model is not attached to any feed and not subscribed to any symbol. Set the symbol with dxfg_v4_IndexedEventModel_setSymbol() and attach the model with dxfg_v4_IndexedEventModel_attach() to start receiving events.

Java: new IndexedEventModel(Class).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]clazzThe event type of the model; it has to be an indexed event type.
[out]indexedEventModelThe pointer to the variable that receives the model (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedEventModel_setExecutor()

int32_t dxfg_v4_IndexedEventModel_setExecutor ( graal_isolatethread_t * thread,
dxfg_v4_indexed_event_model_t * model,
dxfg_v4_executor_t * executor )

Sets the executor that calls the listeners of the indexed event model.

Java: IndexedEventModel.setExecutor(Executor).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe indexed event model handle.
[in]executorThe executor, or NULL to use the default executor of the feed.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedEventModel_setSizeLimit()

int32_t dxfg_v4_IndexedEventModel_setSizeLimit ( graal_isolatethread_t * thread,
dxfg_v4_indexed_event_model_t * model,
int32_t sizeLimit )

Sets the size limit of the indexed event model.

A negative size limit is an error.

Java: IndexedEventModel.setSizeLimit(int).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe indexed event model handle.
[in]sizeLimitThe size limit, not negative. When the limit is exceeded, the first events of the list are dropped.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedEventModel_setSymbol()

int32_t dxfg_v4_IndexedEventModel_setSymbol ( graal_isolatethread_t * thread,
dxfg_v4_indexed_event_model_t * model,
dxfg_v4_symbol_t * symbol )

Sets the subscription symbol of the indexed event model.

Java: IndexedEventModel.setSymbol(Object).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe indexed event model handle.
[in]symbolThe symbol, or NULL to unsubscribe (that removes the events of the model).
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_attach()

int32_t dxfg_v4_IndexedTxModel_attach ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_t * source,
dxfg_v4_feed_t * feed )

Attaches the model to the feed.

Java: AbstractTxModel.attach(DXFeed).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
[in]feedThe feed to attach to.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_Builder_build()

int32_t dxfg_v4_IndexedTxModel_Builder_build ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_builder_t * source,
DXFG_OUT dxfg_v4_indexed_tx_model_t ** indexedTxModel )

Builds the model (the symbol must be set).

Java: IndexedTxModel.Builder.build().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[out]indexedTxModelThe pointer to the variable that receives the model (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_Builder_withAggregationPeriod()

int32_t dxfg_v4_IndexedTxModel_Builder_withAggregationPeriod ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_builder_t * source,
dxfg_v4_time_period_t * aggregationPeriod,
DXFG_OUT dxfg_v4_indexed_tx_model_builder_t ** indexedTxModelBuilder )

Sets the aggregation period of the events.

Java: AbstractTxModel.Builder.withAggregationPeriod(TimePeriod).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]aggregationPeriodThe aggregation period of the events.
[out]indexedTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_Builder_withBatchProcessing()

int32_t dxfg_v4_IndexedTxModel_Builder_withBatchProcessing ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_builder_t * source,
int32_t isBatchProcessing,
DXFG_OUT dxfg_v4_indexed_tx_model_builder_t ** indexedTxModelBuilder )

Sets whether the listener gets all the pending transactions in one call (1, default) or one by one (0).

Java: AbstractTxModel.Builder.withBatchProcessing(boolean).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]isBatchProcessing1 to deliver all the pending transactions in one call, 0 to deliver them one by one.
[out]indexedTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_Builder_withExecutor()

int32_t dxfg_v4_IndexedTxModel_Builder_withExecutor ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_builder_t * source,
dxfg_v4_executor_t * executor,
DXFG_OUT dxfg_v4_indexed_tx_model_builder_t ** indexedTxModelBuilder )

Sets the executor that calls the listener (by default, the executor of the feed).

Java: AbstractTxModel.Builder.withExecutor(Executor).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]executorThe executor that calls the listener.
[out]indexedTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_Builder_withFeed()

int32_t dxfg_v4_IndexedTxModel_Builder_withFeed ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_builder_t * source,
dxfg_v4_feed_t * feed,
DXFG_OUT dxfg_v4_indexed_tx_model_builder_t ** indexedTxModelBuilder )

Sets the feed the model is attached to.

Java: AbstractTxModel.Builder.withFeed(DXFeed).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]feedThe feed the model is attached to.
[out]indexedTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_Builder_withListener()

int32_t dxfg_v4_IndexedTxModel_Builder_withListener ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_builder_t * source,
dxfg_v4_tx_model_listener_t * listener,
DXFG_OUT dxfg_v4_indexed_tx_model_builder_t ** indexedTxModelBuilder )

Sets the listener of the transactions.

Java: AbstractTxModel.Builder.withListener(TxModelListener).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]listenerThe listener of the transactions (see dxfg_v4_TxModelListener_new()).
[out]indexedTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_Builder_withSnapshotProcessing()

int32_t dxfg_v4_IndexedTxModel_Builder_withSnapshotProcessing ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_builder_t * source,
int32_t isSnapshotProcessing,
DXFG_OUT dxfg_v4_indexed_tx_model_builder_t ** indexedTxModelBuilder )

Sets whether a snapshot is delivered as its resulting state (1) or as it comes (0, default).

Java: AbstractTxModel.Builder.withSnapshotProcessing(boolean).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]isSnapshotProcessing1 to deliver a snapshot as its resulting state (without the removed events), 0 to deliver it as it comes.
[out]indexedTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_Builder_withSources()

int32_t dxfg_v4_IndexedTxModel_Builder_withSources ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_builder_t * source,
dxfg_v4_indexed_event_source_list * sources,
DXFG_OUT dxfg_v4_indexed_tx_model_builder_t ** indexedTxModelBuilder )

Sets the sources (an empty list means all the sources).

Java: IndexedTxModel.Builder.withSources(Collection).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]sourcesThe sources of the events; an empty list means all the sources.
[out]indexedTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_Builder_withSymbol()

int32_t dxfg_v4_IndexedTxModel_Builder_withSymbol ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_builder_t * source,
dxfg_v4_symbol_t * symbol,
DXFG_OUT dxfg_v4_indexed_tx_model_builder_t ** indexedTxModelBuilder )

Sets the symbol of the subscription.

Java: AbstractTxModel.Builder.withSymbol(Object).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]symbolThe symbol to subscribe for (a dxfg_v4_symbol_t).
[out]indexedTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_close()

int32_t dxfg_v4_IndexedTxModel_close ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_t * source )

Closes the model: it is detached from all the feeds for good. Closing it again does nothing.

Java: AbstractTxModel.close().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_detach()

int32_t dxfg_v4_IndexedTxModel_detach ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_t * source,
dxfg_v4_feed_t * feed )

Detaches the model from the feed.

Java: AbstractTxModel.detach(DXFeed).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
[in]feedThe feed to detach from.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_getSources()

int32_t dxfg_v4_IndexedTxModel_getSources ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_t * source,
DXFG_OUT dxfg_v4_indexed_event_source_list ** sources )

Returns the sources of the model.

Java: IndexedTxModel.getSources().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
[out]sourcesThe pointer to the variable that receives the sources (release them with dxfg_v4_indexed_event_source_list_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_isBatchProcessing()

int32_t dxfg_v4_IndexedTxModel_isBatchProcessing ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_t * source,
DXFG_OUT int32_t * batchProcessing )

Returns whether the listener gets all the pending transactions in one call.

Java: AbstractTxModel.isBatchProcessing().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
[out]batchProcessingThe pointer to the variable that receives 1 if enabled, 0 otherwise; must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_isSnapshotProcessing()

int32_t dxfg_v4_IndexedTxModel_isSnapshotProcessing ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_t * source,
DXFG_OUT int32_t * snapshotProcessing )

Returns whether a snapshot is delivered as its resulting state (without the removed events).

Java: AbstractTxModel.isSnapshotProcessing().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
[out]snapshotProcessingThe pointer to the variable that receives 1 if enabled, 0 otherwise; must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_newBuilder()

int32_t dxfg_v4_IndexedTxModel_newBuilder ( graal_isolatethread_t * thread,
dxfg_v4_event_clazz_t eventType,
DXFG_OUT dxfg_v4_indexed_tx_model_builder_t ** indexedTxModelBuilder )

Creates a new builder of a model of the indexed events of the type.

Java: IndexedTxModel.newBuilder(Class).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]eventTypeThe type of the indexed events of the model.
[out]indexedTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_setAggregationPeriod()

int32_t dxfg_v4_IndexedTxModel_setAggregationPeriod ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_t * source,
dxfg_v4_time_period_t * aggregationPeriod )

Sets the aggregation period of the events.

Java: AbstractTxModel.setAggregationPeriod(TimePeriod).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
[in]aggregationPeriodThe new aggregation period of the events.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_IndexedTxModel_setSources()

int32_t dxfg_v4_IndexedTxModel_setSources ( graal_isolatethread_t * thread,
dxfg_v4_indexed_tx_model_t * source,
dxfg_v4_indexed_event_source_list * sources )

Sets the sources of the model: it subscribes to the new ones and unsubscribes from the old ones.

An empty list means all the sources.

Java: IndexedTxModel.setSources(Set).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
[in]sourcesThe new sources of the model; an empty list means all the sources.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_ObservableListModel_addListener()

int32_t dxfg_v4_ObservableListModel_addListener ( graal_isolatethread_t * thread,
dxfg_v4_observable_list_model_t * list,
dxfg_v4_observable_list_model_listener_t * listener )

Adds the listener to the list.

Java: ObservableListModel.addListener(ObservableListModelListener).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]listThe list handle.
[in]listenerThe listener handle.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_ObservableListModel_removeListener()

int32_t dxfg_v4_ObservableListModel_removeListener ( graal_isolatethread_t * thread,
dxfg_v4_observable_list_model_t * list,
dxfg_v4_observable_list_model_listener_t * listener )

Removes the listener from the list. If the listener is not added to the list, nothing happens.

Java: ObservableListModel.removeListener(ObservableListModelListener).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]listThe list handle.
[in]listenerThe listener handle.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_ObservableListModel_toArray()

int32_t dxfg_v4_ObservableListModel_toArray ( graal_isolatethread_t * thread,
dxfg_v4_observable_list_model_t * list,
DXFG_OUT dxfg_v4_event_type_list ** events )

Returns the events of the list as a new list of events.

The result is a snapshot: it does not change when the list changes. An empty list gives a list of size 0.

Java: the elements of ObservableListModel (a java.util.List).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]listThe list handle.
[out]eventsThe pointer to the variable that receives the events (release them with dxfg_v4_event_type_list_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_ObservableListModelListener_new()

int32_t dxfg_v4_ObservableListModelListener_new ( graal_isolatethread_t * thread,
dxfg_v4_observable_list_model_listener_function user_func,
void * user_data,
DXFG_OUT dxfg_v4_observable_list_model_listener_t ** observableListModelListener )

Creates a listener of the changes of a list that calls the function with the user data.

Add the listener to a list with dxfg_v4_ObservableListModel_addListener(). After the last handle of the listener is released the function is not called anymore and none of its calls is in progress, so the user data can be freed. Remove the listener from the list before releasing it, otherwise it stays added and does nothing, see dxfg_v4_JavaObjectHandler_release().

Java: ObservableListModelListener.modelChanged(ObservableListModelListener.Change).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]user_funcThe function to call after the list has changed; see dxfg_v4_observable_list_model_listener_function for the thread and the ownership of its data.
[in]user_dataThe pointer that is passed to the function as is; the SDK does not use it. It has to stay valid until the listener is released.
[out]observableListModelListenerThe pointer to the variable that receives the listener (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_addListener()

int32_t dxfg_v4_OrderBookModel_addListener ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model,
dxfg_v4_order_book_model_listener_t * listener )

Adds the listener to the order book model. A closed model does not add listeners.

Java: OrderBookModel.addListener(OrderBookModelListener).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model handle.
[in]listenerThe listener handle.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_attach()

int32_t dxfg_v4_OrderBookModel_attach ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model,
dxfg_v4_feed_t * feed )

Attaches the order book model to the feed: the model starts receiving the events of its symbol.

The feed keeps an attached model: releasing the handle of the model does not detach it. Detach the model with dxfg_v4_OrderBookModel_detach() or close it with dxfg_v4_OrderBookModel_close().

Java: OrderBookModel.attach(DXFeed).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model handle.
[in]feedThe feed to attach to.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_clear()

int32_t dxfg_v4_OrderBookModel_clear ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model )

Clears the subscription symbol and, with it, all the orders of the model.

This is a shortcut for dxfg_v4_OrderBookModel_setSymbol() with NULL.

Java: OrderBookModel.clear().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model handle.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_close()

int32_t dxfg_v4_OrderBookModel_close ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model )

Closes the order book model: it becomes permanently detached from all feeds and removes all its listeners.

Java: OrderBookModel.close().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model handle.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_detach()

int32_t dxfg_v4_OrderBookModel_detach ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model,
dxfg_v4_feed_t * feed )

Detaches the order book model from the feed.

Java: OrderBookModel.detach(DXFeed).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model handle.
[in]feedThe feed to detach from.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_getBuyOrders()

int32_t dxfg_v4_OrderBookModel_getBuyOrders ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model,
DXFG_OUT dxfg_v4_observable_list_model_t ** buyOrders )

Returns the buy orders (the bid side) of the order book model.

The orders are arranged by price: the first order is the top of the bid side (the highest price). The handle refers to the live list of the model: its content changes as the model receives events. The function creates a new handle on every call. Read the list with dxfg_v4_ObservableListModel_toArray().

Java: OrderBookModel.getBuyOrders().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model handle.
[out]buyOrdersThe pointer to the variable that receives the list (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_getExecutor()

int32_t dxfg_v4_OrderBookModel_getExecutor ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model,
DXFG_OUT dxfg_v4_executor_t ** executor )

Returns the executor that calls the listeners of the order book model.

Java: OrderBookModel.getExecutor().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model handle.
[out]executorThe pointer to the variable that receives the executor (release it with dxfg_v4_JavaObjectHandler_release()), or NULL if the default executor of the feed is used; must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_getFilter()

int32_t dxfg_v4_OrderBookModel_getFilter ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model,
DXFG_OUT dxfg_v4_order_book_model_filter_t * filter )

Returns the filter of an order book model.

Java: OrderBookModel.getFilter().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model.
[out]filterThe pointer to the variable that receives the filter of the model, a dxfg_v4_order_book_model_filter_t value; must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_getLotSize()

int32_t dxfg_v4_OrderBookModel_getLotSize ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model,
DXFG_OUT int32_t * lotSize )

Returns the lot size of the order book model.

The lot size is a multiplier applied to the sizes of the composite, regional and aggregate orders (1 by default).

Java: OrderBookModel.getLotSize().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model handle.
[out]lotSizeThe pointer to the variable that receives the lot size; must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_getSellOrders()

int32_t dxfg_v4_OrderBookModel_getSellOrders ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model,
DXFG_OUT dxfg_v4_observable_list_model_t ** sellOrders )

Returns the sell orders (the offer side) of the order book model.

The orders are arranged by price: the first order is the top of the offer side (the lowest price). The handle refers to the live list of the model: its content changes as the model receives events. The function creates a new handle on every call. Read the list with dxfg_v4_ObservableListModel_toArray().

Java: OrderBookModel.getSellOrders().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model handle.
[out]sellOrdersThe pointer to the variable that receives the list (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_getSymbol()

int32_t dxfg_v4_OrderBookModel_getSymbol ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model,
DXFG_OUT const char ** symbol )

Returns the subscription symbol of the order book model.

Java: OrderBookModel.getSymbol().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model handle.
[out]symbolThe pointer to the variable that receives the symbol (a UTF-8 string; release it with dxfg_v4_String_release()), or NULL if the model is not subscribed (the default); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_new()

int32_t dxfg_v4_OrderBookModel_new ( graal_isolatethread_t * thread,
DXFG_OUT dxfg_v4_order_book_model_t ** orderBookModel )

Creates a new order book model.

The model is not attached to any feed and not subscribed to any symbol. Its filter is ALL and its lot size is 1. Set the symbol with dxfg_v4_OrderBookModel_setSymbol() and attach the model with dxfg_v4_OrderBookModel_attach() to start receiving orders.

Java: new OrderBookModel().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[out]orderBookModelThe pointer to the variable that receives the model (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_removeListener()

int32_t dxfg_v4_OrderBookModel_removeListener ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model,
dxfg_v4_order_book_model_listener_t * listener )

Removes the listener from the order book model. If the listener is not added to the model, nothing happens.

Java: OrderBookModel.removeListener(OrderBookModelListener).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model handle.
[in]listenerThe listener handle.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_setExecutor()

int32_t dxfg_v4_OrderBookModel_setExecutor ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model,
dxfg_v4_executor_t * executor )

Sets the executor that calls the listeners of the order book model.

Java: OrderBookModel.setExecutor(Executor).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model handle.
[in]executorThe executor, or NULL to use the default executor of the feed.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_setFilter()

int32_t dxfg_v4_OrderBookModel_setFilter ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model,
dxfg_v4_order_book_model_filter_t filter )

Sets the filter of the order book model.

Java: OrderBookModel.setFilter(OrderBookModelFilter).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model handle.
[in]filterThe filter.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_setLotSize()

int32_t dxfg_v4_OrderBookModel_setLotSize ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model,
int32_t lotSize )

Sets the lot size of the order book model.

A lot size less than 1 is an error.

Java: OrderBookModel.setLotSize(int).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model handle.
[in]lotSizeThe lot size multiplier, 1 or greater.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModel_setSymbol()

int32_t dxfg_v4_OrderBookModel_setSymbol ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_t * model,
const char * symbol )

Sets the subscription symbol of the order book model.

Java: OrderBookModel.setSymbol(String).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe order book model handle.
[in]symbolThe symbol, a UTF-8 string, or NULL to unsubscribe (that removes the orders of the model).
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_OrderBookModelListener_new()

int32_t dxfg_v4_OrderBookModelListener_new ( graal_isolatethread_t * thread,
dxfg_v4_order_book_model_listener_function user_func,
void * user_data,
DXFG_OUT dxfg_v4_order_book_model_listener_t ** orderBookModelListener )

Creates a listener of the changes of an order book model that calls the function with the user data.

Add the listener to a model with dxfg_v4_OrderBookModel_addListener(). After the last handle of the listener is released the function is not called anymore and none of its calls is in progress, so the user data can be freed. Remove the listener from the model before releasing it, otherwise it stays added and does nothing, see dxfg_v4_JavaObjectHandler_release().

Java: OrderBookModelListener.modelChanged(OrderBookModelListener.Change).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]user_funcThe function to call after the model has changed; see dxfg_v4_order_book_model_listener_function for the thread and the ownership of its data.
[in]user_dataThe pointer that is passed to the function as is; the SDK does not use it. It has to stay valid until the listener is released.
[out]orderBookModelListenerThe pointer to the variable that receives the listener (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesEventModel_attach()

int32_t dxfg_v4_TimeSeriesEventModel_attach ( graal_isolatethread_t * thread,
dxfg_v4_time_series_event_model_t * model,
dxfg_v4_feed_t * feed )

Attaches the time-series event model to the feed: the model starts receiving the events of its symbol.

The feed keeps an attached model: releasing the handle of the model does not detach it. Detach the model with dxfg_v4_TimeSeriesEventModel_detach() or close it with dxfg_v4_TimeSeriesEventModel_close().

Java: TimeSeriesEventModel.attach(DXFeed).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe time-series event model handle.
[in]feedThe feed to attach to.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesEventModel_clear()

int32_t dxfg_v4_TimeSeriesEventModel_clear ( graal_isolatethread_t * thread,
dxfg_v4_time_series_event_model_t * model )

Clears the subscription symbol, sets the from-time to INT64_MAX and, with it, clears all the events of the model.

Java: TimeSeriesEventModel.clear().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe time-series event model handle.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesEventModel_close()

int32_t dxfg_v4_TimeSeriesEventModel_close ( graal_isolatethread_t * thread,
dxfg_v4_time_series_event_model_t * model )

Closes the time-series event model: it becomes permanently detached from all feeds and removes all its listeners.

Java: TimeSeriesEventModel.close().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe time-series event model handle.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesEventModel_detach()

int32_t dxfg_v4_TimeSeriesEventModel_detach ( graal_isolatethread_t * thread,
dxfg_v4_time_series_event_model_t * model,
dxfg_v4_feed_t * feed )

Detaches the time-series event model from the feed.

Java: TimeSeriesEventModel.detach(DXFeed).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe time-series event model handle.
[in]feedThe feed to detach from.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesEventModel_getEventsList()

int32_t dxfg_v4_TimeSeriesEventModel_getEventsList ( graal_isolatethread_t * thread,
dxfg_v4_time_series_event_model_t * model,
DXFG_OUT dxfg_v4_observable_list_model_t ** eventsList )

Returns the list of events of the time-series event model.

The events are ordered by their time. The handle refers to the live list of the model: its content changes as the model receives events. The function creates a new handle on every call. Read the list with dxfg_v4_ObservableListModel_toArray().

Java: TimeSeriesEventModel.getEventsList().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe time-series event model handle.
[out]eventsListThe pointer to the variable that receives the list (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesEventModel_getExecutor()

int32_t dxfg_v4_TimeSeriesEventModel_getExecutor ( graal_isolatethread_t * thread,
dxfg_v4_time_series_event_model_t * model,
DXFG_OUT dxfg_v4_executor_t ** executor )

Returns the executor that calls the listeners of the time-series event model.

Java: TimeSeriesEventModel.getExecutor().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe time-series event model handle.
[out]executorThe pointer to the variable that receives the executor (release it with dxfg_v4_JavaObjectHandler_release()), or NULL if the default executor of the feed is used; must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesEventModel_getFromTime()

int32_t dxfg_v4_TimeSeriesEventModel_getFromTime ( graal_isolatethread_t * thread,
dxfg_v4_time_series_event_model_t * model,
DXFG_OUT int64_t * fromTime )

Returns the time from which the time-series event model subscribes for events.

Java: TimeSeriesEventModel.getFromTime().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe time-series event model handle.
[out]fromTimeThe pointer to the variable that receives the time in milliseconds since the epoch (INT64_MAX means not subscribed, it is the default); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesEventModel_getSizeLimit()

int32_t dxfg_v4_TimeSeriesEventModel_getSizeLimit ( graal_isolatethread_t * thread,
dxfg_v4_time_series_event_model_t * model,
DXFG_OUT int32_t * sizeLimit )

Returns the size limit of the time-series event model.

Java: TimeSeriesEventModel.getSizeLimit().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe time-series event model handle.
[out]sizeLimitThe pointer to the variable that receives the size limit (INT32_MAX means no limit, it is the default); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesEventModel_getSymbol()

int32_t dxfg_v4_TimeSeriesEventModel_getSymbol ( graal_isolatethread_t * thread,
dxfg_v4_time_series_event_model_t * model,
DXFG_OUT dxfg_v4_symbol_t ** symbol )

Returns the subscription symbol of the time-series event model.

Java: TimeSeriesEventModel.getSymbol().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe time-series event model handle.
[out]symbolThe pointer to the variable that receives the symbol (release it with dxfg_v4_Symbol_release()), or NULL if the model is not subscribed (the default); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesEventModel_new()

int32_t dxfg_v4_TimeSeriesEventModel_new ( graal_isolatethread_t * thread,
dxfg_v4_event_clazz_t clazz,
DXFG_OUT dxfg_v4_time_series_event_model_t ** timeSeriesEventModel )

Creates a new model of time-series events of the event type.

The model is not attached to any feed and not subscribed to any symbol (its from-time is INT64_MAX). Set the symbol and the from-time with dxfg_v4_TimeSeriesEventModel_setSymbol() and dxfg_v4_TimeSeriesEventModel_setFromTime() and attach the model with dxfg_v4_TimeSeriesEventModel_attach() to start receiving events.

Java: new TimeSeriesEventModel(Class).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]clazzThe event type of the model; it has to be a time-series event type.
[out]timeSeriesEventModelThe pointer to the variable that receives the model (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesEventModel_setExecutor()

int32_t dxfg_v4_TimeSeriesEventModel_setExecutor ( graal_isolatethread_t * thread,
dxfg_v4_time_series_event_model_t * model,
dxfg_v4_executor_t * executor )

Sets the executor that calls the listeners of the time-series event model.

Java: TimeSeriesEventModel.setExecutor(Executor).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe time-series event model handle.
[in]executorThe executor, or NULL to use the default executor of the feed.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesEventModel_setFromTime()

int32_t dxfg_v4_TimeSeriesEventModel_setFromTime ( graal_isolatethread_t * thread,
dxfg_v4_time_series_event_model_t * model,
int64_t fromTime )

Sets the time from which the time-series event model subscribes for events.

Java: TimeSeriesEventModel.setFromTime(long).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe time-series event model handle.
[in]fromTimeThe time in milliseconds since the epoch; INT64_MAX unsubscribes.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesEventModel_setSizeLimit()

int32_t dxfg_v4_TimeSeriesEventModel_setSizeLimit ( graal_isolatethread_t * thread,
dxfg_v4_time_series_event_model_t * model,
int32_t sizeLimit )

Sets the size limit of the time-series event model.

A negative size limit is an error.

Java: TimeSeriesEventModel.setSizeLimit(int).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe time-series event model handle.
[in]sizeLimitThe size limit, not negative. When the limit is exceeded, the first events of the list are dropped.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesEventModel_setSymbol()

int32_t dxfg_v4_TimeSeriesEventModel_setSymbol ( graal_isolatethread_t * thread,
dxfg_v4_time_series_event_model_t * model,
dxfg_v4_symbol_t * symbol )

Sets the subscription symbol of the time-series event model.

Java: TimeSeriesEventModel.setSymbol(Object).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]modelThe time-series event model handle.
[in]symbolThe symbol, or NULL to unsubscribe (that removes the events of the model).
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_attach()

int32_t dxfg_v4_TimeSeriesTxModel_attach ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_t * source,
dxfg_v4_feed_t * feed )

Attaches the model to the feed.

Java: AbstractTxModel.attach(DXFeed).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
[in]feedThe feed to attach to.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_Builder_build()

int32_t dxfg_v4_TimeSeriesTxModel_Builder_build ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_builder_t * source,
DXFG_OUT dxfg_v4_time_series_tx_model_t ** timeSeriesTxModel )

Builds the model (the symbol must be set).

Java: TimeSeriesTxModel.Builder.build().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[out]timeSeriesTxModelThe pointer to the variable that receives the model (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_Builder_ignoreEventsFromPast()

int32_t dxfg_v4_TimeSeriesTxModel_Builder_ignoreEventsFromPast ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_builder_t * source,
int32_t ignoreEventFromPast,
DXFG_OUT dxfg_v4_time_series_tx_model_builder_t ** timeSeriesTxModelBuilder )

Sets whether the events with an index not greater than the last processed one are dropped (1) or delivered (0, default).

Java: TimeSeriesTxModel.Builder.ignoreEventsFromPast(boolean).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]ignoreEventFromPast1 to drop the events with an index not greater than the last processed one, 0 to deliver them.
[out]timeSeriesTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_Builder_ignoreRemoveEvents()

int32_t dxfg_v4_TimeSeriesTxModel_Builder_ignoreRemoveEvents ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_builder_t * source,
int32_t ignoreRemoveEvents,
DXFG_OUT dxfg_v4_time_series_tx_model_builder_t ** timeSeriesTxModelBuilder )

Sets whether the removed events are dropped (1) or delivered (0, default).

Java: TimeSeriesTxModel.Builder.ignoreRemoveEvents(boolean).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]ignoreRemoveEvents1 to drop the removed events, 0 to deliver them.
[out]timeSeriesTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_Builder_withAggregationPeriod()

int32_t dxfg_v4_TimeSeriesTxModel_Builder_withAggregationPeriod ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_builder_t * source,
dxfg_v4_time_period_t * aggregationPeriod,
DXFG_OUT dxfg_v4_time_series_tx_model_builder_t ** timeSeriesTxModelBuilder )

Sets the aggregation period of the events.

Java: AbstractTxModel.Builder.withAggregationPeriod(TimePeriod).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]aggregationPeriodThe aggregation period of the events.
[out]timeSeriesTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_Builder_withBatchProcessing()

int32_t dxfg_v4_TimeSeriesTxModel_Builder_withBatchProcessing ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_builder_t * source,
int32_t isBatchProcessing,
DXFG_OUT dxfg_v4_time_series_tx_model_builder_t ** timeSeriesTxModelBuilder )

Sets whether the listener gets all the pending transactions in one call (1, default) or one by one (0).

Java: AbstractTxModel.Builder.withBatchProcessing(boolean).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]isBatchProcessing1 to deliver all the pending transactions in one call, 0 to deliver them one by one.
[out]timeSeriesTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_Builder_withConfirmationTick()

int32_t dxfg_v4_TimeSeriesTxModel_Builder_withConfirmationTick ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_builder_t * source,
int32_t confirmationTick,
DXFG_OUT dxfg_v4_time_series_tx_model_builder_t ** timeSeriesTxModelBuilder )

Sets whether a new bar comes after the previous (closing) one, to confirm it (1), or alone (0, default).

With 1, the snapshot processing and the ascending sorting are on.

Java: TimeSeriesTxModel.Builder.withConfirmationTick(boolean).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]confirmationTick1 to deliver a new bar after the previous (closing) one, to confirm it, 0 to deliver it alone.
[out]timeSeriesTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_Builder_withEventPeek()

int32_t dxfg_v4_TimeSeriesTxModel_Builder_withEventPeek ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_builder_t * source,
void * eventPeek,
DXFG_OUT dxfg_v4_time_series_tx_model_builder_t ** timeSeriesTxModelBuilder )

Accepted for compatibility: the pointer is ignored, the model gets no event peek (a Java Consumer).

Java: TimeSeriesTxModel.Builder.withEventPeek(Consumer).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]eventPeekIgnored: pass NULL.
[out]timeSeriesTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_Builder_withExecutor()

int32_t dxfg_v4_TimeSeriesTxModel_Builder_withExecutor ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_builder_t * source,
dxfg_v4_executor_t * executor,
DXFG_OUT dxfg_v4_time_series_tx_model_builder_t ** timeSeriesTxModelBuilder )

Sets the executor that calls the listener (by default, the executor of the feed).

Java: AbstractTxModel.Builder.withExecutor(Executor).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]executorThe executor that calls the listener.
[out]timeSeriesTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_Builder_withFeed()

int32_t dxfg_v4_TimeSeriesTxModel_Builder_withFeed ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_builder_t * source,
dxfg_v4_feed_t * feed,
DXFG_OUT dxfg_v4_time_series_tx_model_builder_t ** timeSeriesTxModelBuilder )

Sets the feed the model is attached to.

Java: AbstractTxModel.Builder.withFeed(DXFeed).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]feedThe feed the model is attached to.
[out]timeSeriesTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_Builder_withFromTime()

int32_t dxfg_v4_TimeSeriesTxModel_Builder_withFromTime ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_builder_t * source,
int64_t fromTime,
DXFG_OUT dxfg_v4_time_series_tx_model_builder_t ** timeSeriesTxModelBuilder )

Sets the time to subscribe from, in milliseconds since the epoch (by default INT64_MAX: not subscribed).

Java: TimeSeriesTxModel.Builder.withFromTime(long).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]fromTimeThe time to subscribe from, in milliseconds since the epoch (INT64_MAX: not subscribed).
[out]timeSeriesTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_Builder_withListener()

int32_t dxfg_v4_TimeSeriesTxModel_Builder_withListener ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_builder_t * source,
dxfg_v4_tx_model_listener_t * listener,
DXFG_OUT dxfg_v4_time_series_tx_model_builder_t ** timeSeriesTxModelBuilder )

Sets the listener of the transactions.

Java: AbstractTxModel.Builder.withListener(TxModelListener).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]listenerThe listener of the transactions (see dxfg_v4_TxModelListener_new()).
[out]timeSeriesTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_Builder_withSnapshotProcessing()

int32_t dxfg_v4_TimeSeriesTxModel_Builder_withSnapshotProcessing ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_builder_t * source,
int32_t isSnapshotProcessing,
DXFG_OUT dxfg_v4_time_series_tx_model_builder_t ** timeSeriesTxModelBuilder )

Sets whether a snapshot is delivered as its resulting state (1) or as it comes (0, default).

Java: AbstractTxModel.Builder.withSnapshotProcessing(boolean).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]isSnapshotProcessing1 to deliver a snapshot as its resulting state (without the removed events), 0 to deliver it as it comes.
[out]timeSeriesTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_Builder_withSorting()

int32_t dxfg_v4_TimeSeriesTxModel_Builder_withSorting ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_builder_t * source,
dxfg_v4_TimeSeriesTxModelSortOrder_t sortOrder,
DXFG_OUT dxfg_v4_time_series_tx_model_builder_t ** timeSeriesTxModelBuilder )

Sets the order of the events of a snapshot.

Java: TimeSeriesTxModel.Builder.withSorting(TimeSeriesTxModel.SortOrder).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]sortOrderThe order of the events of a snapshot.
[out]timeSeriesTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_Builder_withSymbol()

int32_t dxfg_v4_TimeSeriesTxModel_Builder_withSymbol ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_builder_t * source,
dxfg_v4_symbol_t * symbol,
DXFG_OUT dxfg_v4_time_series_tx_model_builder_t ** timeSeriesTxModelBuilder )

Sets the symbol of the subscription.

Java: AbstractTxModel.Builder.withSymbol(Object).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe builder handle.
[in]symbolThe symbol to subscribe for (a dxfg_v4_symbol_t).
[out]timeSeriesTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_close()

int32_t dxfg_v4_TimeSeriesTxModel_close ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_t * source )

Closes the model: it is detached from all the feeds for good. Closing it again does nothing.

Java: AbstractTxModel.close().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_detach()

int32_t dxfg_v4_TimeSeriesTxModel_detach ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_t * source,
dxfg_v4_feed_t * feed )

Detaches the model from the feed.

Java: AbstractTxModel.detach(DXFeed).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
[in]feedThe feed to detach from.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_getFromTime()

int32_t dxfg_v4_TimeSeriesTxModel_getFromTime ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_t * source,
DXFG_OUT int64_t * fromTime )

Returns the time the model is subscribed from.

Java: TimeSeriesTxModel.getFromTime().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
[out]fromTimeThe pointer to the variable that receives the time in milliseconds since the epoch (INT64_MAX if the model is not subscribed); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_isBatchProcessing()

int32_t dxfg_v4_TimeSeriesTxModel_isBatchProcessing ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_t * source,
DXFG_OUT int32_t * batchProcessing )

Returns whether the listener gets all the pending transactions in one call.

Java: AbstractTxModel.isBatchProcessing().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
[out]batchProcessingThe pointer to the variable that receives 1 if enabled, 0 otherwise; must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_isSnapshotProcessing()

int32_t dxfg_v4_TimeSeriesTxModel_isSnapshotProcessing ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_t * source,
DXFG_OUT int32_t * snapshotProcessing )

Returns whether a snapshot is delivered as its resulting state (without the removed events).

Java: AbstractTxModel.isSnapshotProcessing().

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
[out]snapshotProcessingThe pointer to the variable that receives 1 if enabled, 0 otherwise; must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_newBuilder()

int32_t dxfg_v4_TimeSeriesTxModel_newBuilder ( graal_isolatethread_t * thread,
dxfg_v4_event_clazz_t eventType,
DXFG_OUT dxfg_v4_time_series_tx_model_builder_t ** timeSeriesTxModelBuilder )

Creates a new builder of a model of the time-series events of the type.

Java: TimeSeriesTxModel.newBuilder(Class).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]eventTypeThe type of the time-series events of the model.
[out]timeSeriesTxModelBuilderThe pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_setAggregationPeriod()

int32_t dxfg_v4_TimeSeriesTxModel_setAggregationPeriod ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_t * source,
dxfg_v4_time_period_t * aggregationPeriod )

Sets the aggregation period of the events.

Java: AbstractTxModel.setAggregationPeriod(TimePeriod).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
[in]aggregationPeriodThe new aggregation period of the events.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TimeSeriesTxModel_setFromTime()

int32_t dxfg_v4_TimeSeriesTxModel_setFromTime ( graal_isolatethread_t * thread,
dxfg_v4_time_series_tx_model_t * source,
int64_t fromTime )

Sets the time the model is subscribed from (INT64_MAX unsubscribes); the model gets a new snapshot.

Java: TimeSeriesTxModel.setFromTime(long).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]sourceThe model handle.
[in]fromTimeThe time to subscribe from, in milliseconds since the epoch; INT64_MAX unsubscribes.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.

◆ dxfg_v4_TxModelListener_new()

int32_t dxfg_v4_TxModelListener_new ( graal_isolatethread_t * thread,
dxfg_v4_TxModelListener_function_eventsReceived function_eventsReceived,
void * user_data,
DXFG_OUT dxfg_v4_tx_model_listener_t ** txModelListener )

Creates a listener that calls the function with the user data.

After the last handle of the listener is released (dxfg_v4_JavaObjectHandler_release()), the function is not called anymore and none of its calls is in progress, so the user data can be freed.

Java: TxModelListener.eventsReceived(IndexedEventSource, List, boolean).

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]function_eventsReceivedThe function to call when transactions are received; see dxfg_v4_TxModelListener_function_eventsReceived for the thread and the ownership of its data.
[in]user_dataThe pointer that is passed to the function as is; the SDK does not use it. It has to stay valid until the listener is released.
[out]txModelListenerThe pointer to the variable that receives the listener (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_v4_get_and_clear_thread_exception() to determine if an exception was thrown.