public ExchangeSharpApi(ExchangeSet exchangeSet = ExchangeSet.Primary) { if (exchangeSet == ExchangeSet.Primary) { m_apiMap = GetPrimaryExchangeApis(); } else { m_apiMap = GetAllExchangeApis(); } m_tickers = new ConcurrentDictionary <string, ConcurrentDictionary <string, ConcurrentStack <ExchangeTicker> > >(); }
// where encryptedFile is the full pathname of the encrypted CSV file like "/Users/david/Documents/myapis.csv.enc" // where password is 8-char password like "12345678" public ExchangeSharpApi(string encryptedFile, string password, ExchangeSet exchangeSet = ExchangeSet.Primary) : this(exchangeSet) { LoadCredentials(encryptedFile, password); //m_apiMap = GetAllExchangeApis(); //m_apiMap = GetPrimaryExchangeApis(); }