Bingex.Swap.TradeEvent (Bingex v0.1.3)

Processes trade events in BingX swaps.

Extracts order details, status, and execution information.

Summary

Types

t()

@type t() :: %Bingex.Swap.TradeEvent{
  accumulated_quantity: float() | nil,
  actual_price: float() | nil,
  client_order_id: term() | nil,
  execution_type: Bingex.Order.execution_type() | nil,
  fee: float() | nil,
  fee_asset: binary() | nil,
  order_id: term() | nil,
  position_side: Bingex.Order.position_side() | nil,
  price: float() | nil,
  quantity: float() | nil,
  side: Bingex.Order.side() | nil,
  status: Bingex.Order.status() | nil,
  symbol: binary() | nil,
  timestamp: integer() | nil,
  trigger_order_id: term() | nil,
  trigger_price: float() | nil,
  type: Bingex.Order.type() | nil,
  working_type: Bingex.Order.working_type() | nil
}

Functions

decode(data)

@spec decode(map()) :: t()