Deribit Trading SDK
The unofficial, fully-typed async Python SDK for Deribit, by Tribulnation.
Quick Start
from deribit import Deribit
async with Deribit.new(API_KEY, API_SECRET) as client:
result = await client.buy('BTC_USDT', {
'price': '50000',
'quantity': '0.001',
'type': 'LIMIT',
'side': 'BUY',
})
Why Deribit SDK?
- 🚀 Fully Async - Built with
httpxfor high-performance async operations - 🔒 Type Safe - Complete type annotations with
TypedDictandpydanticvalidation - âš¡ Easy to Use - Simple context-managed API with
async with - 📊 Comprehensive - Spot trading, market data, wallet, and WebSocket streams
- 🎯 No Setup Required - Start exploring markets immediately
What's Included
- Market Data - Real-time prices, order books, and historical data
- Spot Trading - Place, cancel, and query orders
- User Data - Account balances, trade history, and order status
- Wallet Operations - Deposits, withdrawals, and address management
- WebSocket Streams - Live market data and user notifications
Next Steps
- Getting Started - Explore markets with real-time data
- API Keys Setup - Set up your MEXC API credentials for trading
- Simple DCA Bot - Start trading in MEXC with a simple DCA bot.
- Hedging Perps - Use real-time streams for automated hedging.