internal void RefreshTotalAmount(FXMarket fXMarket, AssetMarket assetMarket) { IMarket iMkt = fXMarket; if (!Ccy.IsCcy()) { iMkt = assetMarket; } _TotalAmount = _Amount * iMkt.GetQuote(_Ccy.CreateMarketInput(_TotalCcy)); }
public IAccount GetTotalAccount(FXMarket mkt, AssetMarket aMkt, ICcyAsset convCcy, string name, double?lastAmount) { _LastAmount = lastAmount; if (Ccy.IsCcy()) { RecalculateAmount(mkt, convCcy.Ccy); } else { RecalculateAmount(aMkt, convCcy.Ccy); } return(this); }