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

Represents order information for a swap contract.

Summary

Types

t()

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

Functions

decode(data)

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