#include <MarketSnapshotPriceLevel.h>
Public Types | |
enum | { messageType = 'm' } |
Public Member Functions | |
MarketSnapshotPriceLevel () | |
MarketSnapshotPriceLevel (const char *data, std::size_t dataSize) | |
void | deserialize (const char *data, std::size_t dataSize) |
void | reset () |
std::string | toString () const |
Public Attributes | |
MarketId | marketId |
Side::Enum | side |
char | priceLevelPosition |
Price | price |
int | quantity |
short | orderCount |
int | impliedQuantity |
short | impliedOrderCount |
Definition at line 36 of file MarketSnapshotPriceLevel.h.
anonymous enum |
Message type constant.
Enumerator | |
---|---|
messageType |
Definition at line 39 of file MarketSnapshotPriceLevel.h.
Default constructor.
MarketSnapshotPriceLevel | ( | 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.
void reset | ( | ) |
Reset all fields to default values.
std::string toString | ( | ) | const |
Returns string representation.
short impliedOrderCount |
Number of implied orders at the price level.
Definition at line 67 of file MarketSnapshotPriceLevel.h.
int impliedQuantity |
Quantity that were implied.
Definition at line 64 of file MarketSnapshotPriceLevel.h.
MarketId marketId |
Unique identifier of the market.
Definition at line 45 of file MarketSnapshotPriceLevel.h.
short orderCount |
Number of all orders at the price level.
Definition at line 61 of file MarketSnapshotPriceLevel.h.
Price price |
Value of price for the level. OrderPriceDenominator for the market should be applied to get the real price.
Definition at line 55 of file MarketSnapshotPriceLevel.h.
char priceLevelPosition |
Position of the price level.
Definition at line 51 of file MarketSnapshotPriceLevel.h.
int quantity |
Total quantity at the price level.
Definition at line 58 of file MarketSnapshotPriceLevel.h.
Side::Enum side |
Indicate whether it's bid or offer.
Definition at line 48 of file MarketSnapshotPriceLevel.h.