Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

hyperliquid-funding-rates

A tiny, zero-dependency CLI to fetch live funding rates, open interest and 24h volume for every Hyperliquid perpetual market — straight from the public API.

  • 🔑 No API key, no wallet. Read-only, public data only.
  • 🪶 Zero dependencies. Pure Python standard library.
  • 📊 Funding (hourly + annualised), open interest and 24h volume for 100+ perps.
  • 🧰 Table, JSON or CSV output — script it, pipe it, chart it.

Install

git clone https://github.com/dexlytrade/hyperliquid-funding-rates.git
cd hyperliquid-funding-rates

Requires Python 3.9+. That's it — no pip install needed.

Usage

python hyperliquid_funding.py                 # all markets, sorted by |funding|
python hyperliquid_funding.py --top 20        # top 20
python hyperliquid_funding.py --coin BTC ETH  # only these coins
python hyperliquid_funding.py --sort volume   # sort by: funding | volume | oi
python hyperliquid_funding.py --json          # machine-readable JSON
python hyperliquid_funding.py --csv out.csv   # write a CSV

Example output

COIN                MARK    FUND/hr   FUND APR          OI     24h VOL  MAXLEV
------------------------------------------------------------------------------
BTC           97,420.0000    0.0013%     11.38%       $7.7B       $9.0B     40x
ETH            3,512.4500   -0.0009%     -7.88%       $1.2B       $2.1B     25x
...

FUND/hr is the hourly funding rate charged on Hyperliquid. FUND APR annualises it (hourly × 24 × 365) for convenience — it is not a guaranteed yield, and funding flips sign frequently.

How it works

One POST to the public info endpoint:

POST https://api.hyperliquid.xyz/info
{ "type": "metaAndAssetCtxs" }

The response pairs each coin in meta.universe with its context (funding, openInterest, markPx, dayNtlVlm, …). See the Hyperliquid API docs.

Use cases

  • Funding-rate dashboards and Telegram/Discord alerts.
  • Delta-neutral / funding-arbitrage screening.
  • Feeding a spreadsheet or notebook (--csv / --json).

Contributing

PRs welcome — add exchanges, output formats, or a small web UI. Keep it dependency-light.

Disclaimer

Public market data only. Nothing here is financial advice. Not affiliated with Hyperliquid — this tool reads Hyperliquid's public API.

License

MIT


Maintained by the team behind Dexly — a self-custodial mobile app for trading Hyperliquid perps, spot, tokenized stocks and prediction markets.

About

Zero-dependency Python CLI to fetch live Hyperliquid funding rates, open interest and 24h volume from the public API.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages