Alpa.Models.OptionContract (AlpaEx v1.0.3)
View SourceOption contract model for options trading.
Summary
Functions
Parse option contract data from API response.
Types
@type option_style() :: :american | :european
@type option_type() :: :call | :put
@type t() :: %Alpa.Models.OptionContract{ close_price: Decimal.t() | nil, close_price_date: Date.t() | nil, expiration_date: Date.t() | nil, id: String.t() | nil, name: String.t() | nil, open_interest: integer() | nil, open_interest_date: Date.t() | nil, root_symbol: String.t() | nil, status: String.t() | nil, strike_price: Decimal.t() | nil, style: option_style() | nil, symbol: String.t() | nil, tradable: boolean() | nil, type: option_type() | nil, underlying_asset_id: String.t() | nil, underlying_symbol: String.t() | nil }