View Source BitpandaApi.Entity.Ohlc (Bitpanda API v0.1.0)

Open-High-Low-Close chart for asset

Link to this section Summary

Types

A single entry in the OHLC

OHLC chart period

t()

Describes a OHLC chart for an asset

Link to this section Types

@type entry() :: %{
  close: Decimal.t(),
  high: Decimal.t(),
  low: Decimal.t(),
  open: Decimal.t(),
  time: DateTime.t()
}

A single entry in the OHLC

@type period() :: :day | :week | :month | :year

OHLC chart period

@type t() :: %BitpandaApi.Entity.Ohlc{
  chart: [entry()],
  period: period(),
  symbol: String.t()
}

Describes a OHLC chart for an asset