chrisleekr / binance-trading-bot

Automated Binance trading bot - Trade multiple cryptocurrencies. Buy low/sell high with Grid Trading. Integrated with TradingView technical analysis
MIT License
5k stars 1.09k forks source link

Empty screen #201

Closed PiotrFerenc closed 3 years ago

PiotrFerenc commented 3 years ago

Empty screen and wrong balance. :(

Version

Running Version: v0.0.66 (9787211) Latest Version: v0.0.66

Description

step:

  1. git pull
  2. change settings (live/production mode)
  3. npm run docker:build:win
  4. docker-compose -f docker-compose.server.yml up -d

image

image

laoistom commented 3 years ago

Did you generate and fill in your Binance API and secret in the .env file?

chrisleekr commented 3 years ago

Hi @PiotrFerenc

That is so weird to show the wrong balance. If it was test mode it would be showing millions of dollars, but just that?

Hmm... Are you sure you using the correct API key/secret? Even if it was not the correct one, showing one BTC is so strange.

Hmm... I think here is what you can do.

  1. Make sure you have correct .env configuration for API/Secret.
  2. Take down docker containers and clean everything and relaunch
    $ docker-compose -f docker-compose.server.yml down -t1 -v
    $ docker-compose -f docker-compose.server.yml up -d

    Let me know how it goes.

Oh wait, I just checked your account screenshot again. It is the correct balance as the balance is rounded up to 0.00065. It looks like getting data from Binance Websocket issue.

Can you take this and whether this fixes your issue?

https://github.com/chrisleekr/binance-trading-bot/wiki/Troubleshooting#how-to-fix-clock-desync

PiotrFerenc commented 3 years ago

Yes. Now balace is correct. 💪 image

But why i don't have "trading window" for my coin ?

https://user-images.githubusercontent.com/5715919/117468596-2ffe0b00-af98-11eb-99da-db45e8cbdc3c.png

PiotrFerenc commented 3 years ago

..and in docker log (binance-bot)

api","version":"0.0.66","hostname":"41e7f76c5157","pid":18,"gitHash":"e634670","server":"cronjob","job":"trailingTradeIndicator","uuid":"af8987d0-db1b-4389-87ff-755ebb1623c5","level":50,"symbol":"BTCUSDT","err":{"message":"Timestamp for this request was 1000ms ahead of the server's time.","name":"Error","stack":"Error: Timestamp for this request was 1000ms ahead of the server's time.\n at /srv/node_modules/binance-api-node/dist/http-client.js:93:17\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (internal/process/task_queues.js:95:5)\n at async i (/srv/dist/server.js:1:28898)\n at async execute (/srv/dist/server.js:1:36491)\n at async execute (/srv/dist/server.js:1:35762)\n at async /srv/dist/server.js:1:51922\n at async CronJob.<anonymous> (/srv/dist/server.js:1:51760)","code":-1021},"debug":true,"msg":"âš  Execution failed.","time":"2021-05-26T12:23:24.386Z","v":0}

chrisleekr commented 3 years ago

Yap, the issue definitely is your time sync.

Timestamp for this request was 1000ms ahead of the server's time.

This should fix your issue.

https://github.com/chrisleekr/binance-trading-bot/wiki/Troubleshooting#how-to-fix-clock-desync

PiotrFerenc commented 3 years ago

image

PiotrFerenc commented 3 years ago

doesn't work: wsl --shutdown

Timestamp for this request was 1000ms ahead of the server's time.

felipe-perin commented 3 years ago

try run follows commands with admin cmd prompt:

net stop w32time w32tm /unregister w32tm /register net start w32time w32tm /resync

restart docker and try again

PiotrFerenc commented 3 years ago

try run follows commands with admin cmd prompt:

net stop w32time w32tm /unregister w32tm /register net start w32time w32tm /resync

restart docker and try again

works! 💪

  1. docker-compose -f docker-compose.server.yml down -t1 -v
  2. net stop w32time w32tm /unregister w32tm /register net start w32time w32tm /resync as Admin
  3. wsl --shutdown
  4. docker-compose -f docker-compose.server.yml up -d