Hi Team,
I'm not sure what is the correct way to submit a pull request for a bug fix . Please advice the proper way of doing it.
I encounter the below error when executing the python snippet of loading master file:
from finclab.master import get_securities
df_master = get_securities(exchanges=['XNYS', "XSHE"], fields="*")
Error Message: 'utf-8' codec can't decode byte 0xe2 in position 1023: unexpected end of data
It is caused by the problematic string is below -- note the string '\xe2' at the end:
b'ww.sec.gov/cgi-bin/br ...... \xe2'
To fix this error, the below suggestion would work:
** Target File: quantrocket/cli/utils/files.py**
** Target Line: 30**
FROM:
chunk = chunk.decode("utf-8")
TO:
chunk = chunk.decode("utf-8", 'ignore')
Best regards,
Peter