perps
Usage
soulpass perps market --token <symbol|dex:SYMBOL> --side <buy|sell> (--amount <usd> | --all) [--leverage <n>] [--reduce-only] [--slippage <bps>] [--quote]
soulpass perps order --token <symbol|dex:SYMBOL> --side <buy|sell> --price <usdc> --size <coins> [--type <Gtc|Ioc|Alo>] [--reduce-only] [--client-order-id <intent-id>]
soulpass perps cancel [--token <symbol|dex:SYMBOL>] [--oid <id>] [--all]
soulpass perps info [--type <positions|orders|order|mids|dexs|status>] [--dex <name>] [--cloid <id>]
soulpass perps transfer --amount <usdc> --to <spot|perps> [--dex <name>]
soulpass perps agents list
soulpass perps agents approve --address <0x>
soulpass perps agents revoke --name <soulpass-dev-xxxxxx>
soulpass perps handover --to <0x> [--yes]
Hyperliquid perpetuals, two ways to trade and the reads around them: market fills now at market price, sized in US dollars, with leverage (--all closes the whole position); order rests a limit order on the book, sized in coins.
Signed with the agent's EVM key (Hyperliquid is EOA-native); builder fee auto-approved on first order.
US stocks, indices, commodities and FX trade on HIP-3 builder dexes with namespaced symbols — --token xyz:NVDA, --token xyz:SP500. List dexes with soulpass perps info --type dexs; positions and mids are per-dex (--dex xyz).
Subcommands
market— Open, add to or close a position at market price, planned by matrix-market and signed by this device as the account's approved Hyperliquid agent.--amountis US dollars of notional;--allcloses the whole position at Hyperliquid's reading of its size and takes no--amount. Without--reduce-onlythe order opens or adds;--reduce-only(or--all) only shrinks a position, never flips it.--leverageapplies to an opening order only. An order with too little margin is refused before anything is signed; the outcome is reconciled with Hyperliquid before the command returns (txHashcarrieshl:<oid>,hl-cloid:<cloid>while Hyperliquid cannot say yet).order— Place a limit order.--sizeis in coins, NOT USD (notional = price × size). Reuse--client-order-idto check an earlier order without placing it twice. Pass--reduce-onlywhen closing — a plain opposite-side order can flip into a new position.cancel— Cancel one order (--token+--oid) or all across main and builder DEXs (--all). Results count confirmed cancellations and report each order separately.info— Query positions, open orders, mid prices, the builder-dex list, or--type status: this device's standing against the account it trades for (master, an approved HL agent, or unapproved — write commands refuse until approved). Use--type order --cloid <id>to reconcile one order.--dex <name>selects a HIP-3 dex (e.g.xyz) for positions/orders/mids; omit for the main crypto dextransfer— Move USDC between spot and perps. With--to perps --dex xyz, allocate main perps USDC to that standard DEX margin ledger. Master-only: an HL agent is refused here even though it can place and cancel orders.agents list | approve | revoke— the account's Hyperliquid agent approvals, run on the master (the device whose own EOA is the canonical Hyperliquid account).listis read-only;approve --addresslets an on-chain owner trade the whole Hyperliquid balance from its own device and is ◆ human-only;revoke --nameis the safe direction and stays agent-callable. Both report a read-backconfirmedcheck.handover— for an account this device built itself: send the full withdrawable main-dex perps balance to--to(an existing on-chain owner) so a human can take over as master. Refused with any open position or order. ◆ human-only, even with--yes.
Funding the exchange account
Funds live in your Hyperliquid exchange account, not an on-chain wallet balance — check them with soulpass balance --venue hyperliquid. soulpass move lists hyperliquid as a destination (soulpass move --to hyperliquid --amount 100) — that is how the exchange account is funded from your balance. Each builder dex has its own margin account.
Examples
soulpass perps market --token BTC --side buy --amount 100 --leverage 3
soulpass perps market --token BTC --side sell --all
soulpass perps order --token BTC --side buy --price 30000 --size 0.1
soulpass perps order --token BTC --side sell --price 35000 --size 0.1 --reduce-only
soulpass perps order --token xyz:NVDA --side buy --price 320 --size 1
soulpass perps cancel --all
soulpass perps info --type positions
soulpass perps info --type mids --dex xyz
soulpass perps info --type status
soulpass perps transfer --amount 10 --to spot