FundingRateEntry
Documentation for eth_defi.derive.api.FundingRateEntry Python class.
- class FundingRateEntry
Bases:
objectA single funding rate snapshot from Derive.
Represents one hourly funding rate observation for a perpetual instrument.
Attributes summary
Instrument name (e.g.
Snapshot timestamp (naive UTC)
Timestamp in milliseconds since epoch
Hourly funding rate as a decimal fraction (e.g.
Methods summary
__init__(instrument, timestamp, ...)- instrument: str
Instrument name (e.g.
"ETH-PERP")
- timestamp: datetime.datetime
Snapshot timestamp (naive UTC)
- timestamp_ms: int
Timestamp in milliseconds since epoch
- funding_rate: decimal.Decimal
Hourly funding rate as a decimal fraction (e.g.
Decimal("0.00001234"))
- __init__(instrument, timestamp, timestamp_ms, funding_rate)
- Parameters
instrument (str) –
timestamp (datetime.datetime) –
timestamp_ms (int) –
funding_rate (decimal.Decimal) –
- Return type
None