Bingex.Swap.Model.OrderInfo (Bingex v0.1.9)

Represents order information for a swap contract in BingX.

Summary

Types

t()

@type t() :: %Bingex.Swap.Model.OrderInfo{
  activation_price: float(),
  client_order_id: binary(),
  close_position?: boolean(),
  order_id: binary(),
  position_side: Bingex.Model.Order.position_side(),
  price: float(),
  price_rate: float(),
  quantity: float(),
  reduce_only?: boolean(),
  side: Bingex.Model.Order.side(),
  stop_guaranteed?: boolean(),
  stop_loss: any(),
  stop_price: float(),
  symbol: binary(),
  take_profit: any(),
  time_in_force: any(),
  type: Bingex.Model.Order.type(),
  working_type: Bingex.Model.Order.working_type()
}

Functions

decode(data)

@spec decode(map()) :: {:ok, t()} | :error