CCXT.BorrowInterest (ccxt_client v0.6.1)

Copy Markdown View Source

Unified borrow interest data.

Represents accrued interest on a margin borrow position.

Fields

  • symbol - Unified symbol (if isolated margin)
  • currency - Borrowed currency code
  • interest - Accrued interest amount
  • interest_rate - Interest rate as decimal
  • amount_borrowed - Total amount borrowed
  • margin_mode - "cross" or "isolated"
  • timestamp - Data timestamp in milliseconds
  • datetime - ISO 8601 datetime string
  • info - Raw exchange response

Summary

Functions

JSON Schema for the BorrowInterest unified type.

Types

t()

@type t() :: %CCXT.BorrowInterest{
  amount_borrowed: number() | nil,
  currency: String.t() | nil,
  datetime: String.t() | nil,
  info: map() | nil,
  interest: number() | nil,
  interest_rate: number() | nil,
  margin_mode: String.t() | nil,
  symbol: String.t() | nil,
  timestamp: integer() | nil
}

Functions

schema()

@spec schema() :: map()

JSON Schema for the BorrowInterest unified type.