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

Represents income update as part of the capital flow.

Positive income numbers represent inflows, negative numbers represent outflows.

Summary

Types

t()

@type t() :: %Bingex.Swap.Model.IncomeInfo{
  asset: nil | binary(),
  income: nil | float(),
  income_type: nil | Bingex.Types.income_type(),
  info: nil | binary(),
  symbol: nil | Bingex.Types.symbol(),
  timestamp: nil | non_neg_integer(),
  transaction_id: nil | binary(),
  transfer_id: nil | binary()
}

Functions

decode(data)

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