ctubio / Krypto-trading-bot

Self-hosted crypto trading bot (automated high frequency market making) written in C++
https://127.0.0.1:3000
Other
3.37k stars 823 forks source link

Unable to compute tbp [ qp | pos ] = [ true | false ] #45

Closed lejacobroy closed 7 years ago

lejacobroy commented 7 years ago

Hi! I'm running on Mac OS and the bot starts fine, the WebGUi is up but it says 'Disconnected" on bidSize, bidPrice, askSize, askPrice. Also, when I start it node K.js, after a few minutes I get this error : Unable to compute tbp [ qp | pos ] = [ true | false ]

thanks!

ctubio commented 7 years ago

morninig'' this log message means that the bot can't connect to the exchange to get the wallet positions, mostly possible because the exchange was offline/saturated; in what exchange this was? (if was gdax, note that gdax has been offline 1 every 2 days for a few minutes/hours since a few weeks ago)

if you see that it can't get wallet positions on boot, may be because the exchange is offline, a restart once the exchange comes back is the fix.

i believe you mean exactly https://github.com/ctubio/Krypto-trading-bot/issues/34 but you were not en Bifinex i think; what was your exchange? (i will add your exchange to the other issue if is not Bitfinex too)

lejacobroy commented 7 years ago

Thanks! Yes I am on Bitfinex, the problem was that I had no currency to trade. I thought it would still show some value and the recent trades but no. Once I added funds to the currency I was trying to trade, the bot started.

Great work btw!!

ctubio commented 7 years ago

oh, many thanks for the info, will try to control that situation somehow someday; maybe just show a more meanfull message wiehn pos = FALSE :dancer: