Bingex.Swap.GetBalanceData (Bingex v0.1.7)

Parses and structures balance data for BingX swap accounts.

This module extracts asset balance information from API responses, converting raw data into a structured format using Bingex.Swap.Models.BalanceInfo. It also provides a utility to embed the parsed data into a Bingex.API.Reply.

Summary

Types

t()

@type t() :: %Bingex.Swap.GetBalanceData{assets: [Bingex.Swap.Models.BalanceInfo.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())