Represents a historical swap market trade.
@type t() :: %Bingex.Swap.Model.HistoricalTrade{ buyer_maker?: nil | boolean(), id: nil | binary(), price: nil | float(), quantity: nil | float(), quote_quantity: nil | float(), time: nil | non_neg_integer() }
@spec decode(any()) :: {:ok, t()} | :error