- JSON-RPC over WebSocket (recommended) - Real-time, bidirectional communication
- JSON-RPC over HTTP - Simple REST-like interface
- FIX API - Financial Information eXchange protocol for institutional trading
All examples in this documentation use the test environment (
test.deribit.com). To use production, change the URLs to www.deribit.com. Test and production environments are separate and require different accounts and API keys.1
Get API Credentials
- Log in to your Deribit account at www.deribit.com or test.deribit.com for testing
- Navigate to Account → API
- Create a new API key with appropriate permissions
- Save your Client ID and Client Secret securely
Creating API Keys
Step-by-step guide to creating API keys
Asymmetric API Keys
Using Ed25519 or RSA key pairs for enhanced security
2
Choose Your Interface
3
Authenticate
For private methods, you need to authenticate. Deribit supports multiple authentication methods:Response:
- Client Credentials - Standard OAuth 2.0 flow
- Client Signature - User generated signature
- Refresh Token - Token renewal
- HTTP Authentication
- WebSocket Authentication
Access Scopes
Learn more about API permissions and access scopes
4
Make Your First Requests
- Public Data (No Auth)
- Private Data (Auth Required)
- WebSocket Subscriptions
Get Market Data
5
Place a Test Order (Testnet Only)
- HTTP
- WebSocket