Managing Positions#
Once you've traded in a market, you have a position — the bundle of shares, open orders, and locked funds the app tracks for that market.
In plain English#
Your position is just three numbers:
- How many YES shares you own (and how many are locked in sell orders sitting on the book).
- How many NO shares you own (and how many are locked in sell orders).
- How much USDT is locked in buy orders you've placed but that haven't filled yet.
Whatever isn't locked is available to trade with, hold, or sell.
Adjusting your position#
- Want more of one side? Buy more shares.
- Want to take profit or cut losses? Sell some or all of your shares. You don't have to wait for the market to resolve.
- Want a guaranteed outcome? Hold equal YES and NO. N YES + N NO pays exactly N USDT regardless of which way the market goes.
- Want to cancel an unfilled order? Tap Cancel. Your locked USDT (buy order) or your locked shares (sell order) are available again immediately.
Watching your P&L#
Two prices matter:
- Your entry price — what you paid.
- The current mark price — what the market is quoting now.
Unrealized P&L = (current_price − entry_price) × quantity / 10000.
The app shows this live. If the mark moves in your favor, you're up; sell now to lock it in, or hold to settlement.
What happens when the market closes#
When the market window ends, trading stops. Resting orders no longer match, but unfilled buy-side collateral is not automatically returned to your wallet after resolution.
Important: if you have unfilled buy-side Limit or Post-Only orders after resolution, use the normal Claim/Redeem flow within the 7-day grace window to get both your winning shares paid out and your locked collateral back. After 7 days, permissionless cleanup can remove those orders; the collateral is credited back to you and paid to your wallet, but nobody is obligated to run that cleanup.
See Claiming Winnings for the full timeline, and Risks for cleanup conditions and payment delays.
Closing out for good#
After resolution, claim your winnings (the Claim button). After that, you can optionally close your position account to reclaim the small amount of SOL it costs to keep it on-chain. Nothing forces you to — it's optional housekeeping.
Technical reference#
Position account fields#
| Field | Description |
|---|---|
yes_shares | YES shares you own (unlocked) |
no_shares | NO shares you own (unlocked) |
locked_yes_shares | YES shares locked in sell orders |
locked_no_shares | NO shares locked in sell orders |
collateral_locked | USDT locked in buy orders |
Available for trading:
Available YES = yes_shares
Available NO = no_shares
Total YES = yes_shares + locked_yes_shares
Total NO = no_shares + locked_no_shares
Estimating position value#
Using each outcome's own current price (in bps), read from that outcome's lane:
YES value = (yes_shares + locked_yes_shares) × current_yes_price / 10000
NO value = (no_shares + locked_no_shares) × current_no_price / 10000
Total mark = YES value + NO value
The share fields already exclude locked shares; subtracting them again understates available inventory. This mark covers position shares only. Wallet tokens, buy-order collateral, and per-market ledger free funds are separate balances. See monitoring and reconciliation for whole-account accounting.
<!-- src: program/src/state/position.rs:339 total_yes_shares -->Adjusting positions#
Position lifecycle#
Cancelling orders#
You can cancel any open order you own at any time while the market is in TRADING state:
| Order type | What is unlocked on cancel |
|---|---|
| Buy order | USDT collateral → available in your wallet |
| Sell order | Shares → available to trade or hold |
Cancel instructions: CancelOrder (0x11), CancelMultipleOrdersById (0x12)
and CancelOwnerOrders (0x55). CancelOwnerOrders cancels all of your orders,
or those inside a price bound, in bounded steps. The first call begins a
session stored in your seat; repeat the continue call until it reports
completion. Orders placed after the session began are not cancelled. Refunds
go to your trader ledger; withdraw them with WithdrawFunds or
WithdrawShares.
Open order fields#
| Field | Description |
|---|---|
order_id | Unique slot identifier |
price_bps | Limit price in the order's own outcome price space |
quantity | Remaining (unfilled) shares |
original_quantity | Size when first placed |
created_at | Placement timestamp |
max_age_seconds | Optional shorter TTL (0 = placement-time market close) |
End of trading#
When trading ends at t_end:
- New trading stops. No more orders can be placed or matched.
- Resting buy-side collateral stays locked. Cancel before
t_endif you don't want an order to carry into the settlement period. - Complete the claim workflow. Redemption pays the applicable share entitlement and releases eligible bid collateral. Large positions can require several bounded transactions. Examine each result before continuing.
- 7-day window. Claim within 7 days of resolution; after that, cleanup cranks may still pay you, but it is not guaranteed.
Common scenarios#
Taking profit#
Cutting losses#
Hold to settlement#
Risk sizing#
Maximum loss on a position equals what you paid for it:
| Position | Paid | Max loss |
|---|---|---|
| 100 YES @ 6000 bps | 60 USDT | 60 USDT (if DOWN) |
| 100 NO @ 4000 bps | 40 USDT | 40 USDT (if UP) |
Next steps#
- Claiming Winnings — the claim flow and deadlines
- Risks — the 7-day cleanup threshold and payment delays
- How funds flow — where your USDT is at each stage
- Market Making — providing liquidity
Technical reference#
| Action | Instruction |
|---|---|
| Cancel one order | CancelOrder (0x11) |
| Cancel by IDs | CancelMultipleOrdersById (0x12) |
| Cancel all | CancelOwnerOrders (0x55) |
| Cancel above/below price | CancelOwnerOrders (0x55) |
| Reduce order quantity | ReduceOrder (0x13) |
| Claim winnings + collateral | Redeem (0x17) |
| Close position PDA (SOL rent) | ClosePosition (0x1A) |