Bingex.Swap.GetOrdersHistoryData (Bingex v0.1.7)

Parses and structures historical order data for BingX swaps.

Converts raw API response data into a list of Bingex.Swap.DetailedOrderInfo structs and embeds the parsed data into a Bingex.API.Reply.

Summary

Types

t()

@type t() :: %Bingex.Swap.GetOrdersHistoryData{
  history: [Bingex.Swap.DetailedOrderInfo.t()]
}

Functions

decode(arg1)

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

embed_in_reply(reply)

@spec embed_in_reply(Bingex.API.Reply.t()) :: Bingex.API.Reply.t(t())