ExOanda.OrderFillTransaction (ExOanda v0.1.1)

View Source

Schema for Oanda order fill transaction.

Oanda Docs

Summary

Types

t()

@type t() :: %ExOanda.OrderFillTransaction{
  account_balance: float() | nil,
  account_id: String.t() | nil,
  base_financing: float() | nil,
  batch_id: String.t() | nil,
  client_order_id: String.t() | nil,
  commission: float() | nil,
  financing: float() | nil,
  full_price: ExOanda.ClientPrice.t() | nil,
  full_vwap: float() | nil,
  guaranteed_execution_fee: float() | nil,
  half_spread_cost: float() | nil,
  id: String.t() | nil,
  instrument: ExOanda.Type.Atom.t() | nil,
  order_id: String.t() | nil,
  pl: float() | nil,
  quote_financing: float() | nil,
  quote_guaranteed_execution_fee: float() | nil,
  quote_pl: float() | nil,
  reason:
    (:LIMIT_ORDER
     | :STOP_ORDER
     | :MARKET_IF_TOUCHED_ORDER
     | :TAKE_PROFIT_ORDER
     | :STOP_LOSS_ORDER
     | :GUARANTEED_STOP_LOSS_ORDER
     | :TRAILING_STOP_LOSS_ORDER
     | :MARKET_ORDER
     | :MARKET_ORDER_TRADE_CLOSE
     | :MARKET_ORDER_POSITION_CLOSEOUT
     | :MARKET_ORDER_MARGIN_CLOSEOUT
     | :MARKET_ORDER_DELAYED_TRADE_CLOSE
     | :FIXED_PRICE_ORDER
     | :FIXED_PRICE_ORDER_PLATFORM_ACCOUNT_MIGRATION
     | :FIXED_PRICE_ORDER_DIVISION_ACCOUNT_MIGRATION
     | :FIXED_PRICE_ORDER_ADMINISTRATIVE_ACTION)
    | nil,
  request_id: String.t() | nil,
  time: DateTime.t() | nil,
  trade_opened: ExOanda.TradeOpened.t() | nil,
  trade_reduced: ExOanda.TradeReduce.t() | nil,
  trades_closed: [ExOanda.TradeReduce.t()],
  type: ExOanda.Type.Atom.t() | nil,
  units: integer() | nil,
  user_id: integer() | nil
}