dxFeed Graal Native SDK 3.11.0
Loading...
Searching...
No Matches
dxfg_candlewebservice.h
Go to the documentation of this file.
1// Copyright (c) 2025 Devexperts LLC.
2// SPDX-License-Identifier: MPL-2.0
3
8
9#ifndef DXFG_CANDLEWEBSERVICE_H
10#define DXFG_CANDLEWEBSERVICE_H
11
12#ifdef __cplusplus
13extern "C" {
14# include <cstdint>
15#else
16# include <stdint.h>
17#endif
18
19#include "dxfg_common.h"
20
21#include "dxfg_javac.h"
22#include "graal_isolate.h"
23
24#include "dxfg_events.h"
25
41
53
66
81
95
114
141 dxfg_event_clazz_t eventClazz, dxfg_symbol_t *symbol, int64_t fromTime,
142 int64_t toTime, DXFG_OUT dxfg_event_type_list **events);
143
159 dxfg_history_endpoint_builder_t *builder, const char *address);
160
176 dxfg_history_endpoint_builder_t *builder, const char *userName);
177
193 dxfg_history_endpoint_builder_t *builder, const char *password);
194
210 dxfg_history_endpoint_builder_t *builder, const char *authToken);
211
226
240
258 // end of CandleWebService
260
261#ifdef __cplusplus
262}
263#endif
264
265#endif // DXFG_CANDLEWEBSERVICE_H
dxFeed Graal Native SDK Common declarations
dxFeed Graal Native SDK Events functions and types declarations
dxfg_event_clazz_t
The class of an event: tells which structure an event (dxfg_event_type_t) is.
Definition dxfg_events.h:185
dxFeed Graal Native SDK Java functions and types declarations
The functions of GraalVM that create, attach to and tear down an isolate, the instance of the SDK in ...
struct __graal_isolatethread_t graal_isolatethread_t
The state of one thread attached to an isolate: the first parameter (thread) of the SDK functions.
Definition graal_isolate.h:59
int32_t dxfg_HistoryEndpoint_Builder_withAddress(graal_isolatethread_t *thread, dxfg_history_endpoint_builder_t *builder, const char *address)
Sets the address of the history service.
int32_t dxfg_HistoryEndpoint_Builder_withFormat(graal_isolatethread_t *thread, dxfg_history_endpoint_builder_t *builder, dxfg_history_endpoint_format_t format)
Sets the format of the data that the history service sends.
int32_t dxfg_HistoryEndpoint_Builder_withCompression(graal_isolatethread_t *thread, dxfg_history_endpoint_builder_t *builder, dxfg_history_endpoint_compression_t compression)
Sets the compression of the data that the history service sends.
dxfg_history_endpoint_compression_t
The compression of the data that the history service sends.
Definition dxfg_candlewebservice.h:73
int32_t dxfg_HistoryEndpoint_Builder_build(graal_isolatethread_t *thread, dxfg_history_endpoint_builder_t *builder, DXFG_OUT dxfg_history_endpoint_t **endpoint)
Creates a history endpoint with the settings of the builder.
int32_t dxfg_HistoryEndpoint_Builder_withPassword(graal_isolatethread_t *thread, dxfg_history_endpoint_builder_t *builder, const char *password)
Sets the password that the requests to the history service use.
int32_t dxfg_HistoryEndpoint_Builder_withAuthToken(graal_isolatethread_t *thread, dxfg_history_endpoint_builder_t *builder, const char *authToken)
Sets the authentication token that the requests to the history service use.
int32_t dxfg_HistoryEndpoint_getTimeSeries(graal_isolatethread_t *thread, dxfg_history_endpoint_t *endpoint, dxfg_event_clazz_t eventClazz, dxfg_symbol_t *symbol, int64_t fromTime, int64_t toTime, DXFG_OUT dxfg_event_type_list **events)
Requests the time series events of a symbol within a time range from the history service.
dxfg_history_endpoint_format_t
The format of the data that the history service sends.
Definition dxfg_candlewebservice.h:87
int32_t dxfg_HistoryEndpoint_Builder_withUserName(graal_isolatethread_t *thread, dxfg_history_endpoint_builder_t *builder, const char *userName)
Sets the user name that the requests to the history service use.
int32_t dxfg_HistoryEndpoint_newBuilder(graal_isolatethread_t *thread, DXFG_OUT dxfg_history_endpoint_builder_t **builder)
Creates a builder of history endpoints with the default settings.
@ DXFG_HISTORY_ENDPOINT_COMPRESSION_ZIP
Definition dxfg_candlewebservice.h:77
@ DXFG_HISTORY_ENDPOINT_COMPRESSION_GZIP
Definition dxfg_candlewebservice.h:79
@ DXFG_HISTORY_ENDPOINT_COMPRESSION_NONE
Definition dxfg_candlewebservice.h:75
@ DXFG_HISTORY_ENDPOINT_FORMAT_CSV
Definition dxfg_candlewebservice.h:91
@ DXFG_HISTORY_ENDPOINT_FORMAT_TEXT
Definition dxfg_candlewebservice.h:89
@ DXFG_HISTORY_ENDPOINT_FORMAT_BINARY
Definition dxfg_candlewebservice.h:93
#define DXFG_OUT
Definition dxfg_common.h:37
A list of events.
Definition dxfg_events.h:1211
A handle of a builder of history endpoints (Java HistoryEndpoint.Builder); release it with dxfg_JavaO...
Definition dxfg_candlewebservice.h:62
dxfg_java_object_handler handler
Definition dxfg_candlewebservice.h:64
A handle of a history endpoint, the client of the history service; release it with dxfg_JavaObjectHan...
Definition dxfg_candlewebservice.h:49
dxfg_java_object_handler handler
Definition dxfg_candlewebservice.h:51
The handle of a Java object: the reference by which the C code refers to an object that lives in Java...
Definition dxfg_javac.h:60
The base structure of every symbol: the first field of all the symbol structures.
Definition dxfg_events.h:89