Fluent builder for unified order creation.
Accumulates order options and submits through Bourse.create_order/6.
Summary
Functions
Turns the order into a limit order with price.
Starts a market order builder for symbol, side, and amount.
Adds a stop-loss price.
Submits the order through Bourse.create_order/6 using credentials.
Adds a take-profit price.
Types
Functions
Turns the order into a limit order with price.
Starts a market order builder for symbol, side, and amount.
Adds a stop-loss price.
@spec submit(t(), Bourse.Exchange.t(), Bourse.Credentials.t(), keyword()) :: {:ok, map()} | {:ok, map(), [Bourse.Order.Sanity.reason()]} | {:error, term()}
Submits the order through Bourse.create_order/6 using credentials.
Adds a take-profit price.