Market, Wallet, and Ledger Commands
These commands are the safest place to start. They read state and help a user understand what the CLI sees.
Wallet commands
Section titled “Wallet commands”Show the signer wallet summary:
petri --keypair /path/to/id.json wallet balanceShow another wallet by public key:
petri wallet balance <OWNER_PUBKEY>Use a specific USDC mint when needed:
petri wallet balance <OWNER_PUBKEY> --usdc-mint <USDC_MINT>Market commands
Section titled “Market commands”List available markets:
petri marketsShow one market snapshot:
petri markets show ramxRead compact market status:
petri markets status ramxOpen a market chart:
petri markets chart ramxSettlement read commands
Section titled “Settlement read commands”Show a stored settlement record:
petri settlements show ramx <CURRENT_EXPIRY_ID>Show the live oracle settlement state for an unsettled expiry:
petri settlements oracle ramx <CURRENT_EXPIRY_ID>History commands
Section titled “History commands”Show indexed trade history for a wallet:
petri history <OWNER_PUBKEY> --limit 50 --type allFilter indexed activity:
petri history <OWNER_PUBKEY> --limit 50 --type tradesTrade history
Section titled “Trade history”petri history <OWNER_PUBKEY> --limit 50 --type claims
