private void OnDubiExPriceFound(TradableAsset tradableAsset, decimal?price) { if (!prices.ContainsKey(tradableAsset.AssetSymbol)) { prices.Add(tradableAsset.AssetSymbol, price.Value * prices["ETH"]); } else { prices[tradableAsset.AssetSymbol] = price.Value * prices["ETH"]; } OnPriceUpdateSucceeded?.Invoke(); }
private void OnCoinMarketCapPriceFound(TradableAsset tradableAsset, decimal?price) { if (!prices.ContainsKey(tradableAsset.AssetSymbol)) { prices.Add(tradableAsset.AssetSymbol, price.Value); } else { prices[tradableAsset.AssetSymbol] = price.Value; } OnPriceUpdateSucceeded?.Invoke(); }