CCXT.FundingRateHistory (ccxt_client v0.6.1)

Copy Markdown View Source

Unified funding rate history entry.

Represents a single historical funding rate record. Distinct from CCXT.FundingRate which carries the full current funding rate snapshot with mark/index prices and next/previous rates (17 fields). This struct is the stripped-down version returned by fetch_funding_rate_history.

Fields

  • symbol - Unified symbol (e.g., "BTC/USDT:USDT")
  • funding_rate - Historical funding rate as decimal
  • timestamp - Funding event timestamp in milliseconds
  • datetime - ISO 8601 datetime string
  • info - Raw exchange response

Summary

Functions

JSON Schema for the FundingRateHistory unified type.

Types

t()

@type t() :: %CCXT.FundingRateHistory{
  datetime: String.t() | nil,
  funding_rate: number() | nil,
  info: map() | nil,
  symbol: String.t() | nil,
  timestamp: integer() | nil
}

Functions

schema()

@spec schema() :: map()

JSON Schema for the FundingRateHistory unified type.