OnixS ICE iMpact Multicast Price Feed Handler C++ library 8.18.0
API documentation
Loading...
Searching...
No Matches
SettlementPrice Struct Reference

Public Types

enum  

Public Member Functions

 SettlementPrice ()
 SettlementPrice (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
Price settlementPriceWithDealPricePrecision
DateTime dateTime
bool isOfficial
DateTime valuationDateTime
Price settlementPrice

Detailed Description

Definition at line 35 of file SettlementPrice.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Message type constant.

Enumerator
messageType 'O' 

Definition at line 38 of file SettlementPrice.h.

Constructor & Destructor Documentation

◆ SettlementPrice() [1/2]

Default constructor.

◆ SettlementPrice() [2/2]

SettlementPrice ( const char * data,
std::size_t dataSize )

Initialize from raw message data.

Member Function Documentation

◆ deserialize()

void deserialize ( const char * data,
std::size_t dataSize )

Deserialize from raw data.

◆ reset()

void reset ( )

Reset all fields to default values.

◆ toString()

std::string toString ( ) const

Returns string representation.

Member Data Documentation

◆ dateTime

DateTime dateTime

Date time the message was sent. Milliseconds since Jan 1st, 1970, 00:00:00 GMT.

Definition at line 55 of file SettlementPrice.h.

◆ isOfficial

bool isOfficial

Flag to indicate this is official settlement price or not.

Definition at line 58 of file SettlementPrice.h.

◆ marketId

MarketId marketId

Unique identifier of the market.

Definition at line 44 of file SettlementPrice.h.

◆ settlementPrice

Price settlementPrice

Settlement price. SettlePriceDenominator for the market should be applied to get the actual settlement price.

Definition at line 67 of file SettlementPrice.h.

◆ settlementPriceWithDealPricePrecision

Price settlementPriceWithDealPricePrecision

Settlement price. DealPriceDenominator for the market should be applied to get this price. This field is kept here for backward compatibility. Client should use the new SettlementPrice field (added in 1.1.14) for better precision. DealPriceDenominator and SettlePriceDenominator might be different for some markets.

Definition at line 51 of file SettlementPrice.h.

◆ valuationDateTime

DateTime valuationDateTime

Date time the settlement price is for. Milliseconds since Jan 1st, 1970, 00:00:00 GMT. Only date (in GMT) is applicable, though time value is populated for legacy reason.

Definition at line 63 of file SettlementPrice.h.