-
Notifications
You must be signed in to change notification settings - Fork 3.9k
binance: event not emit after a trade occure #2086
Comments
Note that i have the last version with the last update of gekko. |
@askmike This may have been a result of my PR for the Trade Class, can you verify that the emit event is configured properly? |
* subtract candle length from start time to calculate isPremature * Move startTimeMinusCandleSize inside realtime if check * return the indicator after adding it * develop trade class * make fixes after live market test * line spacing * rollback package-lock.json to develop branch * link to discussion: * move methods from portfolio manager into trade class and new portfolio class * cleanup logging, comments
I'm experiencing the same problem even without #1968 . The Adviser advises to go 'short' as the first trade. After that no other trades are executed, even though there were plenty of chances to go 'long'. (tried with bitstamp and binance) Maybe something else is wrong with the event :( |
i have not use last upgrade by doing: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you feel this is very a important issue please reach out the maintainer of this project directly via e-mail: gekko at mvr dot me. |
I'm submitting a ...
[ x] bug report
[ ] question about the decisions made in the repository
Action taken (what you did)
I use the most recent version of develop branch of gekko live.
gekko has buy but when i have wake up i have see than bought price was not set at all.
Expected result (what you hoped would happen)
I was expecting when a trade occure event, event.action, event.portfolio['asset'] and event.price was set but event has not be emit.
Actual result (unexpected outcome)
event has not be emit after a buy order :(
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)
In my start i use this :
strat.onTrade = function(event) {
switch (event.action) {
case 'buy': {
console.log(event);
this.boughtPrice = event.price;
}
case 'sell': {
console.log(event);
this.soldPrice = event.price;
}
}
}
When the buy order has been filled event has not be emit because this.boughtPrice has not be set at all.
The same code was working well on bitfinex but not on binance :(
Please make a fix i cannot trade anymore.
The text was updated successfully, but these errors were encountered: