Esempio n. 1
0
        public void CurPair_RequestID()
        {
            CurrencyPair cp    = new CurrencyPair(Currency.EUR, Currency.BCH);
            string       reqID = cp.GetRequestID();
            CurrencyPair cp2   = CurrencyPair.RequestIDToCurrencyPair(reqID);

            Assert.IsTrue(cp.Equals(cp2));
        }
        public static CurrencyPairTimeSeries RequestIDToCurrencyPairTimeSeries(string input)
        {
            string[]     inputs = input.Split(Sep);
            CurrencyPair cp     = CurrencyPair.RequestIDToCurrencyPair(inputs[0]);
            Frequency    freq   = FrequencyMethods.StringToFrequency(inputs[1]);

            return(new CurrencyPairTimeSeries(cp, freq));
        }