How the desk works
Velyra is a trading desk for Hyperliquid perpetuals, run by three agents with separate jobs. This page explains what each one does, how orders are signed, and what Velyra can and can't see.
Overview
Velyra is a static web app plus one small server function. The app reads Hyperliquid's public API directly from your browser. Orders are signed in your browser and sent directly to Hyperliquid's exchange endpoint. The only Velyra server call is /api/ask, which powers Ask the desk.
| Agent | Job | Where it runs |
|---|---|---|
| Research | Ranks setups across every perp with four transparent rules | Your browser |
| Execution | Prices fills from the live book, slices orders, signs with the agent key | Your browser |
| Risk | Reads positions, scores the account, blocks orders that break your limits | Your browser |
Getting started
- Open the desk. Markets, Research and Risk scan work right away, with no wallet.
- To trade, click Connect wallet and pick the wallet that owns your Hyperliquid account.
- In Execute, click Approve. Your wallet asks you to sign one message that authorises a new agent key.
- Fill the order ticket, read the estimate and the risk check, then send.
Your Hyperliquid account must already hold USDC on the network you choose. Hyperliquid refuses to approve agents for an empty account.
Research agent
Every time the market refreshes (about every five seconds), the research agent runs these rules over every listed perp:
| Signal | Rule | Lean |
|---|---|---|
| Funding | |funding| above 25% a year, open interest above $5M | Against the side that pays |
| Momentum | |24h move| above 7%, volume above $20M | With the move |
| Positioning | Open interest more than 2.5× 24h volume, OI above $10M | Watch only |
| Basis | Perp more than 0.15% from the oracle price, OI above $2M | Toward the oracle |
The score (0–99) grows with how extreme the reading is and how much money is involved. Open a signal for a deeper read from hourly candles: EMA trend, daily volatility, where price sits in its 96-hour range, and breakouts.
Execution agent
Estimate
Before you send, the agent walks the live order book for one slice and shows the average fill, the impact in basis points, the worst price your slippage cap allows, and the taker fee at Hyperliquid's base rate (0.045%).
Orders
Each order is an immediate-or-cancel limit order priced at the mid plus your slippage cap. It fills at the best prices available up to that cap, and any rest is cancelled instead of chasing the price.
Slicing
Set slices above 1 to split the order into equal parts sent a fixed number of seconds apart. Each slice re-reads the book first. You can stop between slices. Hyperliquid's minimum order is $10, so each slice must be at least that.
Leverage
Leave Set leverage empty to keep the market's current setting, or enter a value to set cross leverage before the first slice.
Risk agent
The risk scan reads any address's positions from Hyperliquid and shows equity, open notional, account leverage, margin use and how far each position sits from its liquidation price.
You set three limits, saved in your browser only:
- Max account leverage. Total open notional divided by equity.
- Max single position. One market's notional as a share of equity.
- Min distance to liquidation. How close a position may sit to its liquidation price.
Execute runs the first two against your account plus the new order, and won't let you send an order that breaks them. Reduce-only orders skip the check, so you can always cut risk.
Agent keys
Hyperliquid lets an account approve an API wallet (an agent) that may place and cancel orders on its behalf. Hyperliquid itself refuses withdrawals, transfers and agent approvals signed by an agent key.
- Velyra generates a new private key in your browser.
- Your wallet signs an
approveAgentmessage naming that key's address. No gas is paid and no funds move. - The key is saved in this browser's local storage, separately for each network and owner address.
- Each order is signed with that key and posted to Hyperliquid's
/exchangeendpoint.
Anyone with access to this browser profile could place trades with the key, but could not withdraw. Use Forget in Execute to delete it from the browser, and remove it from Hyperliquid's API page to revoke it everywhere. Approving a new Velyra key replaces the old one.
Ask the desk
When you ask a question, the server pulls a fresh snapshot from Hyperliquid: the markets you named, the top markets by volume, extreme funding and the biggest movers. If you tick Include my positions, it also reads your account. That snapshot and your question go to the language model, and the answer streams back.
There is a daily question limit per visitor. It is counted against a salted hash of your IP address, and the salt changes every day.
Privacy
| Data | Where it goes |
|---|---|
| Agent private key | Your browser only. Never sent anywhere. |
| Signed orders | Straight from your browser to Hyperliquid. |
| Limits, network choice | Your browser only. |
| Ask the desk questions | Velyra's server, then the model provider. Not logged or stored by Velyra. |
| Orders, fills, positions | Public on Hyperliquid, like every account's. |
Velyra has no user accounts and no database of users. There is nothing to sign up for.
Elysium
Velyra is built on Elysium (chain ID 99901), a network in the Hyperliquid ecosystem where gas is paid in HYPE.
| Network name | Elysium |
| Chain ID | 99901 |
| RPC | https://rpc.elysium.kinetiq.xyz |
| Gas token | HYPE |
| Explorer | elysium.kinetiq.xyz |
When you connect, the desk asks your wallet to add or switch to Elysium and shows your HYPE balance there. Approving the agent key works from Elysium too: Hyperliquid accepts the signature from any chain, and your trades still settle on Hyperliquid itself.
Testnet
Switch to Testnet at the bottom of the desk sidebar. Everything works the same way against Hyperliquid's test exchange. Get test USDC from Hyperliquid's testnet faucet. Agent keys are kept separately per network.
Known limits
- Perpetuals only. Spot markets aren't supported yet.
- Slicing runs in your browser tab. Close the tab and the remaining slices are not sent.
- Signals are simple rules, not predictions. They will be wrong often.
- The code has not been audited.
- There is no Velyra token. Nothing on the desk requires one.