Expand description
Papertrade SDK for Rust: perps on HyperEVM at Hyperliquid’s BBO mid, gasless through a relayer.
client: theClient, its config and reads, the relayer, the deployment and HyperEVM reads.markets: the trading state and the relayer’s protocol figures.account: the live account, the session key, storage and the wallet.trade: intents, signatures, the venue’s integer math and the writes.transfer: deposits from Hyperliquid.live: the account stream’s event parser.utils: units, nonces and JSON readers.
Mainnet only. Money is integers and exact decimals, never floats.
Re-exports§
Modules§
- account
- The account and who signs for it.
- client
- The
Clientan app trades through, and what it stands on. - live
- Sans-IO server-sent events parser: feed
Events::pushchunks of any size and get whole events back. The account stream sendsLIVENESSonce, thenWALLETframes and aHEARTBEATevery interval. Reopen a stream that stays quiet for several intervals. - markets
- What the venue lists and its figures.
- trade
- Trading on the venue.
- transfer
- Moving money into the venue:
depositplans and sends USDC from the wallet’s Hyperliquid balance to its deposit address. Withdrawals are intents, incrate::trade. - utils
- Units, intent nonces and the relayer’s JSON readers.