long long Price
Alias for order identifiers type.
long long TradeId
Alias for order identifiers type.
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.
int MarketId
Alias for market identifiers type.
long long DateTime
Represents the number of nanoseconds since Jan 1st, 1970, 00:00:00 GMT.
This class represents the Spot Market Trade Message.
DateTime transactDateTime
Deal date time. Milliseconds since Jan 1st, 1970, 00:00:00 GMT.
TradeId tradeId
Unique identifier of the trade message, unique per market.
std::string toString() const
Returns string representation.
bool isSystemPricedLeg
Indicate if it is a system priced leg.
DateTime deliveryEndDateTime
SpotMarketTrade(const char *data, std::size_t dataSize)
Initialize from raw message data.
void deserialize(const char *data, std::size_t dataSize)
Deserialize from raw data.
SpotMarketTrade()
Default constructor.
DateTime deliveryBeginDateTime
void reset()
Reset all fields to default values.
int quantity
Trade quantity.
MarketId marketId
MarketID of the instrument that was traded.