CCXT.Leverage (ccxt_client v0.6.1)

Copy Markdown View Source

Unified leverage settings data.

Represents the current leverage configuration for a symbol.

Fields

  • symbol - Unified symbol (e.g., "BTC/USDT:USDT")
  • margin_mode - "cross" or "isolated"
  • long_leverage - Leverage for long positions
  • short_leverage - Leverage for short positions
  • info - Raw exchange response

Summary

Functions

JSON Schema for the Leverage unified type.

Types

t()

@type t() :: %CCXT.Leverage{
  info: map() | nil,
  long_leverage: number() | nil,
  margin_mode: String.t() | nil,
  short_leverage: number() | nil,
  symbol: String.t() | nil
}

Functions

schema()

@spec schema() :: map()

JSON Schema for the Leverage unified type.