HyperliquidFundingRate
Documentation for eth_defi.hyperliquid.api.HyperliquidFundingRate Python class.
- class HyperliquidFundingRate
Bases:
objectA single funding-rate observation from the
fundingHistoryendpoint.Hyperliquid pays funding every hour at 1/8 of the computed 8-hour funding rate, so one of these dataclasses represents the funding charge/payment for a single 1-hour window. Authoritative reference for the cadence and formula: https://hyperliquid.gitbook.io/hyperliquid-docs/trading/funding
Funding rate and premium are stored as
floatfor direct pandas/numpy compatibility.Attributes summary
timestampcoinfunding_ratepremiumMethods summary
__init__(timestamp, coin, funding_rate, premium)- __init__(timestamp, coin, funding_rate, premium)
- Parameters
timestamp (datetime.datetime) –
coin (str) –
funding_rate (float) –
premium (float) –
- Return type
None