Back

Issues Logging DailyFx to console when following Github example

I am trying to emulate this example from the c# repo in the web version of quantconnect. I expected to see a console log of the daily Events when I went to the log, but instead I see:

 

2014-05-26 00:00:00 SLICE >> 0 : QuantConnect.Data.Market.DataDictionary`1[QuantConnect.Data.Custom.DailyFx]

 

I attempted to explicitly print the values of the DataDictionary using:

 

public override void OnData(Slice slice)
{
DataDictionary<QuantConnect.Data.Custom.DailyFx> result = slice.Get<DailyFx>();
foreach(KeyValuePair<QuantConnect.Symbol, DailyFx> x in result)
Debug(string.Format("SLICE >> {0} : {1}", _sliceCount++, x.Value.Title.ToString()));
}

With no luck (this resulted in no console output, and no errors). What am I missing?

Update Backtest







0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hi Paul,

DailyFx is a class that is no longer maintained and the data does not arrive in time for live trading. We're in the process of eliminating the class from LEAN, so I would recommend finding alternative data sources and importing them as custom data.

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed