drift

Build and automate trading strategies on Solana using the Drift Protocol SDK.

125|79|Updated Jan 12, 2026
One-click install
npx skills add https://github.com/sendaifun/skills --skill drift
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drift
Source: https://github.com/sendaifun/skills/tree/main/skills/drift
Command: npx skills add https://github.com/sendaifun/skills --skill drift

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires .

What problem does it solve?

Drift enables developers to quickly build and deploy automated trading experiences on Solana by providing a unified SDK to access perpetual futures, spot markets, and vaults, reducing integration overhead and enabling rapid iteration.

Core Features & Use Cases

  • Comprehensive Drift Protocol SDK access for Perp, Spot, and Vaults to build trading bots, dashboards, or risk tooling.
  • Integrate Drift markets into your app for order placement, position management, and PnL tracking across multiple markets.
  • Use with examples and templates to accelerate development of automated strategies, backtests, and live trading workflows.

Quick Start

  1. Install drift modules and set up a development environment.
  2. Initialize DriftClient with your Solana connection and wallet, subscribe to accounts, and load market data.
  3. Build and run a simple strategy that places orders around current oracle prices and tracks PnL.

Frequently Asked Questions about drift

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build automated trading bots for perpetual futures on Solana?

To build automated trading bots for perpetual futures on Solana, initialize DriftClient with your wallet and connection, subscribe to market accounts, then implement order placement and PnL tracking strategies using the Drift SDK APIs.

What can I do with the Drift Protocol SDK for Solana trading?

The Drift Protocol SDK enables access to perpetual futures, spot trading, and vaults on Solana, allowing you to place orders, manage positions and collateral, track PnL, and orchestrate vault-based strategies across multiple markets.

Can I manage spot trading positions and collateral using the Drift SDK?

Yes, you can manage spot trading positions and collateral using the Drift SDK by utilizing DriftClient methods to handle token operations, account management, and position tracking across Drift's spot markets.

Do I need TypeScript or Python to automate Drift trading strategies?

You need familiarity with either TypeScript/JavaScript or Python to automate Drift trading strategies, as the skill utilizes Drift SDK APIs, market data models, and account management patterns from these environments.

What's the best way to track PnL and oracle prices for Solana perpetual futures?

The best way to track PnL and oracle prices for Solana perpetual futures is loading market data via DriftClient, subscribing to market accounts, and calculating PnL using the Drift SDK's built-in market data models and account management patterns.