When I add cptypto symbols, for example "BTCUSD", I get back a symbol with the same name.
for ticker in self.tickers:
eq = self.AddCrypto(ticker, Resolution.Minute).Symbol
self.eqs.append(eq)Added BTCUSD
Added ETHUSD
Added LTCUSD
However when I request historical data, I get back a dataframe having keys that contain tickers that end with "XJ", for example:symbol BTCUSD XJ ETHUSD XJ LTCUSD XJ
time
2016-12-23 6.752294 2.021548 1.305626
2016-12-24 6.821391 1.964311 1.528228
2016-12-25 6.792905 ...
How do I get the correct symbols for the historical data? If I try to iterate values calculated with this dataframe, I get errors likeRuntime Error: In Scheduled Event 'BTCUSD: EveryDay: BTCUSD: 10 min after MarketOpen', TypeError : object is not callable
at relativeModel in main.py:line 57
:: self.Debug(f"{x[eq]}")
TypeError : object is not callable (Open Stacktrace
Where X contains metrics calculated directly from historical data
NOTE: This post has nothing to do with forex but the editor won't let me remove a tag that was accidentally added to the "discussion tags" section.
Alexandre Catarino
Hi Mikko M ,
Please check out the docs, Security Identifiers, for the explanation on the "XJ" part.
How is x defined?
In the attached backtest, I could not reproduce the issue:
Mikko M
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!