Expand description
Core constants for the Deribit adapter.
Constants§
- DERIBIT
- Venue identifier string.
- DERIBIT_
ACCOUNT_ RATE_ KEY - Rate limit key for account information endpoints.
- DERIBIT_
API_ PATH - DERIBIT_
API_ VERSION - DERIBIT_
BOOK_ DEFAULT_ DEPTH - Default depth per side for aggregated order book subscriptions.
- DERIBIT_
BOOK_ DEFAULT_ GROUP - Default grouping for aggregated order book subscriptions.
- DERIBIT_
BOOK_ VALID_ DEPTHS - Supported aggregated order book depths for Deribit.
- DERIBIT_
GLOBAL_ RATE_ KEY - Global rate limit key for Deribit HTTP requests.
- DERIBIT_
HTTP_ URL - DERIBIT_
ORDER_ RATE_ KEY - Rate limit key for Deribit order operations (matching engine).
- DERIBIT_
POST_ ONLY_ ERROR_ CODE - Deribit error code for post-only order rejection.
- DERIBIT_
TESTNET_ HTTP_ URL - DERIBIT_
TESTNET_ WS_ URL - DERIBIT_
WS_ HEARTBEAT_ SECS - Default WebSocket heartbeat interval in seconds.
- DERIBIT_
WS_ ORDER_ KEY - Rate limit key for WebSocket order operations.
- DERIBIT_
WS_ SUBSCRIPTION_ KEY - Rate limit key for WebSocket subscriptions.
- DERIBIT_
WS_ URL - JSONRPC_
VERSION
Statics§
- DERIBIT_
HTTP_ ACCOUNT_ QUOTA - Conservative rate limit for account information endpoints.
- DERIBIT_
HTTP_ ORDER_ QUOTA - Deribit matching engine (order operations) rate limit.
- DERIBIT_
HTTP_ REST_ QUOTA - Default Deribit REST API rate limit: 20 requests per second sustained.
- DERIBIT_
RATE_ LIMIT_ KEY_ ORDER - Pre-interned rate limit key for WebSocket order operations.
- DERIBIT_
RETRY_ ERROR_ CODES - Deribit error codes that should trigger retries.
- DERIBIT_
VENUE - Static venue instance.
- DERIBIT_
WS_ ORDER_ QUOTA - Deribit WebSocket order rate limit: 5 requests per second with 20 burst.
- DERIBIT_
WS_ SUBSCRIPTION_ QUOTA - Deribit WebSocket subscription rate limit.
Functions§
- should_
retry_ error_ code - Determines if a Deribit error code should trigger a retry.