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

macOS possible bug #786

Closed sgs1 closed 6 years ago

sgs1 commented 6 years ago

Hello! I've runned Krypto from terminal, and I see the error that you can see in the image.

schermata 2018-08-17 alle 09 23 05

At the moment, in the page that I open in localhost, I don't see the "Position" box under the green button.

ctubio commented 6 years ago

seems it cannot read or create the database file; can you check if /data/db folder exists and are owned by your user?

anyway i will review Darwin soOn' thanks for the report''

sgs1 commented 6 years ago

I've turned off the macOs (I'm using High Sierra) and I've turned it on now. I've start the bot , and now I see this: 08/17 13:01:55.054995 DB loaded OK from /data/db/K.BITFINEX.BTC.USD.db.

But I don't see the position under the green button, and no orders are opened.

serzhiio commented 6 years ago

Hi, i've found a temporary solution for this bug. With latest commit change next:

const bool empty() const { return base.empty() or quote.empty(); };

to

const bool empty() const { return base.empty() and quote.empty(); };

2018-08-17 15:11 GMT+03:00 sgs1 notifications@github.com:

I've turned off the macOs (I'm using High Sierra) and I've turned it on now. I've start the bot , and now I see this: 08/17 13:01:55.054995 DB loaded OK from /data/db/K.BITFINEX.BTC.USD.db.

But I don't see the position under the green button, and no orders are opened.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ctubio/Krypto-trading-bot/issues/786#issuecomment-413845938, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ9yt-ZO5bZnAK2bl2NmGkM2y8vwAXrZks5uRrLdgaJpZM4WBGEU .

-- С Уважением, Матыцин Сергей Леонидович sergey.matytsin@gmail.com

sgs1 commented 6 years ago

So, how I can update my version?

serzhiio commented 6 years ago

Use 'make latest' in console, then find appropriate line in ds.h, then 'make'. After all commands start your bot.

2018-08-17 15:17 GMT+03:00 sgs1 notifications@github.com:

So, how I can update my version?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ctubio/Krypto-trading-bot/issues/786#issuecomment-413847652, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ9yt-xVoXwBFuHIItLH3_BZkwnw2Tr2ks5uRrR0gaJpZM4WBGEU .

-- С Уважением, Матыцин Сергей Леонидович sergey.matytsin@gmail.com

sgs1 commented 6 years ago

When I type "make latest" , I've this error: make: *** No rule to make target .git', needed bylatest'. Stop.

ctubio commented 6 years ago

just saying, make reinstall is like make latest but it doesnt look for .git folder

ctubio commented 6 years ago

feel free to join the IRC channel to start a conversation about it; no bug no issue, thanks'¡