/// <summary> /// Initializes a new instance of the <see cref="AlphaStreamRestClient"/> class /// </summary> /// <param name="baseUrl">The base url used for making requests</param> /// <param name="credentials">Credentials used to connect to the alpha streams rest service</param> public AlphaStreamRestClient(string baseUrl, AlphaCredentials credentials) : this(new RestClient(baseUrl ?? DefaultBaseUrl), credentials) { }
/// <summary> /// Initializes a new instance of the <see cref="AlphaStreamRestClient"/> class /// </summary> /// <param name="client">Rest client implementation.</param> /// <param name="credentials">Credentials used to connect to the alpha streams rest service</param> public AlphaStreamRestClient(IRestClient client, AlphaCredentials credentials) { this.client = client; this.credentials = credentials; }
/// <summary> /// Initializes a new instance of the <see cref="AlphaStreamRestClient"/> class /// </summary> /// <param name="credentials">Credentials used to connect to the alpha streams rest service</param> public AlphaStreamRestClient(AlphaCredentials credentials) : this(DefaultBaseUrl, credentials) { }