Пример #1
0
 public PublicAssetVolumesContext(List <Asset> assets, Asset quoteAsset, ILogger logger = null) : base(assets.Select(x => new AssetPair(x, quoteAsset)).ToList(), logger)
 {
     Assets     = assets;
     QuoteAsset = quoteAsset;
 }
Пример #2
0
 /// <summary>
 /// Do not use this constructor unless you are absolutely sure of the order.
 /// </summary>
 /// <param name="network"></param>
 /// <param name="quoteAsset"></param>
 /// <param name="price"></param>
 public MarketPrice(Network network, Asset quoteAsset, Money price) : this(network, new AssetPair(quoteAsset, price.Asset), price)
 {
 }