Ejemplo n.º 1
0
        /// <summary>
        /// Gets the asset quotations.
        /// </summary>
        /// <returns></returns>
        public IDictionary <string, Decimal> GetAssetQuotations()
        {
            Asset[] assetSet = GetQuotedAssetSet().instrumentSet.Items;
            IDictionary <string, Decimal> result = new Dictionary <string, Decimal>(StringComparer.InvariantCultureIgnoreCase);
            int index = 0;

            foreach (BasicAssetValuation asset in GetQuotedAssetSet().assetQuote)
            {
                Decimal value = MarketQuoteHelper.FindQuotationByMeasureType("MarketQuote", asset.quote).value;
                result.Add(assetSet[index].id, value);
                index++;
            }
            return(result);
        }