For the complete documentation index, see llms.txt. This page is also available as Markdown.

Read positions & orders

Read a wallet's positions, orders, and market data over REST.

A wallet's positions and orders live in its basket. Read them enriched (UI-ready PnL, leverage, liquidation price) — keyed by market pubkey.

Positions

curl $FLASH_API_URL/positions/owner/<WALLET>

Each entry includes sideUi, marketSymbol, entryPriceUi, sizeUsdUi, collateralUsdUi, pnlWithFeeUsdUi, pnlPercentageWithFee, liquidationPriceUi, leverageUi, and more.

Orders

curl $FLASH_API_URL/orders/owner/<WALLET>

Each entry has limitOrders[], takeProfitOrders[], stopLossOrders[] — with trigger price, size, orderId, and leverage.

Full basket snapshot

For both at once (plus the raw basket bytes), use the snapshot:

curl $FLASH_API_URL/owner/<WALLET>

API reference › Account & positions

Market data

curl $FLASH_API_URL/prices/SOL          # single price
curl $FLASH_API_URL/prices              # all prices
curl $FLASH_API_URL/tokens              # supported tokens
curl $FLASH_API_URL/pool-data           # AUM, utilization, LP price
curl $FLASH_API_URL/raw/markets         # raw market accounts

API reference › Market data

Polling vs. streaming

REST reads are on-demand snapshots. For live PnL/liquidation updates, subscribe once instead of polling → Stream live state.

Last updated

Was this helpful?