# NOTE: This file is auto generated by OpenAPI Generator 7.14.0 (https://openapi-generator.tech).
# Do not edit this file manually.

defmodule CoinAPIMarketDataRESTAPI.Model.ModelsExchangeTimeseriesItem do
  @moduledoc """
  Represents a timeseries item with price and volume information.
  """

  @derive JSON.Encoder
  defstruct [
    :time_period_start,
    :time_period_end,
    :time_open,
    :time_close,
    :price_open,
    :price_high,
    :price_low,
    :price_close,
    :volume_traded,
    :trades_count,
    :symbol_id_exchange,
    :symbol_id_coinapi
  ]

  @type t :: %__MODULE__{
    :time_period_start => DateTime.t | nil,
    :time_period_end => DateTime.t | nil,
    :time_open => DateTime.t | nil,
    :time_close => DateTime.t | nil,
    :price_open => float() | nil,
    :price_high => float() | nil,
    :price_low => float() | nil,
    :price_close => float() | nil,
    :volume_traded => float() | nil,
    :trades_count => integer() | nil,
    :symbol_id_exchange => String.t | nil,
    :symbol_id_coinapi => String.t | nil
  }

  def decode(value) do
    value
  end
end

