Skip to main content

Deribit Trading SDK

The unofficial, fully-typed async Python SDK for Deribit, by Tribulnation.

Python 3.10+ License

Read the docs

Quick Start

pip install deribit-trading-sdk
from deribit import Deribit

async with Deribit.new(API_KEY, API_SECRET) as client:
  candles = await client.buy('BTC_USDT', {
    'price': '50000',
    'quantity': '0.001',
    'type': 'LIMIT',
    'side': 'BUY',
  })

Why Deribit SDK?

  • 🚀 Fully Async - Built with httpx for high-performance async operations
  • 🔒 Type Safe - Complete type annotations with TypedDict and pydantic validation
  • ⚡ 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

Authentication

Get your API keys from the Deribit dashboard.

Or, you can use public methods:

from deribit import MarketData

async with MarketData.new() as client:
  r = await client.get_order_book('BTC_USDC')

Supported APIs

The SDK covers the following Deribit endpoints:

Account

Market Data

Private Subscriptions

Public Subscriptions

Trading

Wallet

Metadata

Release files for deribit-trading-sdk 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deribit-trading-sdk 0.1.8
File Size Uploaded
deribit_trading_sdk-0.1.8.tar.gz 37.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deribit-trading-sdk 0.1.8
File Interpreter ABI Platform
deribit_trading_sdk-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 122.3 kB

Release files / deribit_trading_sdk-0.1.8.tar.gz

Download URL deribit_trading_sdk-0.1.8.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dfaeb58b062c02aa5a533801807699909c5993d903b9839380e189509e35c5ce
BLAKE2b-256 checksum
How to use checksums
6ca182f36fb93fa2af13aae0c7203ca496aba697150c8c51042cea5b676960ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / deribit_trading_sdk-0.1.8-py3-none-any.whl

Download URL deribit_trading_sdk-0.1.8-py3-none-any.whl
Size 84.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cead7109537205aee9b131ce611bfb650c8924bad681fb90f952bf0b8db6dbca
BLAKE2b-256 checksum
How to use checksums
6b77fe97877ffaa26d152008d5a5106b16fff791f9b9fbb2f29e74e1d4846e99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page