Skip to content

ApiConnection

QuantConnect.Api.ApiConnection

ApiConnection(user_id: int, token: str)

Bases: Object

API Connection and Hash Manager

Create a new Api Connection Class.

Parameters:

Name Type Description Default
user_id int

User Id number from QuantConnect.com account. Found at www.quantconnect.com/account

required
token str

Access token for the QuantConnect account. Found at www.quantconnect.com/account

required

client

client: Any

Authorized client to use for requests.

connected

connected: bool

Return true if connected successfully.