Hello.
i'm having issue to set the SymbolProperties values. The script was working fine previously.
Example below.
self.rubber = self.AddData(RUBBER, "TF", Resolution.Minute) #RUBBER is custom dataset loaded from csv.
self.rubber.SymbolProperties.MinimumPriceVariation = 1
self.rubber.SymbolProperties.LotSize = 0.01
self.rubber.SymbolProperties.QuoteCurrency = "USD"
self.rubber.SymbolProperties.ContractMultiplier = 50
self.rubber.SetLeverage(50)
Error message:
During the algorithm initialization, the following exception has occurred: TypeError : property is read-only
at Initialize in main.py:line 17
:: self.rubber.SymbolProperties.MinimumPriceVariation = 1
TypeError : property is read-only
Thanks.
Andy
Darren Lim
hello All,
I also face the same issue , could anyone shed some lights on this ? Thank you in advance !
Shile Wen
Hi Andy,
In the latest commit, the SymbolProperties setter methods were removed because symbol properties for supported data should not be configurable, however, this shouldn't apply to Custom Securities. I've submitted this as an issue here.
Best,
Shile Wen
Andy Chen
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!