Bingex.Model.Order (Bingex v0.1.8)
Defines the structure and types for orders in BingX.
Summary
Types
@type execution_type() :: :placed | :canceled | :calculated | :expired | :trade
@type margin_mode() :: :isolated | :crossed
@type position_side() :: :long | :short | :both
@type side() :: :buy | :sell
@type status() ::
:placed
| :triggered
| :filled
| :partially_filled
| :canceled
| :canceled
| :expired
@type t() :: %Bingex.Model.Order{ position_side: position_side(), price: nil | float(), quantity: float(), side: side(), stop_price: nil | float(), symbol: binary(), type: type(), working_type: nil | working_type() }
@type type() ::
:market
| :trigger_market
| :stop_loss
| :take_profit
| :limit
| :stop_loss_market
| :take_profit_market
@type working_type() :: :mark_price | :index_price | :contract_price