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.74k stars 750 forks source link

Issue while Downloading Data #76

Open bhuvanmittal opened 6 years ago

bhuvanmittal commented 6 years ago

I was trying to download the data and is encountering following error:

File "C:\Users\AIO\Downloads\PGPortfolio-master\pgportfolio\marketdata\poloniex.py", line 28, in self.timestamp_str = lambda timestamp=time.time(), format="%Y-%m-%d %H:%M:%S": datetime.fromtimestamp(timestamp).strftime(formssat) NameError: name 'formssat' is not defined

How I can resolve this issue? Thanks in advance.

wujun commented 6 years ago
    self.timestamp_str = lambda timestamp=time.time(), format="%Y-%m-%d %H:%M:%S": \
        datetime.fromtimestamp(timestamp).strftime(format)