You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Refactor ApiClient to use HttpClient
* Minor fix
* Refactor and cleanup in ApiConnection
* Add normalized extension methods for string and stream json serialization
* Minor fixes
* Address peer review
* Minor fixes
* Minor fixes and peer review
* Race condition fix
* Minor changes
* Cleanup
* Minor fixes
* Minor fix
/// <param name="resolution">The <see cref="Resolution"/> of market data, Tick, Second, Minute, Hour, or Daily. Default is <see cref="Resolution.Minute"/></param>
2487
-
/// <param name="market">The foreign exchange trading market, <seealso cref="Market"/>. Default value is null and looked up using <see cref="IBrokerageModel.DefaultMarkets"> in <see cref="AddSecurity{T}"/></param>
2487
+
/// <param name="market">The foreign exchange trading market, <seealso cref="Market"/>. Default value is null and looked up using <see cref="IBrokerageModel.DefaultMarkets" /> in <see cref="AddSecurity{T}"/></param>
2488
2488
/// <param name="fillForward">If true, returns the last available data even if none in that timeslice. Default is <value>true</value></param>
2489
2489
/// <param name="leverage">The requested leverage for this forex security. Default is set by <see cref="SecurityInitializer"/></param>
2490
2490
/// <returns>The new <see cref="Forex"/> security</returns>
@@ -2499,7 +2499,7 @@ public Forex AddForex(string ticker, Resolution? resolution = null, string marke
/// <param name="resolution">The <see cref="Resolution"/> of market data, Tick, Second, Minute, Hour, or Daily. Default is <see cref="Resolution.Minute"/></param>
2502
-
/// <param name="market">The cfd trading market, <seealso cref="Market"/>. Default value is null and looked up using <see cref="IBrokerageModel.DefaultMarkets"> in <see cref="AddSecurity{T}"/></param>
2502
+
/// <param name="market">The cfd trading market, <seealso cref="Market"/>. Default value is null and looked up using <see cref="IBrokerageModel.DefaultMarkets"/> in <see cref="AddSecurity{T}"/></param>
2503
2503
/// <param name="fillForward">If true, returns the last available data even if none in that timeslice. Default is <value>true</value></param>
2504
2504
/// <param name="leverage">The requested leverage for this CFD. Default is set by <see cref="SecurityInitializer"/></param>
2505
2505
/// <returns>The new <see cref="Cfd"/> security</returns>
@@ -2530,7 +2530,7 @@ public Index AddIndex(string ticker, Resolution? resolution = null, string marke
/// <param name="resolution">The <see cref="Resolution"/> of market data, Tick, Second, Minute, Hour, or Daily. Default is <see cref="Resolution.Minute"/></param>
2533
-
/// <param name="market">The The crypto trading market, <seealso cref="Market"/>. Default value is null and looked up using <see cref="IBrokerageModel.DefaultMarkets"> in <see cref="AddSecurity{T}"/></param>
2533
+
/// <param name="market">The The crypto trading market, <seealso cref="Market"/>. Default value is null and looked up using <see cref="IBrokerageModel.DefaultMarkets"/> in <see cref="AddSecurity{T}"/></param>
2534
2534
/// <param name="fillForward">If true, returns the last available data even if none in that timeslice. Default is <value>true</value></param>
2535
2535
/// <param name="leverage">The requested leverage for this crypto. Default is set by <see cref="SecurityInitializer"/></param>
2536
2536
/// <returns>The new <see cref="Crypto"/> security</returns>
@@ -2545,7 +2545,7 @@ public Crypto AddCrypto(string ticker, Resolution? resolution = null, string mar
/// <param name="resolution">The <see cref="Resolution"/> of market data, Tick, Second, Minute, Hour, or Daily. Default is <see cref="Resolution.Minute"/></param>
2548
-
/// <param name="market">The The crypto future trading market, <seealso cref="Market"/>. Default value is null and looked up using <see cref="IBrokerageModel.DefaultMarkets"> in <see cref="AddSecurity{T}"/></param>
2548
+
/// <param name="market">The The crypto future trading market, <seealso cref="Market"/>. Default value is null and looked up using <see cref="IBrokerageModel.DefaultMarkets"/> in <see cref="AddSecurity{T}"/></param>
2549
2549
/// <param name="fillForward">If true, returns the last available data even if none in that timeslice. Default is <value>true</value></param>
2550
2550
/// <param name="leverage">The requested leverage for this crypto future. Default is set by <see cref="SecurityInitializer"/></param>
2551
2551
/// <returns>The new <see cref="CryptoFuture"/> security</returns>
[Obsolete("RestSharp is deprecated and will be removed in a future release. Please use the SetClient method or the request methods that take an HttpRequestMessage")]
36
44
publicRestClientClient{get;set;}
37
45
38
46
// Authorization Credentials
@@ -46,11 +54,14 @@ public class ApiConnection
46
54
/// </summary>
47
55
/// <param name="userId">User Id number from QuantConnect.com account. Found at www.quantconnect.com/account </param>
48
56
/// <param name="token">Access token for the QuantConnect account. Found at www.quantconnect.com/account </param>
49
-
publicApiConnection(intuserId,stringtoken)
57
+
/// <param name="baseUrl">The client's base address</param>
58
+
/// <param name="defaultHeaders">Default headers for the client</param>
59
+
/// <param name="timeout">The client timeout in seconds</param>
0 commit comments