Data
DELTA reads Hyperliquid's public info endpoint every three seconds for sixteen equity perps. Per market it takes the oracle price (the stock's spot price), the mark price (where the perp trades) and the hourly funding rate. Between two reads, funding accrues at the earlier rate:
dRate = funding × seconds / 3600 cumRate += dRate // funding per 1 USDC of notional cumFU += mark × dRate // funding per share of the perp fIdx ×= 1 + dRate // the fToken index
At most 300 seconds are applied per read, so an outage does not create a jump.
Ledger
An Elysium address is an account. Each address opens with 10,000 USDC on the DELTA ledger. Nothing is transferred from the wallet and no approval is requested. Every trade, hedge order, funding payment and fee is an entry on that ledger at the prices above. Elysium is chain 99901.
Hook pools
Each stock has one constant-product pool against USDC with one hook attached.
beforeSwap fee = clamp(5 bps + |mark − oracle| / oracle, 5 bps, 100 bps) swap x · y = k, fee taken from the amount in afterSwap hedge = −(stock in the pool), filled at mark, 4.5 bps taker fee on the change funding hedgeCash += −hedge × mark × dRate mark hedgeCash += hedge × (mark_new − mark_old)
A liquidity share is worth (stock × oracle + usdc + hedgeCash) / shares. Adding liquidity is single-sided in USDC: the pool grows in its current ratio and the hedge is resized. Removing pays the share's value in USDC less 5 basis points on the stock part.
When the pool price leaves the band oracle × (1 ± fee), arbitrage trades it back to the edge of the band and pays the fee. That is the pools' baseline volume. 90% of every fee stays in the pool, 10% goes to the protocol. Each pool opens with 200,000 USDC of protocol-owned liquidity, shown as such by the API.
Basis vault
The vault holds q shares of a stock and is short q perps. Its value changes by:
dNAV = q × (dOracle − dMark) + q × mark × dRate − costs
basis move funding received
- Targets are set hourly from the one-hour average funding: the five highest positive rates, weighted by rate, 35% each at most, on 90% of the vault. The remaining 10% is USDC margin.
- A leg is only traded when the change is more than 1% of the vault.
- Each trade costs 5 bps on the stock and 4.5 bps on the perp.
- Deposits and withdrawals are priced at net asset value. Each scales every leg and pays its own cost, so the share price does not move for other holders.
fTokens
fTSLA is worth the TSLA funding index, which starts at 1.000000. Mint and redeem at the index, 5 bps each way. It rises when shorts are paid and falls when they pay.
Rate swaps
A 30-day swap on a notional N. The fixed rate is the one-hour average funding, annualised, plus 0.25% for the payer and minus 0.25% for the receiver.
carry = N × ((cumRate − cumRate_open) − fixed × years_elapsed) mark = N × (rate_now − fixed) × years_left value = margin ± (carry + mark) // + for pay fixed, − for receive fixed
Margin is 5% of notional or more. The opening fee is 2 bps of notional. A swap is closed when 30 days have passed, or when its value falls to a quarter of its margin.
Position tokens
Opening a position of size S at leverage L posts S / L USDC of margin and mints the same number of shares. The ticker reads pTSLA-5L-a1b: market, leverage, side, id.
equity = margin + q × (mark − entry) − q × (cumFU − cumFU_open) share value = equity / shares maintenance = notional / (2 × max leverage)
- Transfer moves shares to any address.
- List puts shares in escrow at a price. A buyer pays the seller, less a 0.3% fee.
- Redeem closes that fraction of the position and pays its equity, less 6 bps of the closed notional.
- Liquidation at maintenance takes 0.5% of notional, cancels listings and pays the rest to holders pro rata.
Fees
| hook swap | 5 to 100 bps, 90% to the pool, 10% to the protocol |
| hedge order | 4.5 bps, Hyperliquid's taker fee |
| vault trade | 5 bps stock, 4.5 bps perp |
| fToken | 5 bps mint, 5 bps redeem |
| rate swap | 2 bps of notional, 0.25% spread on the fixed rate |
| position | 6 bps open, 6 bps redeem, 0.5% at liquidation, 0.3% on a sale |
API
JSON over HTTPS with open CORS. Reads need no key.
| GET /api/markets | oracle, mark, basis, funding, APR, 7-day APR, fToken index and swap quotes per market |
| GET /api/pools | price, fee, reserves, hedge, volume, fee and funding APR per pool |
| GET /api/vault | share price, legs, funding, basis and cost totals, history |
| GET /api/positions | every position token and every listing |
| GET /api/stats | totals across the protocol |
| GET /api/feed | the last 40 events |
| POST /api/account | {wallet} → balances, holdings, equity |
| POST /api/swap | {wallet, sym, side: "buy"|"sell", amount} |
| POST /api/lp/add · /api/lp/remove | {wallet, sym, usdc} · {wallet, sym, pct} |
| POST /api/vault/deposit · /withdraw | {wallet, usdc} · {wallet, pct} |
| POST /api/ftoken/buy · /sell | {wallet, sym, usdc} · {wallet, sym, pct} |
| POST /api/rateswap/open · /close | {wallet, sym, side: "pay"|"receive", notional, margin?} · {wallet, id} |
| POST /api/pos/open | {wallet, sym, side: "long"|"short", sizeUsd, lev} |
| POST /api/pos/redeem · /transfer · /list | {wallet, id, pct} · {wallet, id, to, shares} · {wallet, id, shares, px} |
| POST /api/pos/buy · /cancel | {wallet, id} with the listing id |
curl -s https://deltaelysium.xyz/api/markets | jq '.[0]'
Risks
Funding changes every hour and can turn negative, which costs fTokens, the vault and pool hedges until they rebalance. The perp can trade away from the stock, which moves the vault and widens hook fees. Leveraged position tokens and rate swaps can lose all of the margin posted. Hedged pools still pay arbitrage and hedging costs when prices move quickly.