CCXT.MarginModification (ccxt_client v0.6.1)

Copy Markdown View Source

Unified margin modification data.

Represents a margin adjustment (add/reduce margin) on a position.

Fields

  • symbol - Unified symbol
  • type - "add" or "reduce"
  • margin_mode - "cross" or "isolated"
  • amount - Margin amount modified
  • total - Total margin after modification
  • code - Currency code
  • status - Modification status
  • timestamp - Modification time in milliseconds
  • datetime - ISO 8601 datetime string
  • info - Raw exchange response

Summary

Functions

JSON Schema for the MarginModification unified type.

Types

t()

@type t() :: %CCXT.MarginModification{
  amount: number() | nil,
  code: String.t() | nil,
  datetime: String.t() | nil,
  info: map() | nil,
  margin_mode: String.t() | nil,
  status: String.t() | nil,
  symbol: String.t() | nil,
  timestamp: integer() | nil,
  total: number() | nil,
  type: String.t() | nil
}

Functions

schema()

@spec schema() :: map()

JSON Schema for the MarginModification unified type.