Gab0 / japonicus

Genetic Algorithm for Gekko Trading Bot.
MIT License
284 stars 103 forks source link

Error: Config Failure when starting #134

Open jackngai opened 6 years ago

jackngai commented 6 years ago

Hi,

I'm getting this error when I start Japonicus with "python3.6 japonicus.py -gcw --strat PPO". I'm honestly a bit confuse by the config so this is most likely an issue on my end but I have no idea how to get Japonicus to work. Attached is the terminal output. Thanks.

Error: config failure http://localhost:3000/api/backtest {'gekkoConfig': {'debug': True, 'info': True, 'watch': {'exchange': 'gdax', 'currency': 'USD', 'asset': 'BTC'}, 'paperTrader': {'fee': 0.25, 'feeMaker': 0.15, 'feeTaker': 0.25, 'feeUsing': 'maker', 'slippage': 0.05, 'simulationBalance': {'asset': 1, 'currency': 100}, 'reportRoundtrips': True, 'enabled': True}, 'tradingAdvisor': {'enabled': True, 'method': 'PPO', 'candleSize': 10, 'historySize': 10}, 'PPO': {'thresholds': {'persistence': 3.8181818181818183, 'up': 0.3560606060606061, 'down': -0.26515151515151514}, 'long': 23.636363636363637, 'signal': 10.530303030303031, 'short': 9.818181818181818}, 'backtest': {'daterange': {'from': '2016-04-10 12:12:42', 'to': '2016-07-09 12:12:42'}}, 'performanceAnalyzer': {'riskFreeReturn': 2, 'enabled': True}, 'valid': True}, 'data': {'candleProps': ['id', 'start', 'open', 'high', 'low', 'close', 'vwp', 'volume', 'trades'], 'indicatorResults': True, 'report': True, 'roundtrips': False, 'trades': True}} multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/requests/packages/urllib3/connectionpool.py", line 353, in _make_request httplib_response = conn.getresponse(buffering=True) TypeError: getresponse() got an unexpected keyword argument 'buffering'

Japonicus Error.txt

nimasTT commented 6 years ago

It is the same for me

Gab0 commented 6 years ago

@jackngai Hey, sorry for the delay. Can you (or @nimasTT ) provide your Settings.py? Did you try another strategy, and did you check datasets chosen at Settings? cheers!

Gab0 commented 6 years ago

Nevermind, I got the same error with PPO strat. The error is on the strategy itself... I'm checking it later.

nimasTT commented 6 years ago

my only change in the whole setting was, changing the currency.