Perps Paper Desk

Interactive front end for the Lean model in Poc/Perps.lean — isolated-margin perpetuals, paper trading only.

Live perps data — Imperial × Phoenix

Loading live data from Imperial's public API (no auth, read-only)…

Phoenix venue — live, via Imperial's Phoenix feed

SymbolMid ($)Funding (%/hr)Funding (ppm/hr)Best bidBest askSpreadMax levData as of
—

Imperial router — platform stats, all routed venues (24h)

SymbolVolume 24h ($)Open interest ($)Long OI ($)Short OI ($)TradersPositions
—

Sources: api.imperial.space public endpoints (/phoenix/mark-prices, /funding-rates, /phoenix/depth, /phoenix/markets, /stats/markets), fetched in your browser at the time shown — nothing is baked in or simulated. Phoenix funding is the venue's long rate; the desk takes funding as integer ppm/hr (1% = 10,000 ppm), so the feed rounds to the nearest ppm. Feeding live marks sets the desk's SOL/BTC price inputs below and re-marks open paper positions — it never trades anything.

Phoenix open interest (snapshot, not live): the browser cannot reach the Phoenix Vulcan CLI, so venue OI is shown as a labeled snapshot read 2026-11-29 19:30 UTC via phx.py market ticker: SOL 33,807.03 SOL (≈ $2.44M), BTC 43.8637 BTC (≈ $2.65M), ETH 320.536 ETH (≈ $0.53M); 24h venue volume SOL $3,434,404 · BTC $5,691,504 · ETH $1,173,868. Vulcan funding at the same read: SOL 9.7 · BTC 12.4 · ETH 12.6 ppm/hr — same sign and size as the live feed above (SOL sampled 9.7 vs the feed's ~7 ppm; the two feeds sample different instants).

Account

Balance—
Margin in use—
Free margin—
Realized PnL—
Open positions—
Desk clock—

Market price feeds

SymbolMark ($)Funding (ppm/hr)
SOL
BTC

Prefilled with the Lean demo scenario (SOL $100.00 @ 10 ppm/hr, BTC $60000.00 @ 10 ppm/hr). Editing a mark re-marks every open position on that symbol. Funding is applied flat at the current rate over the hours held, exactly as the Lean model does. Or skip the typing: the Live perps data panel above can fill these inputs with real Phoenix venue marks and funding in one click.

Open a paper position

Desk controls

The demo replays the exact Lean demo: price SOL $100, price BTC $60000, open SOL long $1000 @ 5x, open BTC short $5000 @ 2x, tick 10h, price SOL $110 — then stops so you can close position #1 yourself from the table below (the Lean script's own close realizes +$99.90, leaving the account at $10099.90).

Open positions

#SymbolSide NotionalLevEntryMark Price PnLFundingTotalLiq est.Margin

Liquidation price is a display-only estimate (entry·(lev∓1)/lev), not enforced — same as the Lean model. Funding accrues over (desk clock − opened hour).

Desk log