Exemple #1
0
        protected FavouriteExchangesClient(ClientConfigurator clientConfigurator)
        {
            ApiConfiguration = clientConfigurator.ApiConfiguration;
            Top12ExchangeIds = ApiConfiguration.FavouriteExchanges?.Count > 0
                ? ApiConfiguration.FavouriteExchanges !.AsReadOnly()
                : new List <string>
            {
                "stmp", "btrx", "polo", "krkn", "bfnx", "cbse",
                "itbi", "gmni", "bnce", "bfly", "cflr", "huob"
            }.AsReadOnly();

            Top12ExchangeIdsAsCsv = string.Join(",", Top12ExchangeIds);
        }
 public InstrumentsClient(ClientConfigurator configuration, System.Net.Http.HttpClient httpClient) : base(configuration)
 {
     _httpClient = httpClient;
     _settings   = new System.Lazy <Newtonsoft.Json.JsonSerializerSettings>(CreateSerializerSettings);
 }