# Flash Trade

## English

- [Introduction](https://docs.flash.trade/flash-trade/readme.md)
- [Our Mission](https://docs.flash.trade/flash-trade/our-mission.md)
- [What Do I Need To Trade](https://docs.flash.trade/flash-trade/getting-started/getting-started.md)
- [Fund Your Account and Make Your First Trade](https://docs.flash.trade/flash-trade/getting-started/fund-your-account-and-make-your-first-trade.md)
- [One-Click Trading](https://docs.flash.trade/flash-trade/getting-started/one-click-trading.md)
- [How to Create a Referral Link](https://docs.flash.trade/flash-trade/getting-started/how-to-create-a-referral-link.md): Flash Trade's referral program allows you to earn rebates from users you bring to the platform. This guide will walk you through the process of creating your custom referral link.
- [How to Swap Tokens](https://docs.flash.trade/flash-trade/getting-started/how-to-swap-tokens.md)
- [How to Mint or Burn FLP/sFLP](https://docs.flash.trade/flash-trade/getting-started/minting-burning-flp.md)
- [Collecting sFLP USDC Rewards](https://docs.flash.trade/flash-trade/getting-started/minting-burning-flp/collecting-sflp-usdc-rewards.md): sFLP (Staked Flash Liquidity Pool) tokens earn hourly USDC rewards from trading fees generated on Flash Trade. Unlike FLP.1 which auto-compounds, sFLP requires manual claiming of rewards.
- [How to Stake & Unstake FAF](https://docs.flash.trade/flash-trade/getting-started/how-to-stake-and-unstake-faf.md)
- [How to Claim Your Revenue Share](https://docs.flash.trade/flash-trade/getting-started/how-to-stake-and-unstake-faf/how-to-claim-your-revenue-share.md): This guide shows you how to claim your USDC revenue share as a FAF staker on Flash Trade.
- [Degen Mode](https://docs.flash.trade/flash-trade/getting-started/degen-mode.md)
- [Funded Wallet](https://docs.flash.trade/flash-trade/getting-started/funded-wallet.md): Trade with Flash Trade's capital. Keep the profits. Zero risk to your own funds.
- [Troubleshooting Guide](https://docs.flash.trade/flash-trade/getting-started/troubleshooting-guide.md): This guide covers common technical issues users may encounter while trading on Flash.Trade and provides step-by-step solutions to resolve them.
- [FAF Token](https://docs.flash.trade/flash-trade/flash-trade-protocol/faf-token.md)
- [FAF: An Ownership Token](https://docs.flash.trade/flash-trade/flash-trade-protocol/faf-token/faf-an-ownership-token.md): Flash Trade is building a protocol where token holders are real owners — not just speculators holding a governance token with no economic power.
- [Revenue Sharing](https://docs.flash.trade/flash-trade/flash-trade-protocol/faf-token/revenue-sharing.md)
- [FAFtarchy Governance](https://docs.flash.trade/flash-trade/flash-trade-protocol/faf-token/faftarchy-governance.md): Futarchy is a governance system where decisions are made through prediction markets instead of traditional voting. Think of it as "betting on beliefs" - the market decides what's best for the protocol
- [FAFtarchy Commandments](https://docs.flash.trade/flash-trade/flash-trade-protocol/faf-token/faftarchy-governance/faftarchy-commandments.md): Framework for Futarchy-Aligned Proposal Creation by the Core Team
- [Flash Labs](https://docs.flash.trade/flash-trade/flash-trade-protocol/faf-token/faftarchy-governance/flash-labs.md)
- [Voting on Proposals](https://docs.flash.trade/flash-trade/flash-trade-protocol/faf-token/faftarchy-governance/voting-on-proposals.md)
- [Technical Architecture of Staking](https://docs.flash.trade/flash-trade/flash-trade-protocol/faf-token/technical-architecture-of-staking.md)
- [Technical Architecture](https://docs.flash.trade/flash-trade/flash-trade-protocol/technical-architecture.md)
- [Pool-to-Peer Mechanism](https://docs.flash.trade/flash-trade/flash-trade-protocol/technical-architecture/pool-to-peer-mechanism.md)
- [Liquidity Providing](https://docs.flash.trade/flash-trade/flash-trade-protocol/technical-architecture/liquidity-providing.md)
- [FLP Tokens](https://docs.flash.trade/flash-trade/flash-trade-protocol/technical-architecture/flp-token.md)
- [FLP](https://docs.flash.trade/flash-trade/flash-trade-protocol/technical-architecture/flp-token/flp.md)
- [sFLP](https://docs.flash.trade/flash-trade/flash-trade-protocol/technical-architecture/flp-token/sflp.md)
- [Contract Address](https://docs.flash.trade/flash-trade/flash-trade-protocol/technical-architecture/flp-token/contract-address.md): Contract addresses for Flash Trade liquidity tokens.
- [Crypto Asset-Backed Pools](https://docs.flash.trade/flash-trade/flash-trade-protocol/technical-architecture/asset-backed-synthetic-trading-and-pools.md)
- [Pricing Engine](https://docs.flash.trade/flash-trade/flash-trade-protocol/technical-architecture/pricing-engine.md): This document outlines our operational guidelines for handling price volatility and wide confidence intervals when utilizing the reported price provided by Pyth as our primary pricing reference.
- [Price Impact Fee](https://docs.flash.trade/flash-trade/flash-trade-protocol/technical-architecture/pricing-engine/price-impact-fee.md)
- [Virtual PNL Delay](https://docs.flash.trade/flash-trade/flash-trade-protocol/technical-architecture/backup-oracle.md)
- [Fee Distribution](https://docs.flash.trade/flash-trade/flash-trade-protocol/technical-architecture/fee-distribution.md)
- [Volatility based fee](https://docs.flash.trade/flash-trade/flash-trade-protocol/technical-architecture/volatility-based-fee.md)
- [Perpetuals Specifications](https://docs.flash.trade/flash-trade/flash-trade-protocol/perpetuals-specifications.md)
- [Market Hours](https://docs.flash.trade/flash-trade/flash-trade-protocol/perpetuals-specifications/market-hours.md)
- [Collateral Specification](https://docs.flash.trade/flash-trade/flash-trade-protocol/perpetuals-specifications/collateral-specification.md)
- [Fees](https://docs.flash.trade/flash-trade/flash-trade-protocol/perpetuals-specifications/fees.md): Flash Trade implements a dynamic fee structure across different asset pools. Understanding these fees is essential for optimizing your trading strategy.
- [Stop Loss/Take Profit Orders](https://docs.flash.trade/flash-trade/flash-trade-protocol/perpetuals-specifications/stop-loss-take-profit-orders.md)
- [Limit Orders](https://docs.flash.trade/flash-trade/flash-trade-protocol/perpetuals-specifications/limit-orders.md)
- [Max Profit](https://docs.flash.trade/flash-trade/flash-trade-protocol/perpetuals-specifications/max-profit.md): Every position has a hard cap on how much profit it can realize. That cap is set when the position opens, based on how much collateral the pool sets aside to pay you out.
- [Liquidation](https://docs.flash.trade/flash-trade/flash-trade-protocol/perpetuals-specifications/liquidation.md)
- [Margin Framework](https://docs.flash.trade/flash-trade/flash-trade-protocol/perpetuals-specifications/margin-framework.md)
- [Build On Flash](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash.md): The Flash Trade API is a REST, MCP, CLI, AI & LLM Integration, SDK, and Partner Referral Program for the Flash Trade perpetuals DEX on Solana.
- [AI & LLM Integration](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/ai-and-llm-integration.md): Give your AI agent full context on the Flash Trade API:
- [Flash Trade V2 API](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2.md): Build on the Flash Trade v2 perpetuals engine — REST + WebSocket.
- [Quickstart](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/quickstart.md): One golden path from an empty wallet to a trade and back to cash.
- [Signing & submitting](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/signing-and-submitting.md): How to decode, sign, and submit the transactions the API builds.
- [Core concepts](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/concepts.md): The mental model behind the API — read before you build.
- [The Basket model](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/concepts/basket-model.md): One account per wallet holds every position and order.
- [Funds lifecycle](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/concepts/funds-lifecycle.md): How collateral moves in and out — deposit, delegate, trade, withdraw.
- [Prices & markets](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/concepts/prices-and-markets.md): Where prices come from and how equity market hours are surfaced.
- [How transactions work](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/concepts/how-transactions-work.md): The build → sign → submit pattern, previews, and error surfaces.
- [Guides](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/guides.md): Task-focused recipes. Each shows the calls that matter and links to the reference for full fields.
- [Set up & fund a wallet](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/guides/set-up-and-fund-a-wallet.md): Get a wallet from zero to trade-ready.
- [Open & close positions](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/guides/open-and-close-positions.md): Open at market or limit, then close fully or partially.
- [Increase, decrease & reverse](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/guides/increase-decrease-and-reverse.md): Resize an open position or flip its direction.
- [Limit orders](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/guides/limit-orders.md): Place, edit, and cancel resting limit orders.
- [Take-profit & stop-loss](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/guides/take-profit-and-stop-loss.md): Attach and manage TP/SL trigger orders.
- [Manage collateral](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/guides/manage-collateral.md): Adjust margin to move leverage and liquidation price.
- [Discover markets & stay current](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/guides/discover-markets-and-stay-current.md)
- [Read positions & orders](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/guides/read-positions-and-orders.md): Read a wallet's positions, orders, and market data over REST.
- [Stream live state](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/guides/stream-live-state.md): Subscribe to a wallet's basket over WebSocket.
- [Preview fees & PnL](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/guides/preview-fees-and-pnl.md): Compute fees, exit fees, TP/SL PnL, and margin changes without a transaction.
- [Withdraw funds](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/guides/withdraw-funds.md): Pull collateral back out with the single-call withdraw flow.
- [API reference](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/reference.md): The canonical, exhaustive reference — one home per endpoint.
- [Conventions](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/reference/conventions.md): Rules shared by every endpoint — base URL, units, errors, enums.
- [Market data](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/reference/market-data.md): Health, tokens, prices, pool stats, and raw on-chain accounts.
- [Account & positions](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/reference/account-and-positions.md): The basket snapshot and the enriched positions / orders reads.
- [Previews](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/reference/previews.md): Read-only quote computations — fees, exit fees, TP/SL PnL, margin.
- [Trading](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/reference/trading.md): Canonical request/response for every trading endpoint.
- [Account & funds](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/reference/account-and-funds.md): Setup, deposit, delegation, and the withdrawal endpoints.
- [WebSocket](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/reference/websocket.md): The owner basket stream — message protocol and metric DTOs.
- [Errors](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/errors.md): HTTP errors, on-chain codes, and how to recover.
- [HTTP errors](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/errors/http-errors.md): HTTP status codes and the two error shapes.
- [On-chain error codes](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/errors/onchain-error-codes.md): Program error codes returned when a submitted transaction fails on-chain.
- [Recovery patterns](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-v2/errors/recovery-patterns.md): Concrete fixes for the most common integration failures.
- [Flash SDK V2](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-sdk-v2.md)
- [Trader Interactions](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-sdk-v2/trader-interactions.md)
- [LP Interactions](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-sdk-v2/lp-interactions.md)
- [Revenue Interactions](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-sdk-v2/revenue-interactions.md): FAF token staking and the three claimable balances it unlocks — staking rewards, protocol revenue share, and referral rebates. This page covers staking, unstaking, and claiming each balance through Fl
- [Dynamic Pool & Token Data](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-sdk-v2/dynamic-pool-and-token-data.md)
- [Partner Referral Program](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/partner-referral-program.md): A referral rebate system that rewards partners, trading interfaces, and integrators who build on Flash by earning rebates from trading activity generated through their builder code.
- [The Flash Beasts](https://docs.flash.trade/flash-trade/flash-trade-protocol/flash-beasts-mechanics.md)
- [On-Chain Address Directory](https://docs.flash.trade/flash-trade/flash-trade-protocol/on-chain-address-directory.md)
- [Verify on Solscan](https://docs.flash.trade/flash-trade/flash-trade-protocol/on-chain-address-directory/verify-on-solscan.md)
- [Pools/LP Token Mints](https://docs.flash.trade/flash-trade/flash-trade-protocol/on-chain-address-directory/pools-lp-token-mints.md)
- [Crypto.1](https://docs.flash.trade/flash-trade/flash-trade-protocol/on-chain-address-directory/pools-lp-token-mints/crypto.1.md)
- [Virtual.1](https://docs.flash.trade/flash-trade/flash-trade-protocol/on-chain-address-directory/pools-lp-token-mints/virtual.1.md)
- [Governance.1](https://docs.flash.trade/flash-trade/flash-trade-protocol/on-chain-address-directory/pools-lp-token-mints/governance.1.md)
- [Community.1](https://docs.flash.trade/flash-trade/flash-trade-protocol/on-chain-address-directory/pools-lp-token-mints/community.1.md)
- [Community.2](https://docs.flash.trade/flash-trade/flash-trade-protocol/on-chain-address-directory/pools-lp-token-mints/community.2.md)
- [Trump.1](https://docs.flash.trade/flash-trade/flash-trade-protocol/on-chain-address-directory/pools-lp-token-mints/trump.1.md)
- [Equity.1](https://docs.flash.trade/flash-trade/flash-trade-protocol/on-chain-address-directory/pools-lp-token-mints/equity.1.md)
- [FAQs](https://docs.flash.trade/flash-trade/resources/flash-trade.md)
- [Audits](https://docs.flash.trade/flash-trade/resources/security.md)
- [Terms of Service](https://docs.flash.trade/flash-trade/resources/terms-of-service.md)
- [Weekly Rewards](https://docs.flash.trade/flash-trade/resources/weekly-rewards.md)
- [Making Your First Trade](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/making-your-first-trade.md): This guide walks you through placing your first trade on Flash Trade, covering all essential features and risk management tools.
- [How to Claim Epoch Rewards](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/how-to-claim-epoch-rewards.md)
- [FAF Rewards System](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/voltage-points-and-faf-rewards-system.md)
- [How to Swap Tokens](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/how-to-swap-tokens.md): Flash Trade's integrated swap functionality allows you to exchange tokens directly within the platform, making it easy to acquire the assets you need for trading and liquidity provision.
- [Reward, Utility & Governance](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/reward-utility-and-governance.md)
- [Flash Trade API](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/flash-trade-api.md): The Flash Trade API is a REST for the Flash Trade perpetuals DEX on Solana.
- [Flash Trade V1](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/flash-trade-api/flash-trade-v1.md)
- [Endpoints Overview](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/flash-trade-api/flash-trade-v1/endpoints-overview.md)
- [Transaction Builder](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/flash-trade-api/flash-trade-v1/transaction-builder.md)
- [Error Handling](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/flash-trade-api/flash-trade-v1/error-handling.md)
- [Data Formats & Precision](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/flash-trade-api/flash-trade-v1/data-formats-and-precision.md)
- [Flash Trade MCP](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/flash-trade-mcp.md): Give AI agents direct access to Flash Trade — market data, trade previews, position management, and transaction building through natural language.
- [Flash Trade CLI](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/flash-trade-cli.md): Trade on Flash Trade directly from your terminal — open positions, manage orders, provide liquidity, and check prices without touching a browser.
- [Flash SDK](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/flash-sdk.md)
- [Trader Interactions](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/flash-sdk/trader-interactions.md)
- [LP Interactions](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/flash-sdk/lp-interactions.md)
- [Revenue Interactions](https://docs.flash.trade/flash-trade/flash-trade-v1-deprecated/flash-sdk/revenue-interactions.md): A slice of protocol fees is distributed to wallets that have FAF staked. This page shows how to read a wallet's claimable USDC balance and submit the on-chain claim.


---

# 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.flash.trade/flash-trade/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.
