API Connection and Hash Manager
More...
API Connection and Hash Manager
Definition at line 29 of file ApiConnection.cs.
◆ ApiConnection()
QuantConnect.Api.ApiConnection.ApiConnection |
( |
int |
userId, |
|
|
string |
token |
|
) |
| |
Create a new Api Connection Class.
- Parameters
-
userId | User Id number from QuantConnect.com account. Found at www.quantconnect.com/account |
token | Access token for the QuantConnect account. Found at www.quantconnect.com/account |
Definition at line 49 of file ApiConnection.cs.
◆ TryRequest< T >()
bool QuantConnect.Api.ApiConnection.TryRequest< T > |
( |
RestRequest |
request, |
|
|
out T |
result |
|
) |
| |
Place a secure request and get back an object of type T.
- Template Parameters
-
- Parameters
-
request | |
result | Result object from the |
- Returns
- T typed object response
Definition at line 80 of file ApiConnection.cs.
◆ TryRequestAsync< T >()
async Task<Tuple<bool, T> > QuantConnect.Api.ApiConnection.TryRequestAsync< T > |
( |
RestRequest |
request | ) |
|
Place a secure request and get back an object of type T.
- Template Parameters
-
- Parameters
-
- Returns
- T typed object response
Definition at line 94 of file ApiConnection.cs.
◆ Client
RestClient QuantConnect.Api.ApiConnection.Client |
|
getset |
◆ Connected
bool QuantConnect.Api.ApiConnection.Connected |
|
get |
The documentation for this class was generated from the following file: