dxFeed Graal Native SDK 3.9.0
Loading...
Searching...
No Matches
PriceLevelService' functions

Functions

int32_t dxfg_PriceLevelService_new (graal_isolatethread_t *thread, const char *address, DXFG_OUT dxfg_price_level_service_t **service)
int32_t dxfg_PriceLevelService_getOrders (graal_isolatethread_t *thread, dxfg_price_level_service_t *service, dxfg_symbol_t *candleSymbol, dxfg_indexed_event_source_t *orderSource, int64_t from, int64_t to, const char *caller, DXFG_OUT dxfg_event_type_list **orders)
int32_t dxfg_PriceLevelService_getOrders2 (graal_isolatethread_t *thread, dxfg_price_level_service_t *service, dxfg_symbol_t *candleSymbol, dxfg_indexed_event_source_t *orderSource, int64_t from, int64_t to, DXFG_OUT dxfg_event_type_list **orders)
int32_t dxfg_PriceLevelService_getAuthOrderSource (graal_isolatethread_t *thread, dxfg_price_level_service_t *service, DXFG_OUT dxfg_auth_order_source_t **authOrderSource)
int32_t dxfg_PriceLevelService_getQuotes (graal_isolatethread_t *thread, dxfg_price_level_service_t *service, dxfg_symbol_t *candleSymbol, int64_t from, int64_t to, const char *caller, DXFG_OUT dxfg_event_type_list **quotes)
int32_t dxfg_PriceLevelService_getQuotes2 (graal_isolatethread_t *thread, dxfg_price_level_service_t *service, dxfg_symbol_t *candleSymbol, int64_t from, int64_t to, DXFG_OUT dxfg_event_type_list **quotes)
int32_t dxfg_PriceLevelService_close (graal_isolatethread_t *thread, dxfg_price_level_service_t *service)

Detailed Description

Function Documentation

◆ dxfg_PriceLevelService_close()

int32_t dxfg_PriceLevelService_close ( graal_isolatethread_t * thread,
dxfg_price_level_service_t * service )

Closes the PriceLevelService and its RMI endpoint.

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

◆ dxfg_PriceLevelService_getAuthOrderSource()

int32_t dxfg_PriceLevelService_getAuthOrderSource ( graal_isolatethread_t * thread,
dxfg_price_level_service_t * service,
DXFG_OUT dxfg_auth_order_source_t ** authOrderSource )

Returns available to the client order sources and symbols for each OrderSource. Order source and symbols are filtered according to the client permissions. Symbols and order sources view is built as of now, e.g. the response contains only existing data (for example, no symbols that were delisted)

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]serviceThe PriceLevelService.
[out]authOrderSourceThe pointer to the AuthOrderSource.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_get_and_clear_thread_exception_t() to determine if an exception was thrown. Use dxfg_JavaObjectHandler_release() to free the AuthOrderSource handle.

◆ dxfg_PriceLevelService_getOrders()

int32_t dxfg_PriceLevelService_getOrders ( graal_isolatethread_t * thread,
dxfg_price_level_service_t * service,
dxfg_symbol_t * candleSymbol,
dxfg_indexed_event_source_t * orderSource,
int64_t from,
int64_t to,
const char * caller,
DXFG_OUT dxfg_event_type_list ** orders )

Returns a list of price levels for the specified CandleSymbol within passed from and to times. The events are ordered by time in the collection.

Passed candle symbol shall contain supported CandlePeriod and a custom attribute called granularity with the key GRANULARITY_ATTRIBUTE_KEY ("gr"). Granularity value shall be represented by an integer value in seconds. The minimal value for granularity is 1 second.

If passed CandlePeriod or granularity value are not supported by the service, the empty list will be returned.

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]serviceThe PriceLevelService.
[in]candleSymbolThe CandleSymbol to request.
[in]orderSourceThe OrderSource to request.
[in]fromThe "from" time in UTC.
[in]toThe "to" time in UTC.
[in]callerThe caller identifier.
[out]ordersThe pointer to the orders list.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_get_and_clear_thread_exception_t() to determine if an exception was thrown. Use dxfg_CList_EventType_release() to free the orders list.

◆ dxfg_PriceLevelService_getOrders2()

int32_t dxfg_PriceLevelService_getOrders2 ( graal_isolatethread_t * thread,
dxfg_price_level_service_t * service,
dxfg_symbol_t * candleSymbol,
dxfg_indexed_event_source_t * orderSource,
int64_t from,
int64_t to,
DXFG_OUT dxfg_event_type_list ** orders )

Returns a list of price levels for the specified CandleSymbol within passed from and to times. The events are ordered by time in the collection.

Passed candle symbol shall contain supported CandlePeriod and a custom attribute called granularity with the key GRANULARITY_ATTRIBUTE_KEY ("gr"). Granularity value shall be represented by an integer value in seconds. The minimal value for granularity is 1 second.

If passed CandlePeriod or granularity value are not supported by the service, the empty list will be returned.

The caller is set to a default value = "dxfg".

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]serviceThe PriceLevelService.
[in]candleSymbolThe CandleSymbol to request.
[in]orderSourceThe OrderSource to request.
[in]fromThe "from" time in UTC.
[in]toThe "to" time in UTC.
[out]ordersThe pointer to the orders list.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_get_and_clear_thread_exception_t() to determine if an exception was thrown. Use dxfg_CList_EventType_release() to free the orders list.

◆ dxfg_PriceLevelService_getQuotes()

int32_t dxfg_PriceLevelService_getQuotes ( graal_isolatethread_t * thread,
dxfg_price_level_service_t * service,
dxfg_symbol_t * candleSymbol,
int64_t from,
int64_t to,
const char * caller,
DXFG_OUT dxfg_event_type_list ** quotes )

Returns a list of quotes for the specified CandleSymbol within passed from and to times. The quotes are ordered by time in the collection.

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]serviceThe PriceLevelService.
[in]candleSymbolThe CandleSymbol to request.
[in]fromThe "from" time in UTC.
[in]toThe "to" time in UTC.
[in]callerThe caller identifier.
[out]quotesThe pointer to the quotes list.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_get_and_clear_thread_exception_t() to determine if an exception was thrown. Use dxfg_CList_EventType_release() to free the quotes list.

◆ dxfg_PriceLevelService_getQuotes2()

int32_t dxfg_PriceLevelService_getQuotes2 ( graal_isolatethread_t * thread,
dxfg_price_level_service_t * service,
dxfg_symbol_t * candleSymbol,
int64_t from,
int64_t to,
DXFG_OUT dxfg_event_type_list ** quotes )

Returns a list of quotes for the specified CandleSymbol within passed from and to times. The quotes are ordered by time in the collection.

The caller is set to a default value = "dxfg".

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]serviceThe PriceLevelService.
[in]candleSymbolThe CandleSymbol to request.
[in]fromThe "from" time in UTC.
[in]toThe "to" time in UTC.
[out]quotesThe pointer to the quotes list.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_get_and_clear_thread_exception_t() to determine if an exception was thrown. Use dxfg_CList_EventType_release() to free the quotes list.

◆ dxfg_PriceLevelService_new()

int32_t dxfg_PriceLevelService_new ( graal_isolatethread_t * thread,
const char * address,
DXFG_OUT dxfg_price_level_service_t ** service )

Creates a new PriceLevelService instance and connects it to an RMI endpoint. The handle of this instance will be written to the passed pointer.

Parameters
[in]threadThe current GraalVM Isolate's thread.
[in]addressThe RMI endpoint's address.
[out]serviceThe pointer to the service's handle.
Returns
DXFG_EXECUTE_SUCCESSFULLY (0) on successful function execution or DXFG_EXECUTE_FAIL (-1) on error. Use dxfg_get_and_clear_thread_exception_t() to determine if an exception was thrown. Use dxfg_JavaObjectHandler_release() to free the service handle.