Skip to content

Commit

Permalink
Remove todo
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbair committed Oct 5, 2024
1 parent 68507d2 commit 3235aef
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions lib/models/definitions/transaction/order_cancel_transaction.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,7 @@ defmodule ExOanda.OrderCancelTransaction do
field(:type, Atom, default: :ORDER_CANCEL)
field(:order_id, :string)
field(:client_order_id, :string)
field(:reason, Ecto.Enum, values: [
# TODO: this list is incomplete for order cancel
:CLIENT_REQUEST,
:MIGRATION,
:REPLACEMENT,
:FILL,
:RESET,
:MARKET_HALTED,
:LINKED_TRADE_CLOSED,
:TIME_IN_FORCE_EXPIRED,
:INSUFFICIENT_MARGIN,
:STOP_LOSS_ON_FILL_LOSS,
:STOP_LOSS_ON_FILL_PRICE,
:TAKE_PROFIT_ON_FILL_PRICE,
:TRAILING_STOP_LOSS_ON_FILL_PRICE,
:MARKET_ORDER_MARGIN_CLOSEOUT,
:MARKET_ORDER_DELAYED_TRADE_CLOSE,
:MARKET_ORDER_POSITION_CLOSEOUT,
:MARKET_ORDER_TRADE_CLOSE,
:MARKET_ORDER
])
field(:reason, Atom)
field(:replaced_by_order_id, :string)
end

Expand Down

0 comments on commit 3235aef

Please sign in to comment.