Repository: askmike/gekko

Issue #2518: Error while creating summary: Error: Trades not found
Created: 2018-09-10T17:54:36Z
Note: this is the technical bug tracker, please use other platforms for getting support and starting a (non technical) discussion. See the getting help page for details.
I'm submitting a ...
[ ] bug report
[ ] question about the decisions made in the repository
Action taken (what you did)
Running live trader on development branch
Expected result (what you hoped would happen)
summary in log
Actual result (unexpected outcome)
2018-09-10 16:53:21 (DEBUG):    [ORDER] statusChange: OPEN
2018-09-10 16:53:23 (INFO):     [ORDER] partial buy fill, total filled: 39.7
2018-09-10 16:53:23 (DEBUG):    [ORDER] statusChange: FILLED
2018-09-10 16:53:25 (ERROR):    Error while creating summary: Error: Trades not found
at get (/home/username/gekko/exchange/wrappers/binance.js:366:23)
at checkFn (/home/username/gekko/exchange/exchangeUtils.js:23:16)
at /home/username/gekko/exchange/wrappers/binance.js:130:12
at Request.request [as _callback] (/home/username/gekko/exchange/node_modules/binance/lib/rest.js:100:21)
at Request.self.callback (/home/username/gekko/exchange/node_modules/request/request.js:185:22)
at Request.emit (events.js:182:13)
at Request. (/home/username/gekko/exchange/node_modules/request/request.js:1157:10)
at Request.emit (events.js:182:13)
at IncomingMessage. (/home/username/gekko/exchange/node_modules/request/request.js:1079:12)
at Object.onceWrapper (events.js:273:13)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1081:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
2018-09-10 16:54:56 (DEBUG):    Buy - Predicted variation:  0.8433171137867231
2018-09-10 17:03:05 (DEBUG):    syncing private data
2018-09-10 17:13:05 (DEBUG):    syncing private data
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)

Duplicate issue #2561: Bug, Sell advice when already filled to buy, but gekko still say there buy order.
Created: 2018-09-24T03:07:54Z
Note: this is the technical bug tracker, please use other platforms for getting support and starting a (non technical) discussion. See the getting help page for details.
**I'm submitting a ...error bug
[x ] bug report
[ ] question about the decisions made in the repository
Action taken (what you did)
restart gekko for for correct again.
Expected result (what you hoped would happen)
reading portofolio for last buy order from binance.
Actual result (unexpected outcome)
buy order already filled, and first is correct last buy order in binance market :

2018-09-23 16:51:13 (DEBUG):	[ORDER] statusChange: SUBMITTED
2018-09-23 16:51:14 (DEBUG):	[ORDER] statusChange: OPEN
2018-09-23 16:51:15 (INFO):	[ORDER] partial buy fill, total filled: 3208
2018-09-23 16:51:15 (DEBUG):	[ORDER] statusChange: FILLED
2018-09-23 16:51:17 (ERROR):	Error while creating summary: Error: Trades not found
at get (/root/gekko/exchange/wrappers/binance.js:365:23)
at checkFn (/root/gekko/exchange/exchangeUtils.js:23:16)
at /root/gekko/exchange/wrappers/binance.js:129:12
at Request.request [as _callback] (/root/gekko/exchange/node_modules/binance/lib/rest.js:100:21)
at Request.self.callback (/root/gekko/exchange/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (/root/gekko/exchange/node_modules/request/request.js:1157:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage. (/root/gekko/exchange/node_modules/request/request.js:1079:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
2018-09-23 16:51:28 (DEBUG):
Current market: bear
Percent change predicted: -0.15861826809892832
Current price: 0.000567
Last buy price: 0.000565

And gekko send advice to sell after buy filled succesfully ( i see in the last buy order at binance and correct if gekko make buy order and filled) then here is the problem :

2018-09-23 17:21:29 (INFO):	Received advice to sell however Gekko is already in the process to buy
2018-09-23 17:21:29 (INFO):	Canceling buy order first
2018-09-23 17:21:29 (DEBUG):

and now still continue.
the strategie i'm using is NNv2.
sory for my bad to explain the bug.
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)
i'm using latest version of gekko:
Using Gekko v0.6.6 and Gekko UI v0.2.3.

Closing comment (2018-09-24T05:23:58Z): The actual problem is "Error: Trades not found" After this happened Gekko got stuck.
As such I'm closing this as a duplicate of #2518. One question:
Are you running the latest develop branch of Gekko? Please do so as it includes potential fixes and debug information needed to solve this issue (see #2518 for details). If you are not, you can read here how to: https://gekko.wizb.it/docs/installation/updating_gekko.html#Updating-the-develop-branch
If you are, please post more debug logs inside #2518!