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

defmodule FinFeedAPIStockRESTAPI.Model.AdminTradingStatusModel do
  @moduledoc """
  Represents the response DTO for trading status information
  """

  @derive JSON.Encoder
  defstruct [
    :symbol,
    :timestamp_nanos,
    :timestamp,
    :is_trading_live,
    :is_trading_halted,
    :is_trading_in_order_acceptance_period,
    :is_trading_paused,
    :is_reason_halt_news_pending,
    :is_reason_ipo_not_yet_trading,
    :is_reason_ipo_deferred,
    :is_reason_halt_news_dissemination,
    :is_reason_ipo_order_acceptance_period,
    :is_reason_ipo_pre_launch_period,
    :is_reason_market_wide_circuit_breaker_level1,
    :is_reason_market_wide_circuit_breaker_level2,
    :is_reason_market_wide_circuit_breaker_level3,
    :is_reason_not_applicable,
    :is_reason_not_available
  ]

  @type t :: %__MODULE__{
    :symbol => String.t | nil,
    :timestamp_nanos => integer() | nil,
    :timestamp => DateTime.t | nil,
    :is_trading_live => boolean() | nil,
    :is_trading_halted => boolean() | nil,
    :is_trading_in_order_acceptance_period => boolean() | nil,
    :is_trading_paused => boolean() | nil,
    :is_reason_halt_news_pending => boolean() | nil,
    :is_reason_ipo_not_yet_trading => boolean() | nil,
    :is_reason_ipo_deferred => boolean() | nil,
    :is_reason_halt_news_dissemination => boolean() | nil,
    :is_reason_ipo_order_acceptance_period => boolean() | nil,
    :is_reason_ipo_pre_launch_period => boolean() | nil,
    :is_reason_market_wide_circuit_breaker_level1 => boolean() | nil,
    :is_reason_market_wide_circuit_breaker_level2 => boolean() | nil,
    :is_reason_market_wide_circuit_breaker_level3 => boolean() | nil,
    :is_reason_not_applicable => boolean() | nil,
    :is_reason_not_available => boolean() | nil
  }

  def decode(value) do
    value
  end
end

