askmike / gekko

A bitcoin trading bot written in node - https://gekko.wizb.it/
MIT License
10.08k stars 3.93k forks source link

tradeInitiated unsupported event #2860

Closed santinobonora closed 5 years ago

santinobonora commented 5 years ago

I'm submitting a ... [x] bug report [ ] question about the decisions made in the repository

Action taken run the gekko in SLI version. with the command 'node gekko --config config.js'

Expected result fully start trading without errors

Actual result it gave me the error: [ Gekko encountered an error and can't continue

Error:

Multiple plugins are broadcasting the event "tradeInitiated" (trader,paperTrader).This is unsupported.

Meta debug info:

Gekko version: v0.6.8 Nodejs version: v10.16.3 ]

Other information firstly i checked my strategies and config. but it did not use the event "tradeInitiated". so i found out that there are a couple usages of unsupported code. C:*\gekko\plugins\trader\trader.js (1 hit) Line 254: this.deferredEmit('tradeInitiated', { C:*\gekko\subscriptions.js (2 hits) Line 49: event: 'tradeInitiated', Line 50: handler: 'processTradeInitiated'

santinobonora commented 5 years ago

issue was solved:

problem was that config.paperTrader & config.trader were both true, if i turned one of them to false this solved my problem