> For the complete documentation index, see [llms.txt](https://docs.pretoke.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pretoke.xyz/introduction.md).

# Introduction

Welcome! This is the official documentation for **TON Prediction Market** — a place where you can trade on the outcome of real-world events (sports, crypto, politics, and more) using your TON wallet.

> **New here?** Start with [What Is This?](/getting-started/what-is-this.md), then [Connect Your Wallet](/getting-started/connecting-your-wallet.md).
>
> **Building an integration?** Jump straight to the [API Reference](/api-reference/overview.md).

## What you'll find in these docs

* **Getting Started** — connect your wallet, deposit funds, and place your first trade.
* **Using the Platform** — a walkthrough of browsing markets, trading, tracking your portfolio, and cashing out.
* **How It Works** — a plain-language explanation of what happens behind the scenes when you trade, and how the system settles everything on the TON blockchain.
* **Smart Contracts** — technical reference for the on-chain contracts that power the platform, for developers and auditors.
* **API Reference** — a complete reference for every REST endpoint and WebSocket event, for anyone building a bot, dashboard, or integration.

## The short version

Every market on the platform asks a yes/or/no question about something happening in the real world — "Will Bitcoin close above $100,000 this week?" for example. You buy **YES** or **NO** shares. If you're right, each winning share pays out **1 USDT** (a stablecoin pegged to the US dollar) when the market resolves. If you're wrong, your shares pay out nothing.

Prices move between $0.01 and $0.99 and reflect the market's live probability estimate — a price of $0.65 for YES roughly means the market thinks there's a 65% chance of "yes." You can buy low and sell high before the market even resolves, just like a stock.

Everything you deposit and withdraw is backed by real positions on the TON blockchain, secured by open-source smart contracts described in the [Smart Contracts](/smart-contracts/condition-registry.md) section.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pretoke.xyz/introduction.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
