|
dxFeed Graal Native SDK 3.9.0
|
| int32_t dxfg_PriceLevelService_close | ( | graal_isolatethread_t * | thread, |
| dxfg_price_level_service_t * | service ) |
Closes the PriceLevelService and its RMI endpoint.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | service | The PriceLevelService. |
| 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)
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | service | The PriceLevelService. |
| [out] | authOrderSource | The pointer to the AuthOrderSource. |
| 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.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | service | The PriceLevelService. |
| [in] | candleSymbol | The CandleSymbol to request. |
| [in] | orderSource | The OrderSource to request. |
| [in] | from | The "from" time in UTC. |
| [in] | to | The "to" time in UTC. |
| [in] | caller | The caller identifier. |
| [out] | orders | The pointer to the orders list. |
| 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".
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | service | The PriceLevelService. |
| [in] | candleSymbol | The CandleSymbol to request. |
| [in] | orderSource | The OrderSource to request. |
| [in] | from | The "from" time in UTC. |
| [in] | to | The "to" time in UTC. |
| [out] | orders | The pointer to the orders list. |
| 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.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | service | The PriceLevelService. |
| [in] | candleSymbol | The CandleSymbol to request. |
| [in] | from | The "from" time in UTC. |
| [in] | to | The "to" time in UTC. |
| [in] | caller | The caller identifier. |
| [out] | quotes | The pointer to the quotes list. |
| 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".
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | service | The PriceLevelService. |
| [in] | candleSymbol | The CandleSymbol to request. |
| [in] | from | The "from" time in UTC. |
| [in] | to | The "to" time in UTC. |
| [out] | quotes | The pointer to the quotes list. |
| 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.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | address | The RMI endpoint's address. |
| [out] | service | The pointer to the service's handle. |