# Sai.fun

## Sai.fun Docs

- [Intro to Sai](https://docs.sai.fun/readme.md): Trade, earn, burn.
- [Learn | About Sai](https://docs.sai.fun/learn.md): This section is a primer to help you understand the benefits of Sai and how it works.
- [Trading on Sai](https://docs.sai.fun/learn/trading.md): Sai offers a feature-rich perpetual trading experience. This section of the documentation describes the different order types and mechanisms that define each market.
- [Executing Trades](https://docs.sai.fun/learn/trading/executing-trades.md): Discover how traders execute orders to go long on various digital assets. These traders, called "takers", use liquidity provided by the protocol to open and close perpetual positions.
- [Leverage and Liquidations](https://docs.sai.fun/learn/trading/leverage-and-liquidations.md)
- [After-Hours Leverage](https://docs.sai.fun/learn/trading/after-hours-leverage.md): How Sai reduces carried leverage on scheduled markets when a position remains open across a market close.
- [Fees](https://docs.sai.fun/learn/trading/fees.md)
- [Price Impact](https://docs.sai.fun/learn/trading/price-impact.md)
- [FAQ](https://docs.sai.fun/learn/trading/faq.md)
- [Sai Liquidity Positions (SLP)](https://docs.sai.fun/learn/slp.md): Sai Liquidity Positions (SLP) vaults create a passive and automatic way to earn trading fees on Sai. By depositing into an SLP vault, liquidity providers support the perpetual markets on Sai.
- [Guides | Using Sai](https://docs.sai.fun/guides.md): Learn Sai by example. A collection of guides and walkthroughs on how to perform common tasks on Sai.fun and Nibiru.
- [Onboarding](https://docs.sai.fun/guides/onboarding.md)
- [Wallet Setup](https://docs.sai.fun/guides/wallet-setup.md)
- [Acquiring Collateral](https://docs.sai.fun/guides/acquiring-collateral.md)
- [Choosing a Market](https://docs.sai.fun/guides/choosing-market.md)
- [Sai Referral Program](https://docs.sai.fun/guides/referral.md): Earn rewards and save on fees with Sai's referral program
- [Getting Started](https://docs.sai.fun/for-devs/dev.md): Build on Sai with comprehensive technical documentation, API references, and integration guides.
- [EVM Integration Guide](https://docs.sai.fun/for-devs/dev/evm-guide.md)
- [WASM Integration Guide](https://docs.sai.fun/for-devs/dev/wasm-guide.md)
- [Sai Core](https://docs.sai.fun/for-devs/sai-core.md): Sai's perpetual exchange app is implemented in Rust, a powerful language for secure, sandboxed programming, that compiles into Wasm bytecode. 5 key contracts manage everything on Sai, fully onchain.
- [Perp Contract](https://docs.sai.fun/for-devs/sai-core/perp-contract.md): An in-depth look at the Sai Perp (perpetual futures) contract implementation.
- [Perp: Borrowing Module](https://docs.sai.fun/for-devs/sai-core/perp-borrowing.md): Borrowing fees and groups in the Sai Perp (perpetual futures) contract.
- [Perp: After-Hours Leverage](https://docs.sai.fun/for-devs/sai-core/after-hours-leverage.md): Contract behavior for scheduled-market after-hours effective leverage controls.
- [Perp: Price Impact Module](https://docs.sai.fun/for-devs/sai-core/perp-price-impact.md): The Price Impact Module calculates and applies price impact to trades based on their size and market depth. This module ensures that larger trades more significantly affect the execution price, reflec
- [Perp: State Variables](https://docs.sai.fun/for-devs/sai-core/perp-state.md)
- [Contract Addresses Reference](https://docs.sai.fun/for-devs/sai-core/contracts.md)
- [WASM & EVM Integration](https://docs.sai.fun/for-devs/sai-core/contract-integration.md)
- [Sai Keeper](https://docs.sai.fun/for-devs/sai-keeper.md): Sai Keeper is a GraphQL API that indexes Sai Protocol's on-chain data, enabling developers to query trades, liquidity pools, prices, and fees without directly accessing the blockchain.
- [Core Concepts](https://docs.sai.fun/for-devs/sai-keeper/core-concepts.md)
- [Perp API](https://docs.sai.fun/for-devs/sai-keeper/api-perp.md)
- [Liquidity Provider (LP) API](https://docs.sai.fun/for-devs/sai-keeper/api-lp.md)
- [Oracle API](https://docs.sai.fun/for-devs/sai-keeper/api-oracle.md)
- [Fees API](https://docs.sai.fun/for-devs/sai-keeper/api-fees.md)
- [Examples: Queries](https://docs.sai.fun/for-devs/sai-keeper/examples-queries.md)
- [Examples: Subscriptions](https://docs.sai.fun/for-devs/sai-keeper/examples-subscriptions.md)
- [Client Setup](https://docs.sai.fun/for-devs/sai-keeper/client-setup.md)
- [Filters & Pagination](https://docs.sai.fun/for-devs/sai-keeper/filters-pagination.md)
- [Use Cases](https://docs.sai.fun/for-devs/use-cases.md): Discover real-world examples of building with Sai. Learn how developers integrate Sai into their applications and services.
- [Telegram Bot Integration](https://docs.sai.fun/for-devs/use-cases/tg-guide.md)
- [Community](https://docs.sai.fun/resources/community.md)
- [Blog](https://docs.sai.fun/resources/blogs.md): Blogs for Sai and Sai.fun.
- [Intro to Sai](https://docs.sai.fun/resources/blogs/intro-to-sai.md): Introducing Sai: Nibiru’s Perpetuals DEX
- [Sai 2026 Roadmap](https://docs.sai.fun/resources/blogs/sai-roadmap.md): For 2026, the focus continues to be around trader-first trading, frictionless funding, and a more powerful user experience.
- [Let's Go Saicho](https://docs.sai.fun/resources/blogs/lets-go-saicho.md): Sai Trading Competition: $25,500 Prize Pool with Two Exciting Phases
- [SaiClone Ambassador Program](https://docs.sai.fun/resources/blogs/saiclone-ambassador.md): The SaiClone Ambassador Program is a structured progression system that rewards active participation, content creation, and community engagement.
- [Let's Go Saicho: Rewards](https://docs.sai.fun/resources/blogs/lets-go-saicho-rewards.md): Let's Go Saicho has officially concluded. Here's how rewards were finalized, who was eligible, and where to verify distribution.
- [Sai Launches Stock Trading on Perps](https://docs.sai.fun/resources/blogs/stock-perps-launch.md): Sai expands beyond crypto. Trade popular stocks long or short through perpetual markets — fully onchain, no gas fees, no custody.
- [Sai Cookout](https://docs.sai.fun/resources/blogs/sai-cookout.md): Sai Cookout: Sai Trading Competition with $5,100 Prize Pool Across Crypto, Stocks, and Commodities
- [Sai Grand Cup 2026: Trade for Your Region](https://docs.sai.fun/resources/blogs/sai-grand-cup-2026-trade-for-your-region.md): Climb the Leaderboard. Split the Pool.
- [Legal](https://docs.sai.fun/resources/legal.md): Legal and regulatory documents for Sai and Sai.fun.
- [Terms of Use](https://docs.sai.fun/resources/legal/terms-of-use.md): This article outlines the Terms of Use governing your access to Sai.fun.
- [Sai Disclosures](https://docs.sai.fun/resources/legal/disclosures.md): These disclosures and disclamers apply to all statements made by Nibiru about Sai, which is located at sai.fun.


---

# 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, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://docs.sai.fun/readme.md?ask=<question>
```
The question should be specific, self-contained, and written in natural language.
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.
