Пример #1
0
        public void ReturnsCorrectLeanSymbol(string coinApiSymbolId, string leanTicker, string market)
        {
            var mapper = new CoinApiSymbolMapper();

            var symbol = mapper.GetLeanSymbol(coinApiSymbolId, SecurityType.Crypto, string.Empty);

            Assert.AreEqual(leanTicker, symbol.Value);
            Assert.AreEqual(SecurityType.Crypto, symbol.ID.SecurityType);
            Assert.AreEqual(market, symbol.ID.Market);
        }
        public void ReturnsCorrectLeanSymbol()
        {
            const string symbolId = "BITFINEX_SPOT_ANIO_USD";

            var mapper = new CoinApiSymbolMapper();

            var symbol = mapper.GetLeanSymbol(symbolId, SecurityType.Crypto, string.Empty);

            Assert.AreEqual("NIOUSD", symbol.Value);
            Assert.AreEqual(SecurityType.Crypto, symbol.ID.SecurityType);
            Assert.AreEqual(Market.Bitfinex, symbol.ID.Market);
        }