drift

Execute trades and manage positions on Drift Protocol via Solana.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/shreed27/DAIN --skill drift-shreed27
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drift
Source: https://github.com/shreed27/DAIN/tree/main/CloddsBot-main/src/skills/bundled/drift
Command: npx skills add https://github.com/shreed27/DAIN --skill drift-shreed27

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @drift-labs/sdk, ../../../solana/wallet, ../../../solana/drift, and includes scripts (resource) components.

What problem does it solve?

This Skill allows users to interact with the Drift Protocol on Solana for trading perpetual futures and prediction markets, automating complex financial operations without manual intervention.

Core Features & Use Cases

  • Execute Trades: Open long/short positions, set limit orders, and close existing positions.
  • Manage Positions: View open positions, orders, and account balances.
  • Risk Management: Set leverage and check account health for liquidation risk.
  • Use Case: A user can quickly open a long position on SOL-PERP with a specific size and leverage, or check their current open positions and unrealized PnL.

Quick Start

Use the drift skill to open a long position on SOL-PERP with a size of 0.5.

Frequently Asked Questions about drift

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

FAQPage Schema
How do I trade Solana perpetual futures programmatically?

To trade Solana perpetual futures programmatically, you can use this Skill to execute orders, open long and short positions, and manage account balances directly through the Drift Protocol on Solana.

Can I manage open positions and check liquidation risk on Drift Protocol?

Yes, you can manage open positions and check liquidation risk on Drift Protocol by viewing your unrealized PnL, monitoring account health, and adjusting leverage settings programmatically.

Do I need a Solana private key to execute trades on prediction markets?

Yes, you need a Solana private key configured for authenticated operations to execute trades, manage positions, and interact with prediction markets on the Drift Protocol.

How do I open a long position on SOL-PERP with specific leverage?

You can open a long position on SOL-PERP with specific leverage by issuing a programmatic command through this Skill, specifying the desired size and leverage parameters for order execution.

What is the best way to automate Drift Protocol order execution?

The best way to automate Drift Protocol order execution is using this Skill to programmatically set limit orders, close existing positions, and monitor account balances without manual intervention.

Does this approach work for both perpetual futures and prediction markets on Solana?

Yes, this approach works for both perpetual futures and prediction markets on Solana, facilitating direct interaction with the Drift Protocol for order execution and position management across both asset types.