Skip to main content

The unofficial Deribit API SDK, by Tribulnation. Compatible with Trading SDK.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deribit_trading_sdk-0.1.3.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deribit_trading_sdk-0.1.3-py3-none-any.whl (74.7 kB view details)

Uploaded Python 3

File details

Details for the file deribit_trading_sdk-0.1.3.tar.gz.

File metadata

  • Download URL: deribit_trading_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for deribit_trading_sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c2787abb6502e59af9f6dbb11c80315c48ed3e2c652b5caeadfd10eb81f11a1c
MD5 1e9987ec9bb3cb176f109368312ca420
BLAKE2b-256 06165fb9d511a4b7f7cfd731fa80a2c08b3affb2c8275ca97647873a35e85f42

See more details on using hashes here.

File details

Details for the file deribit_trading_sdk-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for deribit_trading_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9e9662e270ca193036bfe2f6e6b2e49cc73ca029cbe5388708b084a926ad1a82
MD5 26ce8c883c4bae996a845fa94c51c6fb
BLAKE2b-256 67f2e18b68c20feeb5c76125ae44a5c23bb28b543dff2239ec75a94ee9d20caf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page