> For the complete documentation index, see [llms.txt](https://foregate.gitbook.io/foregate-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://foregate.gitbook.io/foregate-docs/market-types-and-mechanisms/events-and-matches.md).

# Events & Matches

- [Trading Basics](https://foregate.gitbook.io/foregate-docs/market-types-and-mechanisms/events-and-matches/trading-basics.md): ForeGate's prediction market offers two core trading types: price prediction and event prediction. Understanding the mechanisms of both modes is crucial for mastering trade timing and managing risks.
- [Fee Structure](https://foregate.gitbook.io/foregate-docs/market-types-and-mechanisms/events-and-matches/fee-structure.md): Outlines the fee and transaction rules on ForeGate. Understanding these key elements will help you effectively manage trades, optimize costs, and reduce risks while complying with:
- [Market Details](https://foregate.gitbook.io/foregate-docs/market-types-and-mechanisms/events-and-matches/market-details.md): ForeGate Core Prediction Feature Guide & Operation Manual ✨
- [OrderBook Market](https://foregate.gitbook.io/foregate-docs/market-types-and-mechanisms/events-and-matches/orderbook-market.md)
- [Market Order](https://foregate.gitbook.io/foregate-docs/market-types-and-mechanisms/events-and-matches/orderbook-market/market-order.md)
- [Limit Order](https://foregate.gitbook.io/foregate-docs/market-types-and-mechanisms/events-and-matches/orderbook-market/limit-order.md)
- [Creator](https://foregate.gitbook.io/foregate-docs/market-types-and-mechanisms/events-and-matches/creator.md)
- [AMM Market](https://foregate.gitbook.io/foregate-docs/market-types-and-mechanisms/events-and-matches/creator/amm-market.md)
- [Pari-Mutuel Market](https://foregate.gitbook.io/foregate-docs/market-types-and-mechanisms/events-and-matches/creator/pari-mutuel-market.md)
- [How are prediction markets resolved?](https://foregate.gitbook.io/foregate-docs/market-types-and-mechanisms/events-and-matches/how-are-prediction-markets-resolved.md)


---

# 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://foregate.gitbook.io/foregate-docs/market-types-and-mechanisms/events-and-matches.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.
