Bingex.Model.Order (Bingex v0.1.8)

Defines the structure and types for orders in BingX.

Summary

Types

execution_type()

@type execution_type() :: :placed | :canceled | :calculated | :expired | :trade

margin_mode()

@type margin_mode() :: :isolated | :crossed

position_side()

@type position_side() :: :long | :short | :both

side()

@type side() :: :buy | :sell

status()

@type status() ::
  :placed
  | :triggered
  | :filled
  | :partially_filled
  | :canceled
  | :canceled
  | :expired

t()

@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 type() ::
  :market
  | :trigger_market
  | :stop_loss
  | :take_profit
  | :limit
  | :stop_loss_market
  | :take_profit_market

working_type()

@type working_type() :: :mark_price | :index_price | :contract_price

Functions

new(params)