Skip to content

AccessTokenMetaDataRequest

QuantConnect.Brokerages.Authentication.AccessTokenMetaDataRequest

AccessTokenMetaDataRequest(brokerage: str, account_id: str)

Bases: Object

Represents the base request for obtaining an access token, including brokerage and account information.

Initializes a new instance of the AccessTokenMetaDataRequest class.

This codeEntityType is protected.

Parameters:

Name Type Description Default
brokerage str

The name of the brokerage making the request. Will be normalized to lowercase.

required
account_id str

The account number or identifier associated with the brokerage.

required

brokerage

brokerage: str

Gets the name of the brokerage associated with the access token request. The value is normalized to lowercase.

account_id

account_id: str

Gets the account identifier (e.g., account number) associated with the brokerage.

to_json

to_json() -> str

Serializes the request into a compact JSON string with camelCase property naming.

Returns:

Type Description
str

A JSON string representing the current request.