Expand description
Authentication state and token refresh for Deribit WebSocket connections.
Structs§
- Auth
State - Authentication state storing OAuth tokens.
Constants§
- DERIBIT_
DATA_ SESSION_ NAME - Session name for Deribit WebSocket data client authentication.
- DERIBIT_
EXECUTION_ SESSION_ NAME - Session name for Deribit WebSocket execution client authentication.
Functions§
- refresh_
token_ after_ delay - Refreshes the authentication token after 80% of its lifetime has elapsed.
- send_
auth_ request - Sends an authentication request using client_signature grant type.