Gekko Forum
Log Indicates Portfolio Balance Incorrectly - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Exchanges (https://forum.gekko.wizb.it/forum-3.html)
+--- Forum: Binance (https://forum.gekko.wizb.it/forum-7.html)
+--- Thread: Log Indicates Portfolio Balance Incorrectly (/thread-57763.html)



Log Indicates Portfolio Balance Incorrectly - TonyAnthony - 11-11-2018

I was attempting to trade ETC/BAT.
Once the Bot starts and pulls from Binance, my ETH Balance is at first correct and then after the Balance part reports incorrect.
This causes the bot to no trade in the proper direction. Is this a Binance API issue? It has only happened for this pair so far.
Portfolio:
2018-11-10 19:40:03 (INFO): 0.00003129 ETH
2018-11-10 19:40:03 (INFO): 0.945 BAT
2018-11-10 19:40:03 (INFO): Balance:
2018-11-10 19:40:03 (INFO): 0.00127023225 ETH
2018-11-10 19:40:03 (INFO): Exposed:
2018-11-10 19:40:03 (INFO): yes (97.54%)


RE: Log Indicates Portfolio Balance Incorrectly - askmike - 11-11-2018

You say you are attempting to trade on ETC but the logs indicate ETH instead.

- Are you running any other bots or are you trading yourself on ETH/BAT? In other words did the balance change?
- Did the bot trade at all?


RE: Log Indicates Portfolio Balance Incorrectly - TonyAnthony - 11-12-2018

(11-11-2018, 04:53 AM)askmike Wrote: You say you are attempting to trade on ETC but the logs indicate ETH instead.

- Are you running any other bots or are you trading yourself on ETH/BAT? In other words did the balance change?
- Did the bot trade at all?

Sorry Mike didn't proof read.. I'm attempting to trade ETH/BAT pair.
I know not to trade more than one coin to the bass currency. So I have no other bots trading to ETH.
I made sure I had no ETH(as little as binance would allow anyways) when I started the ETH/BAT pair trading. 
If my balance starts out with BAT it does not trade. If I manually move everything to ETH, start the bot over it will start to trade.  It does however report the balance improperly. 

Portfolio:
2018-11-10 21:23:22 (INFO): 0.07036662 ETH 
2018-11-10 21:23:22 (INFO): 0.945 BAT
2018-11-10 21:23:22 (INFO): Balance:
2018-11-10 21:23:22 (INFO): 0.07159710450000001 ETH
2018-11-10 21:23:22 (INFO): Exposed:
2018-11-10 21:23:22 (INFO): no (1.72%)

This same issue occurs regardless of which currency you trade to BAT. I did start bots BTC/BAT and BNB/BAT and each time the portfolio starts okay then the balance of the currency is wrong.
I've had a bot running ETH/BAT today, started with all in ETH this time. It seems to be running okay for now. It has completed one round trip.
So far this is the only pair I've had this issue with.
I did have to update the binance.js to get the BAT coin available. Is there anything else I needed to update?

Thanks for Gekko. It's been 20+ years since I've programmed anything, and that was in C. Enjoying the debugging and code tracing more than the actual trading.


RE: Log Indicates Portfolio Balance Incorrectly - askmike - 11-13-2018

I'll try to look into this asap, very busy right now!


RE: Log Indicates Portfolio Balance Incorrectly - TonyAnthony - 11-14-2018

(11-13-2018, 05:55 AM)askmike Wrote: I'll try to look into this asap, very busy right now!

NO worries. I reinstalled gekko and the problem is gone now. I started having other issues and decided it was time to just start over. Something must have got corrupt some place or my poking around may have edited something I should not have