Hi
I'm planning to backtest on Tether from bitfinex, which the data library doc has its symbol as "USTUSD". Yet I received the following error:
During the algorithm initialization, the following exception has occurred: ArgumentException : Symbol can't be found in the Symbol Properties Database: USTUSD
at QuantConnect.Securities.SecurityService.CreateSecurity(Symbol symbol, List`1 subscriptionDataConfigList, Decimal leverage, Boolean addToSymbolCache) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Common/Securities/SecurityService.cs:line 81
at QuantConnect.Securities.SecurityManager.CreateSecurity(Symbol symbol, List`1 subscriptionDataConfigList, Decimal leverage, Boolean addToSymbolCache) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Common/Securities/SecurityManager.cs:line 302
at QuantConnect.Algorithm.QCAlgorithm.AddSecurity[T](SecurityType securityType, String ticker, Nullable`1 resolution, String market, Boolean fillDataForward, Decimal leverage, Boolean extendedMarketHours) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Algorithm/QCAlgorithm.cs:line 2266
at QuantConnect.Algorithm.QCAlgorithm.AddCrypto(String ticker, Nullable`1 resolution, String market, Boolean fillDataForward, Decimal leverage) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Algorithm/QCAlgorithm.cs:line 1849
at
self.symbols = [self.AddCrypto(X in main.py:line 56
ArgumentException : Symbol can't be found in the Symbol Properties Database: USTUSD
at QuantConnect.Securities.SecurityService.CreateSecurity(Symbol symbol, List`1 subscriptionDataConfigList, Decimal leverage, Boolean addToSymbolCache) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Common/Securities/SecurityService.cs:line 81
at QuantConnect.Securities.SecurityManager.CreateSecurity(Symbol symbol, List`1 subscriptionDataConfigList, Decimal leverage, Boolean addToSymbolCache) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Common/Securities/SecurityManager.cs:line 302
at QuantConnect.Algorithm.QCAlgorithm.AddSecurity[T](SecurityType securityType, String ticker, Nullable`1 resolution, String market, Boolean fillDataForward, Decimal leverage, Boolean extendedMarketHours) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Algorithm/QCAlgorithm.cs:line 2266
at QuantConnect.Algorithm.QCAlgorithm.AddCrypto(String ticker, Nullable`1 resolution, String market, Boolean fillDataForward, Decimal leverage) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Algorithm/QCAlgorithm.cs:line 1849
Please help. Thanks
Cheers
Louis
Louis Szeto
I solved the problem. The actual symbol is "USDTUSD", not the one on doc.Â
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.
Derek Melchin
Hi Louis,
It's normally not necessary to subscribe to USDTUSD since it's a stablecoin. Refer to this PR.
Best,
Derek Melchin
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.
Louis Szeto
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!