Skip to main content

Module auth

Module auth 

Source
Expand description

Authentication state and token refresh for Deribit WebSocket connections.

Structs§

AuthState
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.