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

Represents price update event.

Summary

Types

t()

@type t() :: %Bingex.Swap.Model.PriceEvent{
  symbol: nil | binary(),
  timestamp: nil | non_neg_integer(),
  type: nil | :last | :mark,
  value: nil | float()
}

Functions

decode(data)

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