Bingex.Swap.Data.GetPositionsData (Bingex v0.1.7)

Parses and structures positions data for BingX swaps.

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

Summary

Types

t()

@type t() :: %Bingex.Swap.Data.GetPositionsData{list: [Bingex.Swap.PositionInfo.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())