跳转到内容

Getting Started

此内容尚不支持你的语言。

Getting Started

Build powerful applications on top of Sai’s perpetual futures protocol. Whether you’re creating trading bots, analytics dashboards, or custom integrations, this documentation will guide you through the process.

Choose your integration path based on your development environment:

  • EVM Integration Guide — Start here if you’re building on EVM chains. Covers environment setup, contract connections, and basic operations like opening positions and managing collateral
  • WASM Integration Guide — For WASM-based chains and clients. Learn integration patterns with language-specific examples and deployment guidance

Comprehensive documentation of the Sai smart contracts, modules, and architecture.

  • Perp Contract — Main perpetual futures contract handling position management, collateral, and settlement
  • Borrowing Module — Borrowed funds management, interest rates, and liquidation mechanics
  • Price Impact Module — How large trades affect pricing, slippage calculation, and execution costs

Query and subscribe to real-time data from the Sai protocol. Perfect for dashboards, bots, and analytics tools.

  • Core Concepts — Understand indexing, subscriptions, and how Keeper structures protocol data
  • Client Setup — Get your GraphQL client configured and authenticated in minutes
  • Perp API — Query positions, orders, trades, and perpetual-specific data
  • Liquidity Provider (LP) API — Access liquidity pool data, provider positions, and performance metrics
  • Oracle API — Get price feeds and oracle data used throughout the protocol
  • Fees API — Query fee structures, accruals, and historical fee data

Practical integration examples and real-world applications built on Sai.


Need help or want to connect with other builders?

Additional Resources:


Ready to build? Start with the EVM Integration Guide or WASM Integration Guide based on your development stack.