Tokos Rates

Hedge my position

Paste a Hyperliquid address, see what funding does to each perp, lock it in one ticket.

What the screen does

Hedge my position reads any Hyperliquid address from the public info API: its open perps (clearinghouseState), the funding rate of the hour in progress for each perp (metaAndAssetCtxs) and every funding payment of the last 7 days (userFunding). For each perp it shows the side, size and notional, what the position pays or receives per hour and per day at the rate of this hour, since it opened, and over the last 7 days. For HYPE, BTC and ETH it adds the Tokos position that locks that funding, quoted by the pool, and a Lock it button that opens the ticket prefilled.

Amounts are signed to the account: positive is received, negative is paid. Hyperliquid funding is positive when longs pay shorts, and is charged every hour on size times the oracle price.

How the side is chosen

Your perpTokos sideEach hour on TokosWhat it locks
LongLong floatingReceive the print, pay your fixed rateWhat the long pays: the print you receive offsets its funding, the fixed rate is what is left
ShortShort floatingPay the print, receive your fixed rateWhat the short earns: the print you pay is its funding, the fixed rate is what you keep

A negative print reverses both flows, on HyperCore and on Tokos, so the fixed rate holds either way. The Tokos print is Hyperliquid's settled hourly rate, clamped to ±0.04% per hour.

How much it can lock

The amount starts at the position's notional, capped by what the pool can take on that side and maturity, and you can change it (25%, 50% or 100% of the position, or any amount from 10 USDC). The cap is the pool's own cover rule, the check quoteOpen runs on chain:

room = largest N with
  totalRisk - risk(series) + risk(series with N at its quoted fixed) <= NAV
risk of one position = N x (0.04% - side x fixed) x prints left

Example, arithmetic only. A pool with 214 USDC of NAV and no open series, a short floating at about 0.00105% per hour with 172 prints to maturity: each USDC of notional needs (0.04% + 0.00105%) x 172, about 0.0706 USDC of cover, so the pool takes about 3,030 USDC. The longer the maturity, the less it takes. A pool with no deposits takes nothing yet: the screen still reads the position and its funding, and the lock opens once LPs deposit.

The arithmetic, with an example

Example, arithmetic only. You hold 12.8 HYPE short on HyperCore, 820 USDC of notional. The rate of this hour is 0.00125% per hour, positive, so the short receives 820 x 0.0000125 = 0.01025 USDC an hour, about 0.246 USDC a day.

You lock it for 7 days with short floating on 820 USDC at a fixed 0.00105% per hour. Each hour you pay the print on Tokos and receive it on HyperCore, and you receive the fixed leg: 820 x 0.0000105 x 24 = 0.207 USDC a day until 00:00 UTC on the maturity day, whatever the prints do within the cap. You pay the fee once, 0.05% of 820 = 0.41 USDC, and post a 2% margin, 16.40 USDC, which comes back at settlement with the position's PnL.

The screen says it in one line: "Funding at today's rate: you receive 0.2460 USDC a day. Locked on Tokos: you receive 0.2066 USDC a day for 7 days." One rate is the hour in progress; the other is fixed to the date. The Tokos notional stays in USDC while your perp's notional moves with the price, so the share it covers moves too.

Lock it: one ticket

Lock it opens the trade ticket with the market, side, maturity and amount already set, for example /app/trade?m=hype&side=short&days=7&notional=820 (it also takes margin). The ticket reads the quote and the pool's cover on chain, then asks your wallet to approve margin plus fee in USDC and to sign open. Nothing is sent until your wallet signs.

Vaults and large accounts

A vault that keeps its positions in strategy vaults, like HLP (0xdfc24b077bc1425ad1dea75bcb6f8158e10df303), is read through them and netted per coin. userFunding returns at most 500 payments per call, one per position per hour; for an account with many positions the screen reads as many recent hours as a few calls allow and labels the column with the hours read.

For builders and agents

GET /api/hedge?address=0x...&days=7        positions, funding, and a plan per HYPE, BTC, ETH perp
MCP  hedge_plan { address, days }          the same plan, keyless
SDK  await T.hedge("0x...", 7)              the same plan

Each plan carries the side, the pool's room, the default amount, the fixed rate, fee, margins, the comparison line and the prefilled ticket link. Chain reads come from the cached market snapshot; Hyperliquid reads are cached 20 seconds.