1. Connect your wallet
Open the Kimia app, click Connect Wallet, and pick your wallet. Approve the connection. The cluster dropdown should read devnet.2. Deposit collateral
Your perp positions draw from a UserAccount, a PDA that holds your USDC collateral. The first time you trade, the app creates this account for you and prompts a deposit in the same transaction.- Minimum deposit: $10 USDC (prevents rent-rounding issues)
- Max leverage: 10× (initial margin ratio 10%)
- Maintenance margin: 5% (liquidation trigger)
3. Pick a direction and size
The trade panel exposes four fields:
Your required margin is shown live:
size × price × initialMarginRatio. Free
collateral shrinks as resting orders reserve margin upfront.
4. Submit the order
Market orders consume up to four resting counterparties per tx. If not all of your order fills, the remainder is either:- Cancelled (if you set Post-Only = false and Market = true), or
- Rested on the book at your limit price (otherwise)
5. Monitor the position
The Positions table shows:- Entry price, weighted average across all your fills
- Mark price, the clamped-to-oracle price used for PnL and margin
- Unrealized PnL, live
- Liquidation price, derived from your collateral + position size
- You deposit / withdraw collateral
- Funding settles (moves your collateral silently)
- You increase or decrease the position
6. Close the position
Click Close, or place a market order in the opposite direction of equal size. Realized PnL flows back into yourUserAccount.collateral, then you can
withdraw it to your wallet whenever you want.
Common errors and what they mean
See the full list on the troubleshooting guide.

