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§
- send_
auth_ request - Sends an authentication request using client_signature grant type.
- spawn_
token_ refresh_ task - Spawns a background task to refresh the authentication token before it expires.