ExOanda.MarketIfTouchedOrderTransaction (ExOanda v0.2.3)

Copy Markdown View Source

A MarketIfTouchedOrderTransaction represents the creation of a MarketIfTouched Order in the user's Account.

Oanda Docs

Summary

Types

t()

@type t() :: %ExOanda.MarketIfTouchedOrderTransaction{
  account_id: String.t() | nil,
  batch_id: String.t() | nil,
  client_extensions: ExOanda.ClientExtensions.t() | nil,
  gtd_time: DateTime.t() | nil,
  guaranteed_stop_loss_on_fill: ExOanda.GuaranteedStopLossDetails.t() | nil,
  id: String.t() | nil,
  initial_market_price: float() | nil,
  instrument: ExOanda.Type.Atom.t() | nil,
  position_fill: String.t() | nil,
  price: float() | nil,
  price_bound: float() | nil,
  reason: String.t() | nil,
  request_id: String.t() | nil,
  stop_loss_on_fill: ExOanda.StopLossDetails.t() | nil,
  take_profit_on_fill: ExOanda.TakeProfitDetails.t() | nil,
  time: DateTime.t() | nil,
  time_in_force: (:GTC | :GTD | :GFD | :FOK | :IOC) | nil,
  trailing_stop_loss_on_fill: ExOanda.TrailingStopLossDetails.t() | nil,
  trigger_condition: (:DEFAULT | :INVERSE | :BID | :ASK | :MID) | nil,
  type: ExOanda.Type.Atom.t() | nil,
  units: float() | nil,
  user_id: integer() | nil
}

Functions

changeset(struct, data)