# Worm - [Welcome to Worm](https://docs.worm.wtf/index.md): Documentation for Worm. A permissionless prediction layer on Solana. - [What is Worm?](https://docs.worm.wtf/getting-started/what-is-worm.md): A permissionless prediction layer on Solana, powered by AI. - [Quickstart](https://docs.worm.wtf/quickstart.md): Connect your wallet and make your first prediction on Worm. - [Prediction Markets vs Betting](https://docs.worm.wtf/getting-started/prediction-vs-betting.md): Why prediction markets are more than just gambling, and why that matters. - [How Markets Work](https://docs.worm.wtf/trading/how-markets-work.md): Order books, prices, liquidity, and how trades fill on Worm. - [Leveraged Markets](https://docs.worm.wtf/trading/leveraged-markets.md): Amplify your upside on high-conviction predictions with 1x–3x leverage. - [Liquidity Rewards](https://docs.worm.wtf/trading/liquidity-rewards.md): Get paid daily for placing limit orders that tighten the spread on select markets. - [Settling & Payouts](https://docs.worm.wtf/trading/settling-and-payouts.md): When markets resolve, how long payouts take, and what 'under review' means. - [Creating a Market](https://docs.worm.wtf/creating-markets/creating-a-market.md): Launch your own prediction market on Worm: free, permissionless, and AI-assisted. - [Market Rules](https://docs.worm.wtf/creating-markets/market-rules.md): What makes a valid market on Worm, and what the AI will and won't create. - [Market Earnings](https://docs.worm.wtf/creating-markets/market-earnings.md): How you earn from markets you create, and when you get paid. - [Notifications](https://docs.worm.wtf/platform/notifications.md): Stay on top of your positions and markets with Telegram alerts. - [What is WormCup?](https://docs.worm.wtf/wormcup/what-is-wormcup.md): Worm's Telegram Mini App for the 2026 World Cup: predict matches, earn points, win prizes. - [Making Predictions](https://docs.worm.wtf/wormcup/making-predictions.md): How to predict World Cup matches, how points are scored, and how to power up your picks. - [Points & Leaderboards](https://docs.worm.wtf/wormcup/points-and-leaderboards.md): Tournament points vs activity points, weekly and all-time leaderboards, and prizes. - [Referrals & Prizes](https://docs.worm.wtf/wormcup/referrals-and-prizes.md): Invite friends to earn activity points and compete for weekly USDC cash prizes. - [Squads](https://docs.worm.wtf/wormcup/squads.md): Team up with friends, join squads, and pool your points on matches. - [What fees does Worm charge for leveraged positions?](https://docs.worm.wtf/faq/hot-questions/leveraged-fees.md) - [When will my market resolve?](https://docs.worm.wtf/faq/resolution-payouts/when-will-market-resolve.md) - [How long do payouts take after resolution?](https://docs.worm.wtf/faq/resolution-payouts/payout-timing.md) - [Why can't I trade when a market is under review?](https://docs.worm.wtf/faq/resolution-payouts/under-review.md) - [Can I open a market on 'Will the sun rise tomorrow?'](https://docs.worm.wtf/faq/creating-markets/sun-rise-market.md) - [Can I open a leveraged market?](https://docs.worm.wtf/faq/creating-markets/leveraged-market.md) - [Why was my market about someone's death rejected?](https://docs.worm.wtf/faq/creating-markets/death-market-rejected.md) - [What if multiple people open the same market?](https://docs.worm.wtf/faq/creating-markets/duplicate-markets.md) - [How much do I earn from the markets I open?](https://docs.worm.wtf/faq/creating-markets/market-earnings.md) - [What types of markets can I create?](https://docs.worm.wtf/faq/creating-markets/what-markets-are-supported.md) - [What happens if a market is resolved incorrectly?](https://docs.worm.wtf/faq/trading-market-mechanics/incorrect-resolution.md) - [How does cashing out work?](https://docs.worm.wtf/faq/trading-market-mechanics/cash-out.md) - [Can I add margin to reduce my liquidation price?](https://docs.worm.wtf/faq/trading-market-mechanics/add-margin.md) - [How do I earn liquidity rewards?](https://docs.worm.wtf/faq/trading-market-mechanics/liquidity-rewards.md) - [Is my money safe?](https://docs.worm.wtf/faq/platform-safety/money-safe.md) - [What wallets and tokens are supported?](https://docs.worm.wtf/faq/platform-safety/wallets-tokens.md) - [Does Worm have a token?](https://docs.worm.wtf/faq/platform-safety/worm-token.md) - [Does Worm use oracles or have a dispute mechanism?](https://docs.worm.wtf/faq/platform-safety/oracles-disputes.md) - [How can I contact support?](https://docs.worm.wtf/faq/support-community/contact-support.md) - [Is there a referral program?](https://docs.worm.wtf/faq/support-community/referral-program.md) - [Can Worm help me boost my market?](https://docs.worm.wtf/faq/support-community/boost-market.md) - [How does the Worm Predict Twitter Bot work?](https://docs.worm.wtf/faq/automation-tools/twitter-bot.md) - [How do I join WormCup?](https://docs.worm.wtf/faq/wormcup/how-to-join.md) - [What's the difference between tournament and activity points?](https://docs.worm.wtf/faq/wormcup/tournament-vs-activity-points.md) - [What are WormCup points worth?](https://docs.worm.wtf/faq/wormcup/points-worth.md) - [When can I withdraw my WormCup winnings?](https://docs.worm.wtf/faq/wormcup/withdraw-winnings.md) - [Introduction](https://docs.worm.wtf/api-reference/introduction.md): Overview of Worm API. - [Authentication](https://docs.worm.wtf/api-reference/authentication.md): How HMAC authentication works for protected Worm API endpoints. - [Response Format](https://docs.worm.wtf/api-reference/response-format.md): Standard JSON envelope used by all Worm API responses. - [Errors](https://docs.worm.wtf/api-reference/errors.md): Error envelope, status semantics, and common API error slugs. - [Pagination](https://docs.worm.wtf/api-reference/pagination.md): Cursor pagination contract for Worm list endpoints. - [Rate Limits](https://docs.worm.wtf/api-reference/rate-limits.md): Throttle scopes, limits, response headers, and retry guidance. - [Python SDK](https://docs.worm.wtf/api-reference/clients-sdks.md): Official worm-sdk client for the Worm API — installation, authentication, and usage. - [Worm MCP](https://docs.worm.wtf/api-reference/worm-mcp.md): MCP server for browsing, trading, and managing Worm prediction markets from AI agents. - [Search](https://docs.worm.wtf/api-reference/search/search.md): Search markets and events with a unified text query, rich filters, and full detail in each result. - [Sports catalog](https://docs.worm.wtf/api-reference/sports/sports-catalog.md): List sports and leagues for sport/league filters on markets, events, and search. - [List markets](https://docs.worm.wtf/api-reference/markets/list-markets.md): Retrieve a paginated list of markets with optional filters. - [Get market by condition id](https://docs.worm.wtf/api-reference/markets/market-detail.md): Retrieve detailed information for a single market. - [Get market statistics](https://docs.worm.wtf/api-reference/markets/market-stats.md): Aggregate volume, market cap, and trade count for a market. - [Get market price](https://docs.worm.wtf/api-reference/markets/market-price.md): Retrieve the current mid price snapshot for a market outcome (YES or NO). - [Get market orderbook](https://docs.worm.wtf/api-reference/markets/market-orderbook.md): Retrieve a single-outcome orderbook depth snapshot for a market (bid and ask levels). - [Get market candles](https://docs.worm.wtf/api-reference/markets/market-candles.md): Retrieve OHLC candle data for a market over a bounded time range. - [List market trades](https://docs.worm.wtf/api-reference/markets/market-trades.md): Retrieve recent public trade history for a single market. - [List market margin activity](https://docs.worm.wtf/api-reference/markets/market-margin-activity.md): Retrieve public margin activity feed rows for a single market. - [List events](https://docs.worm.wtf/api-reference/events/list-events.md): Retrieve a paginated list of events with optional filters. - [Get event by condition id](https://docs.worm.wtf/api-reference/events/event-detail.md): Retrieve detailed information for a single event. - [Create auth challenge](https://docs.worm.wtf/api-reference/auth-keys/challenge.md): Request a wallet-signing challenge message to begin the API key bootstrap flow. - [Create API key](https://docs.worm.wtf/api-reference/auth-keys/create.md): Exchange a signed challenge payload for API credentials. The secret is only returned once. - [List API keys](https://docs.worm.wtf/api-reference/auth-keys/list.md): Retrieve active (non-revoked) API credentials for the authenticated user. - [Revoke API key](https://docs.worm.wtf/api-reference/auth-keys/revoke.md): Permanently revoke an API credential by key id. - [Create order draft](https://docs.worm.wtf/api-reference/orders/create-order-draft.md): Create a draft order that must be signed and submitted to be placed on the orderbook. - [Submit order](https://docs.worm.wtf/api-reference/orders/submit-order.md): Submit a signed order draft to place it on the orderbook. - [Get order by pubkey](https://docs.worm.wtf/api-reference/orders/order-detail.md): Retrieve a specific draft or submitted order by its public key. - [List orders](https://docs.worm.wtf/api-reference/orders/list-orders.md): Retrieve your orders with optional status and market filters. - [Create cancel draft](https://docs.worm.wtf/api-reference/orders/cancel-order-draft.md): Create a cancellation draft for an existing order. Must be signed and submitted to finalize. - [Submit order cancel](https://docs.worm.wtf/api-reference/orders/cancel-order-submit.md): Submit a signed cancellation transaction to remove an order from the orderbook. - [List trades](https://docs.worm.wtf/api-reference/trades/list-trades.md): Retrieve your trade fills with optional market filter and pagination. - [Get account summary](https://docs.worm.wtf/api-reference/account/account-summary.md): Retrieve your account profile. - [Get account PnL](https://docs.worm.wtf/api-reference/account/account-pnl.md): Retrieve your account profit and loss breakdown with optional market or event scope. - [List account assets](https://docs.worm.wtf/api-reference/account/account-assets.md): List spot market outcome share balances. - [Estimate margin position](https://docs.worm.wtf/api-reference/margin/estimate-position.md): Preview leverage, entry price, and liquidation price for a potential margin position. - [Create position request](https://docs.worm.wtf/api-reference/margin/create-position-request.md): Create a margin position request draft that must be signed and submitted. - [Submit position request](https://docs.worm.wtf/api-reference/margin/submit-position-request.md): Submit a signature to finalize a margin position request. - [Get position request by pubkey](https://docs.worm.wtf/api-reference/margin/position-request-detail.md): Retrieve a single margin position request by its public key. - [Cancel position request](https://docs.worm.wtf/api-reference/margin/cancel-position-request.md): Cancel a margin position request draft that has not yet completed funding. - [List position requests](https://docs.worm.wtf/api-reference/margin/list-position-requests.md): Retrieve your margin position requests with optional filters and pagination. - [List margin positions](https://docs.worm.wtf/api-reference/margin/list-positions.md): Retrieve your active and historical margin positions with optional filters. - [Get margin position by pubkey](https://docs.worm.wtf/api-reference/margin/position-detail.md): Retrieve detailed information for a single margin position. - [Set TP/SL](https://docs.worm.wtf/api-reference/margin/set-tp-sl.md): Create or update take-profit and stop-loss settings for a margin position. - [Delete TP/SL](https://docs.worm.wtf/api-reference/margin/delete-tp-sl.md): Remove take-profit and stop-loss settings from a margin position. - [Close margin position](https://docs.worm.wtf/api-reference/margin/delete-position.md): Close or remove a margin position. Triggers an order to sell the position's shares. - [List margin settlements](https://docs.worm.wtf/api-reference/margin/list-settlements.md): Retrieve margin settlement records with optional filters and pagination. - [Claim position settlement](https://docs.worm.wtf/api-reference/margin/position-settlement-action.md): Execute the settlement claim action for a margin position. - [List redeems](https://docs.worm.wtf/api-reference/redeems/list-redeems.md): Retrieve your redeem requests with optional state and market filters. - [Start redeem](https://docs.worm.wtf/api-reference/redeems/start-redeem.md): Create a redeem request draft for a resolved market. Must be signed and submitted. - [Get redeem by pubkey](https://docs.worm.wtf/api-reference/redeems/redeem-detail.md): Retrieve a single redeem request by its public key. - [Submit redeem](https://docs.worm.wtf/api-reference/redeems/submit-redeem.md): Submit a signature to finalize the redemption. - [List share splits](https://docs.worm.wtf/api-reference/share-splits/list-splits.md): Retrieve your share splits with optional state and market filters. - [Start share split](https://docs.worm.wtf/api-reference/share-splits/start-split.md): Create a share split draft. Must be signed and submitted. - [Get share split by pubkey](https://docs.worm.wtf/api-reference/share-splits/split-detail.md): Retrieve a single share split by its public key. - [Submit share split](https://docs.worm.wtf/api-reference/share-splits/submit-split.md): Submit a signature to finalize the share split. - [List share merges](https://docs.worm.wtf/api-reference/share-merges/list-merges.md): Retrieve your share merges with optional state and market filters. - [Start share merge](https://docs.worm.wtf/api-reference/share-merges/start-merge.md): Create a share merge draft. Must be signed and submitted. - [Get share merge by pubkey](https://docs.worm.wtf/api-reference/share-merges/merge-detail.md): Retrieve a single share merge by its public key. - [Submit share merge](https://docs.worm.wtf/api-reference/share-merges/submit-merge.md): Submit a signature to finalize the share merge. ## Optional - [Home](https://worm.wtf) - [Discord](https://discord.gg/jQgQssQHT9) - [@wormwtf](https://x.com/wormwtf) - [@wormpredict](https://x.com/wormpredict) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.