원클릭으로
drift-sdk
Drift Protocol perpetual futures trading on Solana (direct SDK)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Drift Protocol perpetual futures trading on Solana (direct SDK)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Trade crypto binary markets on Polymarket with 4 automated strategies. Support: 5-min BTC, 15-min/1h/4h/daily all assets (BTC, ETH, SOL, XRP)
Dollar-cost averaging across all platforms
Hyperliquid L1 perps DEX (69% market share)
Local hybrid search for markdown notes and docs. Use when searching notes, finding related content, or retrieving documents from indexed collections.
Trade perpetual futures on Binance, Bybit, Hyperliquid, MEXC with up to 200x leverage
Execute trades on Polymarket using py_clob_client - full API access for market data, orders, positions
| name | drift-sdk |
| description | Drift Protocol perpetual futures trading on Solana (direct SDK) |
| emoji | 🌊 |
| commands | ["/drift"] |
| gates | {"envs":["DRIFT_PRIVATE_KEY"]} |
Direct SDK-based trading on Drift Protocol, Solana's leading perpetual futures DEX. Bypass the gateway requirement with native SDK integration.
# Set credentials
export DRIFT_PRIVATE_KEY="your-solana-private-key"
export SOLANA_RPC_URL="https://api.mainnet-beta.solana.com"
# Check balance
/drift balance
# Open a position
/drift long BTC 0.1
/drift short ETH 1 2500
# Close position
/drift close BTC
| Command | Description |
|---|---|
/drift long <coin> <size> [price] | Open long position |
/drift short <coin> <size> [price] | Open short position |
/drift close <coin> | Close position at market |
/drift closeall | Close all positions |
/drift leverage <coin> <1-20> | Set leverage |
Examples:
/drift long BTC 0.1 # Market buy 0.1 BTC
/drift short ETH 1 2500 # Limit sell 1 ETH at $2500
/drift leverage SOL 5 # Set SOL leverage to 5x
| Command | Description |
|---|---|
/drift orders | List open orders |
/drift cancel <orderId> | Cancel order by ID |
/drift cancel <coin> | Cancel all orders for coin |
/drift cancelall | Cancel all orders |
/drift modify <orderId> [price] [size] | Modify order |
| Command | Description |
|---|---|
/drift balance | Collateral, margin, health factor |
/drift positions | Open positions with PnL |
# Required
export DRIFT_PRIVATE_KEY="base58_or_json_array"
# Optional
export SOLANA_RPC_URL="https://api.mainnet-beta.solana.com"
export DRY_RUN=true # Test mode
| Market | Index | Max Leverage |
|---|---|---|
| BTC-PERP | 0 | 20x |
| ETH-PERP | 1 | 20x |
| SOL-PERP | 2 | 20x |
| ... | ... | ... |