quantonex v0.1.2 Quantonex.DataPoint View Source

Contains the Quantonex.DataPoint type.

Link to this section Summary

Types

t()

Represents a data point of an instrument.

Link to this section Types

Link to this type

t()

View Source
t() :: %Quantonex.DataPoint{
  close: Decimal.t(),
  complete: boolean(),
  datetime: DateTime.t(),
  granularity: String.t(),
  high: Decimal.t(),
  instrument: String.t(),
  low: Decimal.t(),
  open: Decimal.t(),
  volume: non_neg_integer()
}

Represents a data point of an instrument.

  • complete - true if the data point is complete, otherwise false

A data point is considered incomplete if not all data is known or final. This usually occurs if the current interval defined by granularity has not yet finished.

  • close - the close price
  • granularity - the granularity of the data point e.g. H4
  • instrument - an instrument e.g. EURUSD
  • high - the highest price
  • low - the lowest price
  • open - the open price
  • datetime - the datetime
  • volume - the volume