Skip to content

Commit

Permalink
Schema fixes for create order and close position (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbair authored Nov 5, 2024
1 parent 37c51fb commit b3cc6ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/models/definitions/pricing/client_price.ex
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ defmodule ExOanda.ClientPrice do
|> cast(params, [:type, :instrument, :time, :tradeable, :closeout_bid, :closeout_ask])
|> cast_embed(:bids)
|> cast_embed(:asks)
|> validate_required([:type, :instrument, :time, :tradeable, :closeout_bid, :closeout_ask])
|> validate_required([:type, :closeout_bid, :closeout_ask])
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule ExOanda.MarketOrderPositionCloseout do

typed_embedded_schema do
field(:instrument, :string)
field(:units, :integer)
field(:units, :string)
end

@doc false
Expand Down

0 comments on commit b3cc6ab

Please sign in to comment.