Solaris AISolaris AI FlowDocs
Node ReferenceDeFi

Drift

Perpetuals markets, funding rates, candles, and positions via Drift.

View as Markdown

Drift is Solana's leading perpetuals exchange. The Drift node provides market data, funding rates, candlestick charts, orderbooks, and user position tracking.

Prerequisites

No credential required. All operations use Drift's public data API.

Operations

OperationDescriptionKey inputs
getMarketsList all markets(none)
getMarketPricesGet current market prices(none)
getMarketVolumeGet market volume across Driftinterval
getFundingRatesGet current funding rates(none)
getMarketFundingHistoryGet historical funding datamarketSymbol, limit
getMarketCandlesGet OHLCV candlestick datamarketSymbol, resolution, limit
getMarketTradesGet recent tradesmarketSymbol, limit
getOrderBookGet orderbook depthmarketSymbol, depth
getUserPositionsGet a user's open positionswalletAddress

Configuration

FieldTypeRequiredDescription
marketSymbolstringFor funding history, candles, trades, and orderbookMarket symbol (e.g., SOL-PERP, BTC-PERP, SOL)
walletAddressstringFor getUserPositionsWallet address to check
resolutionstringNoCandle resolution: 1, 5, 15, 60, 240, D, or W
intervalstringNoVolume interval: 1h, 24h, or 30d
depthnumberNoOrderbook depth (default: 10, max: 50)
limitnumberNoResults limit for funding history, candles, and trades

Output

All operations return the standard envelope:

{
  "success": true,
  "operation": "getMarketPrices",
  "data": { /* raw Drift response */ }
}

Reference fields downstream with the response name (default driftResponse), for example {driftResponse.data["SOL-PERP"].price} for a price map or {driftResponse.data.fundingRate} for funding data.

Common use cases

  • Monitor funding rates to find arbitrage opportunities
  • Track perpetual market prices alongside spot (via Birdeye/Jupiter)
  • Alert on large trades or position changes

Next steps

  • Jupiter - spot trading and swaps
  • Pyth - oracle price feeds for the same markets

On this page