drift

Community

Trade perpetuals and spot on Solana.

Author0xinit
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a comprehensive SDK for interacting with the Drift Protocol, a decentralized exchange on Solana, enabling programmatic trading of perpetual futures and spot assets.

Core Features & Use Cases

  • Perpetual Futures Trading: Place market, limit, stop-loss, and take-profit orders with leverage.
  • Spot Trading: Execute direct token swaps and manage spot positions.
  • Collateral Management: Deposit, withdraw, and manage collateral across different assets.
  • Use Case: Build an automated trading bot that monitors market conditions and executes trades on Drift Protocol based on predefined strategies, or integrate Drift's trading capabilities into a DeFi dashboard.

Quick Start

Use the drift skill to place a limit order to buy 1 SOL on the SOL-PERP market at $100.

Dependency Matrix

Required Modules

@drift-labs/sdk@solana/web3.js@coral-xyz/anchorbn.js

Components

scriptsreferencesdocstemplates

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: drift
Download link: https://github.com/0xinit/cryptoskills/archive/main.zip#drift

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.