Skip to content

TokenCredentials

QuantConnect.Brokerages.Authentication.TokenCredentials

TokenCredentials(token_type: TokenType, access_token: str)

Bases: Object

Represents credentials required for token-based authentication, including the access token and its type (e.g., Bearer).

Initializes a new instance of the TokenCredentials class.

Parameters:

Name Type Description Default
token_type TokenType

The type of the token.

required
access_token str

The token string.

required

token_type

token_type: TokenType

Gets the type of the token (e.g., Bearer).

access_token

access_token: str

Gets the token string used for authentication.