Skip to content

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.

Show the signer wallet summary:

Terminal window
petri --keypair /path/to/id.json wallet balance

Show another wallet by public key:

Terminal window
petri wallet balance <OWNER_PUBKEY>

Use a specific USDC mint when needed:

Terminal window
petri wallet balance <OWNER_PUBKEY> --usdc-mint <USDC_MINT>

List available markets:

Terminal window
petri markets

Show one market snapshot:

Terminal window
petri markets show ramx

Read compact market status:

Terminal window
petri markets status ramx

Open a market chart:

Terminal window
petri markets chart ramx

Show a stored settlement record:

Terminal window
petri settlements show ramx <CURRENT_EXPIRY_ID>

Show the live oracle settlement state for an unsettled expiry:

Terminal window
petri settlements oracle ramx <CURRENT_EXPIRY_ID>

Show indexed trade history for a wallet:

Terminal window
petri history <OWNER_PUBKEY> --limit 50 --type all

Filter indexed activity:

Terminal window
petri history <OWNER_PUBKEY> --limit 50 --type trades
Terminal window
petri history <OWNER_PUBKEY> --limit 50 --type claims