Bingex.Swap.GetLeverageData (Bingex v0.1.7)

Processes leverage info response data for BingX swaps.

Summary

Types

t()

@type t() :: %Bingex.Swap.GetLeverageData{
  available_long_quantity: float(),
  available_long_value: float(),
  available_short_quantity: float(),
  available_short_value: float(),
  long_leverage: integer(),
  max_long_leverage: integer(),
  max_long_value: float(),
  max_short_leverage: integer(),
  max_short_value: float(),
  short_leverage: integer(),
  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())