OHLCV bar data model for market data.
Parse bar data from API response.
Parse multiple bars from API response.
@type t() :: %Alpa.Models.Bar{ close: Decimal.t() | nil, high: Decimal.t() | nil, low: Decimal.t() | nil, open: Decimal.t() | nil, symbol: String.t() | nil, timestamp: DateTime.t() | nil, trade_count: integer() | nil, volume: integer() | nil, vwap: Decimal.t() | nil }
@spec from_map(map(), String.t() | nil) :: t()
@spec from_response(map()) :: %{required(String.t()) => [t()]} | [t()] | map()