History

class quotek::data::history

history is a container which aims to store historical data of an asset fetched from a remote or local datasource. While quotek::data::record is meant to store raw asset values provided by broker in real-time, history is more about storing historical data having a longer tick, usually the kind of data available from quotes information providers.

Public Functions

history()

history constructor

history(long timestamp, float open, float close, float high, float low)

history constructor 2

~history()

history destructor

Public Members

long timestamp

stores the timestamp on which the quotation begun (usually beginning of the day), in epoch format.

float open

stores the opening price of the asset for the period.

float close

stores the (non-adjusted) closing price of the asset for the period.

float high

stores the highest price of the asset for the period.

float low

stores the lowest price of the asset for the period.