dxFeed Graal CXX API v7.0.0
Loading...
Searching...
No Matches
OnDemandService.hpp
1// Copyright (c) 2025 Devexperts LLC.
2// SPDX-License-Identifier: MPL-2.0
3
4#pragma once
5
6#include "../internal/Conf.hpp"
7
9
10#include "../entity/SharedEntity.hpp"
11#include "../internal/JavaObjectHandle.hpp"
12
13#include <memory>
14
15/**
16 * \defgroup dxfcpp_ondemand "On Demand" Module
17 * \ingroup dxfcpp_modules
18 * @{
19 */
20
22
23struct DXEndpoint;
24
25/**
26 * Provides on-demand historical tick data replay controls.
27 * This class is used to seamlessly transition from ordinary real-time or delayed data feed to the replay of the
28 * tick-by-tick history of market data behaviour without any changes to the code that consumes and process these market
29 * events.
30 *
31 * <p>As single OnDemandService instance is conceptually associated with each DXEndpoint endpoint instance with the role
32 * of @ref DXEndpoint::Role::FEED "FEED" or @ref DXEndpoint::Role::ON_DEMAND_FEED "ON_DEMAND_FEED".
33 * You can retrieve OnDemandService instance that is associated with a given
34 * DXEndpoint using @ref OnDemandService::getInstance(std::shared_ptr<DXEndpoint>) "getInstance(endpoint)" method.
35 *
36 * <p>For example, OnDemandService instance for a default DXFeed that is featured in the documentation of DXFeed class
37 * and is retrieved via
38 * @ref DXFeed::getInstance() "DXFeed::getInstance()" method can be acquired with the following code:
39 * <pre><tt>
40 * @ref DXEndpoint "auto" endpoint = DXEndpoint::getInstance();
41 * @ref OnDemandService "auto" onDemand = OnDemandService::@ref
42 * OnDemandService::getInstance(std::shared_ptr<DXEndpoint>) "getInstance"(endpoint);
43 * </tt></pre>
44 *
45 * This instance can be used for on-demand historical tick data replay only when endpoint is connected to
46 * the on-demand data provider and the appropriate credentials are provided.
47 * @ref OnDemandService::isReplaySupported() "isReplaySupported" returns `true` when it is so.
48 *
49 * <p>On-demand replay is started with @ref OnDemandService::replay() "replay" method that takes time as a parameter.
50 * DXFeed is then disconnected from other data providers, pre-buffers historical tick data for replay,
51 * and starts replay of the data as if it was coming from the data feeds now. All the usual APIs that are
52 * part of DXFeed like @ref DXFeedSubscription "subscription" and various dxFeed models
53 * can be used normally as with the ordinary real-time or delayed data feed.
54 *
55 * <p>Replay speed can be changed on the fly with @ref OnDemandService::setSpeed() "setSpeed" method or it can be set
56 * initially when starting replay with a two-argument version of @ref OnDemandService::replay() "replay" method.
57 * @ref OnDemandService::pause() "pause" method is the same as @ref OnDemandService::setSpeed() "setSpeed(0)".
58 *
59 * <p>@ref OnDemandService::stopAndResume() "stopAndResume" method stops data replay and resumes ordinary real-time or
60 * delayed data feed that was used before @ref OnDemandService::replay() "replay" method was invoked. Endpoints with a
61 * role of
62 * @ref DXEndpoint::Role::ON_DEMAND_FEED "ON_DEMAND_FEED" do not have an ordinary feed (they are essentially on-demand
63 * only) and thus @ref OnDemandService::stopAndResume() "stopAndResume" method works like @ref
64 * OnDemandService::stopAndClear() "stopAndClear" for them.
65 *
66 * <h3>State and change notifications</h3>
67 *
68 * On-demand historical tick data replay state can be queried with @ref OnDemandService::isReplaySupported()
69 * "isReplaySupported",
70 * @ref OnDemandService::isReplay() "isReplay", @ref OnDemandService::getSpeed() "getSpeed", and @ref
71 * OnDemandService::getTime() "getTime" methods.
72 *
73 * <h3>Threads and locks</h3>
74 *
75 * This class is thread-safe and can be used concurrently from multiple threads without external synchronization.
76 */
78 /// The alias to a type of shared pointer to the OnDemandService object
79 using Ptr = std::shared_ptr<OnDemandService>;
80
81 /// The alias to a type of unique pointer to the OnDemandService object
83
84 private:
85 JavaObjectHandle<OnDemandService> handle_{};
86 std::shared_ptr<DXEndpoint> endpoint_{};
87
88 protected:
89 OnDemandService() noexcept;
90
91 public:
92 ~OnDemandService() noexcept override;
93
94 /**
95 * Returns on-demand service for the default DXEndpoint instance with
96 * @ref DXEndpoint::Role::ON_DEMAND_FEED "ON_DEMAND_FEED" role that is
97 * not connected to any other real-time or delayed data feed.
98 * This method is a shortcut for:
99 * <pre><tt>
100 * OnDemandService::@ref OnDemandService::getInstance(std::shared_ptr<DXEndpoint>) "getInstance"(@ref DXEndpoint
101 * "DXEndpoint"::@ref DXEndpoint::getInstance(DXEndpoint::Role)
102 * "getInstance"(DXEndpoint::Role::ON_DEMAND_FEED))</tt></pre>
103 *
104 * <p>If you need an instance of OnDemandService to seamlessly switch from other real-time or delayed
105 * data feed to on-demand historical tick data replay, then use
106 * {@ref OnDemandService::getInstance(std::shared_ptr<DXEndpoint>) "getInstance(endpoint)" method for a specific
107 * `endpoint` that you are using.
108 *
109 * @return on-demand endpoint for the default DXEndpoint instance.
110 */
111 static std::shared_ptr<OnDemandService> getInstance();
112
113 /**
114 * Returns on-demand service for the specified DXEndpoint.
115 * Each DXEndpoint is conceptually associated with a single instance of on-demand service to
116 * control its historic data replay and this method returns this instance.
117 * The endpoint must have a role of
118 * @ref DXEndpoint::Role::FEED "FEED" or @ref DXEndpoint::Role::ON_DEMAND_FEED "ON_DEMAND_FEED".
119 *
120 * @param endpoint the endpoint.
121 * @return the on-demand service.
122 */
123 static std::shared_ptr<OnDemandService> getInstance(std::shared_ptr<DXEndpoint> endpoint);
124
125 /**
126 * Returns DXEndpoint that is associated with this on-demand service.
127 *
128 * @return DXEndpoint that is associated with this on-demand service.
129 */
130 std::shared_ptr<DXEndpoint> getEndpoint() const noexcept;
131
132 /**
133 * Returns `true` when on-demand historical data replay mode is supported.
134 * DXEndpoint should be @ref DXEndpoint::connect() "connected"
135 * to an address with "(ondemand:<address>)" component that specifies an on-demand historical
136 * data provider address.
137 * When this method returns `false`, @ref OnDemandService::replay() "replay" method does nothing.
138 *
139 * @return `true` when on-demand historical data replay mode is supported.
140 */
141 bool isReplaySupported() const;
142
143 /**
144 * Returns `true` when this on-demand historical data replay service is in replay mode.
145 * Replay mode is in effect after invocation of @ref OnDemandService::replay() "replay" method and
146 * before invocation @ref OnDemandService::stopAndResume() "stopAndResume" or @ref OnDemandService::stopAndClear()
147 * "stopAndClear" methods.
148 *
149 * @return `true` when this on-demand historical data replay service is in replay mode.
150 */
151 bool isReplay() const;
152
153 /**
154 * Returns `true` when this on-demand historical data replay service is in clear mode.
155 * Clear mode is in effect after invocation of @ref OnDemandService::stopAndClear() "stopAndClear" method and
156 * before invocation @ref OnDemandService::stopAndResume() "stopAndResume" or @ref OnDemandService::replay()
157 * "replay" methods.
158 *
159 * @return `true` when this on-demand historical data replay service is in clear mode.
160 */
161 bool isClear() const;
162
163 /**
164 * Returns current or last on-demand historical data replay time.
165 * In @ref OnDemandService::isReplay() "replay mode" this is the time that is being currently replayed,
166 * otherwise this is the last time that was replayed.
167 * If replay was never started, then result is 0.
168 *
169 * @return current or last on-demand historical data replay time in millis.
170 */
171 std::int64_t getTime() const;
172
173 /**
174 * Returns on-demand historical data replay speed.
175 * Speed is measured with respect to the real-time playback speed.
176 * The result of this method is zero when this service is not in @ref OnDemandService::isReplay() "replay mode".
177 * The speed is set when starting replay by @ref OnDemandService::replay() "replay(time, speed)" method
178 * and with @ref OnDemandService::setSpeed() "setSpeed(speed)" method during replay.
179 *
180 * @return on-demand historical data replay speed.
181 */
182 double getSpeed() const;
183
184 /**
185 * Turns on-demand historical data replay mode from a specified time with real-time speed.
186 * This is a shortcut for:
187 * <pre><tt>
188 * @ref OnDemandService::replay(std::int64_t,double) "replay"(time, 1);</tt></pre>
189 * This method can be used only when OnDemandService::isReplaySupported() method returns `true`,
190 * that is when DXEndpoint is @ref DXEndpoint::connect() "connected"
191 * to an address with "(ondemand:<address>)" component that specifies an on-demand historical
192 * data provider address.
193 *
194 * @param time time (timestamp in millis) to start replay from.
195 */
196 void replay(std::int64_t time) const;
197
198 /**
199 * Turns on-demand historical data replay mode from a specified time and with a specified speed.
200 * This method can be used only when OnDemandService::isReplaySupported() method returns `true`,
201 * that is when DXEndpoint is @ref DXEndpoint::connect() "connected"
202 * to an address with "(ondemand:<address>)" component that specifies an on-demand historical
203 * data provider address.
204 *
205 * <p>After invocation of this method:
206 * <ul>
207 * <li>OnDemandService::isReplay() returns `true`.
208 * <li>OnDemandService::isClear() returns `false`.
209 * <li>OnDemandService::getTime() returns time that is currently being replayed.
210 * <li>OnDemandService::getSpeed() returns `speed`.
211 * </ul>
212 *
213 * @param time time (timestamp in millis) to start replay from.
214 * @param speed speed to start replay with. Use 1 for real-time speed, >1 for faster than real-time speed,
215 * <1 for slower than real-time speed, and 0 for pause.
216 */
217 void replay(std::int64_t time, double speed) const;
218
219 /**
220 * Pauses on-demand historical data replay and keeps data snapshot.
221 * This method can only be called in @ref OnDemandService::isReplay() "replay mode".
222 * This is a shortcut for:
223 * <pre><tt>
224 * @ref OnDemandService::setSpeed() "setSpeed"(0);</tt></pre>
225 * This method atomically captures current replay time and pauses at it.
226 * After invocation of this method:
227 * <ul>
228 * <li>OnDemandService::isReplay() returns `true`.
229 * <li>OnDemandService::isClear() returns `false`.
230 * <li>OnDemandService::getTime() returns time where replay was paused at.
231 * <li>OnDemandService::getSpeed() returns `0`.
232 * </ul>
233 */
234 void pause() const;
235
236 /**
237 * Stops on-demand historical data replay and resumes ordinary data feed.
238 * This method has no effect when invoked not in @ref OnDemandService::isReplay() "replay mode".
239 * After invocation of this method:
240 * <ul>
241 * <li>OnDemandService::isReplay() returns `false`.
242 * <li>OnDemandService::isClear() returns `false`.
243 * <li>OnDemandService::getTime() returns last replayed time.
244 * <li>OnDemandService::getSpeed() returns `0`.
245 * </ul>
246 *
247 * <p>To stop on-demand historical data replay without resuming ordinary data feed use
248 * either OnDemandService::pause() to keep data snapshot or OnDemandService::stopAndClear() to clear data.
249 *
250 * <p>Note, that endpoints with a role of
251 * @ref DXEndpoint::Role::ON_DEMAND_FEED "ON_DEMAND_FEED" do not have an ordinary feed (they are essentially
252 * on-demand only) and thus `stopAndResume` method works like @ref OnDemandService::stopAndClear() "stopAndClear"
253 * for them.
254 */
255 void stopAndResume() const;
256
257 /**
258 * Stops incoming data and clears it without resuming data updates.
259 * This method works both in on-demand historical data replay mode and
260 * for ordinary data feed. All incoming data updates are suspended and current data is cleared.
261 * After invocation of this method:
262 * <ul>
263 * <li>OnDemandService::isReplay() returns `false`.
264 * <li>OnDemandService::isClear() returns `true`.
265 * <li>OnDemandService::getTime() returns last replayed time.
266 * <li>OnDemandService::getSpeed() returns `0`.
267 * </ul>
268 *
269 * <p>Ordinary data feed can be resumed with OnDemandService::stopAndResume() method and on-demand historical data
270 * replay can be continued with @ref OnDemandService::replay() "replay(...)" method.
271 */
272 void stopAndClear() const;
273
274 /**
275 * Changes on-demand historical data replay speed while continuing replay at current @ref OnDemandService::getTime()
276 * "time". Speed is measured with respect to the real-time playback speed. This method can only be called with
277 * non-zero speed in @ref OnDemandService::isReplay() "replay mode".
278 *
279 * @param speed on-demand historical data replay speed.
280 */
281 void setSpeed(double speed) const;
282};
283
285
286/// @}
287
#define DXFCPP_MACRO_CONCAT_INNER(a, b)
Definition Common.hpp:129
#define DXFCPP_MACRO_CONCAT(a, b)
Definition Common.hpp:128
#define DXFCPP_MACRO_UNIQUE_NAME(base)
Definition Common.hpp:130
#define DXFCXX_DISABLE_MSC_WARNINGS_POP()
Definition Conf.hpp:31
#define DXFCPP_END_NAMESPACE
Definition Conf.hpp:97
#define DXFCPP_BEGIN_NAMESPACE
Definition Conf.hpp:94
#define DXFCXX_DISABLE_GCC_WARNINGS_PUSH(warnings)
Definition Conf.hpp:47
#define DXFCXX_DISABLE_GCC_WARNINGS_POP()
Definition Conf.hpp:49
#define DXFCXX_DISABLE_MSC_WARNINGS_PUSH(warnings)
Definition Conf.hpp:30
#define DXFCPP_TRACE_ISOLATES
Definition Debug.hpp:19
#define DXFCPP_DEBUG
Definition Debug.hpp:15
#define DXFCPP_TRACE_LISTS
Definition Debug.hpp:22
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_builder_with_name(dxfc_dxendpoint_builder_t builderHandle, const char *name)
Changes the name used to distinguish multiple endpoints in the same process (GraalVM Isolate) in logs...
Definition DXEndpoint.cpp:692
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_builder_with_properties(dxfc_dxendpoint_builder_t builder, const dxfc_dxendpoint_property_t **properties, size_t size)
Sets all supported properties from the provided properties object.
Definition DXEndpoint.cpp:725
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_password(dxfc_dxendpoint_t endpoint, const char *password)
Changes password for this endpoint.
Definition DXEndpoint.cpp:973
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_get_publisher(dxfc_dxendpoint_t endpoint, DXFC_OUT dxfc_dxpublisher_t *publisher)
Definition DXEndpoint.cpp:1163
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_builder_supports_property(dxfc_dxendpoint_builder_t builder, const char *key, DXFC_OUT int *supports)
Checks if a property is supported.
Definition DXEndpoint.cpp:752
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_add_state_change_listener(dxfc_dxendpoint_t endpoint, dxfc_dxendpoint_state_change_listener listener)
Adds a listener notified about changes in state property.
Definition DXEndpoint.cpp:1109
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_disconnect(dxfc_dxendpoint_t endpoint)
Terminates all remote network connections.
Definition DXEndpoint.cpp:1024
#define DXFCPP_EXPORT
Definition api.h:35
void * dxfc_dxendpoint_builder_t
The dxFeed endpoint's builder handle.
Definition api.h:207
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_close_and_await_termination(dxfc_dxendpoint_t endpoint)
Closes this endpoint and wait until all pending data processing tasks are completed.
Definition DXEndpoint.cpp:922
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_await_not_connected(dxfc_dxendpoint_t endpoint)
Waits while this endpoint state becomes NOT_CONNECTED or CLOSED.
Definition DXEndpoint.cpp:1075
dxfc_dxendpoint_state_t
Represents the current state of endpoint.
Definition api.h:149
@ DXFC_DXENDPOINT_STATE_CLOSED
Endpoint was closed.
Definition api.h:169
@ DXFC_DXENDPOINT_STATE_NOT_CONNECTED
Endpoint was created by is not connected to remote endpoints.
Definition api.h:153
@ DXFC_DXENDPOINT_STATE_CONNECTING
The connect function was called to establish connection to remove endpoint, but the connection is not...
Definition api.h:159
@ DXFC_DXENDPOINT_STATE_CONNECTED
The connection to the remote endpoint is established.
Definition api.h:164
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_get_instance(void *user_data, DXFC_OUT dxfc_dxendpoint_t *endpoint)
Returns a default application-wide singleton instance of dxFeed endpoint with a FEED role.
Definition DXEndpoint.cpp:811
#define DXFC_OUT
Definition api.h:17
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_get_state(dxfc_dxendpoint_t endpoint, DXFC_OUT dxfc_dxendpoint_state_t *state)
Returns the state of this endpoint.
Definition DXEndpoint.cpp:1092
void * dxfc_dxendpoint_t
The dxFeed endpoint handle.
Definition api.h:198
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_builder_with_property(dxfc_dxendpoint_builder_t builder, const char *key, const char *value)
Sets the specified property.
Definition DXEndpoint.cpp:708
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_builder_free(dxfc_dxendpoint_builder_t builder)
Removes a builder from the registry.
Definition DXEndpoint.cpp:799
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_connect(dxfc_dxendpoint_t endpoint, const char *address)
Connects to the specified remote address.
Definition DXEndpoint.cpp:990
dxfc_error_code_t
List of error codes.
Definition api.h:49
@ DXFC_EC_ERROR
The error returned if the current operation cannot be completed.
Definition api.h:60
@ DXFC_EC_SUCCESS
OK.
Definition api.h:53
@ DXFC_EC_G_ERR
dxFeed Graal Native API error.
Definition api.h:57
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_remove_state_change_listener(dxfc_dxendpoint_t endpoint, dxfc_dxendpoint_state_change_listener listener)
Removes a listener notified about changes in state property.
Definition DXEndpoint.cpp:1135
DXFCPP_EXPORT dxfc_error_code_t dxfc_system_set_property(const char *key, const char *value)
Sets the system property indicated by the specified key.
Definition System.cpp:73
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_builder_build(dxfc_dxendpoint_builder_t builder, void *user_data, DXFC_OUT dxfc_dxendpoint_t *endpoint)
Builds the new dxFeed endpoint instance.
Definition DXEndpoint.cpp:769
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_get_feed(dxfc_dxendpoint_t endpoint, DXFC_OUT dxfc_dxfeed_t *feed)
Definition DXEndpoint.cpp:1158
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_await_processed(dxfc_dxendpoint_t endpoint)
Waits until this endpoint stops processing data (becomes quiescent).
Definition DXEndpoint.cpp:1058
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_close(dxfc_dxendpoint_t endpoint)
Closes this endpoint.
Definition DXEndpoint.cpp:905
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_new_builder(DXFC_OUT dxfc_dxendpoint_builder_t *builder)
Creates a new dxFeed endpoint's builder instance.
Definition DXEndpoint.cpp:659
void(* dxfc_dxendpoint_state_change_listener)(dxfc_dxendpoint_state_t old_state, dxfc_dxendpoint_state_t new_state, void *user_data)
The endpoint current state change listener.
Definition api.h:178
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_reconnect(dxfc_dxendpoint_t endpoint)
Terminates all established network connections and initiates connecting again with the same address.
Definition DXEndpoint.cpp:1007
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_get_role(dxfc_dxendpoint_t endpoint, DXFC_OUT dxfc_dxendpoint_role_t *role)
Returns the role of this endpoint.
Definition DXEndpoint.cpp:939
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_user(dxfc_dxendpoint_t endpoint, const char *user)
Changes username for this endpoint.
Definition DXEndpoint.cpp:956
DXFCPP_EXPORT dxfc_error_code_t dxfc_system_get_property(const char *key, DXFC_OUT char *buffer, size_t buffer_size)
Gets the system property indicated by the specified key.
dxfc_dxendpoint_role_t
Represents the role of an endpoint that was specified during its creation.
Definition api.h:89
@ DXFC_DXENDPOINT_ROLE_PUBLISHER
PUBLISHER endpoint connects to the remote publisher hub (also known as multiplexor) or creates a publ...
Definition api.h:127
@ DXFC_DXENDPOINT_ROLE_STREAM_FEED
STREAM_FEED endpoint is similar to DXFC_DXENDPOINT_ROLE_FEED and also connects to the remote data fee...
Definition api.h:116
@ DXFC_DXENDPOINT_ROLE_FEED
FEED endpoint connects to the remote data feed provider and is optimized for real-time or delayed dat...
Definition api.h:99
@ DXFC_DXENDPOINT_ROLE_STREAM_PUBLISHER
STREAM_PUBLISHER endpoint is similar to DXFC_DXENDPOINT_ROLE_PUBLISHER and also connects to the remot...
Definition api.h:136
@ DXFC_DXENDPOINT_ROLE_LOCAL_HUB
LOCAL_HUB endpoint is a local hub without the ability to establish network connections.
Definition api.h:143
@ DXFC_DXENDPOINT_ROLE_ON_DEMAND_FEED
ON_DEMAND_FEED endpoint is similar to DXFC_DXENDPOINT_ROLE_FEED, but it is designed to be used with d...
Definition api.h:107
void * dxfc_dxpublisher_t
The dxFeed publisher handle.
Definition api.h:217
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_create(void *user_data, DXFC_OUT dxfc_dxendpoint_t *endpoint)
Creates an endpoint with FEED role.
Definition DXEndpoint.cpp:858
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_get_instance2(dxfc_dxendpoint_role_t role, void *user_data, DXFC_OUT dxfc_dxendpoint_t *endpoint)
Returns a default application-wide singleton instance of DXEndpoint for a specific role.
Definition DXEndpoint.cpp:834
void * dxfc_dxfeed_t
The dxFeed handle.
Definition api.h:212
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_builder_with_role(dxfc_dxendpoint_builder_t builder, dxfc_dxendpoint_role_t role)
Sets role for the created dxFeed endpoint.
Definition DXEndpoint.cpp:675
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_create2(dxfc_dxendpoint_role_t role, void *user_data, DXFC_OUT dxfc_dxendpoint_t *endpoint)
Creates an endpoint with a specified role.
Definition DXEndpoint.cpp:881
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_free(dxfc_dxendpoint_t endpoint)
Removes the dxFeed endpoint from the registry.
Definition DXEndpoint.cpp:1168
DXFCPP_EXPORT dxfc_error_code_t dxfc_dxendpoint_disconnect_and_clear(dxfc_dxendpoint_t endpoint)
Terminates all remote network connections and clears stored data.
Definition DXEndpoint.cpp:1041
AnalyticOrder & withPrice(double price) noexcept override
Changes price of this analytic order.
Definition AnalyticOrder.cpp:172
AnalyticOrder & withScope(const Scope &scope) noexcept override
Changes the scope of this analytic order.
Definition AnalyticOrder.cpp:212
AnalyticOrder & withCount(std::int64_t count) noexcept override
Changes the number of individual orders in this aggregate order.
Definition AnalyticOrder.cpp:184
AnalyticOrder & withIcebergHiddenSize(double icebergHiddenSize) noexcept
Changes iceberg hidden size and returns the current analytic order.
Definition AnalyticOrder.cpp:242
AnalyticOrder & withEventSymbol(const StringLike &eventSymbol) noexcept override
Changes an event's symbol and returns the current analytic order.
Definition AnalyticOrder.cpp:116
AnalyticOrder() noexcept
Creates new analytic order event with default values.
Definition AnalyticOrder.cpp:110
double getIcebergHiddenSize() const noexcept
Returns iceberg hidden size of this analytic order.
Definition AnalyticOrder.cpp:234
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition AnalyticOrder.cpp:69
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition AnalyticOrder.cpp:82
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition AnalyticOrder.cpp:49
const IcebergType & getIcebergType() const &noexcept
Returns iceberg type of this analytic order.
Definition AnalyticOrder.cpp:262
AnalyticOrder & withExchangeCode(std::int16_t exchangeCode) noexcept override
Changes exchange code of this analytic order.
Definition AnalyticOrder.cpp:204
AnalyticOrder & withIndex(std::int64_t index) noexcept override
Changes the unique per-symbol index of this analytic order and returns it.
Definition AnalyticOrder.cpp:136
AnalyticOrder(const StringLike &eventSymbol) noexcept
Creates a new analytic order event with the specified event symbol.
Definition AnalyticOrder.cpp:113
void setIcebergPeakSize(double icebergPeakSize) noexcept
Changes iceberg peak size of this analytic order.
Definition AnalyticOrder.cpp:224
AnalyticOrder & withTimeNanoPart(std::int32_t timeNanoPart) noexcept override
Changes microseconds and nanoseconds time part of this analytic order.
Definition AnalyticOrder.cpp:144
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition AnalyticOrder.cpp:102
AnalyticOrder & withOrderId(std::int64_t orderId) noexcept override
Changes order ID.
Definition AnalyticOrder.cpp:164
double getIcebergPeakSize() const noexcept
Returns iceberg peak size of this analytic order.
Definition AnalyticOrder.cpp:220
void setIcebergExecutedSize(double icebergExecutedSize) noexcept
Changes the iceberg executed size of this analytic order.
Definition AnalyticOrder.cpp:252
std::string toString() const override
Returns a string representation of the current object.
Definition AnalyticOrder.cpp:277
void setIcebergHiddenSize(double icebergHiddenSize) noexcept
Changes iceberg hidden size of this analytic order.
Definition AnalyticOrder.cpp:238
AnalyticOrder & withAction(const OrderAction &action) noexcept override
Changes the action of this analytic order and returns it.
Definition AnalyticOrder.cpp:156
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition AnalyticOrder.hpp:88
AnalyticOrder & withTime(std::int64_t time) noexcept override
Changes time of this analytic order and returns it.
Definition AnalyticOrder.cpp:140
AnalyticOrder & withExecutedSize(double executedSize) noexcept override
Changes executed size of this analytic order.
Definition AnalyticOrder.cpp:180
AnalyticOrder & withTradePrice(double tradePrice) noexcept override
Changes trade price.
Definition AnalyticOrder.cpp:192
AnalyticOrder & withOrderSide(const Side &side) noexcept override
Changes side of this analytic order.
Definition AnalyticOrder.cpp:208
AnalyticOrder & withEventFlags(std::int32_t eventFlags) noexcept override
Changes transactional event flags and returns the current analytic order.
Definition AnalyticOrder.cpp:128
AnalyticOrder & withIcebergPeakSize(double icebergPeakSize) noexcept
Changes iceberg peak size and returns the current analytic order.
Definition AnalyticOrder.cpp:228
AnalyticOrder & withTimeNanos(std::int64_t timeNanos) noexcept override
Changes time of this analytic order and returns it.
Definition AnalyticOrder.cpp:152
double getIcebergExecutedSize() const noexcept
Returns iceberg executed size of this analytic order.
Definition AnalyticOrder.cpp:248
AnalyticOrder & withSequence(std::int32_t sequence) noexcept override
Changes sequence number of this analytic order.
Definition AnalyticOrder.cpp:148
AnalyticOrder & withSize(double size) noexcept override
Changes size of this analytic order.
Definition AnalyticOrder.cpp:176
AnalyticOrder & withActionTime(std::int64_t actionTime) noexcept override
Changes time of the last action and returns the current analytic order.
Definition AnalyticOrder.cpp:160
AnalyticOrder & withEventFlags(const EventFlagsMask &eventFlags) noexcept override
Changes transactional event flags and returns the current analytic order.
Definition AnalyticOrder.cpp:132
AnalyticOrder & withIcebergExecutedSize(double icebergExecutedSize) noexcept
Changes iceberg executed size and returns the current analytic order.
Definition AnalyticOrder.cpp:256
void setIcebergType(const IcebergType &icebergType) noexcept
Changes iceberg type of this analytic order.
Definition AnalyticOrder.cpp:266
AnalyticOrder & withMarketMaker(const StringLike &marketMaker) noexcept override
Changes market maker or other aggregate identifier of this analytic order.
Definition AnalyticOrder.cpp:216
AnalyticOrder & withAuxOrderId(std::int64_t auxOrderId) noexcept override
Changes auxiliary order ID.
Definition AnalyticOrder.cpp:168
AnalyticOrder & withEventTime(std::int64_t eventTime) noexcept override
Changes the event's creation time and returns the current analytic order.
Definition AnalyticOrder.cpp:120
AnalyticOrder & withExchangeCode(char exchangeCode) noexcept override
Changes exchange code of this analytic order.
Definition AnalyticOrder.cpp:200
AnalyticOrder & withIcebergType(const IcebergType &icebergType) noexcept
Changes an iceberg type and returns the current analytic order.
Definition AnalyticOrder.cpp:271
AnalyticOrder & withTradeId(std::int64_t tradeId) noexcept override
Changes trade ID.
Definition AnalyticOrder.cpp:188
AnalyticOrder & withTradeSize(double tradeSize) noexcept override
Changes trade size.
Definition AnalyticOrder.cpp:196
AnalyticOrder & withSource(const OrderSource &source) noexcept override
Changes an event's source and returns the current analytic order.
Definition AnalyticOrder.cpp:124
void setSequence(std::int32_t sequence)
Changes sequence number of this event.
Definition Candle.cpp:254
Candle & withBidVolume(double bidVolume) noexcept
Changes bid volume in this candle.
Definition Candle.cpp:377
double getImpVolatility() const noexcept
Returns the implied volatility.
Definition Candle.cpp:397
void setClose(double close) noexcept
Changes the last (close) price of this candle.
Definition Candle.cpp:331
Candle & withSequence(std::int32_t sequence) noexcept
Changes sequence number of this event.
Definition Candle.cpp:265
void setTime(std::int64_t time) noexcept
Changes the timestamp of the event in milliseconds.
Definition Candle.cpp:238
void setBidVolume(double bidVolume) noexcept
Changes bid volume in this candle.
Definition Candle.cpp:373
void setEventFlags(std::int32_t eventFlags) noexcept override
Changes transactional event flags.
Definition Candle.cpp:196
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition Candle.cpp:84
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition Candle.cpp:117
void setImpVolatility(double impVolatility)
Changes implied volatility.
Definition Candle.cpp:401
Candle & withOpen(double open) noexcept
Changes the first (open) price of this candle.
Definition Candle.cpp:293
Candle & withHigh(double high) noexcept
Changes the maximal (high) price of this candle.
Definition Candle.cpp:307
Candle & withCount(std::int64_t count) noexcept
Changes total number of original trade (or quote) events in this candle.
Definition Candle.cpp:279
Candle & withAskVolume(double askVolume) noexcept
Changes ask volume in this candle.
Definition Candle.cpp:391
double getAskVolume() const noexcept
Returns ask volume in this candle.
Definition Candle.cpp:383
std::int64_t getTime() const noexcept override
Returns the timestamp of the event in milliseconds.
Definition Candle.cpp:232
Candle(CandleSymbol eventSymbol) noexcept
Creates a new candle with the specified candle event symbol.
Definition Candle.cpp:147
void setEventSymbol(const CandleSymbol &eventSymbol) noexcept override
Changes the event symbol that identifies this event type in subscription.
Definition Candle.cpp:162
Candle() noexcept
Creates a new candle with default values.
Definition Candle.cpp:144
void setOpen(double open) noexcept
Changes the first (open) price of this candle.
Definition Candle.cpp:289
const std::optional< CandleSymbol > & getEventSymbolOpt() const &noexcept override
Returns a symbol of this event.
Definition Candle.cpp:158
double getOpen() const noexcept
Returns the first (open) price of this candle.
Definition Candle.cpp:285
void setEventTime(std::int64_t eventTime) noexcept override
Changes event creation time.
Definition Candle.cpp:176
std::int64_t getCount() const noexcept
Returns total number of original trade (or quote) events in this candle.
Definition Candle.cpp:271
void setAskVolume(double askVolume) noexcept
Changes ask volume in this candle.
Definition Candle.cpp:387
double getBidVolume() const noexcept
Returns bid volume in this candle.
Definition Candle.cpp:369
Candle & withEventFlags(const EventFlagsMask &eventFlags) noexcept
Changes transactional event flags and returns the current candle.
Definition Candle.cpp:210
const CandleSymbol & getEventSymbol() const &noexcept override
Returns a symbol of this event.
Definition Candle.cpp:150
double getHigh() const noexcept
Returns the maximal (high) price of this candle.
Definition Candle.cpp:299
Candle & withClose(double close) noexcept
Changes the last (close) price of this candle.
Definition Candle.cpp:335
void setHigh(double high) noexcept
Changes the maximal (high) price of this candle.
Definition Candle.cpp:303
double getVWAP() const noexcept
Returns volume-weighted average price (VWAP) in this candle.
Definition Candle.cpp:355
Candle & withVolume(double volume) noexcept
Changes total volume in this candle.
Definition Candle.cpp:349
Candle & withEventFlags(std::int32_t eventFlags) noexcept
Changes transactional event flags and returns the current candle.
Definition Candle.cpp:200
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition Candle.cpp:104
double getLow() const noexcept
Returns the minimal (low) price of this candle.
Definition Candle.cpp:313
Candle & withIndex(std::int64_t index) noexcept
Changes the unique per-symbol index of this event.
Definition Candle.cpp:220
Candle & withLow(double low) noexcept
Changes the minimal (low) price of this candle.
Definition Candle.cpp:321
Candle & withEventSymbol(const CandleSymbol &eventSymbol) noexcept
Changes an event's symbol and returns the current candle.
Definition Candle.cpp:166
EventFlagsMask getEventFlagsMask() const noexcept override
Returns transactional event flags.
Definition Candle.cpp:192
double getVolume() const noexcept
Returns total volume in this candle.
Definition Candle.cpp:341
std::int64_t getIndex() const noexcept override
Returns unique per-symbol index of this event.
Definition Candle.cpp:228
void setLow(double low) noexcept
Changes the minimal (low) price of this candle.
Definition Candle.cpp:317
void setEventFlags(const EventFlagsMask &eventFlags) noexcept override
Changes transactional event flags.
Definition Candle.cpp:206
void setIndex(std::int64_t index) override
Changes unique per-symbol index of this event.
Definition Candle.cpp:216
Candle & withImpVolatility(double impVolatility) noexcept
Changes implied volatility.
Definition Candle.cpp:405
void setOpenInterest(double openInterest) noexcept
Changes the open interest.
Definition Candle.cpp:415
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition Candle.cpp:124
Candle & withOpenInterest(double openInterest) noexcept
Changes the open interest.
Definition Candle.cpp:419
std::int64_t getEventTime() const noexcept override
Returns time when an event was created or zero when time is not available.
Definition Candle.cpp:172
Candle & withTime(std::int64_t time) noexcept
Changes the timestamp of the event in milliseconds.
Definition Candle.cpp:244
Candle & withVWAP(double vwap) noexcept
Changes volume-weighted average price (VWAP) in this candle.
Definition Candle.cpp:363
static constexpr std::uint32_t MAX_SEQUENCE
Maximum allowed sequence value.
Definition Candle.hpp:122
void setVWAP(double vwap) noexcept
Changes volume-weighted average price (VWAP) in this candle.
Definition Candle.cpp:359
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition Candle.hpp:115
double getClose() const noexcept
Returns the last (close) price of this candle.
Definition Candle.cpp:327
Candle & withEventTime(std::int64_t eventTime) noexcept
Changes event's creation time and returns the current candle.
Definition Candle.cpp:180
std::int32_t getSequence() const noexcept
Returns the sequence number of this event to distinguish events that have the same time.
Definition Candle.cpp:250
std::int32_t getEventFlags() const noexcept override
Returns transactional event flags.
Definition Candle.cpp:188
void setCount(std::int64_t count) noexcept
Changes total number of original trade (or quote) events in this candle.
Definition Candle.cpp:275
double getOpenInterest() const noexcept
Returns the open interest.
Definition Candle.cpp:411
std::string toString() const override
Returns a string representation of the current object.
Definition Candle.cpp:427
void setVolume(double volume) noexcept
Changes total volume in this candle.
Definition Candle.cpp:345
Builder class for DXEndpoint that supports additional configuration properties.
Definition DXEndpoint.hpp:850
std::shared_ptr< DXEndpoint > build()
Builds DXEndpoint instance.
Definition DXEndpoint.cpp:335
std::shared_ptr< Builder > withName(const StringLike &name)
Changes the name used to distinguish multiple endpoints in the same process (GraalVM Isolate) in logs...
Definition DXEndpoint.cpp:378
bool supportsProperty(const StringLike &key) const
Checks if a property is supported.
Definition DXEndpoint.cpp:325
std::shared_ptr< Builder > withProperties(Properties &&properties)
Sets all supported properties from the provided properties object.
Definition DXEndpoint.hpp:939
~Builder() noexcept override
Releases the GraalVM handle.
Definition DXEndpoint.cpp:367
std::shared_ptr< Builder > withRole(Role role)
Sets role for the created DXEndpoint.
Definition DXEndpoint.cpp:297
std::shared_ptr< Builder > withProperty(const StringLike &key, const StringLike &value)
Sets the specified property.
Definition DXEndpoint.cpp:310
Subscription for a set of symbols and event types.
Definition DXFeedSubscription.hpp:44
bool containsEventType(const EventTypeEnum &eventType) override
Returns true if this subscription contains the corresponding event type.
Definition DXFeedSubscription.cpp:227
std::size_t addChangeListener(std::shared_ptr< ObservableSubscriptionChangeListener > listener) override
Adds subscription change listener.
Definition DXFeedSubscription.cpp:318
bool isClosed() override
Returns true if this subscription is closed.
Definition DXFeedSubscription.cpp:205
void addSymbols(SymbolIt begin, SymbolIt end) const
Adds the specified collection (using iterators) of symbols to the set of subscribed symbols.
Definition DXFeedSubscription.hpp:433
void close() const
Closes this subscription and makes it permanently detached.
Definition DXFeedSubscription.cpp:214
void setEventsBatchLimit(std::int32_t eventsBatchLimit) const
Sets maximum number of events in the single notification of OnEventHandler.
Definition DXFeedSubscription.cpp:356
std::unordered_set< EventTypeEnum > getEventTypes() override
Returns a set of subscribed event types.
Definition DXFeedSubscription.cpp:223
void setSymbols(std::initializer_list< SymbolWrapper > collection) const
Changes the set of subscribed symbols so that it contains just the symbols from the specified collect...
Definition DXFeedSubscription.cpp:258
void removeSymbols(SymbolIt begin, SymbolIt end) const
Removes the specified collection (using iterators) of symbols from the set of subscribed symbols.
Definition DXFeedSubscription.hpp:505
void removeSymbols(SymbolsCollection &&collection) const
Removes the specified collection of symbols from the set of subscribed symbols.
Definition DXFeedSubscription.hpp:531
static const std::int32_t MAX_BATCH_LIMIT
The maximum events' batch limit for a single notification in OnEventHandler.
Definition DXFeedSubscription.hpp:60
void removeSymbols(const SymbolWrapper &symbolWrapper) const
Removes the specified symbol from the set of subscribed symbols.
Definition DXFeedSubscription.cpp:277
void attach(std::shared_ptr< DXFeed > feed)
Attaches subscription to the specified feed.
Definition DXFeedSubscription.cpp:187
TimePeriod getAggregationPeriod() const
Returns the aggregation period for data for this subscription instance.
Definition DXFeedSubscription.cpp:292
std::string toString() const override
Returns a string representation of the current object.
Definition DXFeedSubscription.cpp:145
static const std::int32_t OPTIMAL_BATCH_LIMIT
The optimal events' batch limit for a single notification in OnEventHandler.
Definition DXFeedSubscription.hpp:55
std::size_t addEventListener(std::function< void(const std::vector< std::shared_ptr< EventT > > &)> &&listener)
Adds typed listener for events.
Definition DXFeedSubscription.hpp:674
void addSymbols(std::initializer_list< SymbolWrapper > collection) const
Adds the specified collection (initializer list) of symbols to the set of subscribed symbols.
Definition DXFeedSubscription.cpp:273
void setSymbols(SymbolsCollection &&collection) const
Changes the set of subscribed symbols so that it contains just the symbols from the specified collect...
Definition DXFeedSubscription.hpp:384
void setAggregationPeriod(const TimePeriod &aggregationPeriod) const
Sets the aggregation period for data.
Definition DXFeedSubscription.cpp:296
static std::shared_ptr< DXFeedSubscription > create(const EventTypeEnum &eventType)
Creates a detached subscription for a single event type.
Definition DXFeedSubscription.cpp:164
std::int32_t getEventsBatchLimit() const
Definition DXFeedSubscription.cpp:352
std::size_t addEventListener(EventListener &&listener)
Adds listener for events.
Definition DXFeedSubscription.hpp:619
static std::shared_ptr< DXFeedSubscription > create(EventTypesCollection &&eventTypes)
Creates a detached subscription for the given collection of event types.
Definition DXFeedSubscription.hpp:260
OnEventHandler & onEvent()
Returns a reference to an incoming events' handler (delegate), to which listeners can be added and re...
Definition DXFeedSubscription.cpp:312
void addSymbols(const SymbolsCollection &collection) const
Adds the specified collection of symbols to the set of subscribed symbols.
Definition DXFeedSubscription.hpp:459
void setSymbols(SymbolIt begin, SymbolIt end) const
Changes the set of subscribed symbols so that it contains just the symbols from the specified collect...
Definition DXFeedSubscription.hpp:358
void setAggregationPeriod(std::int64_t aggregationPeriod) const
Sets the aggregation period for data.
Definition DXFeedSubscription.cpp:304
void removeChangeListener(std::size_t changeListenerId) override
Removes subscription change listener by id.
Definition DXFeedSubscription.cpp:335
std::vector< SymbolWrapper > getDecoratedSymbols() const
Returns a set of decorated symbols (depending on the actual implementation of the subscription).
Definition DXFeedSubscription.cpp:249
void clear() const
Clears the set of subscribed symbols.
Definition DXFeedSubscription.cpp:231
void detach(std::shared_ptr< DXFeed > feed)
Detaches subscription from the specified feed.
Definition DXFeedSubscription.cpp:196
void addSymbols(const SymbolWrapper &symbolWrapper) const
Adds the specified symbol to the set of subscribed symbols.
Definition DXFeedSubscription.cpp:262
void setAggregationPeriod(std::chrono::milliseconds aggregationPeriod) const
Sets the aggregation period for data.
Definition DXFeedSubscription.cpp:300
void removeSymbols(std::initializer_list< SymbolWrapper > collection) const
Removes the specified collection (initializer list) of symbols from the set of subscribed symbols.
Definition DXFeedSubscription.cpp:288
std::vector< SymbolWrapper > getSymbols() const
Returns a set of subscribed symbols (depending on the actual implementation of the subscription).
Definition DXFeedSubscription.cpp:240
Extends DXFeedSubscription to conveniently subscribe to time-series of events for a set of symbols an...
Definition DXFeedSubscription.hpp:785
std::int64_t getFromTime()
Returns the earliest timestamp from which time-series of events shall be received.
Definition DXFeedSubscription.cpp:384
void setFromTime(std::chrono::milliseconds fromTime)
Sets the earliest timestamp from which time-series of events shall be received.
Definition DXFeedSubscription.cpp:395
void setFromTime(std::int64_t fromTime)
Sets the earliest timestamp from which time-series of events shall be received.
Definition DXFeedSubscription.cpp:388
bool in(std::uint32_t eventFlagsMask) const noexcept
Determines if the given flag is in the mask.
Definition IndexedEvent.cpp:27
std::uint32_t getFlag() const noexcept
Definition IndexedEvent.cpp:23
static bool isSnapshotSnip(const std::shared_ptr< Event > &event)
Determines if the given event is marked as a snapshot snip.
Definition EventFlag.hpp:344
friend std::int32_t operator|(const EventFlag &eventFlag1, std::int32_t eventFlag2) noexcept
Performs a bit or operation with two event flags.
Definition EventFlag.hpp:234
EventFlag() noexcept
Creates the invalid event flag.
Definition IndexedEvent.cpp:20
static bool isSnapshotBegin(const std::shared_ptr< Event > &event)
Determines if the given event marks the beginning of a snapshot.
Definition EventFlag.hpp:322
friend std::int32_t operator&(const EventFlag &eventFlag1, std::int32_t eventFlag2) noexcept
Performs a bit and operation with two event flags.
Definition EventFlag.hpp:256
static const EventFlag SNAPSHOT_SNIP
0x10 - A bitmask to get snapshot snip indicator from the value of eventFlags property.
Definition EventFlag.hpp:15
friend std::int32_t operator|(std::int32_t eventFlag1, const EventFlag &eventFlag2) noexcept
Performs a bit or operation with two event flags.
Definition EventFlag.hpp:245
static bool isPending(const std::shared_ptr< Event > &event)
Determines if the given event is in a pending state.
Definition EventFlag.hpp:365
friend std::int32_t operator&(std::int32_t eventFlag1, const EventFlag &eventFlag2) noexcept
Performs a bit and operation with two event flags.
Definition EventFlag.hpp:267
static const EventFlag SNAPSHOT_MODE
0x40 - A bitmask to set snapshot mode indicator into the value of eventFlags property.
Definition EventFlag.hpp:17
bool in(const EventFlagsMask &eventFlagsMask) const noexcept
Determines if the given flag is in the mask.
Definition EventFlag.hpp:211
static bool isRemove(const std::shared_ptr< Event > &event)
Determines if the given event is marked for removal.
Definition EventFlag.hpp:376
static bool isSnapshotEndOrSnip(const std::shared_ptr< Event > &event)
Determines if the given event marks the end of a snapshot or a snapshot snip.
Definition EventFlag.hpp:354
static const EventFlag TX_PENDING
0x01 - A bitmask to get transaction pending indicator from the value of eventFlags property.
Definition EventFlag.hpp:11
static const EventFlag SNAPSHOT_BEGIN
0x04 - A bitmask to get snapshot begin indicator from the value of eventFlags property.
Definition EventFlag.hpp:13
static const EventFlag REMOVE_SYMBOL
0x80 - For internal use.
Definition EventFlag.hpp:18
static const EventFlag SNAPSHOT_END
0x08 - A bitmask to get snapshot end indicator from the value of eventFlags property.
Definition EventFlag.hpp:14
static const EventFlag REMOVE_EVENT
0x02 - A bitmask to get removal indicator from the value of eventFlags property.
Definition EventFlag.hpp:12
static bool isSnapshotEnd(const std::shared_ptr< Event > &event)
Determines if the given event marks the end of a snapshot.
Definition EventFlag.hpp:333
constexpr std::uint32_t getMask() const noexcept
Returns an integer representation of an event mask.
Definition EventFlag.hpp:437
bool contains(const EventFlag &flag) const noexcept
Definition IndexedEvent.cpp:46
friend EventFlagsMask operator|(const EventFlagsMask &eventFlagsMask, const EventFlag &eventFlag) noexcept
Performs a bit or operation with an event flags' mask and an event flag.
Definition EventFlag.hpp:454
EventFlagsMask() noexcept
Creates an empty event flags mask.
Definition IndexedEvent.cpp:39
EventFlagsMask(std::initializer_list< EventFlag > eventFlags) noexcept
Creates event flags mask by initializer list with flags.
Definition IndexedEvent.cpp:42
EventFlagsMask(MaskType mask) noexcept
Create event flags mask by integer value.
Definition EventFlag.hpp:409
EventFlagsMask(EventFlagIt begin, EventFlagIt end) noexcept
Creates event flags mask by iterators of container with flags.
Definition EventFlag.hpp:419
friend EventFlagsMask operator&(const EventFlagsMask &eventFlagsMask, const EventFlag &eventFlag) noexcept
Performs a bit and operation with an event flags' mask and an event flag.
Definition EventFlag.hpp:465
The enumeration type that provides additional information about the dxFeed Graal C++-API event type.
Definition EventTypeEnum.hpp:26
bool isTimeSeries() const noexcept
Definition EventTypeEnum.cpp:148
const std::string & getClassName() const &noexcept
Definition EventTypeEnum.cpp:120
bool isLasting() const noexcept
Definition EventTypeEnum.cpp:140
bool isOnlyIndexed() const noexcept
Definition EventTypeEnum.cpp:152
bool isIndexed() const noexcept
Definition EventTypeEnum.cpp:144
std::uint32_t getId() const noexcept
Definition EventTypeEnum.cpp:112
bool isMarket() const noexcept
Definition EventTypeEnum.cpp:156
const std::string & getName() const &noexcept
Definition EventTypeEnum.cpp:116
void setSequence(std::int32_t sequence)
Changes sequence number of this event.
Definition Greeks.cpp:166
const IndexedEventSource & getSource() const &noexcept override
Returns the source of this event.
Definition Greeks.cpp:124
double getTheta() const noexcept
Returns option theta.
Definition Greeks.cpp:208
void setVolatility(double volatility) noexcept
Changes Black-Scholes implied volatility of the option.
Definition Greeks.cpp:188
std::int64_t getIndex() const noexcept override
Returns a unique per-symbol index of this event.
Definition Greeks.cpp:144
void setIndex(std::int64_t index) override
Changes the unique per-symbol index of this event.
Definition Greeks.cpp:148
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition Greeks.cpp:61
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition Greeks.cpp:92
double getPrice() const noexcept
Returns option market price.
Definition Greeks.cpp:176
Greeks() noexcept
Creates new greeks event with default values.
Definition Greeks.cpp:118
double getGamma() const noexcept
Returns option gamma.
Definition Greeks.cpp:200
double getRho() const noexcept
Returns option rho.
Definition Greeks.cpp:216
void setVega(double vega) noexcept
Changes option vega.
Definition Greeks.cpp:228
double getVega() const noexcept
Returns option vega.
Definition Greeks.cpp:224
std::int32_t getSequence() const noexcept
Returns the sequence number of this event to distinguish events that have the same time.
Definition Greeks.cpp:162
std::string toString() const override
Returns a string representation of the current object.
Definition Greeks.cpp:232
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition Greeks.hpp:93
Greeks(const StringLike &eventSymbol) noexcept
Creates a new greeks event with the specified event symbol.
Definition Greeks.cpp:121
void setEventFlags(std::int32_t eventFlags) noexcept override
Changes transactional event flags.
Definition Greeks.cpp:136
EventFlagsMask getEventFlagsMask() const noexcept override
Returns transactional event flags.
Definition Greeks.cpp:132
std::int32_t getEventFlags() const noexcept override
Returns transactional event flags.
Definition Greeks.cpp:128
void setGamma(double gamma) noexcept
Changes option gamma.
Definition Greeks.cpp:204
double getDelta() const noexcept
Return option delta.
Definition Greeks.cpp:192
void setRho(double rho) noexcept
Changes option rho.
Definition Greeks.cpp:220
void setEventFlags(const EventFlagsMask &eventFlags) noexcept override
Changes transactional event flags.
Definition Greeks.cpp:140
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition Greeks.cpp:79
std::int64_t getTime() const noexcept override
Returns the timestamp of the event in milliseconds.
Definition Greeks.cpp:152
void setTime(std::int64_t time) noexcept
Changes the timestamp of the event in milliseconds.
Definition Greeks.cpp:156
double getVolatility() const noexcept
Returns Black-Scholes implied volatility of the option.
Definition Greeks.cpp:184
void setTheta(double theta) noexcept
Changes option theta.
Definition Greeks.cpp:212
void setPrice(double price) noexcept
Changes option market price.
Definition Greeks.cpp:180
static constexpr std::uint32_t MAX_SEQUENCE
Maximum allowed sequence value.
Definition Greeks.hpp:109
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition Greeks.cpp:110
void setDelta(double delta) noexcept
Changes option delta.
Definition Greeks.cpp:196
Builder is a static inner class that provides a flexible and readable way to construct instances of t...
Definition HistoryEndpoint.hpp:113
std::shared_ptr< Builder > withAuthToken(const StringLike &authToken)
Sets the authentication token for the target endpoint.
Definition HistoryEndpoint.cpp:56
std::shared_ptr< Builder > withAddress(const StringLike &address)
Specifies the address for the target endpoint.
Definition HistoryEndpoint.cpp:38
std::shared_ptr< HistoryEndpoint > build() const
Builds and returns a configured instance of HistoryEndpoint.
Definition HistoryEndpoint.cpp:74
std::shared_ptr< Builder > withFormat(Format format)
Sets the format to be used for data handling.
Definition HistoryEndpoint.cpp:68
std::shared_ptr< Builder > withPassword(const StringLike &password)
Sets the password for the target endpoint.
Definition HistoryEndpoint.cpp:50
std::shared_ptr< Builder > withUserName(const StringLike &userName)
Sets the username for the target endpoint.
Definition HistoryEndpoint.cpp:44
std::shared_ptr< Builder > withCompression(Compression compression)
Sets the compression type to be used for data transmission or storage.
Definition HistoryEndpoint.cpp:62
std::shared_ptr< Builder > withAuthToken(const AuthToken &authToken)
Sets the authentication token for the target endpoint.
Definition HistoryEndpoint.hpp:160
Represents a subscription to a specific source of indexed events.
Definition IndexedEventSubscriptionSymbol.hpp:42
virtual const std::unique_ptr< SymbolWrapper > & getEventSymbol() const
Returns the wrapped event symbol (CandleSymbol, WildcardSymbol, etc.).
Definition IndexedEventSubscriptionSymbol.cpp:18
virtual void * toGraal() const
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition IndexedEventSubscriptionSymbol.cpp:26
static IndexedEventSubscriptionSymbol fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure (rec...
Definition IndexedEventSubscriptionSymbol.cpp:48
virtual const std::unique_ptr< IndexedEventSource > & getSource() const
Returns indexed event source.
Definition IndexedEventSubscriptionSymbol.cpp:22
IndexedEventSubscriptionSymbol(const SymbolWrapper &eventSymbol, const IndexedEventSource &source)
Creates an indexed event subscription symbol with a specified event symbol and source.
Definition IndexedEventSubscriptionSymbol.cpp:12
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition IndexedEventSubscriptionSymbol.cpp:35
virtual std::string toString() const
Returns string representation of this indexed event subscription symbol.
Definition IndexedEventSubscriptionSymbol.cpp:64
static Ptr create()
Creates the new InstrumentProfileCollector.
Definition InstrumentProfileCollector.cpp:136
std::shared_ptr< IterableInstrumentProfile > view() const
Returns a concurrent view of the set of instrument profiles.
Definition InstrumentProfileCollector.cpp:165
std::chrono::milliseconds getLastUpdateTimeAsDuration() const
Returns last modification time (as std::chrono::milliseconds) of instrument profiles or zero if it is...
Definition InstrumentProfileCollector.cpp:153
void updateInstrumentProfile(std::shared_ptr< InstrumentProfile > ip) const
Convenience method to update one instrument profile in this collector.
Definition InstrumentProfileCollector.cpp:157
std::int64_t getLastUpdateTime() const
Returns last modification time (in milliseconds) of instrument profiles or zero if it is unknown.
Definition InstrumentProfileCollector.cpp:145
std::shared_ptr< InstrumentProfile > next() const
Returns the next element in the iteration.
Definition IterableInstrumentProfile.cpp:29
bool hasNext() const noexcept
Returns true if the iterable has more elements.
Definition IterableInstrumentProfile.cpp:21
Message event with an application-specific attachment.
Definition Message.hpp:37
Message & withEventSymbol(const StringLike &eventSymbol) noexcept
Changes an event's symbol and returns the current message.
Definition Message.cpp:145
void setEventTime(std::int64_t eventTime) noexcept override
Changes event creation time.
Definition Message.cpp:155
Message & withEventTime(std::int64_t eventTime) noexcept
Changes the event's creation time and returns the current message.
Definition Message.cpp:159
const std::string & getEventSymbol() const &noexcept override
Returns a symbol of this event.
Definition Message.cpp:128
Message() noexcept
Creates a new message with default values.
Definition Message.cpp:118
void setEventSymbol(const StringLike &eventSymbol) noexcept override
Changes symbol of this event.
Definition Message.cpp:140
std::int64_t getEventTime() const noexcept override
Returns time when an event was created or zero when time is not available.
Definition Message.cpp:151
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition Message.cpp:79
const std::optional< std::string > & getAttachmentOpt() const &noexcept
Returns attachment of this event.
Definition Message.cpp:173
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition Message.hpp:56
std::string toString() const override
Returns a string representation of the current object.
Definition Message.cpp:187
void setAttachment(const StringLike &attachment)
Changes attachment.
Definition Message.cpp:177
Message(const StringLike &eventSymbol, const StringLike &attachment) noexcept
Creates a new message with the specified event symbol and attachment.
Definition Message.cpp:124
Message(const StringLike &eventSymbol) noexcept
Creates a new message with the specified event symbol.
Definition Message.cpp:121
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition Message.cpp:61
const std::string & getAttachment() const &
Returns attachment.
Definition Message.cpp:165
Message & withAttachment(const StringLike &attachment) noexcept
Changes attachment and returns the current message.
Definition Message.cpp:181
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition Message.cpp:92
const std::optional< std::string > & getEventSymbolOpt() const &noexcept override
Returns a symbol of this event.
Definition Message.cpp:136
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition Message.cpp:110
void setUnderlyingPrice(double underlyingPrice) noexcept
Changes underlying price at the time of this option sale event.
Definition OptionSale.cpp:506
bool isValidTick() const noexcept
Returns whether this event represents a valid intraday tick.
Definition OptionSale.cpp:462
void setExchangeSaleConditions(const StringLike &exchangeSaleConditions) noexcept
Changes sale conditions provided for this event by data feed.
Definition OptionSale.cpp:393
void setAggressorSide(const Side &side) noexcept
Changes aggressor side of this option sale event.
Definition OptionSale.cpp:424
bool isSpreadLeg() const noexcept
Returns whether this event represents a spread leg.
Definition OptionSale.cpp:434
std::string getExchangeCodeString() const noexcept
Returns exchange code of this option sale as UTF8 string.
Definition OptionSale.cpp:299
void setEventFlags(std::int32_t eventFlags) noexcept override
Changes transactional event flags.
Definition OptionSale.cpp:180
OptionSale & withAskPrice(double askPrice) noexcept
Changes the current ask price on the market when this option sale event had occurred.
Definition OptionSale.cpp:375
std::int64_t getTimeSequence() const noexcept
Returns time and sequence of this event packaged into a single long value.
Definition OptionSale.cpp:214
static constexpr std::uint32_t MAX_SEQUENCE
Maximum allowed sequence value.
Definition OptionSale.hpp:107
void setIndex(std::int64_t index) override
Changes the unique per-symbol index of this event.
Definition OptionSale.cpp:204
OptionSale & withTimeSequence(std::int64_t timeSequence) noexcept
Changes time and sequence of this event.
Definition OptionSale.cpp:222
void setTimeSequence(std::int64_t timeSequence) noexcept
Changes time and sequence of this event.
Definition OptionSale.cpp:218
const IndexedEventSource & getSource() const &noexcept override
Returns the source of this event.
Definition OptionSale.cpp:168
OptionSale & withValidTick(bool validTick) noexcept
Changes whether this event represents a valid intraday tick.
Definition OptionSale.cpp:470
std::int64_t getTime() const noexcept
Returns time of this event.
Definition OptionSale.cpp:228
OptionSale & withAggressorSide(const Side &side) noexcept
Changes aggressor side of this option sale event.
Definition OptionSale.cpp:428
OptionSale & withTimeNanoPart(std::int32_t timeNanoPart) noexcept
Changes microseconds and nanoseconds time part of this option sale.
Definition OptionSale.cpp:265
OptionSale & withExtendedTradingHours(bool extendedTradingHours) noexcept
Changes whether this event represents an extended trading hours sale.
Definition OptionSale.cpp:456
void setExchangeCode(std::int16_t exchangeCode) noexcept
Changes exchange code of this option sale event.
Definition OptionSale.cpp:315
void setPrice(double price) noexcept
Changes price of this option sale event.
Definition OptionSale.cpp:329
bool isExtendedTradingHours() const noexcept
Returns whether this event represents an extended trading hours sale.
Definition OptionSale.cpp:448
void setVolatility(double volatility) noexcept
Changes Black-Scholes implied volatility of the option at the time of this option sale event.
Definition OptionSale.cpp:520
OptionSale() noexcept
Creates new option sale event with default values.
Definition OptionSale.cpp:150
std::string toString() const override
Returns a string representation of the current object.
Definition OptionSale.cpp:566
OptionSale(const StringLike &eventSymbol) noexcept
Creates a new option sale event with the specified event symbol.
Definition OptionSale.cpp:153
double getPrice() const noexcept
Returns price of this option sale event.
Definition OptionSale.cpp:325
OptionSale & withSize(double size) noexcept
Changes the size of this option sale event.
Definition OptionSale.cpp:347
OptionSale & withType(const TimeAndSaleType &type) noexcept
Changes the type of this option sale event.
Definition OptionSale.cpp:484
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition OptionSale.cpp:122
const std::string & getOptionSymbol() const &noexcept
Returns option symbol of this event.
Definition OptionSale.cpp:544
OptionSale & withEventFlags(std::int32_t eventFlags) noexcept
Changes transactional event flags and returns the current option sale.
Definition OptionSale.cpp:184
OptionSale & withDelta(double delta) noexcept
Changes option delta at the time of this option sale event.
Definition OptionSale.cpp:538
OptionSale & withOptionSymbol(const StringLike &optionSymbol) noexcept
Changes option symbol of this event.
Definition OptionSale.cpp:560
std::int16_t getExchangeCode() const noexcept
Returns exchange code of this option sale event.
Definition OptionSale.cpp:295
bool isNew() const noexcept
Returns whether this is a new event (not cancellation or correction).
Definition OptionSale.cpp:490
void setTradeThroughExempt(char tradeThroughExempt)
Changes TradeThroughExempt flag of this option sale event.
Definition OptionSale.cpp:408
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition OptionSale.cpp:142
OptionSale & withPrice(double price) noexcept
Changes price of this option sale event.
Definition OptionSale.cpp:333
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition OptionSale.hpp:100
void setExchangeCode(char exchangeCode) noexcept
Changes exchange code of this option sale event.
Definition OptionSale.cpp:305
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition OptionSale.cpp:109
const std::optional< std::string > & getExchangeSaleConditionsOpt() const &noexcept
Returns sale conditions provided for this event by data feed.
Definition OptionSale.cpp:389
std::int64_t getTimeNanos() const noexcept
Returns time of the original event in nanoseconds.
Definition OptionSale.cpp:246
void setSize(double size) noexcept
Changes the size of this option sale event.
Definition OptionSale.cpp:343
void setSpreadLeg(bool spreadLeg) noexcept
Changes whether this event represents a spread leg.
Definition OptionSale.cpp:438
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition OptionSale.cpp:89
OptionSale & withTime(std::int64_t time) noexcept
Changes the timestamp of the event in milliseconds.
Definition OptionSale.cpp:240
std::int32_t getTimeNanoPart() const noexcept
Returns microseconds and nanoseconds time part of the original event.
Definition OptionSale.cpp:271
void setExtendedTradingHours(bool extendedTradingHours) noexcept
Changes whether this event represents an extended trading hours sale.
Definition OptionSale.cpp:452
OptionSale & withSequence(std::int32_t sequence) noexcept
Changes sequence number of this event.
Definition OptionSale.cpp:289
void setAskPrice(double askPrice) noexcept
Changes the current ask price on the market when this option sale event had occurred.
Definition OptionSale.cpp:371
std::int64_t getIndex() const noexcept override
Returns a unique per-symbol index of this event.
Definition OptionSale.cpp:200
void setValidTick(bool validTick) noexcept
Changes whether this event represents a valid intraday tick.
Definition OptionSale.cpp:466
OptionSale & withVolatility(double volatility) noexcept
Changes Black-Scholes implied volatility of the option at the time of this option sale event.
Definition OptionSale.cpp:524
OptionSale & withBidPrice(double bidPrice) noexcept
Changes the current bid price on the market when this option sale event had occurred.
Definition OptionSale.cpp:361
const TimeAndSaleType & getType() const &noexcept
Returns the type of this option sale event.
Definition OptionSale.cpp:476
OptionSale & withEventSymbol(const StringLike &eventSymbol) noexcept
Changes an event's symbol and returns the current option sale.
Definition OptionSale.cpp:156
std::int32_t getSequence() const noexcept
Returns the sequence number of this event to distinguish events that have the same time.
Definition OptionSale.cpp:275
void setBidPrice(double bidPrice) noexcept
Changes the current bid price on the market when this option sale event had occurred.
Definition OptionSale.cpp:357
void setType(const TimeAndSaleType &type) noexcept
Changes the type of this option sale event.
Definition OptionSale.cpp:480
OptionSale & withEventTime(std::int64_t eventTime) noexcept
Changes event's creation time and returns the current option sale.
Definition OptionSale.cpp:162
const std::optional< std::string > & getOptionSymbolOpt() const &noexcept
Returns option symbol of this event.
Definition OptionSale.cpp:552
OptionSale & withTimeNanos(std::int64_t timeNanos) noexcept
Changes the time of this option sale and returns it.
Definition OptionSale.cpp:255
void setSequence(std::int32_t sequence)
Changes sequence number of this event.
Definition OptionSale.cpp:279
void setDelta(double delta) noexcept
Changes option delta at the time of this option sale event.
Definition OptionSale.cpp:534
OptionSale & withUnderlyingPrice(double underlyingPrice) noexcept
Changes underlying price at the time of this option sale event.
Definition OptionSale.cpp:510
OptionSale & withExchangeCode(std::int16_t exchangeCode) noexcept
Changes exchange code of this option sale event.
Definition OptionSale.cpp:319
bool isCancel() const noexcept
Returns whether this is a cancellation of a previous event.
Definition OptionSale.cpp:498
void setOptionSymbol(const StringLike &optionSymbol) noexcept
Changes option symbol of this event.
Definition OptionSale.cpp:556
void setTimeNanos(std::int64_t timeNanos) noexcept
Changes time of the original event.
Definition OptionSale.cpp:250
OptionSale & withExchangeCode(char exchangeCode) noexcept
Changes exchange code of this option sale event.
Definition OptionSale.cpp:309
const Side & getAggressorSide() const &noexcept
Returns the aggressor side of this option sale event.
Definition OptionSale.cpp:420
std::int32_t getEventFlags() const noexcept override
Returns transactional event flags.
Definition OptionSale.cpp:172
const std::string & getExchangeSaleConditions() const &noexcept
Returns sale conditions provided for this event by data feed.
Definition OptionSale.cpp:381
char getTradeThroughExempt() const noexcept
Returns TradeThroughExempt flag of this option sale event.
Definition OptionSale.cpp:403
OptionSale & withTradeThroughExempt(char tradeThroughExempt)
Changes TradeThroughExempt flag of this option sale event.
Definition OptionSale.cpp:414
double getAskPrice() const noexcept
Returns the current ask price on the market when this option sale event had occurred.
Definition OptionSale.cpp:367
EventFlagsMask getEventFlagsMask() const noexcept override
Returns transactional event flags.
Definition OptionSale.cpp:176
double getVolatility() const noexcept
Returns Black-Scholes implied volatility of the option at the time of this option sale event.
Definition OptionSale.cpp:516
void setTime(std::int64_t time) noexcept
Changes time of this event.
Definition OptionSale.cpp:233
bool isCorrection() const noexcept
Returns whether this is a correction of a previous event.
Definition OptionSale.cpp:494
double getBidPrice() const noexcept
Returns the current bid price on the market when this option sale event had occurred.
Definition OptionSale.cpp:353
OptionSale & withEventFlags(const EventFlagsMask &eventFlags) noexcept
Changes transactional event flags and returns the current option sale.
Definition OptionSale.cpp:194
double getSize() const noexcept
Returns the size of this option sale event.
Definition OptionSale.cpp:339
void setTimeNanoPart(std::int32_t timeNanoPart) noexcept
Changes microseconds and nanoseconds time part of the original event.
Definition OptionSale.cpp:261
void setEventFlags(const EventFlagsMask &eventFlags) noexcept override
Changes transactional event flags.
Definition OptionSale.cpp:190
double getUnderlyingPrice() const noexcept
Returns the underlying price at the time of this option sale event.
Definition OptionSale.cpp:502
OptionSale & withExchangeSaleConditions(const StringLike &exchangeSaleConditions) noexcept
Changes sale conditions provided for this event by data feed.
Definition OptionSale.cpp:397
OptionSale & withSpreadLeg(bool spreadLeg) noexcept
Changes whether this event represents a spread leg.
Definition OptionSale.cpp:442
OptionSale & withIndex(std::int64_t index) noexcept
Changes unique per-symbol index of this event.
Definition OptionSale.cpp:208
double getDelta() const noexcept
Return option delta at the time of this option sale event.
Definition OptionSale.cpp:530
Base class for common fields of Order, AnalyticOrder, and SpreadOrder events.
Definition OrderBase.hpp:81
void setPrice(double price) noexcept
Changes price of this order.
Definition OrderBase.cpp:215
const OrderSource & getSource() const &noexcept override
Returns source of this event.
Definition OrderBase.cpp:81
void setTimeNanoPart(std::int32_t timeNanoPart) noexcept
Changes microseconds and nanoseconds time part of this order.
Definition OrderBase.cpp:150
void setSize(double size) noexcept
Changes size of this order.
Definition OrderBase.cpp:223
double getTradePrice() const noexcept
Returns trade price for events containing trade-related action.
Definition OrderBase.cpp:255
double getSize() const noexcept
Returns size of this order.
Definition OrderBase.cpp:219
void setIndex(std::int64_t index) override
Changes the unique per-symbol index of this order.
Definition OrderBase.cpp:118
std::int64_t getTime() const noexcept
Returns time of this order.
Definition OrderBase.cpp:138
std::int64_t getIndex() const noexcept override
Returns a unique per-symbol index of this order.
Definition OrderBase.cpp:126
std::int64_t getAuxOrderId() const noexcept
Returns auxiliary order ID if available:
Definition OrderBase.cpp:203
void setExchangeCode(char exchangeCode)
Changes exchange code of this order.
Definition OrderBase.cpp:284
void setSource(const OrderSource &source) noexcept
Changes source of this event.
Definition OrderBase.cpp:91
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition OrderBase.cpp:67
std::int64_t getTimeNanos() const noexcept
Returns time of this order in nanoseconds.
Definition OrderBase.cpp:170
void setOrderSide(const Side &side) noexcept
Changes side of this order.
Definition OrderBase.cpp:299
void setSequence(std::int32_t sequence)
Changes sequence number of this order.
Definition OrderBase.cpp:162
double getExecutedSize() const noexcept
Returns executed size of this order.
Definition OrderBase.cpp:231
void setOrderId(std::int64_t orderId) noexcept
Changes order ID.
Definition OrderBase.cpp:199
void setTradeId(std::int64_t tradeId) noexcept
Changes trade ID.
Definition OrderBase.cpp:251
void setTime(std::int64_t time) noexcept
Changes time of this order.
Definition OrderBase.cpp:143
std::string baseFieldsToString() const
Returns string representation of this order event's fields.
Definition OrderBase.cpp:311
void setTimeSequence(std::int64_t timeSequence) noexcept
Changes time and sequence of this order.
Definition OrderBase.cpp:134
const Side & getOrderSide() const &noexcept
Returns side of this order.
Definition OrderBase.cpp:295
void setScope(const Scope &scope) noexcept
Changes scope of this order.
Definition OrderBase.cpp:307
void setEventFlags(const EventFlagsMask &eventFlags) noexcept override
Changes transactional event flags.
Definition OrderBase.cpp:114
void setExecutedSize(double executedSize) noexcept
Changes executed size of this order.
Definition OrderBase.cpp:235
void setTimeNanos(std::int64_t timeNanos) noexcept
Changes time of this order.
Definition OrderBase.cpp:174
std::int64_t getCount() const noexcept
Returns the number of individual orders in this aggregate order.
Definition OrderBase.cpp:239
std::int16_t getExchangeCode() const noexcept
Returns exchange code of this order.
Definition OrderBase.cpp:271
std::string getExchangeCodeString() const noexcept
Returns exchange code of this order as UTF8 string.
Definition OrderBase.cpp:276
double getTradeSize() const noexcept
Returns trade size for events containing trade-related action.
Definition OrderBase.cpp:263
OrderBase() noexcept
Creates new order event with default values.
Definition OrderBase.cpp:75
std::int32_t getSequence() const noexcept
Returns sequence number of this order to distinguish orders that have the same time.
Definition OrderBase.cpp:158
void setExchangeCode(std::int16_t exchangeCode) noexcept
Changes exchange code of this order.
Definition OrderBase.cpp:291
std::int64_t getOrderId() const noexcept
Returns order ID if available.
Definition OrderBase.cpp:195
std::int32_t getTimeNanoPart() const noexcept
Returns microseconds and nanoseconds time part of this order.
Definition OrderBase.cpp:154
void setActionTime(std::int64_t actionTime) noexcept
Changes time of the last action.
Definition OrderBase.cpp:191
const OrderAction & getAction() const &noexcept
Returns order action if available, otherwise - OrderAction::UNDEFINED.
Definition OrderBase.cpp:179
void setTradeSize(double tradeSize) noexcept
Changes trade size.
Definition OrderBase.cpp:267
EventFlagsMask getEventFlagsMask() const noexcept override
Returns transactional event flags.
Definition OrderBase.cpp:106
double getPrice() const noexcept
Returns price of this order.
Definition OrderBase.cpp:211
static constexpr std::uint32_t MAX_SEQUENCE
Maximum allowed sequence value.
Definition OrderBase.hpp:169
void setEventFlags(std::int32_t eventFlags) noexcept override
Changes transactional event flags.
Definition OrderBase.cpp:110
void setAuxOrderId(std::int64_t auxOrderId) noexcept
Changes auxiliary order ID.
Definition OrderBase.cpp:207
const Scope & getScope() const &noexcept
Returns scope of this order.
Definition OrderBase.cpp:303
void setAction(const OrderAction &action) noexcept
Changes action of this order.
Definition OrderBase.cpp:183
std::int32_t getEventFlags() const noexcept override
Returns transactional event flags.
Definition OrderBase.cpp:102
void setCount(std::int64_t count) noexcept
Changes the number of individual orders in this aggregate order.
Definition OrderBase.cpp:243
std::int64_t getActionTime() const noexcept
Returns time of the last action.
Definition OrderBase.cpp:187
bool hasSize() const noexcept
Returns true if this order has some size (sizeAsDouble is neither 0 nor NaN).
Definition OrderBase.cpp:227
std::int64_t getTradeId() const noexcept
Returns trade (order execution) ID for events containing trade-related action.
Definition OrderBase.cpp:247
std::int64_t getTimeSequence() const noexcept
Returns time and sequence of this order packaged into a single long value.
Definition OrderBase.cpp:130
OrderBase(const StringLike &eventSymbol) noexcept
Creates a new order event with the specified event symbol.
Definition OrderBase.cpp:78
void setTradePrice(double tradePrice) noexcept
Changes trade price.
Definition OrderBase.cpp:259
static const OrderSource GLBX
CME Globex.
Definition OrderSource.hpp:357
static const OrderSource smfe
Small Exchange.
Definition OrderSource.hpp:421
static const OrderSource bzx
Bats BZX Exchange.
Definition OrderSource.hpp:285
static const OrderSource DEX
Direct-Edge EDGX Exchange.
Definition OrderSource.hpp:252
static const OrderSource NTV
NASDAQ Total View.
Definition OrderSource.hpp:188
static const OrderSource AGGREGATE_ASK
Ask side of an aggregate order book (futures depth and NASDAQ Level II).
Definition OrderSource.hpp:141
static const OrderSource & valueOf(std::int32_t sourceId)
Returns order source for the specified source identifier.
Definition OrderSource.cpp:197
static const OrderSource ESPD
NASDAQ eSpeed.
Definition OrderSource.hpp:212
static const OrderSource CFE
CBOE Futures Exchange.
Definition OrderSource.hpp:397
static const OrderSource ntv
NASDAQ Total View.
Definition OrderSource.hpp:196
static const OrderSource ICE
Intercontinental Exchange.
Definition OrderSource.hpp:228
static const OrderSource BZX
Bats BZX Exchange.
Definition OrderSource.hpp:277
static const OrderSource C2OX
CBOE Options C2 Exchange.
Definition OrderSource.hpp:405
static const OrderSource AGGREGATE
Aggregate order book (futures depth and NASDAQ Level II).
Definition OrderSource.hpp:173
static const OrderSource REGIONAL_ASK
Ask side of a regional Quote.
Definition OrderSource.hpp:125
static const OrderSource REGIONAL_BID
Bid side of a regional Quote.
Definition OrderSource.hpp:116
static const OrderSource igc
IG CFDs Gate.
Definition OrderSource.hpp:517
static const OrderSource ABE
ABE (abe.io) exchange.
Definition OrderSource.hpp:341
static const OrderSource CEUX
Bats Europe DXE Exchange.
Definition OrderSource.hpp:309
static const OrderSource OCEA
Blue Ocean Technologies Alternative Trading System.
Definition OrderSource.hpp:453
static const OrderSource AGGREGATE_BID
Bid side of an aggregate order book (futures depth and NASDAQ Level II).
Definition OrderSource.hpp:133
static const OrderSource BXTR
Bats Europe TRF.
Definition OrderSource.hpp:317
static const OrderSource & valueOf(const StringLike &name)
Returns order source for the specified source name.
Definition OrderSource.cpp:211
static const OrderSource dex
Direct-Edge EDGX Exchange.
Definition OrderSource.hpp:261
static const OrderSource cedx
Cboe European Derivatives.
Definition OrderSource.hpp:501
static const OrderSource COMPOSITE
Composite Quote.
Definition OrderSource.hpp:152
static const OrderSource COMPOSITE_ASK
Ask side of a composite Quote.
Definition OrderSource.hpp:107
static const OrderSource REGIONAL
Regional Quote.
Definition OrderSource.hpp:163
static const OrderSource XNFI
NASDAQ Fixed Income.
Definition OrderSource.hpp:220
static const OrderSource iex
Investors exchange.
Definition OrderSource.hpp:429
static const OrderSource xeur
Eurex Exchange.
Definition OrderSource.hpp:389
static const OrderSource CEDX
Cboe European Derivatives.
Definition OrderSource.hpp:493
static const OrderSource ISE
International Securities Exchange.
Definition OrderSource.hpp:236
static const OrderSource DEA
Direct-Edge EDGA Exchange.
Definition OrderSource.hpp:244
static const OrderSource glbx
CME Globex.
Definition OrderSource.hpp:365
static const OrderSource ocea
Blue Ocean Technologies Alternative Trading System.
Definition OrderSource.hpp:460
static const OrderSource EDX
EDX Exchange.
Definition OrderSource.hpp:525
static const OrderSource BI20
Borsa Istanbul Exchange.
Definition OrderSource.hpp:333
static const OrderSource NUAM
Nuam Exchange Gate.
Definition OrderSource.hpp:541
static const OrderSource BYX
Bats BYX Exchange.
Definition OrderSource.hpp:269
static const OrderSource IGC
IG CFDs Gate.
Definition OrderSource.hpp:509
static const OrderSource FAIR
FAIR (FairX) exchange.
Definition OrderSource.hpp:349
static const OrderSource BATE
Bats Europe BXE Exchange.
Definition OrderSource.hpp:293
static const OrderSource pink
Pink Sheets.
Definition OrderSource.hpp:469
static const OrderSource DEFAULT
Default source for publishing custom order books.
Definition OrderSource.hpp:180
static const OrderSource NFX
NASDAQ Futures Exchange.
Definition OrderSource.hpp:204
static const OrderSource memx
Members Exchange.
Definition OrderSource.hpp:445
static bool isSpecialSourceId(std::int32_t sourceId) noexcept
Determines whether the specified source identifier refers to a special order source.
Definition OrderSource.cpp:193
static const OrderSource IST
Borsa Istanbul Exchange.
Definition OrderSource.hpp:325
static const OrderSource edx
EDX Exchange.
Definition OrderSource.hpp:533
static const OrderSource ARCA
NYSE Arca traded securities.
Definition OrderSource.hpp:477
static const OrderSource CHIX
Bats Europe CXE Exchange.
Definition OrderSource.hpp:301
static const OrderSource ERIS
Eris Exchange group of companies.
Definition OrderSource.hpp:373
static const OrderSource nuam
Nuam Exchange Gate.
Definition OrderSource.hpp:549
static const OrderSource XEUR
Eurex Exchange.
Definition OrderSource.hpp:381
static const OrderSource MEMX
Members Exchange.
Definition OrderSource.hpp:437
static const OrderSource COMPOSITE_BID
Bid side of a composite Quote.
Definition OrderSource.hpp:98
static const OrderSource arca
NYSE Arca traded securities.
Definition OrderSource.hpp:485
static const OrderSource SMFE
Small Exchange.
Definition OrderSource.hpp:413
Order event is a snapshot for a full available market depth for a symbol.
Definition Order.hpp:98
virtual Order & withTradeSize(double tradeSize) noexcept
Changes trade size.
Definition Order.cpp:238
Order(const StringLike &eventSymbol) noexcept
Creates a new order event with the specified event symbol.
Definition Order.cpp:115
virtual Order & withTimeNanos(std::int64_t timeNanos) noexcept
Changes time of this order and returns it.
Definition Order.cpp:172
virtual Order & withTime(std::int64_t time) noexcept
Changes time of this order and returns it.
Definition Order.cpp:154
virtual Order & withSequence(std::int32_t sequence) noexcept
Changes sequence number of this order.
Definition Order.cpp:166
virtual Order & withOrderId(std::int64_t orderId) noexcept
Changes order ID.
Definition Order.cpp:190
virtual Order & withSource(const OrderSource &source) noexcept
Changes an event's source and returns the current order.
Definition Order.cpp:130
virtual Order & withExchangeCode(char exchangeCode) noexcept
Changes exchange code of this order.
Definition Order.cpp:244
virtual Order & withMarketMaker(const StringLike &marketMaker) noexcept
Changes market maker or other aggregate identifier of this order.
Definition Order.cpp:284
const std::string & getMarketMaker() const &noexcept
Returns market maker or other aggregate identifier of this order.
Definition Order.cpp:268
virtual Order & withEventFlags(std::int32_t eventFlags) noexcept
Changes transactional event flags and returns the current order.
Definition Order.cpp:136
virtual Order & withScope(const Scope &scope) noexcept
Changes scope of this order.
Definition Order.cpp:262
virtual Order & withExecutedSize(double executedSize) noexcept
Changes executed size of this order.
Definition Order.cpp:214
virtual Order & withEventFlags(const EventFlagsMask &eventFlags) noexcept
Changes transactional event flags and returns the current order.
Definition Order.cpp:142
virtual Order & withAction(const OrderAction &action) noexcept
Changes the action of this order and returns it.
Definition Order.cpp:178
virtual Order & withTimeNanoPart(std::int32_t timeNanoPart) noexcept
Changes microseconds and nanoseconds time part of this order.
Definition Order.cpp:160
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition Order.cpp:104
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition Order.cpp:73
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition Order.cpp:86
virtual Order & withSize(double size) noexcept
Changes size of this order.
Definition Order.cpp:208
virtual Order & withPrice(double price) noexcept
Changes price of this order.
Definition Order.cpp:202
std::string toString() const override
Returns a string representation of the current object.
Definition Order.cpp:290
virtual Order & withAuxOrderId(std::int64_t auxOrderId) noexcept
Changes auxiliary order ID.
Definition Order.cpp:196
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition Order.cpp:53
Order() noexcept
Creates new order event with default values.
Definition Order.cpp:112
virtual Order & withIndex(std::int64_t index) noexcept
Changes the unique per-symbol index of this order and returns it.
Definition Order.cpp:148
virtual Order & withOrderSide(const Side &side) noexcept
Changes side of this order.
Definition Order.cpp:256
virtual Order & withEventTime(std::int64_t eventTime) noexcept
Changes the event's creation time and returns the current order.
Definition Order.cpp:124
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition Order.hpp:120
virtual Order & withEventSymbol(const StringLike &eventSymbol) noexcept
Changes an event's symbol and returns the current order.
Definition Order.cpp:118
virtual Order & withExchangeCode(std::int16_t exchangeCode) noexcept
Changes exchange code of this order.
Definition Order.cpp:250
void setMarketMaker(const StringLike &marketMaker) noexcept
Changes market maker or other aggregate identifier of this order.
Definition Order.cpp:280
virtual Order & withCount(std::int64_t count) noexcept
Changes the number of individual orders in this aggregate order.
Definition Order.cpp:220
virtual Order & withTradeId(std::int64_t tradeId) noexcept
Changes trade ID.
Definition Order.cpp:226
virtual Order & withTradePrice(double tradePrice) noexcept
Changes trade price.
Definition Order.cpp:232
virtual Order & withActionTime(std::int64_t actionTime) noexcept
Changes time of the last action and returns the current order.
Definition Order.cpp:184
const std::optional< std::string > & getMarketMakerOpt() const &noexcept
Returns market maker or other aggregate identifier of this order.
Definition Order.cpp:276
bool isSaturated() const noexcept
Returns whether this event should NOT be considered for the inside price.
Definition OtcMarketsOrder.cpp:279
OtcMarketsOrder & withAutoExecution(bool autoExecution) noexcept
Changes whether this event is in 'AutoEx' mode.
Definition OtcMarketsOrder.cpp:309
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition OtcMarketsOrder.cpp:76
OtcMarketsOrder & withExecutedSize(double executedSize) noexcept override
Changes executed size of this OTC Markets order.
Definition OtcMarketsOrder.cpp:173
void setNmsConditional(bool nmsConditional) noexcept
Changes whether this event represents a NMS conditional.
Definition OtcMarketsOrder.cpp:319
OtcMarketsOrder & withEventSymbol(const StringLike &eventSymbol) noexcept override
Changes the event's symbol and returns the current OTC Markets order.
Definition OtcMarketsOrder.cpp:109
const OtcMarketsPriceType & getOtcMarketsPriceType() const &noexcept
Returns OTC Markets price type of this OTC Markets order events.
Definition OtcMarketsOrder.cpp:263
OtcMarketsOrder & withPrice(double price) noexcept override
Changes price of this OTC Markets order.
Definition OtcMarketsOrder.cpp:165
bool isNmsConditional() const noexcept
Returns whether this event represents a NMS conditional.
Definition OtcMarketsOrder.cpp:315
OtcMarketsOrder & withTimeNanoPart(std::int32_t timeNanoPart) noexcept override
Changes microseconds and nanoseconds time part of this OTC Markets order.
Definition OtcMarketsOrder.cpp:137
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition OtcMarketsOrder.cpp:95
void setUnsolicited(bool unsolicited) noexcept
Changes whether this event is unsolicited.
Definition OtcMarketsOrder.cpp:249
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition OtcMarketsOrder.hpp:153
OtcMarketsOrder & withCount(std::int64_t count) noexcept override
Changes a number of individual orders in this aggregate order.
Definition OtcMarketsOrder.cpp:177
std::string toString() const override
Returns a string representation of the current object.
Definition OtcMarketsOrder.cpp:333
OtcMarketsOrder & withIndex(std::int64_t index) noexcept override
Changes unique per-symbol index of this OTC Markets order and returns it.
Definition OtcMarketsOrder.cpp:129
OtcMarketsOrder & withTime(std::int64_t time) noexcept override
Changes time of this OTC Markets order and returns it.
Definition OtcMarketsOrder.cpp:133
OtcMarketsOrder & withExchangeCode(char exchangeCode) noexcept override
Changes exchange code of this OTC Markets order.
Definition OtcMarketsOrder.cpp:193
void setQuoteAccessPayment(std::int32_t quoteAccessPayment) noexcept
Changes Quote Access Payment (QAP) of this OTC Markets order.
Definition OtcMarketsOrder.cpp:217
OtcMarketsOrder & withAuxOrderId(std::int64_t auxOrderId) noexcept override
Changes auxiliary order ID.
Definition OtcMarketsOrder.cpp:161
OtcMarketsOrder & withTimeNanos(std::int64_t timeNanos) noexcept override
Changes time of this OTC Markets order and returns it.
Definition OtcMarketsOrder.cpp:145
OtcMarketsOrder & withTradeId(std::int64_t tradeId) noexcept override
Changes trade ID.
Definition OtcMarketsOrder.cpp:181
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition OtcMarketsOrder.cpp:44
OtcMarketsOrder & withOrderSide(const Side &side) noexcept override
Changes side of this OTC Markets order.
Definition OtcMarketsOrder.cpp:201
OtcMarketsOrder() noexcept
Creates new OTC Markets order event with default values.
Definition OtcMarketsOrder.cpp:103
void setSaturated(bool saturated) noexcept
Changes whether this event should NOT be considered for the inside price.
Definition OtcMarketsOrder.cpp:283
void setOtcMarketsPriceType(const OtcMarketsPriceType &otcPriceType) noexcept
Changes OTC Markets price type of this OTC Markets order events.
Definition OtcMarketsOrder.cpp:268
OtcMarketsOrder & withQuoteAccessPayment(std::int32_t quoteAccessPayment) noexcept
Changes Quote Access Payment (QAP) and returns the current OTC Markets order.
Definition OtcMarketsOrder.cpp:221
OtcMarketsOrder & withAction(const OrderAction &action) noexcept override
Changes an action of this OTC Markets order and returns it.
Definition OtcMarketsOrder.cpp:149
OtcMarketsOrder & withSequence(std::int32_t sequence) noexcept override
Changes sequence number of this OTC Markets order.
Definition OtcMarketsOrder.cpp:141
OtcMarketsOrder(const StringLike &eventSymbol) noexcept
Creates new OTC Markets order event with the specified event symbol.
Definition OtcMarketsOrder.cpp:106
OtcMarketsOrder & withEventFlags(std::int32_t eventFlags) noexcept override
Changes transactional event flags and returns the current OTC Markets order.
Definition OtcMarketsOrder.cpp:121
std::int32_t getQuoteAccessPayment() const noexcept
Returns Quote Access Payment (QAP) of this OTC Markets order.
Definition OtcMarketsOrder.cpp:213
OtcMarketsOrder & withUnsolicited(bool unsolicited) noexcept
Changes whether this event is unsolicited.
Definition OtcMarketsOrder.cpp:257
OtcMarketsOrder & withOrderId(std::int64_t orderId) noexcept override
Changes order ID.
Definition OtcMarketsOrder.cpp:157
void setOpen(bool open) noexcept
Changes whether this event is available for business within the operating hours of the OTC Link syste...
Definition OtcMarketsOrder.cpp:231
bool isAutoExecution() const noexcept
Returns whether this event is in 'AutoEx' mode.
Definition OtcMarketsOrder.cpp:297
OtcMarketsOrder & withExchangeCode(std::int16_t exchangeCode) noexcept override
Changes exchange code of this OTC Markets order.
Definition OtcMarketsOrder.cpp:197
OtcMarketsOrder & withEventFlags(const EventFlagsMask &eventFlags) noexcept override
Changes transactional event flags and returns the current OTC Markets order.
Definition OtcMarketsOrder.cpp:125
OtcMarketsOrder & withOtcMarketsPriceType(const OtcMarketsPriceType &otcPriceType) noexcept
Changes OTC Markets price type of this OTC Markets order events.
Definition OtcMarketsOrder.cpp:273
OtcMarketsOrder & withSaturated(bool saturated) noexcept
Changes whether this event should NOT be considered for the inside price.
Definition OtcMarketsOrder.cpp:291
OtcMarketsOrder & withScope(const Scope &scope) noexcept override
Changes scope of this OTC Markets order.
Definition OtcMarketsOrder.cpp:205
OtcMarketsOrder & withMarketMaker(const StringLike &marketMaker) noexcept override
Changes market maker or other aggregate identifier of this OTC Markets order.
Definition OtcMarketsOrder.cpp:209
OtcMarketsOrder & withSize(double size) noexcept override
Changes size of this OTC Markets order.
Definition OtcMarketsOrder.cpp:169
OtcMarketsOrder & withTradeSize(double tradeSize) noexcept override
Changes trade size.
Definition OtcMarketsOrder.cpp:189
void setAutoExecution(bool autoExecution) noexcept
Changes whether this event is in 'AutoEx' mode.
Definition OtcMarketsOrder.cpp:301
bool isUnsolicited() const noexcept
Returns whether this event is unsolicited.
Definition OtcMarketsOrder.cpp:245
bool isOpen() const noexcept
Returns whether this event is available for business within the operating hours of the OTC Link syste...
Definition OtcMarketsOrder.cpp:227
OtcMarketsOrder & withSource(const OrderSource &source) noexcept override
Changes event's source and returns the current OTC Markets order.
Definition OtcMarketsOrder.cpp:117
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition OtcMarketsOrder.cpp:63
OtcMarketsOrder & withNmsConditional(bool nmsConditional) noexcept
Changes whether this event represents a NMS conditional.
Definition OtcMarketsOrder.cpp:327
OtcMarketsOrder & withActionTime(std::int64_t actionTime) noexcept override
Changes time of the last action and returns current OTC Markets order.
Definition OtcMarketsOrder.cpp:153
OtcMarketsOrder & withOpen(bool open) noexcept
Changes whether this event is available for business within the operating hours of the OTC Link syste...
Definition OtcMarketsOrder.cpp:239
OtcMarketsOrder & withEventTime(std::int64_t eventTime) noexcept override
Changes event's creation time and returns the current OTC Markets order.
Definition OtcMarketsOrder.cpp:113
OtcMarketsOrder & withTradePrice(double tradePrice) noexcept override
Changes trade price.
Definition OtcMarketsOrder.cpp:185
bool isShortSaleRestricted() const noexcept
Returns short sale restriction status of the security instrument.
Definition Profile.cpp:177
const TradingStatus & getTradingStatus() const &noexcept
Returns trading status of the security instrument.
Definition Profile.cpp:181
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition Profile.hpp:88
double getLow52WeekPrice() const noexcept
Returns the minimal (low) price in last 52 weeks.
Definition Profile.cpp:249
double getHigh52WeekPrice() const noexcept
Returns the maximal (high) price in last 52 weeks.
Definition Profile.cpp:241
double getExDividendAmount() const noexcept
Returns the amount of the last paid dividend.
Definition Profile.cpp:281
void setHaltEndTime(std::int64_t haltEndTime) noexcept
Changes ending time of the trading halt interval.
Definition Profile.cpp:221
void setHigh52WeekPrice(double high52WeekPrice) noexcept
Changes the maximal (high) price in last 52 weeks.
Definition Profile.cpp:245
double getBeta() const noexcept
Returns the correlation coefficient of the instrument to the S&P500 index.
Definition Profile.cpp:257
double getFreeFloat() const noexcept
Returns free-float - the number of shares outstanding that are available to the public for trade.
Definition Profile.cpp:305
double getLowLimitPrice() const noexcept
Returns the minimal (low) allowed price.
Definition Profile.cpp:233
void setEarningsPerShare(double earningsPerShare) noexcept
Changes Earnings per share (the company’s profits divided by the number of shares).
Definition Profile.cpp:269
bool isTradingHalted() const noexcept
Returns trading halt status of the security instrument.
Definition Profile.cpp:189
Profile(const StringLike &eventSymbol) noexcept
Creates a new profile event with the specified event symbol.
Definition Profile.cpp:150
double getHighLimitPrice() const noexcept
Returns the maximal (high) allowed price.
Definition Profile.cpp:225
double getDividendFrequency() const noexcept
Returns frequency of cash dividends payments per year (calculated).
Definition Profile.cpp:273
void setExDividendAmount(double exDividendAmount) noexcept
Changes the amount of the last paid dividend.
Definition Profile.cpp:285
void setFreeFloat(double freeFloat) noexcept
Changes free-float - the number of shares outstanding that are available to the public for trade.
Definition Profile.cpp:309
void setDividendFrequency(double dividendFrequency) noexcept
Changes frequency of cash dividends payments per year.
Definition Profile.cpp:277
const ShortSaleRestriction & getShortSaleRestriction() const &noexcept
Returns short sale restriction of the security instrument.
Definition Profile.cpp:169
const std::string & getDescription() const &noexcept
Returns description of the security instrument.
Definition Profile.cpp:153
void setHighLimitPrice(double highLimitPrice) noexcept
Changes the maximal (high) allowed price.
Definition Profile.cpp:229
double getEarningsPerShare() const noexcept
Returns earnings per share (the company’s profits divided by the number of shares).
Definition Profile.cpp:265
std::string toString() const override
Returns a string representation of the current object.
Definition Profile.cpp:313
std::int64_t getHaltStartTime() const noexcept
Returns starting time of the trading halt interval.
Definition Profile.cpp:209
const std::optional< std::string > & getStatusReasonOpt() const &noexcept
Returns a description of the reason that trading was halted.
Definition Profile.cpp:201
void setLowLimitPrice(double lowLimitPrice) noexcept
Changes the minimal (low) allowed price.
Definition Profile.cpp:237
Profile() noexcept
Creates a new profile event with default values.
Definition Profile.cpp:147
void setLow52WeekPrice(double low52WeekPrice) noexcept
Changes the minimal (low) price in last 52 weeks.
Definition Profile.cpp:253
void setShortSaleRestriction(const ShortSaleRestriction &restriction) noexcept
Changes short sale restriction of the security instrument.
Definition Profile.cpp:173
void setShares(double shares) noexcept
Changes the number of shares outstanding.
Definition Profile.cpp:301
void setStatusReason(const StringLike &statusReason) noexcept
Changes description of the reason that trading was halted.
Definition Profile.cpp:205
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition Profile.cpp:107
double getShares() const noexcept
Returns the number of shares outstanding.
Definition Profile.cpp:297
const std::optional< std::string > & getDescriptionOpt() const &noexcept
Returns description of the security instrument.
Definition Profile.cpp:161
std::int32_t getExDividendDayId() const noexcept
Returns identifier of the day of the last dividend payment (ex-dividend date).
Definition Profile.cpp:289
void setExDividendDayId(std::int32_t exDividendDayId) noexcept
Changes identifier of the day of the last dividend payment (ex-dividend date).
Definition Profile.cpp:293
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition Profile.cpp:120
void setTradingStatus(const TradingStatus &status) noexcept
Changes trading status of the security instrument.
Definition Profile.cpp:185
void setBeta(double beta) noexcept
Changes the correlation coefficient of the instrument to the S&P500 index.
Definition Profile.cpp:261
void setHaltStartTime(std::int64_t haltStartTime) noexcept
Changes starting time of the trading halt interval.
Definition Profile.cpp:213
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition Profile.cpp:139
const std::string & getStatusReason() const &noexcept
Returns a description of the reason that trading was halted.
Definition Profile.cpp:193
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition Profile.cpp:88
void setDescription(const StringLike &description) noexcept
Changes description of the security instrument.
Definition Profile.cpp:165
std::int64_t getHaltEndTime() const noexcept
Returns ending time of the trading halt interval.
Definition Profile.cpp:217
Quote & withAskSize(double askSize) noexcept
Changes ask size and returns the current quote.
Definition Quote.cpp:144
std::string getAskExchangeCodeString() const noexcept
Returns ask exchange code as UTF8 string.
Definition Quote.cpp:96
Quote & withAskExchangeCode(char askExchangeCode) noexcept
Changes ask exchange code and returns the current quote.
Definition Quote.cpp:106
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition Quote.hpp:70
std::int16_t getBidExchangeCode() const noexcept
Returns bid exchange code.
Definition Quote.cpp:18
void setBidTime(std::int64_t bidTime) noexcept
Changes time of the last bid change.
Definition Quote.cpp:322
std::int64_t getTimeNanos() const noexcept
Returns time of the last bid or ask change in nanoseconds.
Definition Quote.cpp:300
Quote() noexcept
Creates a new quote event with default values.
Definition Quote.cpp:257
double getAskSize() const
Returns ask size.
Definition Quote.cpp:136
Quote & withAskExchangeCode(std::int16_t askExchangeCode) noexcept
Changes ask exchange code and returns the current quote.
Definition Quote.cpp:116
void setAskExchangeCode(char askExchangeCode) noexcept
Changes ask exchange code.
Definition Quote.cpp:102
void setTimeNanoPart(std::int32_t timeNanoPart) noexcept
Changes microseconds and nanoseconds part of time of the last bid or ask change.
Definition Quote.cpp:308
void setBidPrice(double bidPrice) noexcept
Changes bid price.
Definition Quote.cpp:52
Quote & withTimeNanoPart(std::int32_t timeNanoPart) noexcept
Changes microseconds and nanoseconds part of time of the last bid or ask change and returns the curre...
Definition Quote.cpp:312
Quote & withBidExchangeCode(std::int16_t bidExchangeCode) noexcept
Changes bid exchange code and returns the current quote.
Definition Quote.cpp:42
Quote & withBidExchangeCode(char bidExchangeCode) noexcept
Changes bid exchange code and returns the current quote.
Definition Quote.cpp:32
void setAskPrice(double askPrice)
Changes ask price.
Definition Quote.cpp:126
std::int64_t getBidTime() const noexcept
Returns time of the last bid change.
Definition Quote.cpp:318
void setAskSize(double askSize)
Changes ask size.
Definition Quote.cpp:140
double getBidPrice() const noexcept
Returns bid price.
Definition Quote.cpp:48
void setAskExchangeCode(std::int16_t askExchangeCode) noexcept
Changes ask exchange code.
Definition Quote.cpp:112
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition Quote.cpp:249
std::int64_t getAskTime() const noexcept
Returns time of the last ask change.
Definition Quote.cpp:76
Quote & withEventTime(std::int64_t eventTime) noexcept
Changes event's creation time and returns the current quote.
Definition Quote.cpp:269
Quote & withSequence(std::int32_t sequence) noexcept
Changes sequence number of this quote and returns the current quote.
Definition Quote.cpp:289
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition Quote.cpp:231
Quote & withBidSize(double bidSize) noexcept
Changes bid size and returns the current quote.
Definition Quote.cpp:70
Quote & withBidPrice(double bidPrice) noexcept
Changes bid price and returns the current quote.
Definition Quote.cpp:56
Quote & withAskPrice(double askPrice) noexcept
Changes ask price and returns the current quote.
Definition Quote.cpp:130
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition Quote.cpp:200
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition Quote.cpp:218
Quote & withBidTime(std::int64_t bidTime) noexcept
Changes time of the last bid change and returns the current quote.
Definition Quote.cpp:328
void setAskTime(std::int64_t askTime) noexcept
Changes time of the last ask change.
Definition Quote.cpp:80
std::string toString() const override
Returns a string representation of the current object.
Definition Quote.cpp:334
std::int64_t getTime() const noexcept
Returns time of the last bid or ask change.
Definition Quote.cpp:295
Quote & withEventSymbol(const StringLike &eventSymbol) noexcept
Changes an event's symbol and returns the current quote.
Definition Quote.cpp:263
Quote(const StringLike &eventSymbol) noexcept
Creates a new quote event with the specified event symbol.
Definition Quote.cpp:260
double getBidSize() const noexcept
Returns bid size.
Definition Quote.cpp:62
Quote & withAskTime(std::int64_t askTime) noexcept
Changes time of the last ask change and returns the current quote.
Definition Quote.cpp:86
void setSequence(std::int32_t sequence)
Changes sequence number of this quote.
Definition Quote.cpp:279
void setBidExchangeCode(char bidExchangeCode) noexcept
Changes bid exchange code.
Definition Quote.cpp:28
std::int32_t getTimeNanoPart() const noexcept
Returns microseconds and nanoseconds part of time of the last bid or ask change.
Definition Quote.cpp:304
static constexpr std::uint32_t MAX_SEQUENCE
Maximum allowed sequence value.
Definition Quote.hpp:77
std::int32_t getSequence() const noexcept
Returns a sequence number of this quote to distinguish quotes that have the same time.
Definition Quote.cpp:275
std::string getBidExchangeCodeString() const noexcept
Returns bid exchange code as UTF8 string.
Definition Quote.cpp:22
void setBidExchangeCode(std::int16_t bidExchangeCode) noexcept
Changes bid exchange code.
Definition Quote.cpp:38
void setBidSize(double bidSize) noexcept
Changes bid size.
Definition Quote.cpp:66
std::int16_t getAskExchangeCode() const noexcept
Returns ask exchange code.
Definition Quote.cpp:92
double getAskPrice() const
Returns ask price.
Definition Quote.cpp:122
Series & withEventFlags(std::int32_t eventFlags) noexcept
Changes transactional event flags and returns the current series.
Definition Series.cpp:248
std::int64_t getTimeSequence() const noexcept
Returns time and sequence of this event packaged into a single long value.
Definition Series.cpp:274
std::string toString() const override
Returns a string representation of the current object.
Definition Series.cpp:304
Series & withEventFlags(const EventFlagsMask &eventFlags) noexcept
Changes transactional event flags and returns the current series.
Definition Series.cpp:254
double getDividend() const noexcept
Returns implied simple dividend return of the corresponding option series.
Definition Series.cpp:159
void setTimeSequence(std::int64_t timeSequence) noexcept
Changes time and sequence of this event.
Definition Series.cpp:278
Series & withTime(std::int64_t time) noexcept
Changes time of this series and returns it.
Definition Series.cpp:294
double getPutVolume() const noexcept
Returns put options traded volume for a day.
Definition Series.cpp:123
Series & withIndex(std::int64_t index) noexcept
Changes the unique per-symbol index of this series and returns it.
Definition Series.cpp:268
void setVolatility(double volatility) noexcept
Changes implied volatility index for this series based on VIX methodology.
Definition Series.cpp:111
void setSequence(std::int32_t sequence)
Changes sequence number of this series event.
Definition Series.cpp:83
void setInterest(double interest) noexcept
Changes implied simple interest return of the corresponding option series.
Definition Series.cpp:171
Series & withEventSymbol(const StringLike &eventSymbol) noexcept
Changes an event's symbol and returns the current series.
Definition Series.cpp:220
void setDividend(double dividend) noexcept
Changes implied simple dividend return of the corresponding option series.
Definition Series.cpp:163
EventFlagsMask getEventFlagsMask() const noexcept override
Returns transactional event flags.
Definition Series.cpp:236
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition Series.hpp:103
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition Series.cpp:65
double getVolatility() const noexcept
Returns implied volatility index for this series based on VIX methodology.
Definition Series.cpp:107
static constexpr std::uint32_t MAX_SEQUENCE
Maximum allowed sequence value.
Definition Series.hpp:110
double getPutCallRatio() const noexcept
Returns ratio of put options traded volume to call options traded volume for a day.
Definition Series.cpp:143
void setTime(std::int64_t time) noexcept
Changes time of this series event.
Definition Series.cpp:287
double getOptionVolume() const noexcept
Returns options traded volume for a day.
Definition Series.cpp:131
std::int64_t getIndex() const noexcept override
Returns a unique per-symbol index of this event.
Definition Series.cpp:260
std::int64_t getTime() const noexcept
Returns time of this series event.
Definition Series.cpp:282
Series & withEventTime(std::int64_t eventTime) noexcept
Changes event's creation time and returns the current series.
Definition Series.cpp:226
void setEventFlags(const EventFlagsMask &eventFlags) noexcept override
Changes transactional event flags.
Definition Series.cpp:244
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition Series.cpp:206
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition Series.cpp:188
void setPutCallRatio(double putCallRatio) noexcept
Changes ratio of put options traded volume to call options traded volume for a day.
Definition Series.cpp:147
std::int32_t getEventFlags() const noexcept override
Returns transactional event flags.
Definition Series.cpp:232
void setExpiration(std::int32_t expiration) noexcept
Changes day id of expiration.
Definition Series.cpp:103
const IndexedEventSource & getSource() const &noexcept override
Returns the source of this event.
Definition Series.hpp:169
double getCallVolume() const noexcept
Returns call options traded volume for a day.
Definition Series.cpp:115
double getForwardPrice() const noexcept
Returns implied forward price for this option series.
Definition Series.cpp:151
void setIndex(std::int64_t index) override
Changes the unique per-symbol index of this event.
Definition Series.cpp:264
Series(const StringLike &eventSymbol) noexcept
Creates a new series event with the specified event symbol.
Definition Series.cpp:217
std::int32_t getSequence() const noexcept
Returns sequence number of this series event to distinguish trades that have the same time.
Definition Series.cpp:300
void setForwardPrice(double forwardPrice) noexcept
Changes implied forward price for this option series.
Definition Series.cpp:155
std::int32_t getExpiration() const noexcept
Returns day id of expiration.
Definition Series.cpp:99
void setEventFlags(std::int32_t eventFlags) noexcept override
Changes transactional event flags.
Definition Series.cpp:240
void setCallVolume(double callVolume) noexcept
Changes call options traded volume for a day.
Definition Series.cpp:119
double getInterest() const noexcept
Returns implied simple interest return of the corresponding option series.
Definition Series.cpp:167
Series() noexcept
Creates new series event with default values.
Definition Series.cpp:214
Series & withSequence(std::int32_t sequence) noexcept
Changes sequence number of this series.
Definition Series.cpp:93
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition Series.cpp:175
void setPutVolume(double putVolume) noexcept
Changes put options traded volume for a day.
Definition Series.cpp:127
Spread order event is a snapshot for a full available market depth for all spreads on a given underly...
Definition SpreadOrder.hpp:95
SpreadOrder & withEventFlags(std::int32_t eventFlags) noexcept
Changes transactional event flags and returns the current spread order.
Definition SpreadOrder.cpp:136
const std::string & getSpreadSymbol() const &noexcept
Returns spread symbol of this event.
Definition SpreadOrder.cpp:268
const std::optional< std::string > & getSpreadSymbolOpt() const &noexcept
Returns spread symbol of this event.
Definition SpreadOrder.cpp:276
SpreadOrder & withExecutedSize(double executedSize) noexcept
Changes executed size of this spread order.
Definition SpreadOrder.cpp:214
SpreadOrder & withEventFlags(const EventFlagsMask &eventFlags) noexcept
Changes transactional event flags and returns the current spread order.
Definition SpreadOrder.cpp:142
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition SpreadOrder.cpp:85
SpreadOrder & withTime(std::int64_t time) noexcept
Changes time of this spread order and returns it.
Definition SpreadOrder.cpp:154
SpreadOrder & withTimeNanoPart(std::int32_t timeNanoPart) noexcept
Changes microseconds and nanoseconds time part of this spread order.
Definition SpreadOrder.cpp:160
SpreadOrder & withIndex(std::int64_t index) noexcept
Changes the unique per-symbol index of this spread order and returns it.
Definition SpreadOrder.cpp:148
void setSpreadSymbol(const StringLike &spreadSymbol) noexcept
Changes spread symbol of this event.
Definition SpreadOrder.cpp:280
SpreadOrder & withSize(double size) noexcept
Changes size of this spread order.
Definition SpreadOrder.cpp:208
SpreadOrder & withPrice(double price) noexcept
Changes price of this spread order.
Definition SpreadOrder.cpp:202
SpreadOrder & withTradePrice(double tradePrice) noexcept
Changes trade price.
Definition SpreadOrder.cpp:232
SpreadOrder & withTradeId(std::int64_t tradeId) noexcept
Changes trade ID.
Definition SpreadOrder.cpp:226
SpreadOrder & withActionTime(std::int64_t actionTime) noexcept
Changes time of the last action and returns current spread order.
Definition SpreadOrder.cpp:184
SpreadOrder & withTradeSize(double tradeSize) noexcept
Changes trade size.
Definition SpreadOrder.cpp:238
SpreadOrder & withAction(const OrderAction &action) noexcept
Changes action of this spread order and returns it.
Definition SpreadOrder.cpp:178
SpreadOrder & withOrderSide(const Side &side) noexcept
Changes side of this spread order.
Definition SpreadOrder.cpp:256
SpreadOrder & withExchangeCode(char exchangeCode) noexcept
Changes exchange code of this spread order.
Definition SpreadOrder.cpp:244
SpreadOrder & withEventSymbol(const StringLike &eventSymbol) noexcept
Changes event's symbol and returns the current spread order.
Definition SpreadOrder.cpp:118
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition SpreadOrder.cpp:54
SpreadOrder() noexcept
Creates a new spread order event with default values.
Definition SpreadOrder.cpp:112
SpreadOrder & withSpreadSymbol(const StringLike &spreadSymbol) noexcept
Changes spread symbol of this event.
Definition SpreadOrder.cpp:284
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition SpreadOrder.cpp:72
SpreadOrder & withCount(std::int64_t count) noexcept
Changes the number of individual spread orders in this aggregate spread order.
Definition SpreadOrder.cpp:220
std::string toString() const override
Returns a string representation of the current object.
Definition SpreadOrder.cpp:290
SpreadOrder & withTimeNanos(std::int64_t timeNanos) noexcept
Changes time of this spread order and returns it.
Definition SpreadOrder.cpp:172
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition SpreadOrder.cpp:104
SpreadOrder(const StringLike &eventSymbol) noexcept
Creates a new spread order event with the specified event symbol.
Definition SpreadOrder.cpp:115
SpreadOrder & withEventTime(std::int64_t eventTime) noexcept
Changes the event's creation time and returns the current spread order.
Definition SpreadOrder.cpp:124
SpreadOrder & withSequence(std::int32_t sequence) noexcept
Changes sequence number of this spread order.
Definition SpreadOrder.cpp:166
SpreadOrder & withSource(const OrderSource &source) noexcept
Changes an event's source and returns the current spread order.
Definition SpreadOrder.cpp:130
SpreadOrder & withAuxOrderId(std::int64_t auxOrderId) noexcept
Changes auxiliary spread order ID.
Definition SpreadOrder.cpp:196
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition SpreadOrder.hpp:117
SpreadOrder & withScope(const Scope &scope) noexcept
Changes scope of this spread order.
Definition SpreadOrder.cpp:262
SpreadOrder & withExchangeCode(std::int16_t exchangeCode) noexcept
Changes exchange code of this spread order.
Definition SpreadOrder.cpp:250
SpreadOrder & withOrderId(std::int64_t orderId) noexcept
Changes order ID.
Definition SpreadOrder.cpp:190
void setPrevDayId(std::int32_t prevDayId) noexcept
Changes identifier of the previous day that this summary represents.
Definition Summary.cpp:177
std::string toString() const override
Returns a string representation of the current object.
Definition Summary.cpp:213
double getDayOpenPrice() const noexcept
Returns the first (open) price for the day.
Definition Summary.cpp:133
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition Summary.cpp:62
void setDayOpenPrice(double dayOpenPrice) noexcept
Changes the first (open) price for the day.
Definition Summary.cpp:137
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition Summary.hpp:79
double getDayLowPrice() const noexcept
Returns the minimal (low) price for the day.
Definition Summary.cpp:149
Summary(const StringLike &eventSymbol) noexcept
Creates a new summary event with the specified event symbol.
Definition Summary.cpp:122
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition Summary.cpp:80
void setPrevDayClosePrice(double prevDayClosePrice) noexcept
Changes the last (close) price for the previous day.
Definition Summary.cpp:185
const PriceType & getDayClosePriceType() const &noexcept
Returns the price type of the last (close) price for the day.
Definition Summary.cpp:165
double getPrevDayVolume() const noexcept
Returns total volume traded for the previous day.
Definition Summary.cpp:197
const PriceType & getPrevDayClosePriceType() const &noexcept
Returns the price type of the last (close) price for the previous day.
Definition Summary.cpp:189
void setDayClosePriceType(const PriceType &type) noexcept
Changes the price type of the last (close) price for the day.
Definition Summary.cpp:169
void setDayClosePrice(double dayClosePrice) noexcept
Changes the last (close) price for the day.
Definition Summary.cpp:161
double getDayHighPrice() const noexcept
Returns the maximal (high) price for the day.
Definition Summary.cpp:141
void setPrevDayClosePriceType(const PriceType &type) noexcept
Changes the price type of the last (close) price for the previous day.
Definition Summary.cpp:193
void setDayId(std::int32_t dayId) noexcept
Changes identifier of the day that this summary represents.
Definition Summary.cpp:129
void setPrevDayVolume(double prevDayVolume) noexcept
Changes total volume traded for the previous day.
Definition Summary.cpp:201
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition Summary.cpp:93
double getPrevDayClosePrice() const noexcept
Returns the last (close) price for the previous day.
Definition Summary.cpp:181
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition Summary.cpp:111
double getDayClosePrice() const noexcept
Returns the last (close) price for the day.
Definition Summary.cpp:157
std::int32_t getDayId() const noexcept
Returns the identifier of the day that this summary represents.
Definition Summary.cpp:125
void setOpenInterest(std::int64_t openInterest) noexcept
Changes open interest of the symbol as the number of open contracts.
Definition Summary.cpp:209
void setDayLowPrice(double dayLowPrice) noexcept
Changes the minimal (low) price for the day.
Definition Summary.cpp:153
void setDayHighPrice(double dayHighPrice) noexcept
Changes the maximal (high) price for the day.
Definition Summary.cpp:145
Summary() noexcept
Creates a new summary event with default values.
Definition Summary.cpp:119
std::int64_t getOpenInterest() const noexcept
Returns open interest of the symbol as the number of open contracts.
Definition Summary.cpp:205
std::int32_t getPrevDayId() const noexcept
Returns identifier of the previous day that this summary represents.
Definition Summary.cpp:173
Message event with text payload.
Definition TextMessage.hpp:37
TextMessage(const StringLike &eventSymbol, const StringLike &text) noexcept
Creates a new message with the specified event symbol and text.
Definition TextMessage.cpp:129
std::int64_t getTimeSequence() const noexcept
Returns time and sequence of a text message packaged into a single long value.
Definition TextMessage.cpp:176
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition TextMessage.cpp:82
void setEventSymbol(const StringLike &eventSymbol) noexcept override
Changes symbol of this event.
Definition TextMessage.cpp:151
TextMessage(const StringLike &eventSymbol, std::int64_t time, const StringLike &text) noexcept
Creates a new message with the specified event symbol, time and text.
Definition TextMessage.cpp:133
std::int32_t getSequence() const noexcept
Returns the sequence number of the text message to distinguish messages that have the same time.
Definition TextMessage.cpp:200
void setText(const StringLike &text)
Changes text.
Definition TextMessage.cpp:222
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition TextMessage.cpp:64
const std::string & getText() const &
Returns text.
Definition TextMessage.cpp:218
TextMessage(const StringLike &eventSymbol) noexcept
Creates a new message with the specified event symbol.
Definition TextMessage.cpp:126
void setTime(std::int64_t time) noexcept
Changes time of the text message.
Definition TextMessage.cpp:188
void setEventTime(std::int64_t eventTime) noexcept override
Changes event creation time.
Definition TextMessage.cpp:166
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition TextMessage.hpp:69
TextMessage & withEventSymbol(const StringLike &eventSymbol) noexcept
Changes an event's symbol and returns the current message.
Definition TextMessage.cpp:156
void setSequence(std::int32_t sequence)
Changes sequence number of the text message.
Definition TextMessage.cpp:204
const std::string & getEventSymbol() const &noexcept override
Returns a symbol of this event.
Definition TextMessage.cpp:139
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition TextMessage.cpp:114
void setTimeSequence(std::int64_t timeSequence) noexcept
Changes time and sequence of a text message.
Definition TextMessage.cpp:180
TextMessage & withEventTime(std::int64_t eventTime) noexcept
Changes the event's creation time and returns the current message.
Definition TextMessage.cpp:170
std::string toString() const override
Returns a string representation of the current object.
Definition TextMessage.cpp:233
TextMessage & withSequence(std::int32_t sequence) noexcept
Changes an event's sequence number and returns the current message.
Definition TextMessage.cpp:212
TextMessage & withTime(std::int64_t time) noexcept
Changes time and returns the current message.
Definition TextMessage.cpp:194
std::int64_t getEventTime() const noexcept override
Returns time when an event was created or zero when time is not available.
Definition TextMessage.cpp:162
TextMessage() noexcept
Creates a new message with default values.
Definition TextMessage.cpp:123
TextMessage & withText(const StringLike &text) noexcept
Changes text and returns the current message.
Definition TextMessage.cpp:227
static constexpr std::uint32_t MAX_SEQUENCE
Maximum allowed sequence value.
Definition TextMessage.hpp:60
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition TextMessage.cpp:95
const std::optional< std::string > & getEventSymbolOpt() const &noexcept override
Returns a symbol of this event.
Definition TextMessage.cpp:147
std::int64_t getTime() const noexcept
Returns time of the text message.
Definition TextMessage.cpp:184
void setInterest(double interest) noexcept
Changes implied simple interest return of the corresponding option series.
Definition TheoPrice.cpp:219
void setGamma(double gamma) noexcept
Changes gamma of theoretical price.
Definition TheoPrice.cpp:203
void setPrice(double price) noexcept
Changes theoretical option price.
Definition TheoPrice.cpp:179
void setEventFlags(std::int32_t eventFlags) noexcept override
Changes transactional event flags.
Definition TheoPrice.cpp:135
void setUnderlyingPrice(double underlyingPrice) noexcept
Changes underlying price at the time of theo price computation.
Definition TheoPrice.cpp:187
TheoPrice() noexcept
Creates new theoprice event with default values.
Definition TheoPrice.cpp:117
void setSequence(std::int32_t sequence)
Changes sequence number of this event.
Definition TheoPrice.cpp:165
std::int32_t getEventFlags() const noexcept override
Returns transactional event flags.
Definition TheoPrice.cpp:127
std::int64_t getIndex() const noexcept override
Returns a unique per-symbol index of this event.
Definition TheoPrice.cpp:143
TheoPrice(const StringLike &eventSymbol) noexcept
Creates a new theoprice event with the specified event symbol.
Definition TheoPrice.cpp:120
double getPrice() const noexcept
Returns theoretical option price.
Definition TheoPrice.cpp:175
double getGamma() const noexcept
Returns gamma of theoretical price.
Definition TheoPrice.cpp:199
EventFlagsMask getEventFlagsMask() const noexcept override
Returns transactional event flags.
Definition TheoPrice.cpp:131
std::int64_t getTime() const noexcept override
Returns the timestamp of the event in milliseconds.
Definition TheoPrice.cpp:151
const IndexedEventSource & getSource() const &noexcept override
Returns the source of this event.
Definition TheoPrice.cpp:123
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition TheoPrice.cpp:59
static constexpr std::uint32_t MAX_SEQUENCE
Maximum allowed sequence value.
Definition TheoPrice.hpp:110
void setTime(std::int64_t time) noexcept
Changes the timestamp of the event in milliseconds.
Definition TheoPrice.cpp:155
void setDelta(double delta) noexcept
Changes delta of theoretical price.
Definition TheoPrice.cpp:195
double getDividend() const noexcept
Returns implied simple dividend return of the corresponding option series.
Definition TheoPrice.cpp:207
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition TheoPrice.cpp:77
void setEventFlags(const EventFlagsMask &eventFlags) noexcept override
Changes transactional event flags.
Definition TheoPrice.cpp:139
void setDividend(double dividend) noexcept
Changes implied simple dividend return of the corresponding option series.
Definition TheoPrice.cpp:211
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition TheoPrice.hpp:103
double getUnderlyingPrice() const noexcept
Returns underlying price at the time of theo price computation.
Definition TheoPrice.cpp:183
void setIndex(std::int64_t index) override
Changes the unique per-symbol index of this event.
Definition TheoPrice.cpp:147
std::int32_t getSequence() const noexcept
Returns the sequence number of this event to distinguish events that have the same time.
Definition TheoPrice.cpp:161
std::string toString() const override
Returns a string representation of the current object.
Definition TheoPrice.cpp:223
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition TheoPrice.cpp:109
double getDelta() const noexcept
Returns delta of theoretical price.
Definition TheoPrice.cpp:191
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition TheoPrice.cpp:90
double getInterest() const noexcept
Returns implied simple interest return of the corresponding option series.
Definition TheoPrice.cpp:215
const TimeAndSaleType & getType() const &noexcept
Returns type of this time and sale event.
Definition TimeAndSale.cpp:321
void setExchangeCode(char exchangeCode) noexcept
Changes exchange code of this time and sale event.
Definition TimeAndSale.cpp:15
std::string getExchangeCodeString() const noexcept
Returns exchange code of this time and sale event as UTF8 string.
Definition TimeAndSale.cpp:221
void setBidPrice(double bidPrice) noexcept
Changes the current bid price on the market when this time and sale event had occurred.
Definition TimeAndSale.cpp:251
std::int64_t getTime() const noexcept override
Returns the timestamp of the event in milliseconds.
Definition TimeAndSale.cpp:176
bool isNew() const noexcept
Returns whether this is a new event (not cancellation or correction).
Definition TimeAndSale.cpp:329
void setIndex(std::int64_t index) override
Changes the unique per-symbol index of this event.
Definition TimeAndSale.cpp:172
void setSequence(std::int32_t sequence)
Changes sequence number of this event.
Definition TimeAndSale.cpp:207
std::int64_t getIndex() const noexcept override
Returns a unique per-symbol index of this event.
Definition TimeAndSale.cpp:168
double getBidPrice() const noexcept
Returns the current bid price on the market when this time and sale event had occurred.
Definition TimeAndSale.cpp:247
double getAskPrice() const noexcept
Returns the current ask price on the market when this time and sale event had occurred.
Definition TimeAndSale.cpp:255
const std::string & getExchangeSaleConditions() const &noexcept
Returns sale conditions provided for this event by data feed.
Definition TimeAndSale.cpp:263
void setValidTick(bool validTick) noexcept
Changes whether this event represents a valid intraday tick.
Definition TimeAndSale.cpp:317
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition TimeAndSale.cpp:84
bool isValidTick() const noexcept
Returns whether this event represents a valid intraday tick.
Definition TimeAndSale.cpp:313
TimeAndSale() noexcept
Creates new time and sale event with default values.
Definition TimeAndSale.cpp:142
void setAskPrice(double askPrice) noexcept
Changes price of this time and sale event.the current ask price on the market when this time and sale...
Definition TimeAndSale.cpp:259
void setTimeNanoPart(std::int32_t timeNanoPart) noexcept
Changes microseconds and nanoseconds time part of the original event.
Definition TimeAndSale.cpp:195
void setExtendedTradingHours(bool extendedTradingHours) noexcept
Changes whether this event represents an extended trading hours sale.
Definition TimeAndSale.cpp:309
bool isExtendedTradingHours() const noexcept
Returns whether this event represents an extended trading hours sale.
Definition TimeAndSale.cpp:305
double getSize() const noexcept
Returns size of this time and sale event.
Definition TimeAndSale.cpp:239
std::int32_t getSequence() const noexcept
Returns the sequence number of this event to distinguish events that have the same time.
Definition TimeAndSale.cpp:203
std::string toString() const override
Returns a string representation of the current object.
Definition TimeAndSale.cpp:373
void setAggressorSide(const Side &side) noexcept
Changes aggressor side of this time and sale event.
Definition TimeAndSale.cpp:293
void setEventFlags(const EventFlagsMask &eventFlags) noexcept override
Changes transactional event flags.
Definition TimeAndSale.cpp:164
void setEventFlags(std::int32_t eventFlags) noexcept override
Changes transactional event flags.
Definition TimeAndSale.cpp:160
void setSize(double size) noexcept
Changes size of this time and sale event.
Definition TimeAndSale.cpp:243
const IndexedEventSource & getSource() const &noexcept override
Returns the source of this event.
Definition TimeAndSale.cpp:148
void setTime(std::int64_t time) noexcept
Changes the timestamp of the event in milliseconds.
Definition TimeAndSale.cpp:180
static constexpr std::uint32_t MAX_SEQUENCE
Maximum allowed sequence value.
Definition TimeAndSale.hpp:137
std::int64_t getTimeNanos() const noexcept
Returns time of the original event in nanoseconds.
Definition TimeAndSale.cpp:186
const std::optional< std::string > & getSellerOpt() const &noexcept
Returns seller of this time and sale event.
Definition TimeAndSale.cpp:365
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition TimeAndSale.cpp:102
void setExchangeSaleConditions(const StringLike &exchangeSaleConditions) noexcept
Changes sale conditions provided for this event by data feed.
Definition TimeAndSale.cpp:275
bool isCancel() const noexcept
Returns whether this is a cancellation of a previous event.
Definition TimeAndSale.cpp:337
void setSeller(const StringLike &seller) noexcept
Changes seller of this time and sale event.
Definition TimeAndSale.cpp:369
const std::optional< std::string > & getBuyerOpt() const &noexcept
Returns buyer of this time and sale event.
Definition TimeAndSale.cpp:349
void setPrice(double price) noexcept
Changes price of this time and sale event.
Definition TimeAndSale.cpp:235
bool isCorrection() const noexcept
Returns whether this is a correction of a previous event.
Definition TimeAndSale.cpp:333
void setSpreadLeg(bool spreadLeg) noexcept
Changes whether this event represents a spread leg.
Definition TimeAndSale.cpp:301
void setBuyer(const StringLike &buyer) noexcept
Changes buyer of this time and sale event.
Definition TimeAndSale.cpp:353
std::int32_t getTimeNanoPart() const noexcept
Returns microseconds and nanoseconds time part of the original event.
Definition TimeAndSale.cpp:199
std::int32_t getEventFlags() const noexcept override
Returns transactional event flags.
Definition TimeAndSale.cpp:152
TimeAndSale(const StringLike &eventSymbol) noexcept
Creates a new time and sale event with the specified event symbol.
Definition TimeAndSale.cpp:145
double getPrice() const noexcept
Returns price of this time and sale event.
Definition TimeAndSale.cpp:231
const std::string & getSeller() const &noexcept
Returns seller of this time and sale event.
Definition TimeAndSale.cpp:357
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition TimeAndSale.cpp:115
const std::string & getBuyer() const &noexcept
Returns buyer of this time and sale event.
Definition TimeAndSale.cpp:341
void setType(const TimeAndSaleType &type) noexcept
Changes type of this time and sale event.
Definition TimeAndSale.cpp:325
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition TimeAndSale.hpp:130
std::int16_t getExchangeCode() const noexcept
Returns exchange code of this time and sale event.
Definition TimeAndSale.cpp:217
void setTimeNanos(std::int64_t timeNanos) noexcept
Changes time of the original event.
Definition TimeAndSale.cpp:190
char getTradeThroughExempt() const noexcept
Returns TradeThroughExempt flag of this time and sale event.
Definition TimeAndSale.cpp:279
const std::optional< std::string > & getExchangeSaleConditionsOpt() const &noexcept
Returns sale conditions provided for this event by data feed.
Definition TimeAndSale.cpp:271
bool isSpreadLeg() const noexcept
Returns whether this event represents a spread leg.
Definition TimeAndSale.cpp:297
void setExchangeCode(std::int16_t exchangeCode) noexcept
Changes exchange code of this time and sale event.
Definition TimeAndSale.cpp:227
EventFlagsMask getEventFlagsMask() const noexcept override
Returns transactional event flags.
Definition TimeAndSale.cpp:156
const Side & getAggressorSide() const &noexcept
Returns aggressor side of this time and sale event.
Definition TimeAndSale.cpp:289
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition TimeAndSale.cpp:134
void setTradeThroughExempt(char tradeThroughExempt)
Changes TradeThroughExempt flag of this time and sale event.
Definition TimeAndSale.cpp:283
TimeSeriesSubscriptionSymbol(const SymbolWrapper &eventSymbol, std::int64_t fromTime)
Creates a time-series subscription symbol with a specified event symbol and subscription time.
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition TimeSeriesSubscriptionSymbol.cpp:19
std::string toString() const override
Returns string representation of this time-series subscription symbol.
Definition TimeSeriesSubscriptionSymbol.cpp:66
std::int64_t getFromTime() const
Returns the subscription time.
Definition TimeSeriesSubscriptionSymbol.cpp:15
static TimeSeriesSubscriptionSymbol fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure (rec...
Definition TimeSeriesSubscriptionSymbol.cpp:50
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition TimeSeriesSubscriptionSymbol.cpp:33
Base class for common fields of Trade and TradeETH events.
Definition TradeBase.hpp:40
void setExchangeCode(std::int16_t exchangeCode) noexcept
Changes exchange code of the last trade.
Definition TradeBase.cpp:140
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition TradeBase.cpp:60
void setSequence(std::int32_t sequence)
Changes sequence number of the last trade.
Definition TradeBase.cpp:116
double getChange() const noexcept
Returns change of the last trade.
Definition TradeBase.cpp:200
void setChange(double change) noexcept
Changes change of the last trade.
Definition TradeBase.cpp:204
void setDayId(std::int32_t dayId) noexcept
Changes identifier of the current trading day.
Definition TradeBase.cpp:164
std::string baseFieldsToString() const
Returns string representation of this trade event's fields.
Definition TradeBase.cpp:208
std::int64_t getTime() const noexcept
Returns time of the last trade.
Definition TradeBase.cpp:82
std::int32_t getDayId() const noexcept
Returns identifier of the current trading day.
Definition TradeBase.cpp:160
double getSize() const noexcept
Returns size of the last trade as floating number with fractions.
Definition TradeBase.cpp:152
std::int16_t getExchangeCode() const noexcept
Returns exchange code of the last trade.
Definition TradeBase.cpp:126
std::int32_t getSequence() const noexcept
Returns sequence number of the last trade to distinguish trades that have the same time.
Definition TradeBase.cpp:112
void setTickDirection(const Direction &direction) noexcept
Changes tick direction of the last trade.
Definition TradeBase.cpp:188
static constexpr std::uint32_t MAX_SEQUENCE
Maximum allowed sequence value.
Definition TradeBase.hpp:86
double getDayTurnover() const noexcept
Returns total turnover traded for a day.
Definition TradeBase.cpp:176
TradeBase(const StringLike &eventSymbol) noexcept
Creates a new trade event with the specified event symbol.
Definition TradeBase.cpp:71
void setDayTurnover(double dayTurnover) noexcept
Changes total turnover traded for a day.
Definition TradeBase.cpp:180
void setSize(double size) noexcept
Changes size of the last trade as floating number with fractions.
Definition TradeBase.cpp:156
void setTimeNanoPart(std::int32_t timeNanoPart) noexcept
Changes microseconds and nanoseconds time part of the last trade.
Definition TradeBase.cpp:104
std::int64_t getTimeSequence() const noexcept
Returns time and sequence of the last trade packaged into a single long value.
Definition TradeBase.cpp:74
bool isExtendedTradingHours() const noexcept
Returns whether last trade was in extended trading hours.
Definition TradeBase.cpp:192
void setTimeSequence(std::int64_t timeSequence) noexcept
Changes time and sequence of last trade.
Definition TradeBase.cpp:78
const Direction & getTickDirection() const &noexcept
Returns tick direction of the last trade.
Definition TradeBase.cpp:184
double getDayVolume() const noexcept
Returns total volume traded for a day as floating number with fractions.
Definition TradeBase.cpp:168
void setExchangeCode(char exchangeCode) noexcept
Changes exchange code of the last trade.
Definition TradeBase.cpp:136
void setTime(std::int64_t time) noexcept
Changes time of the last trade.
Definition TradeBase.cpp:87
double getPrice() const noexcept
Returns price of the last trade.
Definition TradeBase.cpp:144
std::string getExchangeCodeString() const noexcept
Returns exchange code of last trade as UTF8 string.
Definition TradeBase.cpp:130
void setPrice(double price) noexcept
Changes price of the last trade.
Definition TradeBase.cpp:148
std::int32_t getTimeNanoPart() const noexcept
Returns microseconds and nanoseconds time part of the last trade.
Definition TradeBase.cpp:108
TradeBase() noexcept
Creates new trade event with default values.
Definition TradeBase.cpp:68
void setExtendedTradingHours(bool extendedTradingHours) noexcept
Changes whether last trade was in extended trading hours.
Definition TradeBase.cpp:196
void setTimeNanos(std::int64_t timeNanos) noexcept
Changes time of the last trade.
Definition TradeBase.cpp:99
std::int64_t getTimeNanos() const noexcept
Returns time of the last trade in nanoseconds.
Definition TradeBase.cpp:95
void setDayVolume(double dayVolume) noexcept
Changes total volume traded for a day as floating number with fractions.
Definition TradeBase.cpp:172
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition TradeETH.cpp:86
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition TradeETH.cpp:67
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition TradeETH.cpp:55
TradeETH(std::string eventSymbol) noexcept
Creates new trade event with the specified event symbol.
Definition TradeETH.cpp:96
std::string toString() const override
Returns a string representation of the current object.
Definition TradeETH.cpp:99
TradeETH() noexcept
Creates new trade event with default values.
Definition TradeETH.cpp:93
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition TradeETH.cpp:37
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition TradeETH.hpp:112
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition Trade.cpp:85
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition Trade.hpp:89
Trade(const StringLike &eventSymbol) noexcept
Creates a new trade event with the specified event symbol.
Definition Trade.cpp:92
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition Trade.cpp:67
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition Trade.cpp:37
std::string toString() const override
Returns a string representation of the current object.
Definition Trade.cpp:95
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition Trade.cpp:55
Trade() noexcept
Creates new trade event with default values.
Definition Trade.cpp:89
std::int64_t getIndex() const noexcept override
Returns a unique per-symbol index of this event.
Definition Underlying.cpp:143
double getCallVolume() const noexcept
Returns call options traded volume for a day.
Definition Underlying.cpp:199
void * toGraal() const override
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition Underlying.cpp:77
static constexpr std::uint32_t MAX_SEQUENCE
Maximum allowed sequence value.
Definition Underlying.hpp:105
void setFrontVolatility(double frontVolatility) noexcept
Changes front month implied volatility for this underlying based on VIX methodology.
Definition Underlying.cpp:187
void setPutVolume(double putVolume) noexcept
Changes put options traded volume for a day.
Definition Underlying.cpp:211
void setVolatility(double volatility) noexcept
Changes 30-day implied volatility for this underlying based on VIX methodology.
Definition Underlying.cpp:179
void setIndex(std::int64_t index) override
Changes the unique per-symbol index of this event.
Definition Underlying.cpp:147
const IndexedEventSource & getSource() const &noexcept override
Returns the source identifier for this event, which is always DEFAULT for time-series events.
Definition Underlying.cpp:123
void setTime(std::int64_t time) noexcept
Changes the timestamp of the event in milliseconds.
Definition Underlying.cpp:155
double getBackVolatility() const noexcept
Returns back month implied volatility for this underlying based on VIX methodology.
Definition Underlying.cpp:191
Underlying() noexcept
Creates new underlying event with default values.
Definition Underlying.cpp:117
void setSequence(std::int32_t sequence)
Changes sequence number of this event.
Definition Underlying.cpp:165
void setPutCallRatio(double putCallRatio) noexcept
Changes ratio of put options traded volume to call options traded volume for a day.
Definition Underlying.cpp:231
void setBackVolatility(double backVolatility) noexcept
Changes back month implied volatility for this underlying based on VIX methodology.
Definition Underlying.cpp:195
void setCallVolume(double callVolume) noexcept
Changes call options traded volume for a day.
Definition Underlying.cpp:203
EventFlagsMask getEventFlagsMask() const noexcept override
Returns transactional event flags.
Definition Underlying.cpp:131
static Ptr fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition Underlying.cpp:59
std::int64_t getTime() const noexcept override
Returns the timestamp of the event in milliseconds.
Definition Underlying.cpp:151
Underlying(const StringLike &eventSymbol) noexcept
Creates a new underlying event with the specified event symbol.
Definition Underlying.cpp:120
std::int32_t getEventFlags() const noexcept override
Returns transactional event flags.
Definition Underlying.cpp:127
double getPutVolume() const noexcept
Returns put options traded volume for a day.
Definition Underlying.cpp:207
std::int32_t getSequence() const noexcept
Returns the sequence number of this event to distinguish events that have the same time.
Definition Underlying.cpp:161
std::string toString() const override
Returns a string representation of the current object.
Definition Underlying.cpp:235
static const EventTypeEnum & TYPE
Type identifier and additional information about the current event class.
Definition Underlying.hpp:98
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition Underlying.cpp:90
double getFrontVolatility() const noexcept
Returns front month implied volatility for this underlying based on VIX methodology.
Definition Underlying.cpp:183
void setEventFlags(std::int32_t eventFlags) noexcept override
Changes transactional event flags.
Definition Underlying.cpp:135
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition Underlying.cpp:109
double getOptionVolume() const noexcept
Returns options traded volume for a day.
Definition Underlying.cpp:215
double getVolatility() const noexcept
Returns 30-day implied volatility for this underlying based on VIX methodology.
Definition Underlying.cpp:175
void setEventFlags(const EventFlagsMask &eventFlags) noexcept override
Changes transactional event flags.
Definition Underlying.cpp:139
double getPutCallRatio() const noexcept
Returns ratio of put options traded volume to call options traded volume for a day.
Definition Underlying.cpp:227
DXFCPP_END_NAMESPACE dxfcpp::EventFlagsMask operator|(const dxfcpp::EventFlag &eventFlag1, const dxfcpp::EventFlag &eventFlag2) noexcept
Performs a bit or operation with two event flags.
Definition EventFlag.hpp:482
RoundingMode
Specifies a rounding behavior for numerical operations capable of discarding precision.
Definition PriceIncrements.hpp:30
@ ROUNDING_MODE_HALF_DOWN
Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant,...
Definition PriceIncrements.hpp:170
@ ROUNDING_MODE_HALF_UP
Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant,...
Definition PriceIncrements.hpp:146
@ ROUNDING_MODE_UNNECESSARY
Rounding mode to assert that the requested operation has an exact result, hence no rounding is necess...
Definition PriceIncrements.hpp:221
@ ROUNDING_MODE_UP
Rounding mode to round away from zero.
Definition PriceIncrements.hpp:51
@ ROUNDING_MODE_CEILING
Rounding mode to round towards positive infinity.
Definition PriceIncrements.hpp:98
@ ROUNDING_MODE_HALF_EVEN
Rounding mode to round towards the "nearest neighbor" unless both neighbors are equidistant,...
Definition PriceIncrements.hpp:197
@ ROUNDING_MODE_FLOOR
Rounding mode to round towards negative infinity.
Definition PriceIncrements.hpp:122
@ ROUNDING_MODE_DOWN
Rounding mode to round towards zero.
Definition PriceIncrements.hpp:74
SessionTypeEnum
Definition SessionType.hpp:17
SessionFilterEnum
Definition SessionFilter.hpp:22
@ NO_TRADING
Non-trading session type is used to mark periods of time during which trading is not allowed.
Definition SessionType.hpp:19
@ REGULAR
Regular session type marks regular trading hours session.
Definition SessionType.hpp:23
@ AFTER_MARKET
After-market session type marks extended trading session after regular trading hours.
Definition SessionType.hpp:25
@ PRE_MARKET
Pre-market session type marks extended trading session before regular trading hours.
Definition SessionType.hpp:21
@ NO_TRADING
Accepts any session with type SessionType::NO_TRADING.
Definition SessionFilter.hpp:31
@ REGULAR
Accepts any session with type SessionType::REGULAR.
Definition SessionFilter.hpp:35
@ ANY
Accepts any session - useful for pure schedule navigation.
Definition SessionFilter.hpp:24
@ AFTER_MARKET
Accepts any session with type SessionType::AFTER_MARKET.
Definition SessionFilter.hpp:37
@ TRADING
Accepts trading sessions only - those with (Session::isTrading() == true).
Definition SessionFilter.hpp:26
@ PRE_MARKET
Accepts any session with type SessionType::PRE_MARKET.
Definition SessionFilter.hpp:33
@ NON_TRADING
Accepts non-trading sessions only - those with (Session::isTrading() == false).
Definition SessionFilter.hpp:28
Represents a set of additional underlyings for a given option.
Definition AdditionalUnderlyings.hpp:33
static const Ptr EMPTY
Empty additional underlyings - it has empty text and empty map.
Definition AdditionalUnderlyings.hpp:55
static Ptr valueOf(const StringLike &text)
Returns an instance of additional underlyings for specified textual representation.
Definition AdditionalUnderlyings.cpp:40
std::string getText() const
Returns textual representation of additional underlyings in the format:
Definition AdditionalUnderlyings.cpp:48
std::string toString() const override
Returns a string representation of the current object.
Definition AdditionalUnderlyings.cpp:93
std::size_t hashCode() const noexcept
Definition AdditionalUnderlyings.cpp:81
double getSPC(const StringLike &symbol) const
Returns SPC for a specified underlying symbol or 0 is specified symbol is not found.
Definition AdditionalUnderlyings.cpp:64
bool operator==(const AdditionalUnderlyings::Ptr &other) const
Returns true if this object is equal to other object.
Definition AdditionalUnderlyings.hpp:145
bool operator==(const AdditionalUnderlyings &other) const
Returns true if this object is equal to other object.
Definition AdditionalUnderlyings.cpp:72
static double getSPC(const StringLike &text, const StringLike &symbol)
Returns SPC for a specified underlying symbol or 0 is specified symbol is not found.
Definition AdditionalUnderlyings.cpp:44
The AuthToken class represents an authorization token and encapsulates information about the authoriz...
Definition AuthToken.hpp:35
std::string getScheme() const
Returns the authentication scheme.
Definition AuthToken.cpp:82
static const std::string BEARER_SCHEME
String representation for the Bearer (token) authorization.
Definition AuthToken.hpp:14
std::string getPassword() const
Returns the password or dxfcpp::String::NUL (std::string{"<null>"}) if it is not known or applicable.
Definition AuthToken.cpp:74
static AuthToken createBasicToken(const StringLike &user, const StringLike &password)
Constructs an AuthToken with the specified username and password per RFC2617.
Definition AuthToken.cpp:26
static const std::string BASIC_SCHEME
String representation for Basic (Base64(login:password)) authorization.
Definition AuthToken.hpp:13
static AuthToken createBasicTokenOrNull(const StringLike &user, const StringLike &password)
Constructs an AuthToken with the specified username and password per RFC2617.
Definition AuthToken.cpp:30
std::string getHttpAuthorization() const
Returns the HTTP authorization header value.
Definition AuthToken.cpp:58
static AuthToken createBearerToken(const StringLike &token)
Constructs an AuthToken with the specified bearer token per RFC6750.
Definition AuthToken.cpp:40
static AuthToken createCustomToken(const StringLike &scheme, const StringLike &value)
Constructs an AuthToken with a custom scheme and value.
Definition AuthToken.cpp:54
std::string getValue() const
Returns the access token for RFC6750 or the Base64-encoded "username:password" for RFC2617.
Definition AuthToken.cpp:90
static AuthToken createBearerTokenOrNull(const StringLike &token)
Constructs an AuthToken with the specified bearer token per RFC6750.
Definition AuthToken.cpp:44
std::string getUser() const
Returns the username or dxfcpp::String::NUL (std::string{"<null>"}) if it is not known or applicable.
Definition AuthToken.cpp:66
static const AuthToken NULL_TOKEN
A stub that is needed to simulate null AuthToken without using std::optional.
Definition AuthToken.hpp:43
static AuthToken valueOf(const StringLike &string)
Constructs an AuthToken from the specified string.
Definition AuthToken.cpp:18
static AuthToken createBasicToken(const StringLike &userPassword)
Constructs an AuthToken with the specified username and password per RFC2617.
Definition AuthToken.cpp:22
Describes a single attribute with all values as defined in the ISO 10962 standard.
Definition CFI.hpp:219
std::vector< std::shared_ptr< CFI::Value > > getValues() const
Returns values of this attribute.
Definition CFI.cpp:203
std::string getDescription() const
Returns a description of this attribute.
Definition CFI.cpp:199
std::string getName() const
Returns a short name of this attribute.
Definition CFI.cpp:195
std::size_t hashCode() const noexcept
Definition CFI.cpp:222
std::string toString() const override
Returns a string representation of the current object.
Definition CFI.cpp:226
bool operator==(const Attribute &other) const
Returns true if this object is equal to other object.
Definition CFI.cpp:218
bool operator==(const Attribute::Ptr &other) const
Returns true if this object is equal to other object.
Definition CFI.hpp:269
Describes single value of single character of CFI code as defined in the ISO 10962 standard.
Definition CFI.hpp:297
std::size_t hashCode() const noexcept
Definition CFI.cpp:262
std::int16_t getCode() const
Returns single UTF16 character code of this value.
Definition CFI.cpp:240
Attribute::Ptr getAttribute() const
Returns an attribute that contains this value.
Definition CFI.cpp:236
char getCodeChar() const
Returns single ASCII character code of this value.
Definition CFI.cpp:244
bool operator==(const Value &other) const
Returns true if this object is equal to other object.
Definition CFI.cpp:258
std::string getName() const
Returns a short name of this value.
Definition CFI.cpp:250
std::string toString() const override
Returns a string representation of the current object.
Definition CFI.cpp:266
std::string getDescription() const
Returns description of this value.
Definition CFI.cpp:254
bool operator==(const Value::Ptr &other) const
Returns true if this object is equal to other object.
Definition CFI.hpp:361
A wrapper class for Classification of Financial Instruments code as defined in ISO 10962 standard.
Definition CFI.hpp:27
bool isFuture() const
Returns true if the corresponding instrument is a future.
Definition CFI.cpp:116
std::vector< std::shared_ptr< Value > > decipher() const
Returns container of values that explain the meaning of each character in the CFI code.
Definition CFI.cpp:132
std::int32_t getIntCode() const
Returns integer representation of CFI code.
Definition CFI.cpp:48
std::string toString() const override
Returns a string representation of the current object.
Definition CFI.cpp:180
bool isDebtInstrument() const
Returns true if the corresponding instrument is a debt instrument.
Definition CFI.cpp:92
std::int16_t getGroup() const
Returns a single UTF16 character for the instrument group - the second character of the CFI code.
Definition CFI.cpp:70
std::string describe() const
Returns a short textual description of this CFI code by listing names of all values for the character...
Definition CFI.cpp:151
char getCategoryChar() const
Returns a single ASCII character for the instrument category - the first character of the CFI code.
Definition CFI.cpp:64
bool isEquity() const
Returns true if the corresponding instrument is an equity.
Definition CFI.cpp:84
bool operator==(const CFI &other) const
Returns true if this object is equal to other object.
Definition CFI.cpp:159
bool isOther() const
Returns true if the corresponding instrument is an "other" (miscellaneous) instrument.
Definition CFI.cpp:124
char getGroupChar() const
Returns a single ASCII character for the instrument group - the second character of the CFI code.
Definition CFI.cpp:78
static Ptr valueOf(std::int32_t intCode)
Returns an instance of CFI for a specified integer representation of CFI code.
Definition CFI.cpp:36
std::string getCode() const
Returns CFI code.
Definition CFI.cpp:40
static Ptr valueOf(const StringLike &code)
Returns an instance of CFI for specified CFI code.
Definition CFI.cpp:32
std::size_t hashCode() const noexcept
Definition CFI.cpp:168
bool isEntitlement() const
Returns true if the corresponding instrument is an entitlement (right).
Definition CFI.cpp:100
bool isOption() const
Returns true if the corresponding instrument is an option.
Definition CFI.cpp:108
static const Ptr EMPTY
Empty CFI - it has code "XXXXXX".
Definition CFI.hpp:46
std::int16_t getCategory() const
Returns a single UTF16 character for the instrument category - the first character of the CFI code.
Definition CFI.cpp:56
bool operator==(const CFI::Ptr &other) const
Returns true if this object is equal to other object.
Definition CFI.hpp:192
Candle alignment attribute of CandleSymbol defines how candles are aligned with respect to time.
Definition CandleAlignment.hpp:37
static const CandleAlignment DEFAULT
Default alignment is CandleAlignment::MIDNIGHT.
Definition CandleAlignment.hpp:51
static const CandleAlignment MIDNIGHT
Align candles at midnight.
Definition CandleAlignment.hpp:14
static const CandleAlignment SESSION
Align candles on trading sessions.
Definition CandleAlignment.hpp:15
static std::reference_wrapper< const CandleAlignment > getAttributeForSymbol(const StringLike &symbol)
Returns candle alignment of the given candle symbol string.
Definition CandleAlignment.cpp:50
std::string toString() const
Returns string representation of this candle alignment.
Definition CandleAlignment.cpp:28
static std::reference_wrapper< const CandleAlignment > parse(const StringLike &s)
Parses string representation of candle alignment into an object.
Definition CandleAlignment.cpp:36
static const std::string ATTRIBUTE_KEY
The attribute key that is used to store the value of CandleAlignment in a symbol string using methods...
Definition CandleAlignment.hpp:17
std::string changeAttributeForSymbol(const StringLike &symbol) const override
Returns candle event symbol string with this candle alignment set.
Definition CandleAlignment.cpp:23
static std::string normalizeAttributeForSymbol(const StringLike &symbol)
Returns candle symbol string with the normalized representation of the candle alignment attribute.
Definition CandleAlignment.cpp:56
Exchange attribute of CandleSymbol defines the exchange identifier where data is taken from to build ...
Definition CandleExchange.hpp:34
char getExchangeCode() const noexcept
Returns exchange code.
Definition CandleExchange.cpp:17
static const CandleExchange DEFAULT
Default exchange is CandleExchange::COMPOSITE.
Definition CandleExchange.hpp:43
std::string toString() const
Returns string representation of this exchange.
Definition CandleExchange.cpp:25
std::string changeAttributeForSymbol(const StringLike &symbol) const override
Returns candle event symbol string with this exchange set.
Definition CandleExchange.cpp:21
static CandleExchange valueOf(char exchangeCode) noexcept
Returns an exchange attribute object that corresponds to the specified exchange code character.
Definition CandleExchange.cpp:33
static CandleExchange getAttributeForSymbol(const StringLike &symbol)
Returns exchange an attribute object of the given candle symbol string.
Definition CandleExchange.cpp:37
static const CandleExchange COMPOSITE
Composite exchange where data is taken from all exchanges.
Definition CandleExchange.hpp:32
Period attribute of CandleSymbol defines an aggregation period of the candles.
Definition CandlePeriod.hpp:38
double getValue() const noexcept
Returns aggregation period value.
Definition CandlePeriod.cpp:27
static const std::string ATTRIBUTE_KEY
The attribute key that is used to store the value of CandlePeriod in a symbol string using methods of...
Definition CandlePeriod.hpp:80
static const CandlePeriod TICK
Tick aggregation where each candle represents an individual tick.
Definition CandlePeriod.hpp:77
static std::string normalizeAttributeForSymbol(const StringLike &symbol)
Returns candle symbol string with the normalized representation of the candle period attribute.
Definition CandlePeriod.cpp:96
static CandlePeriod valueOf(double value, const CandleType &type) noexcept
Returns candle period with the given value and type.
Definition CandlePeriod.cpp:78
static const CandlePeriod DEFAULT
The default period is CandlePeriod::TICK.
Definition CandlePeriod.hpp:52
std::int64_t getPeriodIntervalMillis() const noexcept
Returns an aggregation period in milliseconds as closely as possible.
Definition CandlePeriod.cpp:18
static const CandlePeriod DAY
Day aggregation where each candle represents a day.
Definition CandlePeriod.hpp:78
const CandleType & getType() const &noexcept
Returns aggregation period type.
Definition CandlePeriod.cpp:31
const std::string & toString() const &
Returns string representation of this aggregation period.
Definition CandlePeriod.cpp:35
std::string changeAttributeForSymbol(const StringLike &symbol) const override
Returns candle event symbol string with this aggregation period set.
Definition CandlePeriod.cpp:22
static CandlePeriod getAttributeForSymbol(const StringLike &symbol) noexcept
Returns candle period of the given candle symbol string.
Definition CandlePeriod.cpp:90
static CandlePeriod parse(const StringLike &s)
Parses string representation of an aggregation period into an object.
Definition CandlePeriod.cpp:50
Candle price level attribute of CandleSymbol defines how candles shall be aggregated in respect to a ...
Definition CandlePriceLevel.hpp:45
std::string changeAttributeForSymbol(const StringLike &symbol) const override
Returns candle event symbol string with this candle price level set.
Definition CandlePriceLevel.cpp:33
static CandlePriceLevel valueOf(double value)
Returns candle price level with the given value.
Definition CandlePriceLevel.cpp:42
static const CandlePriceLevel DEFAULT
Default price level corresponds to NaN (std::numeric_limits<double>::quiet_NaN())
Definition CandlePriceLevel.hpp:108
static CandlePriceLevel parse(const StringLike &s)
Parses string representation of candle price level into an object.
Definition CandlePriceLevel.cpp:38
std::string toString() const
Returns string representation of this price level.
Definition CandlePriceLevel.cpp:21
double getValue() const noexcept
Returns price level value.
Definition CandlePriceLevel.cpp:17
static const std::string ATTRIBUTE_KEY
The attribute key that is used to store the value of CandlePriceLevel in a symbol string using method...
Definition CandlePriceLevel.hpp:110
static std::string normalizeAttributeForSymbol(const StringLike &symbol)
Returns candle symbol string with the normalized representation of the candle price level attribute.
Definition CandlePriceLevel.cpp:56
static CandlePriceLevel getAttributeForSymbol(const StringLike &symbol)
Returns candle price level of the given candle symbol string.
Definition CandlePriceLevel.cpp:50
Price type attribute of CandleSymbol defines the price used to build the candles.
Definition CandlePrice.hpp:39
static std::string normalizeAttributeForSymbol(const StringLike &symbol)
Returns candle symbol string with the normalized representation of the candle price type attribute.
Definition CandlePrice.cpp:58
static const CandlePrice BID
Quote bid price.
Definition CandlePrice.hpp:85
static const CandlePrice ASK
Quote ask price.
Definition CandlePrice.hpp:86
static const CandlePrice MARK
Market price defined as average between quote bid and ask prices.
Definition CandlePrice.hpp:87
const std::string & toString() const &noexcept
Returns string representation of this candle price type.
Definition CandlePrice.cpp:25
static const CandlePrice DEFAULT
The default price type is CandlePrice::LAST.
Definition CandlePrice.hpp:70
static const CandlePrice SETTLEMENT
Official settlement price that is defined by exchange or last trading price otherwise.
Definition CandlePrice.hpp:88
static std::reference_wrapper< const CandlePrice > getAttributeForSymbol(const StringLike &symbol) noexcept
Returns the candle price type of the given candle symbol string.
Definition CandlePrice.cpp:52
static const CandlePrice LAST
Last trading price.
Definition CandlePrice.hpp:84
static std::reference_wrapper< const CandlePrice > parse(const StringLike &s)
Parses string representation of a candle price type into an object.
Definition CandlePrice.cpp:33
std::string changeAttributeForSymbol(const StringLike &symbol) const override
Returns candle event symbol string with this candle price type set.
Definition CandlePrice.cpp:20
static const std::string ATTRIBUTE_KEY
The attribute key that is used to store the value of CandlePrice in a symbol string using methods of ...
Definition CandlePrice.hpp:91
const std::string & toString() const &noexcept
Returns string representation of this candle session attribute.
Definition CandleSession.cpp:103
static const CandleSession REGULAR
Only regular trading session data is used to build candles.
Definition CandleSession.hpp:134
const SessionFilter & getSessionFilter() const &noexcept
Returns a session filter that corresponds to this session attribute.
Definition CandleSession.cpp:94
static std::reference_wrapper< const CandleSession > getAttributeForSymbol(const StringLike &symbol)
Returns candle session attribute of the given candle symbol string.
Definition CandleSession.cpp:130
static const CandleSession ANY
All trading sessions are used to build candles.
Definition CandleSession.hpp:133
static const std::string ATTRIBUTE_KEY
The attribute key that is used to store the value of CandleSession in a symbol string using methods o...
Definition CandleSession.hpp:65
std::string changeAttributeForSymbol(const StringLike &symbol) const override
Returns candle event symbol string with this session attribute set.
Definition CandleSession.cpp:98
static std::reference_wrapper< const CandleSession > parse(const StringLike &s)
Parses string representation of the candle session attribute into an object.
Definition CandleSession.cpp:111
static const CandleSession DEFAULT
The default trading session is CandleSession::ANY.
Definition CandleSession.hpp:56
static std::string normalizeAttributeForSymbol(const StringLike &symbol) noexcept
Returns candle symbol string with the normalized representation of the candle session attribute.
Definition CandleSession.cpp:136
Attribute of the CandleSymbol.
Definition CandleSymbolAttribute.hpp:24
virtual std::string changeAttributeForSymbol(const StringLike &symbol) const =0
Returns candle event symbol string with this attribute set.
Symbol that should be used with DXFeedSubscription class to subscribe for Candle events.
Definition CandleSymbol.hpp:87
const std::optional< CandlePeriod > & getPeriod() const &noexcept
Returns the aggregation period of this symbol.
Definition CandleSymbol.cpp:226
const std::optional< CandlePriceLevel > & getPriceLevel() const &noexcept
Returns the price level attribute of this symbol.
Definition CandleSymbol.cpp:234
const std::optional< CandleExchange > & getExchange() const &noexcept
Returns exchange attribute of this symbol.
Definition CandleSymbol.cpp:214
static CandleSymbol valueOf(const StringLike &symbol, const CandleSymbolAttributeVariant &attribute) noexcept
Converts the given string symbol into the candle symbol object with the specified attribute set.
Definition CandleSymbol.cpp:334
const std::string & getBaseSymbol() const &noexcept
Returns base market symbol without attributes.
Definition CandleSymbol.cpp:210
static CandleSymbol valueOf(const StringLike &symbol, std::initializer_list< CandleSymbolAttributeVariant > attributes) noexcept
Converts the given string symbol into the candle symbol object with the specified attributes set (ini...
Definition CandleSymbol.cpp:338
static CandleSymbol valueOf(const StringLike &symbol) noexcept
Converts the given string symbol into the candle symbol object.
Definition CandleSymbol.cpp:330
const std::optional< CandlePrice > & getPrice() const &noexcept
Returns the price type attribute of this symbol.
Definition CandleSymbol.cpp:218
static CandleSymbol valueOf(const StringLike &symbol, CandleSymbolAttributeIt begin, CandleSymbolAttributeIt end) noexcept
Converts the given string symbol into the candle symbol object with the specified attribute set (iter...
Definition CandleSymbol.hpp:251
virtual void * toGraal() const
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition CandleSymbol.cpp:288
const std::string & toString() const &noexcept
Returns string representation of this symbol.
Definition CandleSymbol.cpp:238
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition CandleSymbol.cpp:299
const std::optional< CandleSession > & getSession() const &noexcept
Returns the session attribute of this symbol.
Definition CandleSymbol.cpp:222
static CandleSymbol fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition CandleSymbol.cpp:315
const std::optional< CandleAlignment > & getAlignment() const &noexcept
Returns alignment attribute of this symbol.
Definition CandleSymbol.cpp:230
Type of the candle aggregation period constitutes CandlePeriod type together its actual value.
Definition CandleType.hpp:29
static const CandleType VOLUME
Certain volume of trades.
Definition CandleType.hpp:78
static const CandleType MONTH
Certain number of months.
Definition CandleType.hpp:63
static const CandleType PRICE_RENKO
Certain price change, calculated according to the following rules:
Definition CandleType.hpp:113
static const CandleType DAY
Certain number of days.
Definition CandleType.hpp:42
std::int64_t getPeriodIntervalMillis() const noexcept
Returns a candle type period in milliseconds as closely as possible.
Definition CandleType.cpp:22
static const CandleType WEEK
Certain number of weeks.
Definition CandleType.hpp:43
static const CandleType TICK
Certain number of ticks.
Definition CandleType.hpp:38
static const CandleType HOUR
Certain number of hours.
Definition CandleType.hpp:41
static const CandleType PRICE
Certain price change, calculated according to the following rules:
Definition CandleType.hpp:89
static std::reference_wrapper< const CandleType > parse(const StringLike &s)
Parses string representation of a candle type into an object.
Definition CandleType.cpp:34
const std::string & toString() const &noexcept
Returns string representation of this candle type.
Definition CandleType.cpp:30
static const CandleType OPTEXP
Certain number of option expirations.
Definition CandleType.hpp:68
static const CandleType SECOND
Certain number of seconds.
Definition CandleType.hpp:39
static const CandleType MINUTE
Certain number of minutes.
Definition CandleType.hpp:40
const std::string & getName() const &noexcept
Returns a name of this candle type.
Definition CandleType.cpp:26
static const CandleType PRICE_MOMENTUM
Certain price change, calculated according to the following rules:
Definition CandleType.hpp:101
static const CandleType YEAR
Certain number of years.
Definition CandleType.hpp:73
Mixin for wrapping calls to common promise methods.
Definition Promise.hpp:79
JavaException getException() const
Returns exceptional outcome of computation.
Definition Promise.hpp:127
void cancel() const
This method cancels computation.
Definition Promise.hpp:174
bool hasResult() const
Returns true when computation has completed normally.
Definition Promise.hpp:95
bool isCancelled() const
Returns true when computation was cancelled.
Definition Promise.hpp:114
bool hasException() const
Returns true when a computation has completed exceptionally or was canceled.
Definition Promise.hpp:104
bool awaitWithoutException(const std::chrono::milliseconds &timeoutInMilliseconds) const
Wait for computation to complete or timeout or throw an exception in case of exceptional completion.
Definition Promise.hpp:161
bool isDone() const
Returns true when a computation has completed normally, or exceptionally, or was canceled.
Definition Promise.hpp:85
bool awaitWithoutException(std::int32_t timeoutInMilliseconds) const
Wait for computation to complete or timeout or throw an exception in case of exceptional completion.
Definition Promise.hpp:144
Manages network connections to feed or publisher.
Definition DXEndpoint.hpp:179
bool isClosed() const
Definition DXEndpoint.cpp:511
SimpleHandler< void(DXEndpoint::State, DXEndpoint::State)> & onStateChange() noexcept
Returns the onStateChange handler that can be used to add or remove listeners.
Definition DXEndpoint.cpp:523
static const std::string DXFEED_PASSWORD_PROPERTY
"dxfeed.password"
Definition DXEndpoint.hpp:246
static std::shared_ptr< DXEndpoint > create(Role role)
Creates an endpoint with a specified role.
Definition DXEndpoint.cpp:498
std::shared_ptr< DXFeed > getFeed() const
Definition DXEndpoint.cpp:224
std::shared_ptr< DXEndpoint > password(const StringLike &password)
Changes password for this endpoint.
Definition DXEndpoint.cpp:151
State
Represents the current state of endpoint.
Definition DXEndpoint.hpp:444
@ CLOSED
Endpoint was closed.
Definition DXEndpoint.hpp:464
@ CONNECTING
The connect method was called to establish connection to remove endpoint, but the connection is not e...
Definition DXEndpoint.hpp:454
@ CONNECTED
The connection to the remote endpoint is established.
Definition DXEndpoint.hpp:459
@ NOT_CONNECTED
Endpoint was created by is not connected to remote endpoints.
Definition DXEndpoint.hpp:448
std::shared_ptr< DXEndpoint > user(const StringLike &user)
Changes username for this endpoint.
Definition DXEndpoint.cpp:144
void reconnect() const
Terminates all established network connections and initiates connecting again with the same address.
Definition DXEndpoint.cpp:170
static std::shared_ptr< DXEndpoint > create()
Creates an endpoint with FEED role.
Definition DXEndpoint.cpp:489
void removeStateChangeListener(std::size_t listenerId) noexcept
Removes a listener notified about changes in state property.
Definition DXEndpoint.cpp:519
const std::string & getName() const &noexcept
Definition DXEndpoint.cpp:515
Role
Represents the role of an endpoint that was specified during its creation.
Definition DXEndpoint.hpp:373
@ PUBLISHER
PUBLISHER endpoint connects to the remote publisher hub (also known as multiplexor) or creates a publ...
Definition DXEndpoint.hpp:418
@ STREAM_FEED
STREAM_FEED endpoint is similar to DXEndpoint::FEED and also connects to the remote data feed provide...
Definition DXEndpoint.hpp:406
@ LOCAL_HUB
LOCAL_HUB endpoint is a local hub without the ability to establish network connections.
Definition DXEndpoint.hpp:434
@ ON_DEMAND_FEED
ON_DEMAND_FEED endpoint is similar to DXEndpoint::FEED, but it is designed to be used with OnDemandSe...
Definition DXEndpoint.hpp:397
@ STREAM_PUBLISHER
STREAM_PUBLISHER endpoint is similar to DXEndpoint::PUBLISHER and also connects to the remote publish...
Definition DXEndpoint.hpp:427
@ FEED
FEED endpoint connects to the remote data feed provider and is optimized for real-time or delayed dat...
Definition DXEndpoint.hpp:384
std::string toString() const override
Returns a string representation of the current object.
Definition DXEndpoint.cpp:388
void awaitProcessed() const
Waits until this endpoint stops processing data (becomes quiescent).
Definition DXEndpoint.cpp:206
std::shared_ptr< DXPublisher > getPublisher() const
Definition DXEndpoint.cpp:233
static const std::string DXFEED_WILDCARD_ENABLE_PROPERTY
"dxfeed.wildcard.enable"
Definition DXEndpoint.hpp:274
std::size_t addStateChangeListener(std::function< void(State, State)> listener) noexcept
Adds a listener notified about changes in state property.
Definition DXEndpoint.hpp:619
static const std::string DXENDPOINT_EVENT_TIME_PROPERTY
"dxendpoint.eventTime"
Definition DXEndpoint.hpp:319
static const std::string DXPUBLISHER_THREAD_POOL_SIZE_PROPERTY
"dxpublisher.threadPoolSize"
Definition DXEndpoint.hpp:302
State getState() const
Returns the state of this endpoint.
Definition DXEndpoint.cpp:140
static const std::string DXENDPOINT_STORE_EVERYTHING_PROPERTY
"dxendpoint.storeEverything"
Definition DXEndpoint.hpp:332
void awaitNotConnected() const
Waits while this endpoint state becomes NOT_CONNECTED or CLOSED.
Definition DXEndpoint.cpp:197
static std::shared_ptr< DXEndpoint > getInstance(Role role)
Returns a default application-wide singleton instance of DXEndpoint for a specific role.
Definition DXEndpoint.cpp:471
static const std::string DXFEED_AGGREGATION_PERIOD_PROPERTY
"dxfeed.aggregationPeriod"
Definition DXEndpoint.hpp:265
void close() const
Closes this endpoint.
Definition DXEndpoint.cpp:527
static const std::string DXFEED_THREAD_POOL_SIZE_PROPERTY
"dxfeed.threadPoolSize"
Definition DXEndpoint.hpp:255
void disconnect() const
Terminates all remote network connections.
Definition DXEndpoint.cpp:179
void closeAndAwaitTermination() const
Closes this endpoint and wait until all pending data processing tasks are completed.
Definition DXEndpoint.cpp:215
static std::shared_ptr< DXEndpoint > getInstance()
Returns a default application-wide singleton instance of DXEndpoint with a FEED role.
Definition DXEndpoint.cpp:462
static const std::string DXPUBLISHER_ADDRESS_PROPERTY
"dxpublisher.address"
Definition DXEndpoint.hpp:293
static const std::string DXFEED_USER_PROPERTY
"dxfeed.user"
Definition DXEndpoint.hpp:236
static const std::string NAME_PROPERTY
"name"
Definition DXEndpoint.hpp:196
static const std::string DXSCHEME_ENABLED_PROPERTY_PREFIX
"dxscheme.enabled."
Definition DXEndpoint.hpp:366
static const std::string DXPUBLISHER_PROPERTIES_PROPERTY
"dxpublisher.properties"
Definition DXEndpoint.hpp:283
static const std::string DXSCHEME_NANO_TIME_PROPERTY
"dxscheme.nanoTime"
Definition DXEndpoint.hpp:352
static const std::string DXFEED_ADDRESS_PROPERTY
"dxfeed.address"
Definition DXEndpoint.hpp:226
void disconnectAndClear() const
Terminates all remote network connections and clears stored data.
Definition DXEndpoint.cpp:188
Role getRole() const noexcept
Returns the role of this endpoint.
Definition DXEndpoint.cpp:507
static const std::string DXFEED_PROPERTIES_PROPERTY
"dxfeed.properties"
Definition DXEndpoint.hpp:207
static std::shared_ptr< Builder > newBuilder()
Creates a new Builder instance.
Definition DXEndpoint.cpp:480
std::shared_ptr< DXEndpoint > connect(const StringLike &address)
Connects to the specified remote address.
Definition DXEndpoint.cpp:158
Main entry class for dxFeed API (read it first).
Definition DXFeed.hpp:119
void detachSubscriptionAndClear(const std::shared_ptr< DXFeedSubscription > &subscription) const
Detaches the given subscription from this feed and clears data delivered to this subscription by publ...
Definition DXFeed.cpp:68
std::vector< std::shared_ptr< E > > getTimeSeriesIfSubscribed(const SymbolWrapper &symbol, std::int64_t fromTime) const
Returns time series of events for the specified event type, symbol and a range of time (without an up...
Definition DXFeed.hpp:1006
std::shared_ptr< PromiseList< E > > getLastEventsPromises(std::initializer_list< SymbolWrapper > collection) const
Requests the last events for the specified event type and a collection of symbols.
Definition DXFeed.hpp:722
std::vector< std::shared_ptr< E > > getTimeSeriesIfSubscribed(const SymbolWrapper &symbol, std::chrono::milliseconds fromTime, std::chrono::milliseconds toTime) const
Returns time series of events for the specified event type, symbol and a range of time if there is a ...
Definition DXFeed.hpp:990
std::vector< std::shared_ptr< E > > getTimeSeriesIfSubscribed(const SymbolWrapper &symbol, std::int64_t fromTime, std::int64_t toTime) const
Returns time series of events for the specified event type, symbol and a range of time if there is a ...
Definition DXFeed.hpp:938
std::shared_ptr< DXFeedSubscription > createSubscription(const EventTypeEnum &eventType) const
Creates a new subscription for a single event type that is attached to this feed.
Definition DXFeed.cpp:88
std::shared_ptr< DXFeedTimeSeriesSubscription > createTimeSeriesSubscription(std::initializer_list< EventTypeEnum > eventTypes) const
Creates new subscription for multiple event types that is attached to this feed.
Definition DXFeed.cpp:137
std::shared_ptr< Promise< std::vector< std::shared_ptr< E > > > > getTimeSeriesPromise(const SymbolWrapper &symbol, std::int64_t fromTime, std::int64_t toTime) const
Requests time series of events for the specified event type, symbol and a range of time.
Definition DXFeed.hpp:886
std::shared_ptr< DXFeedSubscription > createSubscription(EventTypeIt begin, EventTypeIt end) const
Creates new subscription for multiple event types that is attached to this feed.
Definition DXFeed.hpp:361
std::shared_ptr< PromiseList< E > > getLastEventsPromises(const SymbolsCollection &collection) const
Requests the last events for the specified event type and a collection of symbols.
Definition DXFeed.hpp:676
std::shared_ptr< E > getLastEventIfSubscribed(const SymbolWrapper &symbol)
Returns the last event for the specified event type and symbol if there is a subscription for it.
Definition DXFeed.hpp:308
std::shared_ptr< DXFeedSubscription > createSubscription(std::initializer_list< EventTypeEnum > eventTypes) const
Creates new subscription for multiple event types that is attached to this feed.
Definition DXFeed.cpp:101
std::vector< std::shared_ptr< E > > getTimeSeriesIfSubscribed(const SymbolWrapper &symbol, std::chrono::milliseconds fromTime) const
Returns time series of events for the specified event type, symbol and a range of time (without an up...
Definition DXFeed.hpp:1021
std::shared_ptr< DXFeedTimeSeriesSubscription > createTimeSeriesSubscription(EventTypeIt begin, EventTypeIt end) const
Creates new subscription for multiple event types that is attached to this feed.
Definition DXFeed.hpp:473
static std::shared_ptr< DXFeed > getInstance()
Returns a default application-wide singleton instance of feed.
Definition DXFeed.cpp:19
std::shared_ptr< E > getLastEvent(std::shared_ptr< E > event)
Returns the last event for the specified event instance.
Definition DXFeed.hpp:248
std::shared_ptr< PromiseList< E > > getLastEventsPromises(SymbolIt begin, SymbolIt end) const
Requests the last events for the specified event type and a collection of symbols.
Definition DXFeed.hpp:629
std::shared_ptr< DXFeedSubscription > createSubscription(const EventTypesCollection &eventTypes) const
Creates new subscription for multiple event types that is attached to this feed.
Definition DXFeed.hpp:411
std::shared_ptr< Promise< std::shared_ptr< E > > > getLastEventPromise(const SymbolWrapper &symbol) const
Requests the last event for the specified event type and symbol.
Definition DXFeed.hpp:581
std::shared_ptr< DXFeedTimeSeriesSubscription > createTimeSeriesSubscription(const EventTypesCollection &eventTypes) const
Creates new subscription for multiple event types that is attached to this feed.
Definition DXFeed.hpp:540
std::string toString() const override
Returns a string representation of the current object.
Definition DXFeed.cpp:226
std::shared_ptr< Promise< std::vector< std::shared_ptr< E > > > > getIndexedEventsPromise(const SymbolWrapper &symbol, const IndexedEventSource &source) const
Requests a container of indexed events for the specified event type, symbol and source.
Definition DXFeed.hpp:775
void detachSubscription(const std::shared_ptr< DXFeedSubscription > &subscription) const
Detaches the given subscription from this feed.
Definition DXFeed.cpp:48
std::vector< std::shared_ptr< E > > getIndexedEventsIfSubscribed(const SymbolWrapper &symbol, const IndexedEventSource &source) const
Returns a vector of indexed events for the specified event type, symbol and source if there is a subs...
Definition DXFeed.hpp:831
const Collection & getLastEvents(const Collection &events)
Returns the last events for the specified list of event instances.
Definition DXFeed.hpp:269
void attachSubscription(const std::shared_ptr< DXFeedSubscription > &subscription) const
Attaches the given subscription to this feed.
Definition DXFeed.cpp:28
std::shared_ptr< DXFeedTimeSeriesSubscription > createTimeSeriesSubscription(const EventTypeEnum &eventType) const
Creates a new subscription for a single event type that is attached to this feed.
Definition DXFeed.cpp:116
Provides API for publishing of events to local or remote DXFeed.
Definition DXPublisher.hpp:60
void publishEvents(EventIt begin, EventIt end) const
Publishes events to the corresponding feed.
Definition DXPublisher.hpp:200
std::shared_ptr< ObservableSubscription > getSubscription(const EventTypeEnum &eventType)
Returns an observable set of subscribed symbols for the specified event type.
Definition DXPublisher.cpp:50
std::string toString() const override
Returns a string representation of the current object.
Definition DXPublisher.cpp:65
void publishEvents(std::initializer_list< std::shared_ptr< EventType > > events) const
Publishes events to the corresponding feed.
Definition DXPublisher.hpp:182
void publishEvents(EventsCollection &&events) const
Publishes events to the corresponding feed.
Definition DXPublisher.hpp:164
static std::shared_ptr< DXPublisher > getInstance()
Returns a default application-wide singleton instance of DXPublisher.
Definition DXPublisher.cpp:20
void publishEvents(std::shared_ptr< EventType > event) const
Publishes an event to the corresponding feed.
Definition DXPublisher.cpp:46
Direction of the price movement.
Definition Direction.hpp:26
static const DXFCPP_EXPORT Direction UNDEFINED
Direction is undefined, unknown or inapplicable.
Definition Direction.hpp:12
static const DXFCPP_EXPORT Direction DOWN
The current price is lower than the previous price.
Definition Direction.hpp:13
static const DXFCPP_EXPORT Direction ZERO
The current price is equal to the only known price value suitable for price direction computation.
Definition Direction.hpp:15
static const DXFCPP_EXPORT Direction ZERO_DOWN
The current price is the same as the previous price and is lower than the last known price of differe...
Definition Direction.hpp:14
static const DXFCPP_EXPORT Direction UP
The current price is higher than the previous price.
Definition Direction.hpp:17
static const DXFCPP_EXPORT Direction ZERO_UP
The current price is the same as the previous price and is higher than the last known price of differ...
Definition Direction.hpp:16
Mixin for wrapping Promise method calls for a single event.
Definition Promise.hpp:243
std::shared_ptr< E > getResult() const
Returns result of computation.
Definition Promise.hpp:251
std::shared_ptr< E > await() const
Wait for the computation to complete and return its result or throw an exception in case of exception...
Definition Promise.hpp:261
std::shared_ptr< E > await(const std::chrono::milliseconds &timeoutInMilliseconds) const &
Wait for computation to complete or timeout and return its result or throw an exception in case of ex...
Definition Promise.hpp:291
std::shared_ptr< E > await(std::int32_t timeoutInMilliseconds) const &
Wait for computation to complete or timeout and return its result or throw an exception in case of ex...
Definition Promise.hpp:276
const DataType & getData() const noexcept
Definition EventSourceWrapper.cpp:119
bool isOrderSource() const noexcept
Definition EventSourceWrapper.cpp:106
std::unique_ptr< void, decltype(&EventSourceWrapper::freeGraal)> toGraalUnique() const noexcept
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition EventSourceWrapper.cpp:80
std::string toStringUnderlying() const
Returns a string representation of the underlying object.
Definition EventSourceWrapper.cpp:94
std::string toString() const
Returns a string representation of the current object.
Definition EventSourceWrapper.cpp:84
void * toGraal() const noexcept
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition EventSourceWrapper.cpp:71
static EventSourceWrapper fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition EventSourceWrapper.cpp:62
EventSourceWrapper(const IndexedEventSource &data) noexcept
Constructs a wrapper from IndexedEventSource.
Definition EventSourceWrapper.cpp:47
bool isIndexedEventSource() const noexcept
Definition EventSourceWrapper.cpp:102
std::optional< IndexedEventSource > asIndexedEventSource() const noexcept
Definition EventSourceWrapper.cpp:110
std::optional< OrderSource > asOrderSource() const noexcept
Definition EventSourceWrapper.cpp:115
EventSourceWrapper(const OrderSource &data) noexcept
Constructs a wrapper from OrderSource.
Definition EventSourceWrapper.cpp:51
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition EventSourceWrapper.cpp:55
Event type parametrized by a symbol.
Definition EventType.hpp:113
virtual const std::optional< Symbol > & getEventSymbolOpt() const &noexcept=0
Returns the event symbol that identifies this event type in subscription.
virtual void setEventSymbol(const Symbol &eventSymbol) noexcept=0
Changes the event symbol that identifies this event type in subscription.
virtual const Symbol & getEventSymbol() const &noexcept=0
Returns the event symbol that identifies this event type in subscription.
Marks all event types that can be received via dxFeed API.
Definition EventType.hpp:36
std::string toString() const override
Returns a string representation of the current object.
Definition api.cpp:67
virtual void * toGraal() const =0
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
virtual std::int64_t getEventTime() const noexcept
Returns time when an event was created or zero when time is not available.
Definition api.cpp:54
virtual void assign(std::shared_ptr< EventType > event)
Replaces the contents of the event.
Definition api.cpp:63
virtual void setEventTime(std::int64_t eventTime) noexcept
Changes event creation time.
Definition api.cpp:58
This marker interface marks subscription symbol classes (like TimeSeriesSubscriptionSymbol) that atta...
Definition FilteredSubscriptionSymbol.hpp:32
The wrapper over CEntryPointErrorsEnum, the error code returned by GraalVM.
Definition GraalException.hpp:26
GraalException(CEntryPointErrorsEnum entryPointErrorsEnum)
Constructs an exception.
Definition GraalException.cpp:8
void handle(ArgTypes... args)
Calls the listeners and pass the args to them.
Definition Handler.hpp:122
std::size_t add(ListenerType &&listener)
Adds the listener to "main" group.
Definition Handler.hpp:156
std::size_t operator%=(ListenerType &&listener)
Adds the low priority listener (to the "low priority" group).
Definition Handler.hpp:208
std::size_t operator+=(ListenerType &&listener)
Adds the listener to "main" group.
Definition Handler.hpp:197
void operator()(ArgTypes... args)
Calls the listeners and pass the ars to them.
Definition Handler.hpp:146
Handler(std::size_t mainFuturesSize=MAIN_FUTURES_DEFAULT_SIZE) noexcept
Creates the new handler by specified size of circular buffer of futures.
Definition Handler.hpp:84
void operator-=(std::size_t id)
Removes a listener by the id.
Definition Handler.hpp:236
std::size_t addLowPriority(ListenerType &&listener)
Adds the low priority listener (to the "low priority" group) It will be called after the "main" liste...
Definition Handler.hpp:177
void remove(std::size_t id)
Removes a listener by the id.
Definition Handler.hpp:217
static std::shared_ptr< Builder > newBuilder()
Creates a new instance of HistoryEndpoint::Builder with default configurations.
Definition HistoryEndpoint.cpp:83
Compression
The Compression enum represents different compression algorithms that can be applied to data during t...
Definition HistoryEndpoint.hpp:76
Format
The Format enum represents different formats that can be used to handle data.
Definition HistoryEndpoint.hpp:91
std::vector< std::shared_ptr< E > > getTimeSeries(const SymbolWrapper &symbol, std::int64_t from, std::int64_t to)
Retrieves a list of time series events for a specific type of event and symbol within the given time ...
Definition HistoryEndpoint.hpp:201
Type of iceberg order.
Definition IcebergType.hpp:24
static const DXFCPP_EXPORT IcebergType SYNTHETIC
Represents synthetic (managed outside the exchange) iceberg type.
Definition IcebergType.hpp:13
static const DXFCPP_EXPORT IcebergType UNDEFINED
Iceberg type is undefined, unknown or inapplicable.
Definition IcebergType.hpp:11
static const DXFCPP_EXPORT IcebergType NATIVE
Represents a native (exchange-managed) iceberg type.
Definition IcebergType.hpp:12
Represents an indexed collection of up-to-date information about some condition or state of an extern...
Definition IndexedEvent.hpp:46
virtual EventFlagsMask getEventFlagsMask() const noexcept=0
Returns transactional event flags.
virtual const IndexedEventSource & getSource() const &noexcept=0
Returns the source of this event.
static const EventFlag TX_PENDING
0x01 - A bitmask to get transaction pending indicator from the value of eventFlags property.
Definition IndexedEvent.hpp:53
virtual std::int64_t getIndex() const noexcept=0
Returns unique per-symbol index of this event.
static const EventFlag SNAPSHOT_END
0x08 - A bitmask to get snapshot end indicator from the value of eventFlags property.
Definition IndexedEvent.hpp:62
virtual std::int32_t getEventFlags() const noexcept=0
Returns transactional event flags.
static const EventFlag SNAPSHOT_MODE
0x40 - A bitmask to set snapshot mode indicator into the value of eventFlags property.
Definition IndexedEvent.hpp:68
static const EventFlag SNAPSHOT_SNIP
0x10 - A bitmask to get snapshot snip indicator from the value of eventFlags property.
Definition IndexedEvent.hpp:65
static const EventFlag REMOVE_EVENT
0x02 - A bitmask to get removal indicator from the value of eventFlags property.
Definition IndexedEvent.hpp:56
virtual void setIndex(std::int64_t index)=0
Changes unique per-symbol index of this event.
static const EventFlag SNAPSHOT_BEGIN
0x04 - A bitmask to get snapshot begin indicator from the value of eventFlags property.
Definition IndexedEvent.hpp:59
virtual void setEventFlags(std::int32_t eventFlags) noexcept=0
Changes transactional event flags.
virtual void setEventFlags(const EventFlagsMask &eventFlags) noexcept=0
Changes transactional event flags.
std::string toString() const override
Returns a string representation of the current object.
Definition TxModelListener.hpp:132
static std::shared_ptr< IndexedTxModelListener< E > > create(std::function< void(const IndexedEventSource &, const std::vector< std::shared_ptr< E > > &, bool)> onEventsReceived)
Creates a listener for receiving indexed events (with instantiation by event type E and verification)
Definition TxModelListener.hpp:105
std::shared_ptr< Builder > withSources(std::initializer_list< EventSourceWrapper > sources) const
Sets the sources from which to subscribe for indexed events.
Definition IndexedTxModel.hpp:357
std::shared_ptr< Builder > withSymbol(const SymbolWrapper &symbol) const
Sets the subscription symbol for the model being created.
Definition IndexedTxModel.hpp:222
std::shared_ptr< Builder > withListener(std::shared_ptr< IndexedTxModelListener< E > > listener) const
Sets the listener for transaction notifications.
Definition IndexedTxModel.hpp:251
std::shared_ptr< Builder > withBatchProcessing(bool isBatchProcessing) const
Enables or disables batch processing.
Definition IndexedTxModel.hpp:177
std::shared_ptr< Builder > withListener(std::function< void(const IndexedEventSource &, const std::vector< std::shared_ptr< E > > &, bool)> onEventsReceived) const
Sets the listener for transaction notifications.
Definition IndexedTxModel.hpp:282
std::shared_ptr< Builder > withFeed(const std::shared_ptr< DXFeed > &feed) const
Sets the feed for the model being created.
Definition IndexedTxModel.hpp:211
std::shared_ptr< Builder > withSources(EventSourceCollection &&sources) const
Sets the sources from which to subscribe for indexed events.
Definition IndexedTxModel.hpp:336
std::shared_ptr< Builder > withSnapshotProcessing(bool isSnapshotProcessing) const
Enables or disables snapshot processing.
Definition IndexedTxModel.hpp:199
std::shared_ptr< Builder > withSources(EventSourceIt begin, EventSourceIt end) const
Sets the sources from which to subscribe for indexed events.
Definition IndexedTxModel.hpp:309
std::shared_ptr< IndexedTxModel > build() const
Builds an instance of IndexedTxModel based on the provided parameters.
Definition IndexedTxModel.hpp:370
void setSources(EventSourceCollection &&sources) const
Sets the sources from which to subscribe for indexed events.
Definition IndexedTxModel.hpp:504
std::string toString() const override
Returns a string representation of the current object.
Definition IndexedTxModel.hpp:524
void detach(const std::shared_ptr< DXFeed > &feed) const
Detaches this model from the specified feed.
Definition IndexedTxModel.hpp:443
std::unordered_set< EventSourceWrapper > getSources() const
Returns the current set of sources.
Definition IndexedTxModel.hpp:463
void setSources(std::initializer_list< EventSourceWrapper > sources) const
Sets the sources from which to subscribe for indexed events.
Definition IndexedTxModel.hpp:520
void close() const
Closes this model and makes it permanently detached.
Definition IndexedTxModel.hpp:452
bool isSnapshotProcessing() const
Returns whether snapshot processing is enabled.
Definition IndexedTxModel.hpp:423
bool isBatchProcessing() const
Returns whether batch processing is enabled.
Definition IndexedTxModel.hpp:413
~IndexedTxModel() noexcept override
Calls close method and destructs this model.
Definition IndexedTxModel.hpp:390
void attach(const std::shared_ptr< DXFeed > &feed) const
Attaches this model to the specified feed.
Definition IndexedTxModel.hpp:434
void setSources(EventSourceIt begin, EventSourceIt end) const
Sets the sources from which to subscribe for indexed events.
Definition IndexedTxModel.hpp:482
static std::shared_ptr< Builder > newBuilder()
Factory method to create a new builder for this model.
Definition IndexedTxModel.hpp:403
Defines standard types of InstrumentProfile.
Definition InstrumentProfileType.hpp:25
void setSettlementStyle(const StringLike &settlementStyle) const
Changes settlement price determination style, such as "Open", "Close".
Definition InstrumentProfile.cpp:250
void setCUSIP(const StringLike &cusip) const
Changes Committee on Uniform Security Identification Procedures code.
Definition InstrumentProfile.cpp:138
void setType(const StringLike &type) const
Changes type of instrument.
Definition InstrumentProfile.cpp:26
double getStrike() const
Returns strike price for options.
Definition InstrumentProfile.cpp:222
void setISIN(const StringLike &isin) const
Changes International Securities Identifying Number.
Definition InstrumentProfile.cpp:122
std::int32_t getICB() const
Returns Industry Classification Benchmark.
Definition InstrumentProfile.cpp:142
std::string getMMY() const
Returns maturity month-year as provided for corresponding FIX tag (200).
Definition InstrumentProfile.cpp:198
std::string getType() const
Returns type of instrument.
Definition InstrumentProfile.cpp:22
void setNumericField(const StringLike &name, double value) const
Changes numeric field value with a specified name.
Definition InstrumentProfile.cpp:282
void setMultiplier(double multiplier) const
Changes market value multiplier.
Definition InstrumentProfile.cpp:162
std::int32_t getLastTrade() const
Returns day id of last trading day.
Definition InstrumentProfile.cpp:214
std::string getTradingHours() const
Returns trading hours specification.
Definition InstrumentProfile.cpp:262
std::string getPriceIncrements() const
Returns minimum allowed price increments with corresponding price ranges.
Definition InstrumentProfile.cpp:254
void setTradingHours(const StringLike &tradingHours) const
Changes trading hours specification.
Definition InstrumentProfile.cpp:266
static Ptr create()
Creates an instrument profile with default values.
Definition InstrumentProfile.cpp:14
void setExchanges(const StringLike &exchanges) const
Changes list of exchanges where instrument is quoted or traded.
Definition InstrumentProfile.cpp:90
std::vector< std::string > getNonEmptyCustomFieldNames() const
Returns names of non-empty custom fields.
Definition InstrumentProfile.cpp:294
void setDescription(const StringLike &description) const
Changes description of instrument, preferable an international one in Latin alphabet.
Definition InstrumentProfile.cpp:42
std::string getField(const StringLike &name) const
Returns field value with a specified name.
Definition InstrumentProfile.cpp:270
void setSIC(std::int32_t sic) const
Changes Standard Industrial Classification.
Definition InstrumentProfile.cpp:154
void setLocalDescription(const StringLike &localDescription) const
Changes description of instrument in national language.
Definition InstrumentProfile.cpp:58
void setSEDOL(const StringLike &sedol) const
Changes Stock Exchange Daily Official List.
Definition InstrumentProfile.cpp:130
void setCurrency(const StringLike &currency) const
Changes currency of quotation, pricing and trading.
Definition InstrumentProfile.cpp:98
std::string getDescription() const
Returns the description of instrument, preferable an international one in Latin alphabet.
Definition InstrumentProfile.cpp:38
std::string getLocalDescription() const
Returns description of instrument in national language.
Definition InstrumentProfile.cpp:54
std::string getAdditionalUnderlyings() const
Returns additional underlyings for options, including additional cash.
Definition InstrumentProfile.cpp:190
std::string getOPOL() const
Returns official Place Of Listing, the organization that have listed this instrument.
Definition InstrumentProfile.cpp:70
void setICB(std::int32_t icb) const
Changes Industry Classification Benchmark.
Definition InstrumentProfile.cpp:146
std::string getUnderlying() const
Returns primary underlying symbol for options.
Definition InstrumentProfile.cpp:174
std::string getCurrency() const
Returns currency of quotation, pricing and trading.
Definition InstrumentProfile.cpp:94
std::string getISIN() const
Returns International Securities Identifying Number.
Definition InstrumentProfile.cpp:118
std::string getBaseCurrency() const
Returns base currency of currency pair (FOREX instruments).
Definition InstrumentProfile.cpp:102
void setCountry(const StringLike &country) const
Changes country of origin (incorporation) of corresponding company or parent entity.
Definition InstrumentProfile.cpp:66
double getMultiplier() const
Returns market value multiplier.
Definition InstrumentProfile.cpp:158
std::string getSEDOL() const
Returns Stock Exchange Daily Official List.
Definition InstrumentProfile.cpp:126
std::int32_t getSIC() const
Returns Standard Industrial Classification.
Definition InstrumentProfile.cpp:150
void setField(const StringLike &name, const StringLike &value) const
Changes field value with a specified name.
Definition InstrumentProfile.cpp:274
void setExpiration(std::int32_t expiration) const
Changes day id of expiration.
Definition InstrumentProfile.cpp:210
void setMMY(const StringLike &mmy) const
Changes maturity month-year as provided for corresponding FIX tag (200).
Definition InstrumentProfile.cpp:202
void setUnderlying(const StringLike &underlying) const
Changes primary underlying symbol for options.
Definition InstrumentProfile.cpp:178
void setOPOL(const StringLike &opol) const
Changes official Place Of Listing, the organization that have listed this instrument.
Definition InstrumentProfile.cpp:74
double getSPC() const
Returns shares per contract for options.
Definition InstrumentProfile.cpp:182
std::string getSettlementStyle() const
Returns settlement price determination style, such as "Open", "Close".
Definition InstrumentProfile.cpp:246
std::string toString() const override
Returns a string representation of the current object.
Definition InstrumentProfile.cpp:298
std::string getExpirationStyle() const
Returns expiration cycle style, such as "Weeklys", "Quarterlys".
Definition InstrumentProfile.cpp:238
std::string getCFI() const
Returns Classification of Financial Instruments code.
Definition InstrumentProfile.cpp:110
void setLastTrade(std::int32_t lastTrade) const
Changes day id of last trading day.
Definition InstrumentProfile.cpp:218
void setDateField(const StringLike &name, std::int32_t value) const
Changes day id value for a date field with a specified name.
Definition InstrumentProfile.cpp:290
std::int32_t getDateField(const StringLike &name) const
Returns day id value for a date field with a specified name.
Definition InstrumentProfile.cpp:286
void setAdditionalUnderlyings(const StringLike &additionalUnderlyings) const
Changes additional underlyings for options, including additional cash.
Definition InstrumentProfile.cpp:194
std::string getExchanges() const
Returns list of exchanges where instrument is quoted or traded.
Definition InstrumentProfile.cpp:86
void setSymbol(const StringLike &symbol) const
Changes identifier of instrument, preferable an international one in Latin alphabet.
Definition InstrumentProfile.cpp:34
void setLocalSymbol(const StringLike &localSymbol) const
Changes identifier of instrument in national language.
Definition InstrumentProfile.cpp:50
std::string getSymbol() const
Returns identifier of instrument, preferable an international one in Latin alphabet.
Definition InstrumentProfile.cpp:30
void setExpirationStyle(const StringLike &expirationStyle) const
Changes the expiration cycle style, such as "Weeklys", "Quarterlys".
Definition InstrumentProfile.cpp:242
void setPriceIncrements(const StringLike &priceIncrements) const
Changes minimum allowed price increments with corresponding price ranges.
Definition InstrumentProfile.cpp:258
std::string getOptionType() const
Returns type of option.
Definition InstrumentProfile.cpp:230
void setSPC(double spc) const
Changes shares per contract for options.
Definition InstrumentProfile.cpp:186
static Ptr create(Ptr ip)
Creates an instrument profile as a copy of the specified instrument profile.
Definition InstrumentProfile.cpp:18
std::string getLocalSymbol() const
Returns identifier of instrument in national language.
Definition InstrumentProfile.cpp:46
std::string getCountry() const
Returns country of origin (incorporation) of corresponding company or parent entity.
Definition InstrumentProfile.cpp:62
std::int32_t getExpiration() const
Returns day id of expiration.
Definition InstrumentProfile.cpp:206
void setCFI(const StringLike &cfi) const
Changes Classification of Financial Instruments code.
Definition InstrumentProfile.cpp:114
void setStrike(double strike) const
Changes strike price for options.
Definition InstrumentProfile.cpp:226
std::string getExchangeData() const
Returns exchange-specific data required to properly identify instrument when communicating with excha...
Definition InstrumentProfile.cpp:78
void setProduct(const StringLike &product) const
Changes product for futures and options on futures (underlying asset name).
Definition InstrumentProfile.cpp:170
void setOptionType(const StringLike &optionType) const
Changes type of option.
Definition InstrumentProfile.cpp:234
void setExchangeData(const StringLike &exchangeData) const
Changes exchange-specific data required to properly identify instrument when communicating with excha...
Definition InstrumentProfile.cpp:82
double getNumericField(const StringLike &name) const
Returns numeric field value with a specified name.
Definition InstrumentProfile.cpp:278
std::string getCUSIP() const
Returns Committee on Uniform Security Identification Procedures code.
Definition InstrumentProfile.cpp:134
std::string getProduct() const
Returns product for futures and options on futures (underlying asset name).
Definition InstrumentProfile.cpp:166
void setBaseCurrency(const StringLike &baseCurrency) const
Changes base currency of currency pair (FOREX instruments).
Definition InstrumentProfile.cpp:106
Thrown to indicate that a method has been passed an illegal or inappropriate argument.
Definition InvalidArgumentException.hpp:23
A wrapper over the interceptable Java exceptions thrown by the dxFeed Native Graal SDK.
Definition JavaException.hpp:25
static void throwIfJavaThreadExceptionExists()
Throws a JavaException if it exists (i.e. intercepted by Graal SDK)
Definition JavaException.cpp:31
static JavaException create(void *exceptionHandle)
Creates an exception using native (GraalVM) Java exception handle.
Definition JavaException.cpp:21
JavaException(const StringLike &message, const StringLike &className, const StringLike &stackTrace)
Creates an exception using Java message, className and stack trace.
Definition JavaException.cpp:13
Represents up-to-date information about some condition or state of an external entity that updates in...
Definition LastingEvent.hpp:33
static void init(Level level=Level::OFF)
Initializes logging and sets the logging level.
Definition Logging.cpp:51
static std::string levelToString(Level level)
Converts enum Level values to their string representation.
Definition Logging.cpp:14
Level
Defines a set of standard logging levels that can be used to control logging output.
Definition Logging.hpp:29
@ TRACE
Indicates a highly detailed tracing message.
Definition Logging.hpp:34
@ WARN
Is a message level indicating a potential problem.
Definition Logging.hpp:43
@ INFO
Is a message level for informational messages.
Definition Logging.hpp:40
@ ALL
Indicates that all messages should be logged.
Definition Logging.hpp:31
@ OFF
Is a special level that can be used to turn off logging.
Definition Logging.hpp:49
@ ERROR
Is a message level indicating a serious failure.
Definition Logging.hpp:46
@ DEBUG
Is a message level providing tracing debug information.
Definition Logging.hpp:37
static void init(const StringLike &logFile, const StringLike &errFile, Level logLevel=Level::INFO, Level errFileLevel=Level::WARN)
Initializes logging, sets the path to the file for logging, to the file for outputting errors and war...
Definition Logging.cpp:63
static void init(const StringLike &logFile, Level logLevel=Level::INFO)
Initializes logging, sets the path to the logging file and the logging level.
Definition Logging.cpp:57
static std::shared_ptr< MarketDepthModelListener > create(std::function< Signature > onEventsReceived)
Constructs the new listener from the callback.
Definition MarketDepthModelListener.hpp:66
SimpleHandler< Signature > & getHandler()
Definition MarketDepthModelListener.hpp:49
Represents a set of orders, sorted by a comparator.
Definition MarketDepthModel.hpp:400
bool insert(const std::shared_ptr< O > &order)
Inserts an order to set.
Definition MarketDepthModel.hpp:485
bool erase(const std::shared_ptr< O > &order)
Removes an order from the set.
Definition MarketDepthModel.hpp:503
bool isChanged() const
Definition MarketDepthModel.hpp:459
void clearBySource(const IndexedEventSource &source)
Clears orders from the set by source.
Definition MarketDepthModel.hpp:520
void setDepthLimit(std::size_t depthLimit)
Sets the depth limit.
Definition MarketDepthModel.hpp:468
void setDepthLimit(std::size_t depthLimit)
Sets the depth limit of the model.
Definition MarketDepthModel.hpp:739
std::int64_t getAggregationPeriod() const
Definition MarketDepthModel.hpp:756
std::size_t getDepthLimit() const
Definition MarketDepthModel.hpp:728
void setAggregationPeriod(std::chrono::milliseconds aggregationPeriod)
Sets the aggregation period.
Definition MarketDepthModel.hpp:783
static std::shared_ptr< Builder > newBuilder()
Creates a new builder instance for constructing a MarketDepthModel.
Definition MarketDepthModel.hpp:721
void setAggregationPeriod(std::int64_t aggregationPeriodMillis)
Sets the aggregation period in milliseconds.
Definition MarketDepthModel.hpp:767
void close() const
Closes this model and makes it permanently detached.
Definition MarketDepthModel.hpp:790
Helper class to compose and parse symbols for market events.
Definition MarketEventSymbols.hpp:44
static std::optional< std::string > getAttributeStringByKey(const StringLike &symbol, const StringLike &key) noexcept
Returns value of the attribute with the specified key.
Definition MarketEventSymbols.cpp:48
static std::string changeBaseSymbol(const StringLike &symbol, const StringLike &baseSymbol) noexcept
Changes base symbol while leaving exchange code and attributes intact.
Definition MarketEventSymbols.cpp:33
static bool hasExchangeCode(const StringLike &symbol) noexcept
Returns true if the specified symbol has the exchange code specification.
Definition MarketEventSymbols.cpp:8
static std::string changeExchangeCode(const StringLike &symbol, char exchangeCode) noexcept
Changes exchange code of the specified symbol or removes it if the new exchange code is ‘’\0'`.
Definition MarketEventSymbols.cpp:16
static std::string getBaseSymbol(const StringLike &symbol) noexcept
Returns base symbol without exchange code and attributes.
Definition MarketEventSymbols.cpp:29
static std::string changeAttributeStringByKey(const StringLike &symbol, const StringLike &key, const StringLike &value) noexcept
Changes the value of one attribute value while leaving exchange code and other attributes intact.
Definition MarketEventSymbols.cpp:53
static std::string removeAttributeStringByKey(const StringLike &symbol, const StringLike &key) noexcept
Removes one attribute with the specified key while leaving exchange code and other attributes intact.
Definition MarketEventSymbols.cpp:64
static char getExchangeCode(const StringLike &symbol) noexcept
Returns exchange code of the specified symbol or ‘’\0'` if none is defined.
Definition MarketEventSymbols.cpp:12
Base class for all market events.
Definition MarketEvent.hpp:29
void setEventTime(std::int64_t eventTime) noexcept override
Changes event creation time.
Definition MarketEvent.cpp:76
MarketEvent(const StringLike &eventSymbol) noexcept
Protected constructor for concrete implementation classes that initializes eventSymbol property.
Definition MarketEvent.cpp:13
const std::string & getEventSymbol() const &noexcept override
Returns a symbol of this event.
Definition MarketEvent.cpp:55
std::int64_t getEventTime() const noexcept override
Returns time when an event was created or zero when time is not available.
Definition MarketEvent.cpp:72
const std::optional< std::string > & getEventSymbolOpt() const &noexcept override
Returns a symbol of this event.
Definition MarketEvent.cpp:63
void assign(std::shared_ptr< EventType > event) override
Replaces the contents of the event.
Definition MarketEvent.cpp:48
void setEventSymbol(const StringLike &eventSymbol) noexcept override
Changes symbol of this event.
Definition MarketEvent.cpp:67
The listener interface for receiving notifications on the changes of observed subscription.
Definition ObservableSubscriptionChangeListener.hpp:29
static std::shared_ptr< ObservableSubscriptionChangeListener > create(std::function< void(const std::unordered_set< SymbolWrapper > &symbols)> onSymbolsAdded)
Creates a listener that will notify the callback about added symbols.
Definition ObservableSubscriptionChangeListener.cpp:69
static std::shared_ptr< ObservableSubscriptionChangeListener > create(std::function< void(const std::unordered_set< SymbolWrapper > &symbols)> onSymbolsAdded, std::function< void(const std::unordered_set< SymbolWrapper > &symbols)> onSymbolsRemoved, std::function< void()> onSubscriptionClosed)
Creates a listener that will notify callbacks about events of adding and deleting symbols,...
Definition ObservableSubscriptionChangeListener.cpp:86
Observable set of subscription symbols.
Definition ObservableSubscription.hpp:26
virtual std::size_t addChangeListener(std::shared_ptr< ObservableSubscriptionChangeListener > listener)=0
Adds subscription change listener.
virtual bool containsEventType(const EventTypeEnum &eventType)=0
Returns true if this subscription contains the corresponding event type.
virtual void removeChangeListener(std::size_t id)=0
Removes subscription change listener by id.
virtual bool isClosed()=0
virtual std::unordered_set< EventTypeEnum > getEventTypes()=0
Provides on-demand historical tick data replay controls.
Definition OnDemandService.hpp:77
double getSpeed() const
Returns on-demand historical data replay speed.
Definition OnDemandService.cpp:72
void replay(std::int64_t time, double speed) const
Turns on-demand historical data replay mode from a specified time and with a specified speed.
Definition OnDemandService.cpp:80
void setSpeed(double speed) const
Changes on-demand historical data replay speed while continuing replay at current time.
Definition OnDemandService.cpp:96
void replay(std::int64_t time) const
Turns on-demand historical data replay mode from a specified time with real-time speed.
Definition OnDemandService.cpp:76
std::int64_t getTime() const
Returns current or last on-demand historical data replay time.
Definition OnDemandService.cpp:68
static std::shared_ptr< OnDemandService > getInstance()
Returns on-demand service for the default DXEndpoint instance with ON_DEMAND_FEED role that is not co...
Definition OnDemandService.cpp:31
void stopAndClear() const
Stops incoming data and clears it without resuming data updates.
Definition OnDemandService.cpp:92
bool isClear() const
Returns true when this on-demand historical data replay service is in clear mode.
Definition OnDemandService.cpp:64
std::shared_ptr< DXEndpoint > getEndpoint() const noexcept
Returns DXEndpoint that is associated with this on-demand service.
Definition OnDemandService.cpp:52
bool isReplay() const
Returns true when this on-demand historical data replay service is in replay mode.
Definition OnDemandService.cpp:60
static std::shared_ptr< OnDemandService > getInstance(std::shared_ptr< DXEndpoint > endpoint)
Returns on-demand service for the specified DXEndpoint.
Definition OnDemandService.cpp:35
void stopAndResume() const
Stops on-demand historical data replay and resumes ordinary data feed.
Definition OnDemandService.cpp:88
bool isReplaySupported() const
Returns true when on-demand historical data replay mode is supported.
Definition OnDemandService.cpp:56
void pause() const
Pauses on-demand historical data replay and keeps data snapshot.
Definition OnDemandService.cpp:84
Action enum for the Full Order Book (FOB) Orders.
Definition OrderAction.hpp:26
static const DXFCPP_EXPORT OrderAction TRADE
Non-Book Trade - this Trade not refers to any entry in Order Book.
Definition OrderAction.hpp:19
static const DXFCPP_EXPORT OrderAction EXECUTE
Order is fully executed and removed from the Order Book.
Definition OrderAction.hpp:18
static const DXFCPP_EXPORT OrderAction BUST
Prior Trade/Order Execution bust.
Definition OrderAction.hpp:20
static const DXFCPP_EXPORT OrderAction PARTIAL
Size is changed (usually reduced) due to partial order execution.
Definition OrderAction.hpp:17
static const DXFCPP_EXPORT OrderAction REPLACE
Order is modified, and price-time-priority is not maintained (i.e.
Definition OrderAction.hpp:14
static const DXFCPP_EXPORT OrderAction MODIFY
Order is modified without changing its price-time-priority (usually due to partial cancel by the user...
Definition OrderAction.hpp:15
static const DXFCPP_EXPORT OrderAction DELETE
Order is fully canceled and removed from Order Book.
Definition OrderAction.hpp:16
static const DXFCPP_EXPORT OrderAction NEW
New Order is added to Order Book.
Definition OrderAction.hpp:13
static const DXFCPP_EXPORT OrderAction UNDEFINED
Default enum value for orders that do not support "Full Order Book" and for backward compatibility - ...
Definition OrderAction.hpp:12
Type of prices on the OTC Markets.
Definition OtcMarketsPriceType.hpp:27
static const DXFCPP_EXPORT OtcMarketsPriceType WANTED
Offer Wanted/Bid Wanted (OW/BW) is used to solicit sellers/buyers, without displaying actual price or...
Definition OtcMarketsPriceType.hpp:13
static const DXFCPP_EXPORT OtcMarketsPriceType UNPRICED
Unpriced quotes are an indication of interest (IOI) in a security used when a trader does not wish to...
Definition OtcMarketsPriceType.hpp:11
static const DXFCPP_EXPORT OtcMarketsPriceType ACTUAL
Actual (Priced) is the actual amount a trader is willing to buy or sell securities.
Definition OtcMarketsPriceType.hpp:12
Represents rules for valid price quantization for a given instrument on a certain exchange.
Definition PriceIncrements.hpp:244
std::string getText() const
Returns textual representation of price increments in the format:
Definition PriceIncrements.cpp:50
std::string toString() const override
Returns a string representation of the current object.
Definition PriceIncrements.cpp:167
double incrementPrice(double price, std::int32_t direction) const
Returns specified price incremented in the specified direction by appropriate increment and then roun...
Definition PriceIncrements.cpp:130
double incrementPrice(double price, std::int32_t direction, double step) const
Returns specified price incremented in the specified direction by the maximum of a specified step and...
Definition PriceIncrements.cpp:138
static Ptr valueOf(std::initializer_list< double > increments)
Returns an instance of price increments for specified internal representation.
Definition PriceIncrements.cpp:46
double roundPrice(double price, RoundingMode roundingMode) const
Returns specified price rounded according to specified rounding mode to nearest value that is valid,...
Definition PriceIncrements.cpp:122
double roundPrice(double price, std::int32_t direction) const
Returns specified price rounded in the specified direction to the nearest value that is valid,...
Definition PriceIncrements.cpp:114
bool operator==(const PriceIncrements::Ptr &other) const
Returns true if this object is equal to other object.
Definition PriceIncrements.hpp:470
std::int32_t getPricePrecision(double price) const
Returns price precision for the price range which contains a specified price.
Definition PriceIncrements.cpp:98
double roundPrice(double price) const
Returns specified price rounded to nearest valid value.
Definition PriceIncrements.cpp:106
static const Ptr EMPTY
Empty price increments - it has empty text and sole increment with value 0.
Definition PriceIncrements.hpp:263
static Ptr valueOf(const std::vector< double > &increments)
Returns an instance of price increments for specified internal representation.
Definition PriceIncrements.cpp:42
static Ptr valueOf(const StringLike &text)
Returns an instance of price increments for specified textual representation.
Definition PriceIncrements.cpp:34
double getPriceIncrement(double price) const
Returns price increment which shall be applied to the specified price.
Definition PriceIncrements.cpp:74
std::int32_t getPricePrecision() const
Returns first price precision (for price range adjacent to 0), usually the largest one.
Definition PriceIncrements.cpp:90
double getPriceIncrement(double price, std::int32_t direction) const
Returns price increment which shall be applied to the specified price in the specified direction.
Definition PriceIncrements.cpp:82
bool operator==(const PriceIncrements &other) const
Returns true if this object is equal to other object.
Definition PriceIncrements.cpp:146
static Ptr valueOf(double increment)
Returns an instance of price increments for a specified single increment.
Definition PriceIncrements.cpp:38
double getPriceIncrement() const
Returns the first price increment (for price range adjacent to 0), usually the smallest one.
Definition PriceIncrements.cpp:66
std::size_t hashCode() const noexcept
Definition PriceIncrements.cpp:155
std::vector< double > getPriceIncrements() const
Returns internal representation of price increments as a single array of double values.
Definition PriceIncrements.cpp:58
Type of the price value.
Definition PriceType.hpp:24
static const DXFCPP_EXPORT PriceType PRELIMINARY
Preliminary price (preliminary settlement price), usually posted prior to PriceType::FINAL price.
Definition PriceType.hpp:13
static const DXFCPP_EXPORT PriceType FINAL
Final price (final settlement price).
Definition PriceType.hpp:14
static const DXFCPP_EXPORT PriceType REGULAR
Regular price.
Definition PriceType.hpp:11
static const DXFCPP_EXPORT PriceType INDICATIVE
Indicative price (derived via math formula).
Definition PriceType.hpp:12
A list of event receiving results that will be completed normally or exceptionally in the future.
Definition Promise.hpp:441
Result of a computation that will be completed normally or exceptionally in the future.
Definition Promise.hpp:357
A class that represents a promise-based implementation often used for handling asynchronous operation...
Definition Promises.hpp:46
A helper class needed to construct smart pointers to objects and does not allow explicit construction...
Definition SharedEntity.hpp:89
static auto createShared(Args &&...args)
Creates a smart pointer to an object.
Definition SharedEntity.hpp:104
A runtime axception with stacktrace.
Definition RuntimeException.hpp:25
const std::string & getStackTrace() const &
Definition RuntimeException.cpp:83
RuntimeException(const StringLike &message, const StringLike &additionalStackTrace="")
Constructs a runtime exception.
Definition RuntimeException.cpp:67
Schedule class provides API to retrieve and explore trading schedules of different exchanges and diff...
Definition Schedule.hpp:34
Scope of an order.
Definition Scope.hpp:26
static const DXFCPP_EXPORT Scope AGGREGATE
Represents aggregate information for a given price level or best bid or the best offer for a given ma...
Definition Scope.hpp:13
static const DXFCPP_EXPORT Scope ORDER
Represents individual order on the market.
Definition Scope.hpp:14
static const DXFCPP_EXPORT Scope COMPOSITE
Represents the best bid or the best offer for the whole market.
Definition Scope.hpp:11
static const DXFCPP_EXPORT Scope REGIONAL
Represents the best bid or the best offer for a given exchange code.
Definition Scope.hpp:12
static const SessionFilter TRADING
Accepts trading sessions only - those with (Session::isTrading() == true).
Definition SessionFilter.hpp:122
static const SessionFilter ANY
Accepts any session - useful for pure schedule navigation.
Definition SessionFilter.hpp:121
SessionFilter(SessionFilterEnum code, const StringLike &name, std::optional< SessionType > type, std::optional< bool > trading) noexcept
Creates a filter with specified type and trading flag conditions.
Definition CandleSession.cpp:52
static const SessionFilter AFTER_MARKET
Accepts any session with type SessionType::AFTER_MARKET.
Definition SessionFilter.hpp:130
static const SessionFilter REGULAR
Accepts any session with type SessionType::REGULAR.
Definition SessionFilter.hpp:129
static const SessionFilter NO_TRADING
Accepts any session with type SessionType::NO_TRADING.
Definition SessionFilter.hpp:125
static const SessionFilter NON_TRADING
Accepts non-trading sessions only - those with (Session::isTrading() == false).
Definition SessionFilter.hpp:123
static const SessionFilter PRE_MARKET
Accepts any session with type SessionType::PRE_MARKET.
Definition SessionFilter.hpp:127
bool accept(Session session) const noexcept
Tests whether or not the specified session is an acceptable result.
Definition SessionFilter.hpp:109
std::optional< bool > trading_
Required trading flag, std::nullopt if not relevant.
Definition SessionFilter.hpp:75
std::optional< SessionType > type_
Required type, std::nullopt if not relevant.
Definition SessionFilter.hpp:73
Defines type of session - what kind of trading activity is allowed (if any), what rules are used,...
Definition SessionType.hpp:38
static const SessionType AFTER_MARKET
After-market session type marks extended trading session after regular trading hours.
Definition SessionType.hpp:117
static const SessionType PRE_MARKET
Pre-market session type marks extended trading session before regular trading hours.
Definition SessionType.hpp:115
static const SessionType REGULAR
Regular session type marks regular trading hours session.
Definition SessionType.hpp:116
static const SessionType NO_TRADING
Non-trading session type is used to mark periods of time during which trading is not allowed.
Definition SessionType.hpp:114
bool isTrading() const noexcept
Returns true if trading activity is allowed for this type of session.
Definition CandleSession.cpp:34
A base abstract "shared entity" class. Has some helpers for dynamic polymorphism.
Definition SharedEntity.hpp:25
virtual std::string toString() const
Returns a string representation of the current object.
Definition SharedEntity.hpp:78
std::shared_ptr< T > sharedAs() const noexcept
Returns a pointer to the current object wrapped in a smart pointer to type T or std::shared_ptr<T>{nu...
Definition SharedEntity.hpp:69
std::shared_ptr< T > sharedAs() noexcept
Returns a pointer to the current object wrapped in a smart pointer to type T or std::shared_ptr<T>{nu...
Definition SharedEntity.hpp:58
bool is() const noexcept
Checks that the pointer to the current type could be converted to type T* In other words: whether typ...
Definition SharedEntity.hpp:39
Short sale restriction on an instrument.
Definition ShortSaleRestriction.hpp:26
static const DXFCPP_EXPORT ShortSaleRestriction INACTIVE
Short sale restriction is inactive.
Definition ShortSaleRestriction.hpp:13
static const DXFCPP_EXPORT ShortSaleRestriction UNDEFINED
Short sale restriction is undefined, unknown or inapplicable.
Definition ShortSaleRestriction.hpp:11
static const DXFCPP_EXPORT ShortSaleRestriction ACTIVE
Short sale restriction is active.
Definition ShortSaleRestriction.hpp:12
Side of an order or a trade.
Definition Side.hpp:26
static const DXFCPP_EXPORT Side SELL
Sell side (ask or offer).
Definition Side.hpp:13
static const DXFCPP_EXPORT Side UNDEFINED
Side is undefined, unknown or inapplicable.
Definition Side.hpp:11
static const DXFCPP_EXPORT Side BUY
Buy side (bid).
Definition Side.hpp:12
std::size_t operator+=(ListenerType &&listener)
Adds the listener to "main" group.
Definition Handler.hpp:379
void remove(std::size_t id)
Removes a listener by the id.
Definition Handler.hpp:399
void handle(ArgTypes... args)
Calls the listeners and pass the args to them.
Definition Handler.hpp:317
void operator()(ArgTypes... args)
Calls the listeners and pass the ars to them.
Definition Handler.hpp:328
std::size_t addLowPriority(ListenerType &&listener)
Adds the low priority listener (to the "low priority" group) It will be called after the "main" liste...
Definition Handler.hpp:359
void operator-=(std::size_t id)
Removes a listener by the id.
Definition Handler.hpp:418
std::size_t operator%=(ListenerType &&listener)
Adds the low priority listener (to the "low priority" group).
Definition Handler.hpp:390
SimpleHandler() noexcept
Creates the new handler.
Definition Handler.hpp:289
std::size_t add(ListenerType &&listener)
Adds the listener to "main" group.
Definition Handler.hpp:338
Universal functional object that allows searching std::unordered_map for string-like keys.
Definition StringUtils.hpp:111
A simple wrapper around strings or something similar to strings to reduce the amount of code for meth...
Definition Common.hpp:842
A lightweight wrapper around strings or string-like inputs.
Definition StringUtils.hpp:27
StringSymbol(std::string_view stringView) noexcept
Constructs StringSymbol from a std::string_view.
Definition StringSymbol.cpp:54
StringSymbol(const char *chars) noexcept
Constructs StringSymbol from a char array.
Definition StringSymbol.cpp:45
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition StringSymbol.cpp:83
std::string toString() const
Returns a string representation of the current object.
Definition StringSymbol.cpp:114
static StringSymbol fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition StringSymbol.cpp:99
void * toGraal() const
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition StringSymbol.cpp:72
Common string constants used across the library.
Definition StringUtils.hpp:128
static const std::string NUL
Textual representation of a null / missing string: "<null>".
Definition StringUtils.hpp:133
static const std::string EMPTY
Empty string constant: "".
Definition StringUtils.hpp:130
std::optional< CandleSymbol > asCandleSymbol() const noexcept
Definition SymbolWrapper.cpp:239
SymbolWrapper(Symbol &&symbol) noexcept
Constructor for any wrapped symbol.
Definition SymbolWrapper.hpp:160
bool isIndexedEventSubscriptionSymbol() const noexcept
Definition SymbolWrapper.cpp:215
std::string toString() const
Returns a string representation of the current object.
Definition SymbolWrapper.cpp:181
static SymbolWrapper fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition SymbolWrapper.cpp:133
std::string toStringUnderlying() const
Returns a string representation of the underlying object.
Definition SymbolWrapper.cpp:191
std::unique_ptr< void, decltype(&SymbolWrapper::freeGraal)> toGraalUnique() const noexcept
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition SymbolWrapper.cpp:177
bool isStringSymbol() const noexcept
Definition SymbolWrapper.cpp:199
std::optional< IndexedEventSubscriptionSymbol > asIndexedEventSubscriptionSymbol() const noexcept
Definition SymbolWrapper.cpp:219
bool isWildcardSymbol() const noexcept
Definition SymbolWrapper.cpp:207
void * toGraal() const noexcept
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition SymbolWrapper.cpp:165
SymbolWrapper(const IndexedEventSubscriptionSymbol &indexedEventSubscriptionSymbol) noexcept
Constructor for IndexedEventSubscriptionSymbol.
Definition SymbolWrapper.cpp:66
std::string asStringSymbol() const noexcept
Definition SymbolWrapper.cpp:203
SymbolWrapper(const StringSymbol &stringSymbol) noexcept
Constructor for any wrapped string symbol.
Definition SymbolWrapper.cpp:50
std::optional< WildcardSymbol > asWildcardSymbol() const noexcept
Definition SymbolWrapper.cpp:211
SymbolWrapper(const CandleSymbol &candleSymbol) noexcept
Constructor for CandleSymbol.
Definition SymbolWrapper.cpp:84
SymbolWrapper(const WildcardSymbol &wildcardSymbol) noexcept
Constructor for any wrapped wildcard (*) symbol.
Definition SymbolWrapper.cpp:58
bool isTimeSeriesSubscriptionSymbol() const noexcept
Definition SymbolWrapper.cpp:225
SymbolWrapper(const TimeSeriesSubscriptionSymbol &timeSeriesSubscriptionSymbol) noexcept
Constructor for TimeSeriesSubscriptionSymbol.
Definition SymbolWrapper.cpp:75
bool isCandleSymbol() const noexcept
Definition SymbolWrapper.cpp:235
std::optional< TimeSeriesSubscriptionSymbol > asTimeSeriesSubscriptionSymbol() const noexcept
Definition SymbolWrapper.cpp:229
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition SymbolWrapper.cpp:95
const DataType & getData() const noexcept
Definition SymbolWrapper.cpp:243
A class that allows to set JVM system properties and get the values of JVM system properties.
Definition System.hpp:24
static bool setProperty(const StringLike &key, const StringLike &value)
Sets the JVM system property indicated by the specified key.
Definition System.cpp:19
static void setProperties(Properties &&properties)
Sets the JVM system properties to the Properties argument.
Definition System.hpp:40
static std::string getProperty(const StringLike &key)
Gets the system property indicated by the specified key.
Definition System.cpp:42
Type of a time and sale event.
Definition TimeAndSaleType.hpp:26
static const DXFCPP_EXPORT TimeAndSaleType NEW
Represents new time and sale event.
Definition TimeAndSaleType.hpp:11
static const DXFCPP_EXPORT TimeAndSaleType CANCEL
Represents cancel time and sale event.
Definition TimeAndSaleType.hpp:13
static const DXFCPP_EXPORT TimeAndSaleType CORRECTION
Represents correction time and sale event.
Definition TimeAndSaleType.hpp:12
Utility class for parsing and formatting dates and times in ISO-compatible format.
Definition TimeFormat.hpp:29
std::string format(std::int64_t timestamp) const
Converts timestamp into string according to the format.
Definition TimeFormat.cpp:58
static const TimeFormat GMT
An instance of TimeFormat that corresponds to GMT timezone as returned by TimeZone::getTimeZone("GMT"...
Definition TimeFormat.hpp:41
std::int64_t parse(const StringLike &value) const
Reads Date from String and returns timestamp.
Definition TimeFormat.cpp:50
static const TimeFormat DEFAULT
An instance of TimeFormat that corresponds to default timezone as returned by TimeZone::getDefault() ...
Definition TimeFormat.hpp:33
Value class for a period of time with support for ISO8601 duration format.
Definition TimePeriod.hpp:27
static TimePeriod valueOf(const StringLike &value)
Returns TimePeriod represented with a given string.
Definition TimePeriod.cpp:28
static TimePeriod valueOf(std::chrono::milliseconds value)
Returns TimePeriod with value milliseconds.
Definition TimePeriod.cpp:24
std::int64_t getNanos() const
Returns value in nanoseconds.
Definition TimePeriod.cpp:48
static const TimePeriod ZERO
Time-period of zero.
Definition TimePeriod.hpp:31
std::int32_t getSeconds() const
Returns value in seconds.
Definition TimePeriod.cpp:40
std::int64_t getTime() const
Returns value in milliseconds.
Definition TimePeriod.cpp:32
static const TimePeriod UNLIMITED
Time-period of "infinity" (time of std::numeric_limits<std::int64_t>::max() or LLONG_MAX).
Definition TimePeriod.hpp:34
static TimePeriod valueOf(std::int64_t value)
Returns TimePeriod with value milliseconds.
Definition TimePeriod.cpp:20
Represents time-series snapshots of some process that is evolving in time or actual events in some ex...
Definition TimeSeriesEvent.hpp:84
const IndexedEventSource & getSource() const &noexcept override
Returns the source identifier for this event, which is always DEFAULT for time-series events.
Definition TimeSeriesEvent.cpp:8
std::int64_t getIndex() const noexcept override
Returns unique per-symbol index of this event.
Definition TimeSeriesEvent.cpp:12
virtual std::int64_t getEventId() const noexcept
Returns unique per-symbol index of this event.
Definition TimeSeriesEvent.cpp:16
virtual std::int64_t getTime() const noexcept=0
Returns timestamp of the event.
std::string toString() const override
Returns a string representation of the current object.
Definition TxModelListener.hpp:207
static std::shared_ptr< TimeSeriesTxModelListener< E > > create(std::function< void(const std::vector< std::shared_ptr< E > > &, bool)> onEventsReceived)
Creates a listener for receiving time series events (with instantiation by event type E and verificat...
Definition TxModelListener.hpp:181
std::shared_ptr< Builder > withFromTime(std::int64_t fromTime) const
Sets the time from which to subscribe for time-series.
Definition TimeSeriesTxModel.hpp:299
std::shared_ptr< Builder > withBatchProcessing(bool isBatchProcessing) const
Enables or disables batch processing.
Definition TimeSeriesTxModel.hpp:177
std::shared_ptr< Builder > withListener(std::function< void(const std::vector< std::shared_ptr< E > > &, bool)> onEventsReceived) const
Sets the listener for transaction notifications.
Definition TimeSeriesTxModel.hpp:284
std::shared_ptr< TimeSeriesTxModel > build() const
Builds an instance of TimeSeriesTxModel based on the provided parameters.
Definition TimeSeriesTxModel.hpp:326
std::shared_ptr< Builder > withSymbol(const SymbolWrapper &symbol) const
Sets the subscription symbol for the model being created.
Definition TimeSeriesTxModel.hpp:222
std::shared_ptr< Builder > withFeed(const std::shared_ptr< DXFeed > &feed) const
Sets the feed for the model being created.
Definition TimeSeriesTxModel.hpp:211
std::shared_ptr< Builder > withFromTime(std::chrono::milliseconds fromTime) const
Sets the time from which to subscribe for time-series.
Definition TimeSeriesTxModel.hpp:313
std::shared_ptr< Builder > withListener(std::shared_ptr< TimeSeriesTxModelListener< E > > listener) const
Sets the listener for transaction notifications.
Definition TimeSeriesTxModel.hpp:252
std::shared_ptr< Builder > withSnapshotProcessing(bool isSnapshotProcessing) const
Enables or disables snapshot processing.
Definition TimeSeriesTxModel.hpp:199
std::int64_t getFromTime() const
Returns the time from which to subscribe for time-series, or std::numeric_limits<std::int64_t>::max()...
Definition TimeSeriesTxModel.hpp:419
bool isBatchProcessing() const
Returns whether batch processing is enabled.
Definition TimeSeriesTxModel.hpp:370
void setFromTime(std::chrono::milliseconds fromTime) const
Sets the time from which to subscribe for time-series.
Definition TimeSeriesTxModel.hpp:439
void detach(const std::shared_ptr< DXFeed > &feed) const
Detaches this model from the specified feed.
Definition TimeSeriesTxModel.hpp:400
~TimeSeriesTxModel() noexcept override
Calls close method and destructs this model.
Definition TimeSeriesTxModel.hpp:347
void setFromTime(std::int64_t fromTime) const
Sets the time from which to subscribe for time-series.
Definition TimeSeriesTxModel.hpp:429
static std::shared_ptr< Builder > newBuilder()
Factory method to create a new builder for this model.
Definition TimeSeriesTxModel.hpp:360
void attach(const std::shared_ptr< DXFeed > &feed) const
Attaches this model to the specified feed.
Definition TimeSeriesTxModel.hpp:391
bool isSnapshotProcessing() const
Returns whether snapshot processing is enabled.
Definition TimeSeriesTxModel.hpp:380
void close() const
Closes this model and makes it permanently detached.
Definition TimeSeriesTxModel.hpp:409
std::string toString() const override
Returns a string representation of the current object.
Definition TimeSeriesTxModel.hpp:443
Trading status of an instrument.
Definition TradingStatus.hpp:26
static const DXFCPP_EXPORT TradingStatus UNDEFINED
Trading status is undefined, unknown or inapplicable.
Definition TradingStatus.hpp:11
static const DXFCPP_EXPORT TradingStatus HALTED
Trading is halted.
Definition TradingStatus.hpp:12
static const DXFCPP_EXPORT TradingStatus ACTIVE
Trading is active.
Definition TradingStatus.hpp:13
Mixin for wrapping Promise method calls for a void.
Definition Promise.hpp:184
void await(std::int32_t timeoutInMilliseconds) const &
Wait for the computation to complete or timeout and return its result or throw an exception in case o...
Definition Promise.hpp:216
void await(const std::chrono::milliseconds &timeoutInMilliseconds) const &
Wait for the computation to complete or timeout and return its result or throw an exception in case o...
Definition Promise.hpp:231
void await() const
Wait for the computation to complete and return its result or throw an exception in case of exception...
Definition Promise.hpp:201
void getResult() const
Returns result of computation.
Definition Promise.hpp:191
static void freeGraal(void *graalNative)
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
Definition WildcardSymbol.cpp:43
static const WildcardSymbol & fromGraal(void *graalNative)
Creates an object of the current type and fills it with data from the dxFeed Graal SDK structure.
Definition WildcardSymbol.cpp:49
void * toGraal() const noexcept
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Definition WildcardSymbol.cpp:33
static const WildcardSymbol ALL
Represents [wildcard] subscription to all events of the specific event type.
Definition WildcardSymbol.hpp:12
std::string toString() const
Returns string representation of this wildcard subscription symbol.
Definition WildcardSymbol.cpp:57
static const std::string RESERVED_PREFIX
Symbol prefix that is reserved for wildcard subscriptions.
Definition WildcardSymbol.hpp:32
The simple key-value structure that represents an endpoint's property.
Definition api.h:184
const char * key
The property's key.
Definition api.h:186
const char * value
The property's value.
Definition api.h:188