ZhengyaoJiang / PGPortfolio

PGPortfolio: Policy Gradient Portfolio, the source code of "A Deep Reinforcement Learning Framework for the Financial Portfolio Management Problem"(https://arxiv.org/pdf/1706.10059.pdf).
GNU General Public License v3.0
1.73k stars 748 forks source link

Issue when downloading data #121

Closed marker1401 closed 5 years ago

marker1401 commented 5 years ago

Traceback (most recent call last): File "main.py", line 132, in main() File "main.py", line 81, in main portion_reversed=config["input"]["portion_reversed"]) File "C:\PGPortfolio-master(1)\PGPortfolio-master\pgportfolio\marketdata\datamatrices.py", line 51, in init features=type_list) File "C:\PGPortfolio-master(1)\PGPortfolio-master\pgportfolio\marketdata\globaldatamatrix.py", line 62, in get_global_panel self.update_data(start, end, coin) File "C:\PGPortfolio-master(1)\PGPortfolio-master\pgportfolio\marketdata\globaldatamatrix.py", line 176, in update_data self.__fill_data(start, end, coin, cursor) File "C:\PGPortfolio-master(1)\PGPortfolio-master\pgportfolio\marketdata\globaldatamatrix.py", line 201, in __fill_data if c["date"] > 0: TypeError: string indices must be integers

cant figure out why the c["date"] line must be an integer when it seems to be a dictionary help would be really appreciated

marker1401 commented 5 years ago

THe issue has been discussed in #120