|
dxFeed Graal Native SDK 3.16.0-rc1
|
The time and sale event: a trade or another market event with a price, in a continuous time slice. More...
#include <dxfg_events.h>
Data Fields | |
| dxfg_market_event_t | market_event |
| int32_t | event_flags |
| int64_t | index |
| int32_t | time_nano_part |
| int16_t | exchange_code |
| double | price |
| double | size |
| double | bid_price |
| double | ask_price |
| const char * | exchange_sale_conditions |
| int32_t | flags |
| const char * | buyer |
| const char * | seller |
| int64_t | trade_id |
The time and sale event: a trade or another market event with a price, in a continuous time slice.
It is a time series event, its clazz is DXFG_EVENT_TIME_AND_SALE. Its time is the one in index, there is no separate time field.
| double dxfg_time_and_sale_t::ask_price |
The ask price on the market at the time of the event, NaN if unknown.
| double dxfg_time_and_sale_t::bid_price |
The bid price on the market at the time of the event, NaN if unknown.
| const char* dxfg_time_and_sale_t::buyer |
The buyer (a UTF-8 string, NULL if none) that belongs to the event and is freed with it.
| int32_t dxfg_time_and_sale_t::event_flags |
The transactional event flags (TX_PENDING, REMOVE_EVENT, SNAPSHOT_BEGIN and so on), see IndexedEvent in Java.
| int16_t dxfg_time_and_sale_t::exchange_code |
The exchange code: the character code (Java char) of the exchange, 0 if not set.
| const char* dxfg_time_and_sale_t::exchange_sale_conditions |
The sale conditions provided by the data feed (a UTF-8 string, its format is specific for the feed, NULL if none) that belong to the event and are freed with it.
| int32_t dxfg_time_and_sale_t::flags |
The implementation-specific flags: the type (new, correction, cancellation) in bits 0 and 1, the valid tick indicator in bit 2, the extended trading hours indicator in bit 3, the spread leg indicator in bit 4, the aggressor side in bits 5 and 6 and the TradeThroughExempt character in bits 8 to 15; see the getters of TimeAndSale in Java (getType(), isValidTick(), getAggressorSide() and so on).
| int64_t dxfg_time_and_sale_t::index |
The unique per-symbol index of the event: the time of the original event 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 TimeAndSale.getIndex() in Java. It can be used to correct or cancel the event later.
| dxfg_market_event_t dxfg_time_and_sale_t::market_event |
The base structure: the fields of dxfg_market_event_t.
| double dxfg_time_and_sale_t::price |
The price, NaN if unknown.
| const char* dxfg_time_and_sale_t::seller |
The seller (a UTF-8 string, NULL if none) that belongs to the event and is freed with it.
| double dxfg_time_and_sale_t::size |
The size (with fractions), NaN if unknown.
| int32_t dxfg_time_and_sale_t::time_nano_part |
The microseconds and nanoseconds part of the time of the event.
| int64_t dxfg_time_and_sale_t::trade_id |
The trade ID for the events with a trade-related action (execution, correction, cancellation), 0 if none.