Esempio n. 1
0
 public static double?GetPrice(this MarketProfile marketProfile, string assetPairId, OrderAction orderAction)
 {
     return(orderAction == OrderAction.Sell ? GetAsk(marketProfile, assetPairId) : GetBid(marketProfile, assetPairId));
 }
Esempio n. 2
0
 public static double?GetBid(this MarketProfile marketProfile, string assetPairId)
 {
     return(marketProfile.Profile?.FirstOrDefault(x => x.Asset == assetPairId)?.Bid);
 }