public void ReturnsCorrectBrokerageSymbol(string leanTicker, string market, string coinApiSymbolId) { var mapper = new CoinApiSymbolMapper(); var symbol = Symbol.Create(leanTicker, SecurityType.Crypto, market); var symbolId = mapper.GetBrokerageSymbol(symbol); Assert.AreEqual(coinApiSymbolId, symbolId); }
public void ReturnsCorrectBrokerageSymbol() { var symbol = Symbol.Create("QTMUSD", SecurityType.Crypto, Market.Bitfinex); var mapper = new CoinApiSymbolMapper(); var symbolId = mapper.GetBrokerageSymbol(symbol); Assert.AreEqual("BITFINEX_SPOT_QTUM_USD", symbolId); }