Unified borrow rate data.
Represents a margin borrow rate, covering both cross-margin and
isolated-margin rates in a single struct. For cross rates, symbol
is nil and only currency/rate are populated. For isolated rates,
symbol, base, quote, and per-side rates are populated.
Fields
symbol- Unified symbol (nil for cross-margin rates)currency- Currency coderate- Borrow rate as decimalbase- Base currency (isolated margin only)base_rate- Base currency borrow rate (isolated margin only)quote- Quote currency (isolated margin only)quote_rate- Quote currency borrow rate (isolated margin only)period- Rate period in millisecondstimestamp- Data timestamp in millisecondsdatetime- ISO 8601 datetime stringinfo- Raw exchange response
Summary
Types
@type t() :: %CCXT.BorrowRate{ base: String.t() | nil, base_rate: number() | nil, currency: String.t() | nil, datetime: String.t() | nil, info: map() | nil, period: integer() | nil, quote: String.t() | nil, quote_rate: number() | nil, rate: number() | nil, symbol: String.t() | nil, timestamp: integer() | nil }
Functions
@spec schema() :: map()
JSON Schema for the BorrowRate unified type.