Hello,
I'm trying to create a universe with forex symbols from Oanda, but I get this error:
Runtime Error: An item with the same key has already been added. Key: 11/03/2017 20:00:00
although the symbols are different:
instruments=['EURUSD','EURJPY']
symbols = [Symbol.Create(instrument, SecurityType.Forex, Market.Oanda) for instrument in instruments]
self.SetUniverseSelection( ManualUniverseSelectionModel(symbols) )
Can somebody help please?
Thanks
Daniele
Jing Wu
Please see the attached framework algorithm, can't repeat the same issue with ManualUniverseSelectionModel().
DanieleC87
I recreated the algorithm and it looks like there are no problems anymore, maybe I was doing something wrong.
Alexandre Catarino
When any of our algorithms has a exception method that we don't understand and cannot debug, the best procedure is to simplify the code as much as possible and share it with the community so that we can reproduce the issue and work on a solution.
DanieleC87
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!