Bingex.Swap.SetLeverageData (Bingex v0.1.7)

Processes leverage setting response data for BingX swaps.

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

Summary

Types

t()

@type t() :: %Bingex.Swap.SetLeverageData{
  available_long_quantity: float(),
  available_long_value: float(),
  available_short_quantity: float(),
  available_short_value: float(),
  max_long_value: float(),
  max_short_value: 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())