Victor Silva
Victor Silva
Tested October 16 2021: Code: ```python import yfinance as yf symbol = yf.Ticker("5205.kl").info print(symbol) ``` Response: ```text {'exchange': 'KLS', 'shortName': 'SENDAI', 'exchangeTimezoneName': 'Asia/Kuala_Lumpur', 'exchangeTimezoneShortName': 'MYT', 'isEsgPopulated': False, 'gmtOffSetMilliseconds': '28800000', 'quoteType':...
Does this error persists when you try to collect each symbol separately instead of together?
I have a theory (but that might be wrong) that Yahoo may have some differential privacy implemented (add random noise), maybe try comparing the same date candle data with google...
@jackyclever there is no fix if yahoo is providing us with wrong data.
My suspection is that it might depend on the server that yahoo returns and the IP address that you are using. Again, this is not a yfinance bug.
> Do you mean if I can guarantee that my address and the address return by Yahoo's domain DNS query will keep invariant, then the data returned will invariant? Noone...
@RogerGR98 There are too many variables involved to be sure. We know that collecting at different timezones and using different yahoo servers (e.g. ca, uk, etc) can return different results....
@jmg17 portfolio optimization is different from picking stocks. The GA method attributes optimized random weights to the stocks, it does not, however, guarantee to be optimal, since it is a...
@hatboysam if you just want to use longs, you can discard negative values and the weights would be the same. Likewise if you just want to use shorts. If you...
@sarvotham the problem with only long that it is only applied in the backtest. For you to see the weights they would have to be applied by each strategy individually.