|
dxFeed Graal Native SDK 3.13.0
|
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...
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_withEventPeekFunction (graal_isolatethread_t *thread, dxfg_v4_time_series_tx_model_builder_t *source, dxfg_v4_time_series_tx_model_event_peek_function eventPeek, void *userData, DXFG_OUT dxfg_v4_time_series_tx_model_builder_t **timeSeriesTxModelBuilder) |
| Sets the event peek of the model: a function that sees each event before the listener gets the list. | |
| 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. | |
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.
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().
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().
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.
| 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.
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.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | orders | All 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_data | The pointer that was passed to dxfg_ObservableListModelListener_new(); the SDK does not use it. |
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.
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.
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.
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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The model that has changed. The handle is valid during the call only. |
| [in] | user_data | The pointer that was passed to dxfg_OrderBookModelListener_new(); the SDK does not use it. |
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.
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().
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().
A handle of a Java TimeSeriesTxModel.Builder object; release it with dxfg_JavaObjectHandler_release().
The builder of dxfg_time_series_tx_model_t, see dxfg_TimeSeriesTxModel_newBuilder().
| typedef void(*) dxfg_v4_time_series_tx_model_event_peek_function(graal_isolatethread_t *thread, dxfg_v4_event_type_t *event, void *userData) |
The event peek function of a time series model, see dxfg_v4_TimeSeriesTxModel_Builder_withEventPeekFunction().
The model calls it for each event of a transaction or a snapshot, in the order of the list, before its listener gets the list; it runs on the thread of the model's executor (the thread that calls the listener), not concurrently with itself for one model. The event is valid during the call only: the SDK frees it after the function returns.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | event | The event; do not keep or release it. |
| [in] | userData | The user data given to dxfg_v4_TimeSeriesTxModel_Builder_withEventPeekFunction(). |
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.
The order in which the events of a snapshot are delivered by a time-series transactional model.
Java: TimeSeriesTxModel.SortOrder.
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().
| 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.
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.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The source of the events. It is valid during the call only. |
| [in] | events | The 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] | isSnapshot | 1 if the events are a snapshot (the state kept for the source has to be cleared), 0 otherwise. |
| [in] | user_data | The pointer that was passed to dxfg_TxModelListener_new(); the SDK does not use it. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The indexed event model handle. |
| [in] | feed | The feed to attach to. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The indexed event model handle. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The indexed event model handle. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The indexed event model handle. |
| [in] | feed | The feed to detach from. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The indexed event model handle. |
| [out] | eventsList | The pointer to the variable that receives the list (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The indexed event model handle. |
| [out] | executor | The 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. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The indexed event model handle. |
| [out] | sizeLimit | The pointer to the variable that receives the size limit (INT32_MAX means no limit, it is the default); must not be NULL. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The indexed event model handle. |
| [out] | symbol | The 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. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | clazz | The event type of the model; it has to be an indexed event type. |
| [out] | indexedEventModel | The pointer to the variable that receives the model (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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.
The executor of a shared event queue (dxfg_v4_EventQueue_getExecutor()) makes the polls of the queue call the listeners; the executor of a subscription attached to a queue is refused with IllegalStateException (see Event queue (v4)).
Java: IndexedEventModel.setExecutor(Executor).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The indexed event model handle. |
| [in] | executor | The executor, or NULL to use the default executor of the feed. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The indexed event model handle. |
| [in] | sizeLimit | The size limit, not negative. When the limit is exceeded, the first events of the list are dropped. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The indexed event model handle. |
| [in] | symbol | The symbol, or NULL to unsubscribe (that removes the events of the model). |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| [in] | feed | The feed to attach to. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [out] | indexedTxModel | The pointer to the variable that receives the model (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | aggregationPeriod | The aggregation period of the events. |
| [out] | indexedTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | isBatchProcessing | 1 to deliver all the pending transactions in one call, 0 to deliver them one by one. |
| [out] | indexedTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
The executor of a shared event queue (dxfg_v4_EventQueue_getExecutor()) makes the polls of the queue call the listeners; the executor of a subscription attached to a queue is refused with IllegalStateException (see Event queue (v4)).
Java: AbstractTxModel.Builder.withExecutor(Executor).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | executor | The executor that calls the listener. |
| [out] | indexedTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | feed | The feed the model is attached to. |
| [out] | indexedTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | listener | The listener of the transactions (see dxfg_v4_TxModelListener_new()). |
| [out] | indexedTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | isSnapshotProcessing | 1 to deliver a snapshot as its resulting state (without the removed events), 0 to deliver it as it comes. |
| [out] | indexedTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | sources | The sources of the events; an empty list means all the sources. |
| [out] | indexedTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | symbol | The symbol to subscribe for (a dxfg_v4_symbol_t). |
| [out] | indexedTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| [in] | feed | The feed to detach from. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| [out] | sources | The pointer to the variable that receives the sources (release them with dxfg_v4_indexed_event_source_list_release()); must not be NULL. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| [out] | batchProcessing | The pointer to the variable that receives 1 if enabled, 0 otherwise; must not be NULL. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| [out] | snapshotProcessing | The pointer to the variable that receives 1 if enabled, 0 otherwise; must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | eventType | The type of the indexed events of the model. |
| [out] | indexedTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| [in] | aggregationPeriod | The new aggregation period of the events. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| [in] | sources | The new sources of the model; an empty list means all the sources. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | list | The list handle. |
| [in] | listener | The listener handle. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | list | The list handle. |
| [in] | listener | The listener handle. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | list | The list handle. |
| [out] | events | The pointer to the variable that receives the events (release them with dxfg_v4_event_type_list_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | user_func | The 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_data | The 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] | observableListModelListener | The pointer to the variable that receives the listener (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model handle. |
| [in] | listener | The listener handle. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model handle. |
| [in] | feed | The feed to attach to. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model handle. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model handle. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model handle. |
| [in] | feed | The feed to detach from. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model handle. |
| [out] | buyOrders | The pointer to the variable that receives the list (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model handle. |
| [out] | executor | The 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. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model. |
| [out] | filter | The pointer to the variable that receives the filter of the model, a dxfg_v4_order_book_model_filter_t value; must not be NULL. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model handle. |
| [out] | lotSize | The pointer to the variable that receives the lot size; must not be NULL. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model handle. |
| [out] | sellOrders | The pointer to the variable that receives the list (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model handle. |
| [out] | symbol | The 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. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [out] | orderBookModel | The pointer to the variable that receives the model (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model handle. |
| [in] | listener | The listener handle. |
| 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.
The executor of a shared event queue (dxfg_v4_EventQueue_getExecutor()) makes the polls of the queue call the listeners; the executor of a subscription attached to a queue is refused with IllegalStateException (see Event queue (v4)).
Java: OrderBookModel.setExecutor(Executor).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model handle. |
| [in] | executor | The executor, or NULL to use the default executor of the feed. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model handle. |
| [in] | filter | The filter. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model handle. |
| [in] | lotSize | The lot size multiplier, 1 or greater. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The order book model handle. |
| [in] | symbol | The symbol, a UTF-8 string, or NULL to unsubscribe (that removes the orders of the model). |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | user_func | The 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_data | The 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] | orderBookModelListener | The pointer to the variable that receives the listener (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The time-series event model handle. |
| [in] | feed | The feed to attach to. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The time-series event model handle. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The time-series event model handle. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The time-series event model handle. |
| [in] | feed | The feed to detach from. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The time-series event model handle. |
| [out] | eventsList | The pointer to the variable that receives the list (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The time-series event model handle. |
| [out] | executor | The 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. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The time-series event model handle. |
| [out] | fromTime | The 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. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The time-series event model handle. |
| [out] | sizeLimit | The pointer to the variable that receives the size limit (INT32_MAX means no limit, it is the default); must not be NULL. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The time-series event model handle. |
| [out] | symbol | The 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. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | clazz | The event type of the model; it has to be a time-series event type. |
| [out] | timeSeriesEventModel | The pointer to the variable that receives the model (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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.
The executor of a shared event queue (dxfg_v4_EventQueue_getExecutor()) makes the polls of the queue call the listeners; the executor of a subscription attached to a queue is refused with IllegalStateException (see Event queue (v4)).
Java: TimeSeriesEventModel.setExecutor(Executor).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The time-series event model handle. |
| [in] | executor | The executor, or NULL to use the default executor of the feed. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The time-series event model handle. |
| [in] | fromTime | The time in milliseconds since the epoch; INT64_MAX unsubscribes. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The time-series event model handle. |
| [in] | sizeLimit | The size limit, not negative. When the limit is exceeded, the first events of the list are dropped. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | model | The time-series event model handle. |
| [in] | symbol | The symbol, or NULL to unsubscribe (that removes the events of the model). |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| [in] | feed | The feed to attach to. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [out] | timeSeriesTxModel | The pointer to the variable that receives the model (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | ignoreEventFromPast | 1 to drop the events with an index not greater than the last processed one, 0 to deliver them. |
| [out] | timeSeriesTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | ignoreRemoveEvents | 1 to drop the removed events, 0 to deliver them. |
| [out] | timeSeriesTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | aggregationPeriod | The aggregation period of the events. |
| [out] | timeSeriesTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | isBatchProcessing | 1 to deliver all the pending transactions in one call, 0 to deliver them one by one. |
| [out] | timeSeriesTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | confirmationTick | 1 to deliver a new bar after the previous (closing) one, to confirm it, 0 to deliver it alone. |
| [out] | timeSeriesTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
For an event peek that works, use dxfg_v4_TimeSeriesTxModel_Builder_withEventPeekFunction().
Java: TimeSeriesTxModel.Builder.withEventPeek(Consumer).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | eventPeek | Ignored: pass NULL. |
| [out] | timeSeriesTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| int32_t dxfg_v4_TimeSeriesTxModel_Builder_withEventPeekFunction | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_time_series_tx_model_builder_t * | source, | ||
| dxfg_v4_time_series_tx_model_event_peek_function | eventPeek, | ||
| void * | userData, | ||
| DXFG_OUT dxfg_v4_time_series_tx_model_builder_t ** | timeSeriesTxModelBuilder ) |
Sets the event peek of the model: a function that sees each event before the listener gets the list.
The function is called as dxfg_v4_time_series_tx_model_event_peek_function says. NULL removes the event peek set before, and so does dxfg_v4_TimeSeriesTxModel_Builder_withEventPeek(); the last call before dxfg_v4_TimeSeriesTxModel_Builder_build() wins. The library reports the function with DXFG_V4_FEATURE_TIME_SERIES_TX_MODEL_EVENT_PEEK.
The event peek is a native listener without a handle of its own: it is not called inside the tasks of a closed event queue (as the listeners are not) and after dxfg_v4_NativeListener_deactivateAll(); the release of the builder or model handles does not stop it. The function pointer and the user data must stay valid while the model can still deliver events: until the model is closed and its executor has no pending notifications, or until dxfg_v4_NativeListener_deactivateAll() returns.
Java: TimeSeriesTxModel.Builder.withEventPeek(Consumer) with a Consumer that calls eventPeek.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle; must not be NULL. |
| [in] | eventPeek | The event peek function, or NULL for none. |
| [in] | userData | The user data passed to eventPeek, may be NULL. |
| [out] | timeSeriesTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
The executor of a shared event queue (dxfg_v4_EventQueue_getExecutor()) makes the polls of the queue call the listeners; the executor of a subscription attached to a queue is refused with IllegalStateException (see Event queue (v4)).
Java: AbstractTxModel.Builder.withExecutor(Executor).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | executor | The executor that calls the listener. |
| [out] | timeSeriesTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | feed | The feed the model is attached to. |
| [out] | timeSeriesTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | fromTime | The time to subscribe from, in milliseconds since the epoch (INT64_MAX: not subscribed). |
| [out] | timeSeriesTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | listener | The listener of the transactions (see dxfg_v4_TxModelListener_new()). |
| [out] | timeSeriesTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | isSnapshotProcessing | 1 to deliver a snapshot as its resulting state (without the removed events), 0 to deliver it as it comes. |
| [out] | timeSeriesTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | sortOrder | The order of the events of a snapshot. |
| [out] | timeSeriesTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The builder handle. |
| [in] | symbol | The symbol to subscribe for (a dxfg_v4_symbol_t). |
| [out] | timeSeriesTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| [in] | feed | The feed to detach from. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| [out] | fromTime | The 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. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| [out] | batchProcessing | The pointer to the variable that receives 1 if enabled, 0 otherwise; must not be NULL. |
| 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().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| [out] | snapshotProcessing | The pointer to the variable that receives 1 if enabled, 0 otherwise; must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | eventType | The type of the time-series events of the model. |
| [out] | timeSeriesTxModelBuilder | The pointer to the variable that receives the builder (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| [in] | aggregationPeriod | The new aggregation period of the events. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | source | The model handle. |
| [in] | fromTime | The time to subscribe from, in milliseconds since the epoch; INT64_MAX unsubscribes. |
| 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).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | function_eventsReceived | The function to call when transactions are received; see dxfg_v4_TxModelListener_function_eventsReceived for the thread and the ownership of its data. |
| [in] | user_data | The 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] | txModelListener | The pointer to the variable that receives the listener (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |