Flatfund Open the app

Hyperliquid funding, as one fixed rate.

Every hour Hyperliquid settles funding between longs and shorts of each perp. When the rate is positive, longs pay shorts; when it is negative, shorts pay longs. The number changes every hour, so the cost of holding a perp for a month is unknown the day you open it.

Flatfund turns that hourly number into a rate you can fix. You open a lock on a market, a side and a date. One side pays a fixed rate every hour, the other pays whatever Hyperliquid printed for that hour, and the difference settles in USDC on Elysium. Your perp never moves: Flatfund only carries the funding leg.

Funding on Hyperliquid

Hyperliquid publishes one funding rate per perp per hour, at the top of the hour UTC, as a decimal per hour. 0.00125% an hour is about 11% a year. Flatfund reads that exact record from Hyperliquid's public fundingHistory and calls it a print.

The index of a market is the running sum of its final prints. A lock opened when the index was I₀ and read when it is I₁ has carried I₁ − I₀ of floating funding, whatever happened in between. That single subtraction is how every position is valued.

Long or short

SideYou payYou receiveMade for
Long · pay fixedthe fixed rate, every hourwhat longs pay on Hyperliquida perp long fixing its funding cost
Short · receive fixedwhat longs pay on Hyperliquidthe fixed rate, every houra short or a basis trade fixing its funding income

PnL of a lock = side × notional × ((index now − index at open) − fixed rate × prints carried). A long with a 10,000 USDC notional fixed at 0.0014% an hour pays 0.14 USDC an hour; if the hour prints 0.0030%, it receives 0.30 USDC, so that hour nets +0.16 USDC. Over a whole term, the long has paid exactly the fixed rate on top of its perp, whatever funding did.

Markets

Seven markets at launch, each settled on Hyperliquid's own hourly print:

MarketVenueCap per print
HYPE, BTC, ETH, SOLHyperliquid perps±0.05% an hour
NVDA, S&P 500, Goldtrade.xyz, Hyperliquid's builder-deployed stock and commodity perps±0.10% an hour

Maturities fall on any 00:00 UTC from 1 to 60 days out; the app offers 7, 30 and 60 days. The radar shows funding for every other Hyperliquid perp with real open interest, beside Binance and Bybit for the same coin.

How a rate is quoted

The fixed rate starts from a mid that blends the last day of prints with the last week: mid = w × avg(last 24) + (1 − w) × avg(last 168), with w = 0.75 for 7 days, 0.5 for 30 days and 0.35 for 60 days. A short lock leans on today, a long one on the week.

Each side is the mid plus or minus a spread of 0.00006% an hour and 6% of the mid's size. Once the pool holds positions, its net exposure tilts the mid toward the side it needs, so the pool is paid to take more risk. The same math runs in the contract, the API and the app, so what you see is what you sign.

Margin and liquidation

Opening a lock posts 3% of notional as margin. A lock whose margin, after the prints it has carried, falls under 1.5% can be liquidated by anyone, who earns 0.2% of notional (at most 40 USDC); the rest of the margin goes back to the owner. You can add margin or close early at the current curve at any time; closes never wait for a print.

The pool

Each market has one USDC pool that takes the other side of every lock. Liquidity providers earn the spread and 75% of every fee, and carry the net rate the pool is left with. A deposit stays at least 24 hours. No open and no withdrawal can leave the pool short of what it would owe if every remaining print came in at the cap against it, counted lock by lock; closes are never blocked by that rule.

Print guard

A keeper proposes each print after its hour ends, in order, one per market per hour. The print waits 15 minutes before it counts. During that window two guardians on separate keys compare it with Hyperliquid's own record; if either finds a difference it disputes the print, which then never reaches the index, and that market pauses new locks until a corrected print is final. Every print is also clamped to the market's cap. The keeper can post prints and nothing else: no key can move margins or pool funds, change the curve or edit a final print.

Late prints

New locks and deposits wait until the latest hour's print is final, about 16 minutes past the hour. If a market has no new final print for 24 hours, anyone can freeze it: every lock then settles on the last good index, without the keeper.

Fees

0.04% of notional when you open and when you close early. Nothing at maturity, settlement or liquidation. The fee can be set between 0.02% and 0.25%; 0.25% is a hard cap in the contract. 75% of each fee goes to the market's pool, 25% to the protocol.

Risks

  • Funding can move hard against your side. Stock perps on trade.xyz move funding more than coins.
  • A lock under 1.5% margin can be liquidated by anyone.
  • Liquidity providers lose when the pool's net side is wrong.
  • The contracts are new and have not been audited. The keeper and guardians are run by the team.
  • Hyperliquid or trade.xyz may change how funding is computed; prints are taken as Hyperliquid publishes them.

Size every lock so that a bad week is survivable. Nothing here is investment advice.

MCP and API

Every read is public, JSON, open to any origin, no key. Rates are decimals per hour; USDC amounts in dollars unless noted.

curl -s https://flatfund.tech/api/markets
curl -s "https://flatfund.tech/api/quote?market=hype&side=long&notional=1000&tenor=30d"
curl -s "https://flatfund.tech/api/funding?market=nvda&hours=168"
curl -s "https://flatfund.tech/api/wallet?address=0x…"
curl -s "https://flatfund.tech/api/radar?sort=abs&limit=20"
curl -s "https://flatfund.tech/api/backtest?market=btc&days=30"
curl -s https://flatfund.tech/api/chain

The remote MCP server is keyless and read-only: markets, funding, quote, radar, wallet, backtest, chain. It never signs; agents sign with their own wallet.

claude mcp add flatfund --transport http https://flatfund.tech/mcp

One file tells an agent everything: /skill.md.

Contracts

Elysium, chain 99901, gas in HYPE. USDC 0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65. The oracle and market addresses are listed here, in skill.md and on /api/chain once deployed, with their source verified on ElysiumScan.