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

Public Types

enum  

Public Member Functions

 OpenInterest ()
 OpenInterest (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
int openInterest
int openInterestChange
DateTime dateTime
std::string openInterestDate

Detailed Description

Definition at line 35 of file OpenInterest.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Message type constant.

Enumerator
messageType 'M' 

Definition at line 38 of file OpenInterest.h.

Constructor & Destructor Documentation

◆ OpenInterest() [1/2]

Default constructor.

◆ OpenInterest() [2/2]

OpenInterest ( 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 61 of file OpenInterest.h.

◆ marketId

MarketId marketId

Unique identifier of the market.

Definition at line 44 of file OpenInterest.h.

◆ openInterest

int openInterest

The number of open contracts of derivatives like futures and options that have a time limit after which they expire. Open interest in a derivative is the sum of all contracts that have not expired, been exercised or physically delivered. Moreover, the open interest is the number of long positions or, equivalently, the number of short positions.

Definition at line 52 of file OpenInterest.h.

◆ openInterestChange

int openInterestChange

The change in the number of contracts that are remaining open and still working in the market. This is the change compared to the previous trading day open interest.

Definition at line 57 of file OpenInterest.h.

◆ openInterestDate

std::string openInterestDate

The date this Open Interest is effective for, in the format of YYYY- MM-DD.

Definition at line 65 of file OpenInterest.h.