Bingex.Swap.SetLeverageData (Bingex v0.1.3)

Processes leverage setting response data for BingX swaps.

Extracts margin details and converts raw API response into a structured format.

Summary

Types

t()

@type t() :: %Bingex.Swap.SetLeverageData{
  available_long_margin: float(),
  available_long_usdt_margin: float(),
  available_short_margin: float(),
  available_short_usdt_margin: float(),
  max_long_usdt_margin: float(),
  max_short_usdt_margin: float(),
  symbol: binary()
}

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())