Flash Trade V2

Developer documentation for the Flash Trade v2 API — the Flash perpetuals engine with near-instant, gasless execution. All endpoints are under the /v2 path prefix.

What's different from v1

  • One account per wallet. All positions and orders live in a single per-owner Basket (one position per market) — no standalone Position/Order accounts. Identify a position with (owner, marketSymbol, side).

  • Funds lifecycle. Funds move through deposit → delegate → trade → withdraw. Account & funds calls submit to your Solana RPC; trading calls submit to the v2 RPC endpoint.

  • Streaming. A wallet's state streams as a basket snapshot (raw bytes + metrics) rather than separate positions/orders arrays.

See ProtocolConcepts for the full conceptual model.

Start here

Doc
What it covers

The v2 model: baskets, deposit ledger, delegation, withdrawal lifecycle

Every /v2 endpoint with request/response schemas

End-to-end: set up → deposit → delegate → trade → withdraw

The basket snapshot, basket/metrics messages, connection behavior

HTTP + on-chain errors and v2-specific recovery

Integration setup and transaction-building cookbooks

Quick check

curl $FLASH_API_URL/v2/health
curl $FLASH_API_URL/v2/tokens
curl $FLASH_API_URL/v2/prices

Last updated

Was this helpful?