# Definitive Flash API - [Overview](https://flash.definitive.fi/docs/index.md): The Advanced Trading API for AI agents and builders. One API. Every order type. EVM and Solana. - [Become an Integrator](https://flash.definitive.fi/docs/getting-started.md): Create a Flash API key and make your first request. - [Monetize Your Integration](https://flash.definitive.fi/docs/monetizing-your-integration.md): Collect fees on every trade executed through Flash. Set your rate, attach your wallets, and start earning. - [Non-Custodial](https://flash.definitive.fi/docs/non-custodial.md): Definitive Flash API never takes custody of your users' funds, even for conditional trade orders. Here is how advanced orders work on Flash while remaining fully non-custodial. - [Security & Audits](https://flash.definitive.fi/docs/security.md): Security measures, audits, and how Flash's trade engine protects your assets and trade execution - [FAQ](https://flash.definitive.fi/docs/faq.md): Frequently asked questions about Flash API. Custody, order types, MEV protection, smart wallets, and more. - [EVM Overview](https://flash.definitive.fi/docs/evm-overview.md): How quoting, routing, token approvals, and signing work for Flash orders on EVM chains. - [Solana Overview](https://flash.definitive.fi/docs/solana-overview.md): How quoting, routing, delegation, and signing work for Flash orders on Solana. - [Minimal authorization](https://flash.definitive.fi/docs/minimal-authorization.md): Bound spending amounts and new Permit2 permit durations to your orders, with a 24-hour expiration buffer. - [Placing Orders](https://flash.definitive.fi/docs/placing-orders.md): How Flash API defines trading pairs and order parameters using the target/contra convention. - [Cross-Chain Orders](https://flash.definitive.fi/docs/crosschain-orders.md): Quote, sign, and submit a cross-chain order with Flash API. - [Updating Orders](https://flash.definitive.fi/docs/updating-orders.md): How to change the limit price or trigger price of a resting Flash order by signing an update message with the funder wallet. - [Cancelling Orders](https://flash.definitive.fi/docs/cancelling-orders.md): How to cancel open Flash orders, one at a time or in a batch, by signing a cancel message with the funder wallet. - [Post-Trade Reporting](https://flash.definitive.fi/docs/post-trade-reporting.md): Pull execution reports from the Get Order endpoint to build post-trade dashboards, reconcile fee revenue, and measure execution quality. - [Resources](https://flash.definitive.fi/docs/resources.md): Live status and dashboards for monitoring your Flash integration. - [Supported Chains](https://flash.definitive.fi/docs/supported-chains.md): Chains supported for Definitive Flash API - [Rate Limits](https://flash.definitive.fi/docs/rate-limits.md): REST and WebSocket rate limits, and 429 response behavior. - [Order Statuses](https://flash.definitive.fi/docs/order-statuses.md): The order statuses returned by Flash, which ones are cancellable, how orders transition between them, and the reason codes for cancelled or rejected orders. - [QuickTrade](https://flash.definitive.fi/docs/quicktrade.md): QuickTrade is a low-latency execution mode for market orders, built for entering fast-moving and newly launched tokens. It trades fresh quoting for speed by reusing pre-computed quotes and prioritizing execution to land the fill. - [Error Codes](https://flash.definitive.fi/docs/error-codes.md): HTTP status codes returned by the Flash API and the error response shape. - [AI Integration](https://flash.definitive.fi/docs/for-agents.md): Everything an AI agent needs to start trading with the Flash API. - [Flash MCP server](https://flash.definitive.fi/docs/flash-mcp.md): Trade on Flash from any MCP client (Claude Code, Claude Desktop, Cursor, Codex) with the open-source @definitive-fi/flash-mcp server. It handles the full quote → sign → submit → poll flow for EVM and Solana. - [Market Order](https://flash.definitive.fi/docs/market-order.md): End-to-end market order on EVM and Solana. Quote, sign, and submit with runnable TypeScript. - [Limit Order](https://flash.definitive.fi/docs/limit-order.md): End-to-end limit order on EVM and Solana. Quote, sign, and submit with runnable TypeScript. - [TWAP Order](https://flash.definitive.fi/docs/twap-order.md): End-to-end TWAP order on EVM and Solana. Quote, sign, and submit with runnable TypeScript. - [Trigger Orders](https://flash.definitive.fi/docs/trigger-orders.md): End-to-end stop, stop-loss, and take-profit orders on EVM and Solana with runnable TypeScript. - [Bracket Orders](https://flash.definitive.fi/docs/brackets.md): Attach a take-profit / stop-loss pair to a market, limit, or TWAP order in one quote, sign, and submit flow. - [Get a quote](https://flash.definitive.fi/docs/api-reference/flash/quote.md): Request a quote for a Flash swap. Returns pricing, fee breakdown, asset amounts, market quality indicators, and source-chain signing actions. Cross-chain market orders are supported by setting `targetChain` and `contraChain` to different values and providing `recipientAddress`. Same-chain quotes for… - [Submit an order](https://flash.definitive.fi/docs/api-reference/flash/order.md): Submit a flash order for MEV-protected execution. - [List orders](https://flash.definitive.fi/docs/api-reference/flash/list-orders.md): List Flash orders for a funder, most recent first. Returns up to `pageSize` orders per page; pass `nextPageToken` back as `pageToken` to fetch the next page. - [Get order detail](https://flash.definitive.fi/docs/api-reference/flash/get-order.md): Fetch a single Flash order with its execution fills. - [Update an order](https://flash.definitive.fi/docs/api-reference/flash/update.md): Update a previously submitted flash order's limit price and/or trigger price. - [Cancel an order](https://flash.definitive.fi/docs/api-reference/flash/cancel.md): Cancel a previously submitted flash order. - [Cancel orders in batch](https://flash.definitive.fi/docs/api-reference/flash/batch-cancel.md): Cancel up to 25 flash orders with one funder signature. Returns 200 with one result per order id, in request order; partial success is reported per order, never as a whole-call failure. - [Search assets](https://flash.definitive.fi/docs/api-reference/flash/search.md): Search tradable assets by symbol, name, or contract address. - [Get wallet balances](https://flash.definitive.fi/docs/api-reference/flash/balances.md): Fetch the token balances a wallet holds as a flat array, with `chain` on every row. - [Submit a setup transaction](https://flash.definitive.fi/docs/api-reference/flash/setup-transaction.md): Broadcast a funder-signed pre-trade setup transaction from `QuoteResponse.setupTxs` — no RPC provider needed. `status: "pending"` means broadcast but not yet confirmed, which is normal on slower chains: poll the transaction you signed rather than re-signing it. A `FAILED_PRECONDITION` error means th… - [Connection](https://flash.definitive.fi/docs/api-reference/flash/websocket-connection.md): One WebSocket connection for everything Flash streams: how to connect, authenticate, multiplex channels, detect a dead connection with heartbeats, and handle connection-level errors. - [Orders](https://flash.definitive.fi/docs/api-reference/flash/websocket-orders.md): Stream open orders in real time, for one funder or every funder in your org: a snapshot on subscribe, then live updates as orders change and new ones are placed. - [Quotes](https://flash.definitive.fi/docs/api-reference/flash/websocket-quotes.md): Stream live market-order quotes: subscribe once with a quote request, then receive a revised quote every time pricing moves, until you submit or the session expires. - [Changelog](https://flash.definitive.fi/docs/changelog.md): New features, improvements, and updates to the Flash API. ## OpenAPI Specs - [openapi](https://flash.definitive.fi/v1/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.