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

Represents position update information for a swap contract in BingX.

Summary

Types

t()

@type t() :: %Bingex.Swap.Model.PositionUpdate{
  average_price: float(),
  margin: float(),
  margin_mode: Bingex.Model.Order.margin_mode(),
  position_margin: float(),
  realized_pnl: float(),
  side: Bingex.Model.Order.position_side(),
  symbol: binary(),
  unrealized_pnl: float()
}

Functions

decode(data)

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