Coder Social home page Coder Social logo

chrisleekr / binance-trading-bot Goto Github PK

View Code? Open in Web Editor NEW
4.9K 136.0 1.1K 6.96 MB

Automated Binance trading bot - Trade multiple cryptocurrencies. Buy low/sell high with Grid Trading. Integrated with TradingView technical analysis

License: MIT License

JavaScript 98.62% Dockerfile 0.08% CSS 0.66% HTML 0.46% PowerShell 0.03% Shell 0.08% Python 0.08%
binance binance-api trading-bot binance-trading-bot binance-api-node cryptocurrency cryptotrading bot grid-trading traidingview

binance-trading-bot's Introduction

Hi there ๐Ÿ‘‹

Chris' GitHub stats

Top Langs

binance-trading-bot's People

Contributors

aiwenlg007 avatar azorpax avatar caebwallace avatar chrisleekr avatar github-actions[bot] avatar habibalkhabbaz avatar hipposen avatar izayl avatar pedrohusky avatar rando128 avatar romualdr avatar ruslan-khalitov avatar tham-le avatar thesmuks avatar uhliksk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

binance-trading-bot's Issues

Slack doesn't work

I don't know if i'm doing something wrong, I've put the URL on the env, and configured slack to recieve messages from user and bot, but nothing happens. Thanks!

Reset to Global Settings not working???

I think this could be a bug, but since am not 100% sure I am reporting it as a question.

It's possible that Reset do Global Settings (on a individual pair GUI settings page) is not working properly? Or maybe I don't know how to use it properly.

I am assuming that if you want a pair to be back to use global settings you must to the paid settings and click on the red button "Reset to Global Settings" and then click on the "Save" button. Is that assumption correct?

Assuming yes, what's happening is, after you reset a specific pair back to global settings, the pair goes back to "Customised" mode every time you made any change on the Global Settings.

Here's some screenshots:

image
Currently only 2 "customised" pairs in my setup.

image
11 "customised" pairs a few mins after changing my "Buy: Trigger %" in the Global Settings.

You can see by the timestamp from the Buy Signal that the bot already "processed" both coins and SOLUSDT is now in "customised" mode when it should be in "Global Settings" like BELUSDT.

I think this is happening to all pairs that I already adjusted individual settings before, so basically I can't or don't know how to actually reset a pair back to global settings.

Do you think you can try to reproduce this on your end?

Appreciate your help!

Filled orders not applying in the bot

The issue is that the bot puts an order in a decent time, but after the order is filled, it doesn't start tracking it, it doesn't acknowledge that there is already a position to trade with.

So after the bot buys and it is filled, it just ignores it.

Don't sell at the percentage you set

Hi

When putting the data in the settings box, I set to sell the deal at a profit of 1%, but when the currency exceeds the profit percentage it set, it does not sell the bot, what is the problem?

Screen Shot 2021-03-04 at 3 45 25 PM

Last Buy price doesn't match with graphic arts of binance

Description

The Last Buy price doesn't match with the graphic arts value of binance. Its seems a bug ?

Screenshots

Here can you see that the boy have bought this coin with the price of 1.216
2021-03-31_13-15

Within the Binance app i`ll can see the buy moment in time. Thats today at 8:42
Screenshot_20210331-131724

But when i`ll look at this screenshot. The current time 8:42 doesnt match the buy value of 1.216?
2021-03-31_13-19

This seems a bug

i cant run the bot

[email protected] start /srv
node dist/server.js

{"name":"binance-api","version":"0.0.64","hostname":"34db31900293","pid":19,"level":30,"NODE_ENV":"production","msg":"API logger loaded","time":"2021-03-31T08:41:58.466Z","v":0}
{"name":"binance-api","version":"0.0.64","hostname":"34db31900293","pid":19,"helper":"mongo","level":30,"uri":"mongodb://binance-mongo:27017/?poolSize=20&retryWrites=true&writeConcern=majority","msg":"Connecting mongodb","time":"2021-03-31T08:42:02.352Z","v":0}
[ioredis] Unhandled error event: Error: getaddrinfo EAI_AGAIN binance-redis
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
[ioredis] Unhandled error event: Error: getaddrinfo EAI_AGAIN binance-redis
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
[ioredis] Unhandled error event: Error: getaddrinfo EAI_AGAIN binance-redis
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
[ioredis] Unhandled error event: Error: getaddrinfo EAI_AGAIN binance-redis
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
[ioredis] Unhandled error event: Error: getaddrinfo EAI_AGAIN binance-redis
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
{"name":"binance-api","version":"0.0.64","hostname":"34db31900293","pid":19,"helper":"mongo","level":50,"e":{"name":"MongoServerSelectionError","reason":{"type":"Unknown","setName":null,"maxSetVersion":null,"maxElectionId":null,"servers":{},"stale":false,"compatible":true,"compatibilityError":null,"logicalSessionTimeoutMinutes":null,"heartbeatFrequencyMS":10000,"localThresholdMS":15,"commonWireVersion":null}},"msg":"Error on connecting to mongodb","time":"2021-03-31T08:42:32.491Z","v":0}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node dist/server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-03-31T08_42_35_384Z-debug.log

what should i do?

i am very new in docker. your installation guide is so complicated for me

i tried on windows local and centos dedicated server.
the problem is same.

Why do you need to use a FIAT currency?

As title, just wondered why is there a need to use a FIAT market? I'd like to use ETH as my base coin, so I always end up back at that, and can trade with any ETH markets.

Is this not possible?

Thanks.

Bot placing buy orders when "Buy: Trading Enabled" is unchecked

First of all, thanks for sharing this. Great work. I am loving it so far...
I've using the bot for 2 o 3 days now...
Took me some time to understand how the set triggers and %s properly for buy and sell, but I think I've finally figured out.

Description

I've disabled "Buy: Trading Enabled" on settings which is displaying correcting on the GUI
However, during yesterday BTC dip the bot started buying all over when it wasn't supposed to do it.
So, the bot didn't respect the configuration.
I had to set "Buy: Trigger percentage" to 0.99 to avoid getting buy orders created, which partially fix the problem but not without problems, because when buy is triggered the bot get hanged on that pair and never moves forward until you reboot the docker.

To Reproduce

Not sure how to reproduce, but I know is still happening on my install.

Expected Behaviours

The bot shouldn't create any buy order when "Buy: Trading Enabled" is unchecked.

Screenshots

image
image
image

Additional context

My setup is running inside a Ubuntu Server 20.04 KVM machine on a Proxmox server with stable and fast internet connection. HW is also pretty fast.
Deployed with docker + docker-composer using docker-compose.server.yml

If you need any additional info. please let me know.

Display release version on the web GUI

Is your proposal related to a problem?

There's no way to know on the GUI, which version of the bot you currently running.

Describe the solution you'd like

Display the release version number somewhere in the GUI screen.

Not working on Raspberry Pi

Hello, I wanted to test out the bot on my Raspberry Pi 4 but it keeps saying exec user process caused: exec format error.

Of course, I've used the docker image for the RPi.

Any ideas?

Recommended settings

Does anyone have any recommended settings? I've had this running for some time now and not seeing any trades go through. Maybe I'm just impatient

Currently tracking USDT on the FIAT and on the Coin side DOGEUSDT VETUSDT ETHUSDT BTCUSDT

I have money in my USDT and I also have holdings in all of the coins above.

15 min candles on 5 candle limit
Max purchase 10
1.01 min profit
0.99 stop price / limit

Getting ETIMEDOUT errors, does anyone experience these errors?

Hello,

First of all I want to congratulate you @chrisleekr for your work. I really like your bot and started using it for 2 weeks now.

I am using 5 pairs with the cron set up every second (default). So each second it makes 3 api calls to binance, get account info, get open orders and get candles. I am experiencing ETIMEDOUT errors each 2-3 minutes after a while. Sometimes I get the errors pretty fast, after a few minutes, sometimes after 30 minutes. Once the errors appear they kind of repeat every 2-3 minutes.

All api's give the ETIMEDOUT so it is not related to one api.

I know that binance could maybe experience issues from time to time but last night I left the bot running and got the errors every 2-3 minutes for 8 hours straight.

I have very good internet connection, fiber optics 500Mbps.

If I add more pairs it seems the errors start to appear faster to the point where the interface does not update for whole minutes.
I also increased the cron time to */5 (each 5 secs) and it was better but I still get the errors after a longer time.

I ran the bot on windows and also on mac and it is the same.

My thoughts are that somehow binance blocks the bot?
My question is if anyone experienced these errors or is it related to my setup?

I am pasting one example below.

request to https://api.binance.com/api/v3/klines?interval=30m&symbol=ADAUSDT&limit=30 failed, 
reason: connect ETIMEDOUT 52.84.150.39:443```Stack:```FetchError: request to https://api.binance.com/api/v3/klines?interval=30m&symbol=ADAUSDT&limit=30 failed, 
reason: connect ETIMEDOUT 52.84.150.39:443
    at ClientRequest.<anonymous> (/srv/node_modules/node-fetch/index.js:133:11)
    at ClientRequest.emit (events.js:315:20)
    at TLSSocket.socketErrorListener (_http_client.js:469:9)
    at TLSSocket.emit (events.js:315:20)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

Doesn't load

It just keeps on hanging and spinning when opening at http://localhost:8080

(node:38) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token u in JSON at position 0

at JSON.parse (<anonymous>)

at handleLatest (/srv/app/websocket/handlers/latest.js:33:23)

at runMicrotasks (<anonymous>)

at processTicksAndRejections (internal/process/task_queues.js:93:5)

at async WebSocket.<anonymous> (/srv/app/websocket/configure.js:43:11)

(node:38) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 52)

{"name":"binance-api","version":"0.0.52","hostname":"addd366f6812","pid":38,"server":"cronjob","job":"simpleStopChaser","uuid":"3c219a02-94d4-4824-82c2-edd561b88896","level":30,"msg":"Trade: Simple Stop-Chasing","time":"2021-02-17T18:59:51.001Z","v":0}

{"name":"binance-api","version":"0.0.52","hostname":"addd366f6812","pid":38,"server":"cronjob","job":"simpleStopChaser","uuid":"3c219a02-94d4-4824-82c2-edd561b88896","level":30,"simpleStopChaserConfig":{"enabled":true,"cronTime":"* * * * * *","symbols":["BTCUPUSDT","ETHUPUSDT","BNBUPUSDT","XRPUPUSDT","ADADOWNUSDT","LTCDOWNUSDT","TRXUPUSDT","LINKUPUSDT","BCHUPUSDT"],"candles":{"interval":"15m","limit":200},"maxPurchaseAmount":100,"stopLossLimit":{"lastBuyPercentage":1.06,"stopPercentage":0.97,"limitPercentage":0.969}},"msg":"Successfully retrieved configuration from the cache.","time":"2021-02-17T18:59:51.002Z","v":0}

{"name":"binance-api","version":"0.0.52","hostname":"addd366f6812","pid":38,"server":"cronjob","job":"simpleStopChaser","uuid":"3c219a02-94d4-4824-82c2-edd561b88896","level":30,"symbols":["BTCUPUSDT","ETHUPUSDT","BNBUPUSDT","XRPUPUSDT","ADADOWNUSDT","LTCDOWNUSDT","TRXUPUSDT","LINKUPUSDT","BCHUPUSDT"],"msg":"Checking symbols...","time":"2021-02-17T18:59:51.002Z","v":0}

{"name":"binance-api","version":"0.0.52","hostname":"addd366f6812","pid":38,"server":"cronjob","job":"simpleStopChaser","uuid":"3c219a02-94d4-4824-82c2-edd561b88896","level":30,"cachedLastSymbol":"BNBUPUSDT","msg":"Cached last symbol","time":"2021-02-17T18:59:51.003Z","v":0}

{"name":"binance-api","version":"0.0.52","hostname":"addd366f6812","pid":38,"server":"cronjob","job":"simpleStopChaser","uuid":"3c219a02-94d4-4824-82c2-edd561b88896","level":30,"cachedSymbolIndex":2,"msg":"Found symbol index","time":"2021-02-17T18:59:51.003Z","v":0}

{"name":"binance-api","version":"0.0.52","hostname":"addd366f6812","pid":38,"server":"cronjob","job":"simpleStopChaser","uuid":"3c219a02-94d4-4824-82c2-edd561b88896","level":30,"currentSymbol":"XRPUPUSDT","msg":"Determined current symbol","time":"2021-02-17T18:59:51.003Z","v":0}

{"name":"binance-api","version":"0.0.52","hostname":"addd366f6812","pid":38,"server":"cronjob","job":"simpleStopChaser","uuid":"3c219a02-94d4-4824-82c2-edd561b88896","symbol":"XRPUPUSDT","symbolUuid":"feb85fab-4612-422f-9513-0ba6dbc5214b","level":30,"msg":"Start processing symbol...","time":"2021-02-17T18:59:51.004Z","v":0}

{"name":"binance-api","version":"0.0.52","hostname":"addd366f6812","pid":38,"server":"cronjob","job":"simpleStopChaser","uuid":"3c219a02-94d4-4824-82c2-edd561b88896","symbol":"XRPUPUSDT","symbolUuid":"feb85fab-4612-422f-9513-0ba6dbc5214b","level":30,"cachedExchangeInfo":"[\"BTCUSDT\",\"ETHUSDT\",\"BNBUSDT\",\"BCCUSDT\",\"NEOUSDT\",\"LTCUSDT\",\"QTUMUSDT\",\"ADAUSDT\",\"XRPUSDT\",\"EOSUSDT\",\"TUSDUSDT\",\"IOTAUSDT\",\"XLMUSDT\",\"ONTUSDT\",\"TRXUSDT\",\"ETCUSDT\",\"ICXUSDT\",\"VENUSDT\",\"NULSUSDT\",\"VETUSDT\",\"PAXUSDT\",\"BCHABCUSDT\",\"BCHSVUSDT\",\"USDCUSDT\",\"LINKUSDT\",\"WAVESUSDT\",\"BTTUSDT\",\"USDSUSDT\",\"ONGUSDT\",\"HOTUSDT\",\"ZILUSDT\",\"ZRXUSDT\",\"FETUSDT\",\"BATUSDT\",\"XMRUSDT\",\"ZECUSDT\",\"IOSTUSDT\",\"CELRUSDT\",\"DASHUSDT\",\"NANOUSDT\",\"OMGUSDT\",\"THETAUSDT\",\"ENJUSDT\",\"MITHUSDT\",\"MATICUSDT\",\"ATOMUSDT\",\"TFUELUSDT\",\"ONEUSDT\",\"FTMUSDT\",\"ALGOUSDT\",\"USDSBUSDT\",\"GTOUSDT\",\"ERDUSDT\",\"DOGEUSDT\",\"DUSKUSDT\",\"ANKRUSDT\",\"WINUSDT\",\"COSUSDT\",\"NPXSUSDT\",\"COCOSUSDT\",\"MTLUSDT\",\"TOMOUSDT\",\"PERLUSDT\",\"DENTUSDT\",\"MFTUSDT\",\"KEYUSDT\",\"STORMUSDT\",\"DOCKUSDT\",\"WANUSDT\",\"FUNUSDT\",\"CVCUSDT\",\"CHZUSDT\",\"BANDUSDT\",\"BUSDUSDT\",\"BEAMUSDT\",\"XTZUSDT\",\"RENUSDT\",\"RVNUSDT\",\"HCUSDT\",\"HBARUSDT\",\"NKNUSDT\",\"STXUSDT\",\"KAVAUSDT\",\"ARPAUSDT\",\"IOTXUSDT\",\"RLCUSDT\",\"MCOUSDT\",\"CTXCUSDT\",\"BCHUSDT\",\"TROYUSDT\",\"VITEUSDT\",\"FTTUSDT\",\"BUSDTRY\",\"USDTTRY\",\"USDTRUB\",\"EURUSDT\",\"OGNUSDT\",\"DREPUSDT\",\"BULLUSDT\",\"BEARUSDT\",\"ETHBULLUSDT\",\"ETHBEARUSDT\",\"TCTUSDT\",\"WRXUSDT\",\"BTSUSDT\",\"LSKUSDT\",\"BNTUSDT\",\"LTOUSDT\",\"EOSBULLUSDT\",\"EOSBEARUSDT\",\"XRPBULLUSDT\",\"XRPBEARUSDT\",\"STRATUSDT\",\"AIONUSDT\",\"MBLUSDT\",\"COTIUSDT\",\"BNBBULLUSDT\",\"BNBBEARUSDT\",\"STPTUSDT\",\"USDTZAR\",\"WTCUSDT\",\"DATAUSDT\",\"XZCUSDT\",\"SOLUSDT\",\"USDTIDRT\",\"CTSIUSDT\",\"HIVEUSDT\",\"CHRUSDT\",\"BTCUPUSDT\",\"BTCDOWNUSDT\",\"GXSUSDT\",\"ARDRUSDT\",\"LENDUSDT\",\"MDTUSDT\",\"STMXUSDT\",\"KNCUSDT\",\"REPUSDT\",\"LRCUSDT\",\"PNTUSDT\",\"USDTUAH\",\"COMPUSDT\",\"USDTBIDR\",\"BKRWUSDT\",\"SCUSDT\",\"ZENUSDT\",\"SNXUSDT\",\"ETHUPUSDT\",\"ETHDOWNUSDT\",\"ADAUPUSDT\",\"ADADOWNUSDT\",\"LINKUPUSDT\",\"LINKDOWNUSDT\",\"VTHOUSDT\",\"DGBUSDT\",\"GBPUSDT\",\"SXPUSDT\",\"MKRUSDT\",\"DAIUSDT\",\"DCRUSDT\",\"STORJUSDT\",\"BNBUPUSDT\",\"BNBDOWNUSDT\",\"XTZUPUSDT\",\"XTZDOWNUSDT\",\"USDTBKRW\",\"MANAUSDT\",\"AUDUSDT\",\"YFIUSDT\",\"BALUSDT\",\"BLZUSDT\",\"IRISUSDT\",\"KMDUSDT\",\"USDTDAI\",\"JSTUSDT\",\"SRMUSDT\",\"ANTUSDT\",\"CRVUSDT\",\"SANDUSDT\",\"OCEANUSDT\",\"NMRUSDT\",\"DOTUSDT\",\"LUNAUSDT\",\"RSRUSDT\",\"PAXGUSDT\",\"WNXMUSDT\",\"TRBUSDT\",\"BZRXUSDT\",\"SUSHIUSDT\",\"YFIIUSDT\",\"KSMUSDT\",\"EGLDUSDT\",\"DIAUSDT\",\"RUNEUSDT\",\"FIOUSDT\",\"UMAUSDT\",\"EOSUPUSDT\",\"EOSDOWNUSDT\",\"TRXUPUSDT\",\"TRXDOWNUSDT\",\"XRPUPUSDT\",\"XRPDOWNUSDT\",\"DOTUPUSDT\",\"DOTDOWNUSDT\",\"USDTNGN\",\"BELUSDT\",\"WINGUSDT\",\"LTCUPUSDT\",\"LTCDOWNUSDT\",\"UNIUSDT\",\"NBSUSDT\",\"OXTUSDT\",\"SUNUSDT\",\"AVAXUSDT\",\"HNTUSDT\",\"FLMUSDT\",\"UNIUPUSDT\",\"UNIDOWNUSDT\",\"ORNUSDT\",\"UTKUSDT\",\"XVSUSDT\",\"ALPHAUSDT\",\"USDTBRL\",\"AAVEUSDT\",\"NEARUSDT\",\"SXPUPUSDT\",\"SXPDOWNUSDT\",\"FILUSDT\",\"FILUPUSDT\",\"FILDOWNUSDT\",\"YFIUPUSDT\",\"YFIDOWNUSDT\",\"INJUSDT\",\"AUDIOUSDT\",\"CTKUSDT\",\"BCHUPUSDT\",\"BCHDOWNUSDT\",\"AKROUSDT\",\"AXSUSDT\",\"HARDUSDT\",\"DNTUSDT\",\"STRAXUSDT\",\"UNFIUSDT\",\"ROSEUSDT\",\"AVAUSDT\",\"XEMUSDT\",\"AAVEUPUSDT\",\"AAVEDOWNUSDT\",\"SKLUSDT\",\"SUSDUSDT\",\"SUSHIUPUSDT\",\"SUSHIDOWNUSDT\",\"XLMUPUSDT\",\"XLMDOWNUSDT\",\"GRTUSDT\",\"JUVUSDT\",\"PSGUSDT\",\"USDTBVND\",\"1INCHUSDT\",\"REEFUSDT\",\"OGUSDT\",\"ATMUSDT\",\"ASRUSDT\",\"CELOUSDT\",\"RIFUSDT\",\"BTCSTUSDT\",\"TRUUSDT\",\"CKBUSDT\",\"TWTUSDT\",\"FIROUSDT\",\"LITUSDT\",\"SFPUSDT\"]","msg":"Retrieved exchange information from cache","time":"2021-02-17T18:59:51.004Z","v":0}

Sell Order when loss

Hello,

Is it possible, with actual available settings, to set an automatic sell when the current price comes lower than the last buy price ?

Thanks.

Frontend Doesn't work

The frontend throws the following error in the console
Uncaught Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at fd (react-dom.production.min.js:185) at n (react-dom.production.min.js:87) at w (react-dom.production.min.js:90) at react-dom.production.min.js:94 at U (react-dom.production.min.js:110) at Pj (react-dom.production.min.js:234) at di (react-dom.production.min.js:168) at Nj (react-dom.production.min.js:168) at sc (react-dom.production.min.js:168) at gf (react-dom.production.min.js:162)

Buy/sell signals not updating

Hi

I'm running the bot for 2 days and it didnt sell even when "minimum selling price" is reached.
When i check localhost:8080 I realized that "current price" is not updating. And the time near "Buy signal" and "sell signal" stays the same

What can i do to solve this problem ?

can't connect the mongodb.

install the bot by the docker step by step.but can't connect the mongodb.the error msg is:

{"name":"binance-api","version":"0.0.65","hostname":"ba34d97d72c3","pid":17,"level":30,"NODE_ENV":"production","msg":"API logger loaded","time":"2021-03-30T05:28:12.841Z","v":0}
{"name":"binance-api","version":"0.0.65","hostname":"ba34d97d72c3","pid":17,"helper":"mongo","level":30,"uri":"mongodb://binance-mongo:27017/?poolSize=20&retryWrites=true&writeConcern=majority","msg":"Connecting mongodb","time":"2021-03-30T05:28:13.302Z","v":0}
[ioredis] Unhandled error event: Error: connect ETIMEDOUT
at Socket. (/srv/node_modules/ioredis/built/redis/index.js:308:37)
at Object.onceWrapper (events.js:421:28)
at Socket.emit (events.js:315:20)
at Socket._onTimeout (net.js:483:8)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)

Performance Issues

Hi Chris,

It is a lovely bot. I setup and configured settings on Windows with using Docker Desktop. It works great for a time however approx. 1 hour 30 minutes the UI becomes unresponsive and only updates the time and does not gather any data. For now, I'm thinking a task scheduler to restart the docker after that time. Is it possible that you can take a look at that? I have decent internet connection and hardware. Thanks in advance.

Regards,
Bariscan

Why the price is not change when in test mode

i provide live and test api key and secret in .env file. And BINANCE_MODE = test in docker-compose.yml but the price is not tik tik.

But when mode = live the price change tik tik happen

Stop Loss

I do a little naive query, positions does not have a defined stop loss, only one is executed when it reaches profit?

Installation steps (Windows)

Hello.

Congrats for the long-awaited bot.
Can you please provide more detailed installation instructions for your project, under Docker running through Windows OS ?

Im not really familiar with it - and would like to have some advise.

Steps I took so far:

-Installed Docker through Windows Store
-Created a portrainer server/agent using instructions from here: https://documentation.portainer.io/v2.0/deploy/ceinstalldocker/

But im really unsure about the next step.
-Where should I clone the github repo?
-How do I fire up the app?

Thanks in advance,

Change multi symbol trade setting.

  • I trade 5 symbols in 1 docker at same time.

first request

  • some time i need to change all symbol setting but if i use global setting, every symbol will be customised setting. then i have to modify every symbol setting.
  • have a way to make change at same time.

second request

  • With the limit of ip request api, the tick only happen in 1 second. but i have 5 symbols trading, so a symbol have to wait 4 second to get the turn.
  • have a way to request all symbol info at a time for calculate the trading.

App crashed - maybe tunnel related

events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: connection refused: localtunnel.me:44027 (check your firewall settings)
    at Socket.<anonymous> (/srv/node_modules/localtunnel/lib/TunnelCluster.js:52:11)
    at Socket.emit (events.js:315:20)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
Emitted 'error' event on Tunnel instance at:
    at TunnelCluster.<anonymous> (/srv/node_modules/localtunnel/lib/Tunnel.js:96:12)
    at TunnelCluster.emit (events.js:315:20)
    at Socket.<anonymous> (/srv/node_modules/localtunnel/lib/TunnelCluster.js:50:14)
    at Socket.emit (events.js:315:20)
    [... lines matching original stack trace ...]
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
[nodemon] app crashed - waiting for file changes before starting...

Can't stop a symbol from showing up on the GUI

Is your proposal related to a problem?

Once I remove a symbol from the Global Setting page the symbol still shows up on the GUI but with a "remove" button for you to remove it manually if you want it.

Unfortunately that button doesn't show up for symbol where you have some balance left, is this on purpose?

Can't we enable the remove button for these symbols as sell? For me they just take space from screen since they are not even getting updated (which is correct since is not in the monitoring list any longer)

Here's a screenshot where you can notice that I can't remove the symbol BTCUSDT.

image

Describe the solution you'd like

Enable the remove button in a symbol on the main screen, for any symbol that is already removed from "Symbols" list in the Global Settings page.

Not able to view newly added new symbols

Hi,

I added new symbols in .env file as below, but in frontend new symbols are not shown only the default symbols are listed.

BINANCE_JOBS_SIMPLE_STOP_CHASER_SYMBOLS=['IOSTBTC','BTCUSDT','ETHUSDT','LTCUSDT','XRPUSDT','LINKUSDT','BNBUSDT','EOSUSDT','TRXUSDT','XLMUSDT','BCHUSDT','DOTUSDT','ADAUSDT']

Thanks,
Santosh

Feature Suggestion

Hey, awesome work, a suggestion:

  • Add the option to choose FIAT currency - BUSD etc.
  • Also, a posibility to buy with % of available balance also seems like a good idea :)

Nice project

Hey nice project you did here, I'm new to the spot test network, do you know if there is a web interface I can see the orders list made by the bot? I want to compare the order results in test environment with what happened in real life.

Symbols didn't appears on frontent

Hello, It seems great bot. But I can't activate it. I'm adjusting symbols but nothing appeared on the frontend.
I can only see my balance.
Also, I want to add NPXR/USDT. And I didn't understand the flag limit option at all. Can you describe it.

Thanks in advance.

Password protected interface

Is there a way to protect the interface from unauthorized use, like setting a password in settings or the complete view?

Different between current and highest price.

Is your proposal related to a problem?

Not a problem like software issue more frustration.

Describe the solution you'd like

  1. When a Coin drops within a few minutes with 15% (current price vs highest price and between the candles interval) but still higher then the buy/lowest counter it can be interesting to buy

  2. When the current price >15% vs highest price buy coins.

  3. When the current price <15% vs highest price do nothing

  4. When the Trigger Sell price < Highest price dont buy

Describe alternatives you've considered

Doing manual.

Data empty after few seconds

Hi,

I got a problem on Windows with WSL. I got docker, the application was running fine but only few minutes. I tryied reinstall all (docker, binance-trading-bot). And now the application is completely empty. I just get the header.

When i check the WebSocker tab in chrome i got this :
{command: "latest", data: {}}
command: "latest"
data: {}

I found a really similar issue here :

#31

But the issue is closed and he don't have solution.

Do you have an idea please ?

Run without docker

Hello, I need to run the docker container in a apache2 subdirectory, I've tried with reverse proxy but node seems to have a problem with proxys.

Is there any way to run this bot natively on my machine? It's a Raspberry Pi 4 with Raspberry Pi OS 64-bit with mongo, node and redis already installed.

Refresh interval going down after few minutes

Hello, It's working great.
FYI I notice something, when I started the bot, in a few 15-20 sec. all coin's current price information refreshing in 2 seconds. after a 15-20 sec. It's going down and it starting to refresh in random seconds.

All the best.

Enhancement of usability, suggestions:

I've been using it for some time, started to keep a steady wallet in the time of testing. The strategy really works!
So, what would improve the customizability and controll:

  • configuration templates: let't say that a couple of coins are following similar growth rates, but they don't surge above 8%, that would make a of selection for 7% high risk coins as a group, templates will come handy;
  • average growth dynamic variable: if you can calculate the average % growth that thing can spot the peak prices and make maximum profit and dispose of a coin position, so you can also have the funds avaiblable for more oportunities. The idea is that you don't stay in a position more than needed (time is money, right?)
  • include EMA 200 as a trend indicator: that is an all time market trade classic and a proven indicator;
  • strategy backtesting: needless to say how powerful that is, it will need a worker node, but with redis already present it can be pulled off*.

* understandably that is a heavy feature and the scope grows quite a lot here

Keep up the good work, mate!

Got this problem: Error: connection refused: localtunnel.me:39801

Hi,

Today I got this problem:

env:

  • BINANCE_LOCAL_TUNNEL_SUBDOMAIN=default

docker-compose:

  • target: production-stage

Error:

`events.js:292
throw er; // Unhandled 'error' event
^

Error: connection refused: localtunnel.me:39801 (check your firewall settings)
at Socket. (/srv/node_modules/localtunnel/lib/TunnelCluster.js:52:11)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
Emitted 'error' event on Tunnel instance at:
at TunnelCluster. (/srv/node_modules/localtunnel/lib/Tunnel.js:96:12)
at TunnelCluster.emit (events.js:315:20)
at Socket. (/srv/node_modules/localtunnel/lib/TunnelCluster.js:50:14)
at Socket.emit (events.js:315:20)
[... lines matching original stack trace ...]
at processTicksAndRejections (internal/process/task_queues.js:80:21)
[nodemon] app crashed - waiting for file changes before starting`

Can we add a wiki to the project?

Hi C, I was thinking about adding a wiki to the project here on github. What do you think?

That could help reduce README size and organize things a little bit better for new users... Including a FAQ.

If you're OK with it, I could do it on my free time if you allow me to.

I would be more than glad to help.

Bot on Raspberry

Someone has the bot running on raspberry pi? I could not make it run. Thanks!

Enhancements to reduce risks and increase profits

First of all I have to say I love this little thing!

I have a few ideas to help reduce risk and increase profits:

  1. Place stop-limit orders for buying too, the same way it is done in chaseStopLossLimitOrder. Could probably reuse that function to do both buy and sell.
  2. Seperate params per symbol to manage risk and strategy (maybe even have presets!). For example, BTCDOWN/USDT is more risky, I would like to look at 5m intervals and allow a lower maximum purchase amount just for that coin.
  3. Enable/disable buying per symbol. Sometimes I just want to exit without buying anything new for one specific coin.

Any thoughts? I might have a few hours this week to help out.

How to use this bot?

Hello, can you help me with settings?
If I want profit percentage 0.7% should I set 0,07?
And why that bot always create stop limit order and never sell/buy coin?

Pair - USDTBTC

bot Not buying

{"name":"binance-api","version":"0.0.12","hostname":"5771f48662d2","pid":18,"job":"simpleStopChaser","uuid":"f0fca491-05a2-4546-a723-fa520a25a391","symbol":"BTCUSDT","symbolUuid":"ce0fba82-60dc-4bd3-8c0b-73603670cedf","level":50,"quantity":0,"msg":"Order quantity is less or equal than minimum quantity - 0.00000100.","time":"2021-01-18T15:34:45.412Z","v":0}

Multi language support

Is your proposal related to a problem?

For the bot GUI interface to support multiple languages.

Describe the solution you'd like

User able to select any of the supported language in the .ENV file or even inside the GUI settings page.

Additional context

Would be nice if the translations can be easily added by the community.

I am no developer anymore, but I think this can be achieved like this:
https://medium.com/i18n-and-l10n-resources-for-developers/node-js-tutorial-on-creating-a-multilingual-web-app-df24d8471482

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.