Creating Your Own Market#
Market creation is permissionless. Use a supported application or SDK. Select the asset and duration. The protocol fixes the Pyth Pull Receiver path.
Why would you create a market?#
Create a market to open a prediction window and earn the configured creator share of taker fees. The shipped default is 5%; see fee defaults.
<!-- src: program/src/logic/fee.rs:187 FeeSplit5::TARGET.creator_bps -->The duration sets the trading window. Supported durations range from 60 seconds to 7 days.
What you set when you create one#
| Field | What it means | Example |
|---|---|---|
| Asset | Which price feed the market tracks. Must be a supported Pyth feed. | SOL/USD, BTC/USD, ETH/USD |
| Duration | How long the market is open before resolving. | 60 s, 5 min, 15 min, 1 hr, 1 day, 7 days |
| Oracle | Fixed Pull-only Receiver path; not a market setting. | Pyth Pull |
| Capacity | How many distinct traders the market can hold. | Small, Standard (default), Large |
The start time is set automatically when your creation transaction lands.
The market then stays open for its full configured duration. Its positive
Unix-microsecond market_id is a stable identity, not a scheduled start time;
it can be prepared before submission and reused if creation is retried. You
don't pick the outcome either; the Pyth price feed does.
Duration choices#
Markets can run from 60 seconds to 7 days. Markets for the same asset and duration can overlap if created at different times. For the timing rule, see How It Works.
Oracle integration: Pull-only#
Pull is the sole oracle flow for native markets. The client and provider supply the Receiver evidence for the exact boundary update. The program validates that evidence. It does not fetch an update from a provider. For details, see Oracle Integration.
Capacity and rent#
Capacity is the maximum number of distinct traders who can hold a position. You pre-pay Solana rent to cover the ledger storage — and that rent is returned to you when the market is closed after it resolves. Pick on the depth you expect, not on cost: Small suits markets you expect to stay thin, Standard is the default and the safe choice for anything you expect to trade, and Large is for feeds you expect to saturate a 512-order book. You cannot change capacity after creation.
Read the network rent estimate in the creation review. Account sizes and network rent determine the required SOL. For the tier table and byte sizes, see Market Capacity.
What it costs to create a market#
Creating a market costs a small amount of SOL to cover:
- The on-chain storage for the market account (a few cents).
- The trader-ledger space deposit (returned at teardown, amounts above).
- A lifecycle-crank reward pre-deposit — the protocol pre-funds up to 5 crank rewards (default 0.0002 SOL each = ~0.001 SOL total) so permissionless keepers can run your market's lifecycle.
There is no protocol creation fee. Market creation does not require initial liquidity. Trading requires an eligible market state and funded opposing orders. Without matching liquidity, an immediate order cannot fill.
The creation prelude (handled by the SDK)#
Solana limits how much a single instruction can grow an on-chain account.
Because every market has the same large canonical size, the SDK automatically bundles the required
EnsureTraderLedgerSpace and EnsureDeepOrderbookSpace calls before the
CreateMarket instruction. The supported flow can require several transactions.
Examine each wallet request. If you're integrating directly, use the create_market_bundle helper:
- TypeScript:
createSeesawClient(...)→ixs.createMarketBundle(...) - Python:
create_market_bundle(params, accounts) - Rust:
create_market_bundle(params, accounts)
What you earn from your market#
For every taker trade in your market you earn the configured creator share of the taker fee, which accrues inside the market account until you claim it. The shipped default allocates 5% to the creator and 40% to eligible makers. These percentages apply to the fee, not the trade's value.
<!-- src: program/src/logic/fee.rs:187 FeeSplit5::TARGET -->fee_bps(price) = taker_fee_coefficient_bps × (10000 − price) / 10000
The fee has no cap: it falls in a straight line from 4% of notional near a zero price to zero at certainty. With the shipped coefficient and creator share, these are illustrative earnings for the stated trade notional. Actual fees use the current config and integer rounding; they are not an earnings forecast.
<!-- src: program/src/logic/fee/taker_fee.rs:39 DEFAULT_TAKER_FEE_COEFFICIENT_BPS --> <!-- src: program/src/logic/fee.rs:187 FeeSplit5::TARGET.creator_bps -->| Trade size | At 50% (coin flip) | At 90% (high confidence) |
|---|---|---|
| $100 | $0.10 | $0.02 |
| $1,000 | $1.00 | $0.20 |
| $10,000 | $10.00 | $2.00 |
At resolution or expiry, the program tries to pay the creator automatically.
If the destination fails validation, the creator fee remains a liability in the market.
ClaimCreatorFees requires a terminal outcome and a positive remaining accumulator.
It cannot claim fees while the market is trading.
Receive creator earnings#
- Examine the market address, creator address, and settlement mint.
- Wait for a confirmed terminal outcome.
- Examine the settlement transaction and your settlement-token balance for an automatic payment.
- If fees remain, examine the creator's destination token account.
- Correct a missing, wrong-mint, or frozen destination before submitting the deferred claim.
- Open the Earnings screen.
- Select the market's available Claim action.
- Give approval for the transaction.
- Examine the destination balance and remaining accumulator.
The destination must belong to the creator and use the market's settlement mint.
It must be initialized and unfrozen. An operator can send ClaimCreatorFees, but cannot redirect the payment.
If the app does not expose the required account repair, use an appropriate wallet or operator workflow.
A frozen account needs the mint authority's supported recovery process.
Do not create a different-mint account as a substitute.
A zero accumulator can mean that automatic payment already succeeded. Examine the transaction before another claim. For an unknown result, use transaction recovery. See creator payment fixtures.
The teardown sweep — read this#
After a market resolves, traders have 7 days to claim their winnings. After 7 days the market becomes eligible for teardown. Here is what happens to your market's remaining funds:
CloseMarketcan run only after every position is settled, so abandoned trader value is paid to its owners first (MarkPositionSettled), not to you.- The teardown sends the remaining vault rounding dust, which is unavoidable and legitimate, to you as the market creator.
- The creator also gets back all the rent deposited at creation.
The full teardown mechanics are explained from the trader's perspective in Risks and Claiming Winnings.
Step by step#
On native mobile, use + in Search or Create market in the wallet account sheet. On the web, use Create in the home page's Earn card, under "Create a market".
- Open the Create Market screen.
- Select a supported Pyth price feed.
- Select a duration.
- Use the fixed Pull-only oracle path.
- Select a supported capacity.
- Examine the transaction plan and its costs.
- Sign each reviewed transaction.
- Examine the created market account and accepted start snapshot.
- Share the market link.
- After settlement, examine automatic creator payment.
- Claim only a positive deferred creator-fee balance.
A few honest things to know#
Recover interrupted creation#
Creation requires valid boundary evidence, a funded wallet, the correct settlement mint, and supported account capacity. Examine the quoted rent and reward reserve before signing. Source preparation or allocation can succeed before market activation.
- Keep the creation journal and all submitted signatures.
- Reopen creation with the same wallet and network.
- Reconcile the recorded preparation and consumer transactions.
- Examine the expected market address and its source evidence.
- Resume only the unfinished steps offered by the recovery flow.
Do not restart creation with a new signature while an earlier attempt remains unknown.
If the wallet or network differs from the recorded intent, return to the original context.
If the interface cannot resume the state, keep the evidence for an operator.
The mobile recovery implementation is in apps/mobile/src/screens/CreateMarketScreen.tsx.
Market operation#
- Your market needs traders. Zero trading = zero fees. Pick events people care about and share the link.
- You cannot change the outcome. The Pyth oracle decides. You're providing the venue, not the resolution.
- You cannot change market parameters after creation. Duration and asset are immutable once the market is created; the Pull-only oracle path is fixed protocol behavior, not a market parameter.
- Duplicate markets exist. If several markets cover the same asset and window, users should prefer the canonical market the app surfaces.
- You can trade in your own market. Self-trade prevention means your
own orders follow
Abort,CancelProvide, orDecrementTake. See self-trade prevention. - You're not on the hook if traders lose. Creators don't put up capital.
After your market resolves#
- An eligible keeper or user submits the closing Pyth snapshot transaction.
- It compares to the opening price (also from Pyth).
- YES wins only if the end confidence interval is strictly above the start
interval (
end_low > start_high); NO wins only if it is strictly below (end_high < start_low). Equal, touching, or overlapping intervals resolve to the neutral EXPIRED outcome. - Traders claim their winnings via the app's Claim button.
- Examine automatic creator payment. Claim any positive deferred balance after the market becomes terminal.
- After 7 days, the market becomes eligible for teardown and you get back your rent and residual vault dust after all liability checks pass.
Next steps#
- Referrals and Fees — the full fee model, including the creator and maker allocations
- Placing Orders — order book mechanics if you also want to trade in your own market
- Risks — what can go wrong, written honestly
- How the oracle works — the Pull-only Receiver flow
Technical reference#
| Mechanism | Instruction |
|---|---|
| Allocate ledger space (prelude) | EnsureTraderLedgerSpace (0x2B) |
| Create market + capture start price | CreateMarket (0x03) |
| Capture end price | SnapshotEnd (0x04) |
| Resolve outcome | ResolveMarket (0x05) |
| Oracle-outage fallback | ExpireMarket (0x06) |
| Claim creator fees | ClaimCreatorFees (0x1F) |
| Permissionless owner-paying sweep | MarkPositionSettled (0x19) |
| Market teardown + creator sweep | CloseMarket (0x1B) |