dxFeed Graal Native SDK 3.13.0
Loading...
Searching...
No Matches
dxfg_trade_base_t Struct Reference

The common fields of the trade events: dxfg_trade_t and dxfg_trade_eth_t. More...

#include <dxfg_events.h>

Data Fields

dxfg_market_event_t market_event
int64_t time_sequence
int32_t time_nano_part
int16_t exchange_code
double price
double change
double size
int32_t day_id
double day_volume
double day_turnover
int32_t flags
int64_t trade_id

Detailed Description

The common fields of the trade events: dxfg_trade_t and dxfg_trade_eth_t.

It is a lasting event, the information about the last trade. There is no event class of its own in the C API.

Javadoc

Field Documentation

◆ change

double dxfg_trade_base_t::change

The change of the last trade, NaN if unknown.

◆ day_id

int32_t dxfg_trade_base_t::day_id

The identifier of the current trading day: the number of days since 1 Jan 1970.

◆ day_turnover

double dxfg_trade_base_t::day_turnover

The total turnover traded for the day, NaN if unknown.

◆ day_volume

double dxfg_trade_base_t::day_volume

The total volume traded for the day (with fractions), NaN if unknown.

◆ exchange_code

int16_t dxfg_trade_base_t::exchange_code

The exchange code of the last trade: the character code (Java char) of the exchange, 0 if not set.

◆ flags

int32_t dxfg_trade_base_t::flags

The implementation-specific flags: the extended trading hours indicator in bit 0 and the tick direction in bits 1 to 3; see TradeBase.getTickDirection() and TradeBase.isExtendedTradingHours() in Java.

◆ market_event

dxfg_market_event_t dxfg_trade_base_t::market_event

The base structure: the fields of dxfg_market_event_t.

◆ price

double dxfg_trade_base_t::price

The price of the last trade, NaN if unknown.

◆ size

double dxfg_trade_base_t::size

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

◆ time_nano_part

int32_t dxfg_trade_base_t::time_nano_part

The microseconds and nanoseconds part of the time of the last trade.

◆ time_sequence

int64_t dxfg_trade_base_t::time_sequence

The time of the last trade 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 TradeBase.getTimeSequence() in Java.

◆ trade_id

int64_t dxfg_trade_base_t::trade_id

The trade ID for the events with a trade-related action (execution, correction, cancellation), 0 if none.


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