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
@type event_type() :: :order | :funding_fee | :deposit | :withdraw
@type t() :: %Bingex.Swap.AccountEvent{ position_updates: [Bingex.Swap.PositionUpdate.t()], symbol: binary(), timestamp: integer(), type: event_type(), wallet_updates: [Bingex.Swap.WalletUpdate.t()] }