# `Bourse.MarginLoan`
[🔗](https://github.com/ZenHive/bourse/blob/main/lib/bourse/margin_loan.ex#L1)

Unified margin loan data.

Represents the result of a cross/isolated margin borrow or repay.

## Fields

  * `id` - Loan / transaction id when the venue returns one
  * `currency` - Unified currency code
  * `amount` - Borrowed or repaid amount (string or number per venue)
  * `symbol` - Unified market symbol (isolated margin only)
  * `timestamp` - Loan time in milliseconds
  * `datetime` - ISO 8601 datetime string
  * `info` - Raw exchange response

# `t`

```elixir
@type t() :: %Bourse.MarginLoan{
  amount: term() | nil,
  currency: String.t() | nil,
  datetime: String.t() | nil,
  id: term() | nil,
  info: map() | nil,
  symbol: String.t() | nil,
  timestamp: integer() | nil
}
```

# `schema`

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

JSON Schema for the MarginLoan unified type.

---

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