ExOanda.TradeOrder (ExOanda v0.2.3)

Copy Markdown View Source

Schema for Oanda trade order response.

Oanda Docs

Summary

Types

t()

@type t() :: %ExOanda.TradeOrder{
  cancelled_time: DateTime.t() | nil,
  cancelling_transaction_id: String.t() | nil,
  client_extensions: ExOanda.ClientExtensions.t() | nil,
  client_trade_id: String.t() | nil,
  create_time: DateTime.t() | nil,
  filled_time: DateTime.t() | nil,
  filling_transaction_id: String.t() | nil,
  gtd_time: DateTime.t() | nil,
  id: String.t() | nil,
  price: float() | nil,
  replaced_by_order_id: String.t() | nil,
  replaces_order_id: String.t() | nil,
  state: (:PENDING | :FILLED | :TRIGGERED | :CANCELLED) | nil,
  time_in_force: (:GTC | :GTD | :GFD | :FOK | :IOC) | nil,
  trade_closed_ids: [String.t()] | nil,
  trade_id: String.t() | nil,
  trade_opened_id: String.t() | nil,
  trade_reduced_id: String.t() | nil,
  trigger_condition: (:DEFAULT | :INVERSE | :BID | :ASK | :MID) | nil,
  type: (:LIMIT | :STOP | :MARKET_IF_TOUCHED | :TAKE_PROFIT) | nil
}