dxFeed Graal Native SDK 3.14.0-rc2
Loading...
Searching...
No Matches
dxfg_order_base_t Struct Reference

The common fields of the order events: dxfg_order_t, dxfg_spread_order_t and the structures built on them. More...

#include <dxfg_events.h>

Data Fields

dxfg_market_event_t market_event
int32_t event_flags
int64_t index
int64_t time_sequence
int32_t time_nano_part
int64_t action_time
int64_t order_id
int64_t aux_order_id
double price
double size
double executed_size
int64_t count
int32_t flags
int64_t trade_id
double trade_price
double trade_size

Detailed Description

The common fields of the order events: dxfg_order_t, dxfg_spread_order_t and the structures built on them.

It is an indexed event: a snapshot of the market depth of a symbol. Its clazz is DXFG_EVENT_ORDER_BASE.

Javadoc

Field Documentation

◆ action_time

int64_t dxfg_order_base_t::action_time

The time of the last order action, in milliseconds since the Unix epoch (UTC), 0 if not available.

◆ aux_order_id

int64_t dxfg_order_base_t::aux_order_id

The auxiliary order ID (for example, the ID of the order replaced by this new order), 0 if not available.

◆ count

int64_t dxfg_order_base_t::count

The number of the individual orders in this aggregate order.

◆ event_flags

int32_t dxfg_order_base_t::event_flags

The transactional event flags (TX_PENDING, REMOVE_EVENT, SNAPSHOT_BEGIN and so on), see IndexedEvent in Java.

◆ executed_size

double dxfg_order_base_t::executed_size

The executed size of the order, NaN if unknown.

◆ flags

int32_t dxfg_order_base_t::flags

The implementation-specific flags: the scope in bits 0 and 1, the side in bits 2 and 3, the exchange code in bits 4 to 10 and the order action in bits 11 to 14; see the getters of OrderBase in Java (getScope(), getOrderSide(), getExchangeCode(), getAction()).

◆ index

int64_t dxfg_order_base_t::index

The unique per-symbol index of the order, a non-negative number. The source of the order is stored in its highest bits, dxfg_IndexedEvent_getSource() returns it; see OrderBase.getIndex() in Java.

◆ market_event

dxfg_market_event_t dxfg_order_base_t::market_event

The base structure: the fields of dxfg_market_event_t.

◆ order_id

int64_t dxfg_order_base_t::order_id

The order ID, 0 if not available (some actions, such as a trade or a bust, have no order ID).

◆ price

double dxfg_order_base_t::price

The price of the order, NaN if unknown.

◆ size

double dxfg_order_base_t::size

The size of the order (with fractions), NaN if unknown.

◆ time_nano_part

int32_t dxfg_order_base_t::time_nano_part

The microseconds and nanoseconds part of the time of the order.

◆ time_sequence

int64_t dxfg_order_base_t::time_sequence

The time of the order and the sequence packed into one number: the time in seconds since the Unix epoch in the higher 32 bits, then the milliseconds part of the time (bits 22 to 31) and the sequence (bits 0 to 21); see OrderBase.getTimeSequence() in Java.

◆ trade_id

int64_t dxfg_order_base_t::trade_id

The trade (order execution) ID for the events that contain a trade-related action, 0 if not available.

◆ trade_price

double dxfg_order_base_t::trade_price

The trade price for the events that contain a trade-related action, NaN if unknown.

◆ trade_size

double dxfg_order_base_t::trade_size

The trade size for the events that contain a trade-related action, NaN if unknown.


The documentation for this struct was generated from the following file: