ExOanda.Instrument (ExOanda v0.2.3)

Copy Markdown View Source

Schema for Oanda instrument.

Oanda Docs

Summary

Types

t()

@type t() :: %ExOanda.Instrument{
  commission: ExOanda.InstrumentCommission.t() | nil,
  display_name: String.t() | nil,
  display_precision: integer() | nil,
  financing: ExOanda.InstrumentFinancing.t() | nil,
  guaranteed_stop_loss_order_level_restriction:
    ExOanda.GuaranteedStopLossOrderLevelRestriction.t() | nil,
  guaranteed_stop_loss_order_mode: (:DISABLED | :ALLOWED | :REQUIRED) | nil,
  guaranteed_stop_loss_order_premium: float() | nil,
  margin_rate: float() | nil,
  maximum_order_units: float() | nil,
  maximum_position_size: float() | nil,
  maximum_trailing_stop_distance: float() | nil,
  minimum_trade_size: float() | nil,
  minimum_trailing_stop_distance: float() | nil,
  name: String.t() | nil,
  pip_location: integer() | nil,
  tags: [ExOanda.Tag.t()],
  trade_units_precision: integer() | nil,
  type: (:CURRENCY | :CFD | :METAL) | nil
}