# `CCXT.MarginModification`
[🔗](https://github.com/ZenHive/ccxt_client/blob/main/lib/ccxt/margin_modification.ex#L1)

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

# `t`

```elixir
@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
}
```

# `schema`

```elixir
@spec schema() :: map()
```

JSON Schema for the MarginModification unified type.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
