First Trade and Exit#
This procedure covers a native Pyth market. It includes buying, cancelling, selling, and claiming. Use a small amount that you can lose. The numbers below are controlled examples, not live quotes.
Prepare#
- Connect a supported Solana wallet.
- Examine the network and market address.
- Examine the settlement mint against the selected deployment.
- Keep enough SOL for transaction fees and required token accounts.
- Fund the wallet with the correct settlement token.
- Read the market's timing, source rules, and current status.
See wallet funding for supported funding routes. The selected market must permit the intended order. Both examples require executable liquidity in the selected outcome's book. A quoted price does not guarantee that the order will fill.
Buy YES or NO#
On the web, open the market. Select the outcome in Quick Trade. Select Buy. Enter a settlement-token amount. The amount includes the taker fee. Examine the share quantity and funding balance before confirmation. For an exact share quantity, open Advanced and use the full order form.
On native mobile, the board's Quick Trade sheet buys the selected outcome. It does not provide the web card's Sell control. Use the market-detail order form to sell shares.
- Select YES or NO.
- Examine the price, quantity, fee, funding source, and order type.
- Give approval for the transaction in your wallet.
- Wait for confirmation.
- Examine the actual fill quantity and available shares.
An IOC order can fill partly and cancel the remainder. A limit order can leave a resting remainder. Examine Portfolio → Orders after a limit order. Do not mistake a resting order for purchased shares.
Cancel an unfilled order#
- Open Portfolio → Orders.
- Select the remaining order in the correct market.
- Select Cancel.
- Give approval for the wallet request.
- Make sure that the order no longer rests on the book.
- Examine the released collateral or shares.
The released amount depends on the unfilled remainder. Filled shares do not disappear when you cancel the remainder. Free-funds cancellation releases assets to the market ledger. Withdraw free quote to move settlement tokens to the wallet. After resolution, use the claim and cleanup paths instead of assuming ordinary cancellation remains available.
Sell before resolution#
- Open the market-detail order form.
- Select the outcome that you hold.
- Select Sell.
- Enter a quantity no greater than your available shares.
- Examine the executable price, fee, and minimum acceptable result.
- Sign the order.
- Examine the confirmed fill.
- Withdraw any resulting free quote balance that you want in your wallet.
Locked ask shares cannot fund another sell. Cancel the existing ask first if you need those shares. If the book has no buyer, you cannot obtain an immediate sale at that price. You can keep the shares for settlement or post an eligible limit order.
Reconcile two example trades#
Each scenario starts with 20 settlement units and no shares. One unit has 1,000,000 base units. Each scenario buys 10 shares, sells 6 shares, and claims the remaining 4 winning shares. The examples use the shipped fee coefficient, exact whole-share fills, and no maker rebates for the trader. They exclude SOL fees and rent. The final result changes if the remaining shares lose or settle neutral.
| Step | YES scenario | NO scenario |
|---|---|---|
| Buy 10 shares | Price 0.50; notional 5; fee 0.10 | Price 0.40; notional 4; fee 0.096 |
| Remaining quote, wallet plus free ledger | 14.90 | 15.904 |
| Post an unfilled free-funds bid for 5 shares at 0.20 | 1 quote locked; 13.90 available | 1 quote locked; 14.904 available |
| Cancel that bid | Lock 0; available quote 14.90 | Lock 0; available quote 15.904 |
| Sell 6 held shares | Price 0.60; gross 3.60; fee 0.057600 | Price 0.30; gross 1.80; fee 0.050400 |
| Quote after sale; shares remaining | 18.442400; 4 YES | 17.653600; 4 NO |
| Claim if the held outcome wins | +4 quote; no remaining shares | +4 quote; no remaining shares |
| Quote after all ledger withdrawals | 22.442400 in wallet | 21.653600 in wallet |
| Profit before SOL costs | 2.442400 | 1.653600 |
The unfilled bid assumes that the price band permits 0.20 and no ask crosses it. If either condition fails, do not expect this step to reproduce on a live market. Deposit sufficient free quote before that step; a deposit changes location, not the combined quote total. The YES sell fee is 1.6% of 3.60. The NO sell fee is 2.8% of 1.80.
Claim and return funds to the wallet#
After a terminal outcome, follow Claiming winnings. Examine the confirmed payment and all remaining orders, ledger balances, and wallet share accounts. Use Withdraw for available free quote that remains. Settlement-token receipt in a wallet is the cash exit covered here. Exchange conversion and bank withdrawal are external services.
Recover without duplicate trades#
If a result is unknown, stop new submissions for that action. Keep the signature and use transaction recovery. After restart, examine the earlier transaction before placing a replacement. If the indexer lags, examine the chain transaction. Refresh the same wallet and network. If a wallet connection fails, reconnect the same address before continuing.
The examples use the economic rules and named fixtures. Application fixtures verify controls and submitted parameters. They do not establish live liquidity or native-device task completion.