Bingex.Swap.AccountEvent (Bingex v0.1.7)

Represents an account event in BingX swaps.

Handles order, funding fee, deposit, and withdrawal events, extracting wallet and position updates.

Summary

Types

event_type()

@type event_type() :: :order | :funding_fee | :deposit | :withdraw

t()

@type t() :: %Bingex.Swap.AccountEvent{
  position_updates: [Bingex.Swap.PositionUpdate.t()],
  symbol: binary(),
  timestamp: integer(),
  type: event_type(),
  wallet_updates: [Bingex.Swap.WalletUpdate.t()]
}

Functions

decode(data)

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