This is an experimental terminal bot for auto trading on binance.com exchange.
Due to Binance suspending US customers from their site, I have postponed development until further details are released about Binance US.
-
Signup for Binance
-
Enable Two-factor Authentication
-
Go to API Center, Create New Api Key
[✓] Read Info [✓] Enable Trading [] Enable Withdrawals
-
Create a
.env
file and insert your API and Secret Keyscp .env.tmpl .env
API_KEY=... API_SECRET=...
-
If holding BNB, turn on using BNB for trade fees in your account to save 25%. Option to hold BNB along with the min balance can be set in the
constants.js
file. More about trade fees and tiers can be found here. -
Optional: alter additional bot presets such as portfolio allocation or trade intervals in
constants.js
-
Make sure to turn off your computers energy saving settings so that your terminal process won't pause if your computer goes to sleep. Alternatively, you can prepend
caffeinate
to your start command.
yarn start:dev - (starts the development server for testing. No real orders will be sent.)
yarn start - (creates a build and runs the production server. Warning: orders are now live.)
# Build the image
$ docker build -t bot-img .
# Run the image
$ docker run -d -ti --name crypto-bot bot-img
# Print bots output logs
$ docker logs crypto-bot
# If you want to enter the container
$ docker attach crypto-bot
# If you want to stop the container
$ docker stop crypto-bot
# If you want to clean unused containers/images
$ docker system prune
Use this bot at your own risk. I am not responsible for any potential losses.
There are no warranties or guarantees expressed or implied.
You assume all responsibility and liability.
Fork this Repo
Commit and push your changes
Create a new Pull Request
- Configure Binance API routes
- Set main structure with balance, budget, and allocation functionality
- Handle logic for buy and sell orders
- Calculate MACD values
- Calculate RSI values
- Setup cron task
- Add environment variables for dev and production
- Handle BNB min holdings
- Allow custom trade or stable pairs
- Release V1
- Set-up Docker
- Clean-up log outputs with tables and ora spinners
- Integrate websockets and batch orders
- Handle upcoming margin additions to Binance
- Add configurations for other technical indicators
- Release V2
- Get sentiment analysis from Twitter or StockTwits
- Integrate coindar calendar for upcoming news
- Develop algo for selecting top 5 altcoins
- Release V3
BTC: 18j1UsoK98sdkHtJg1aaRw1ZsdEDfGRCRh
LTC: LXRhTEmydq7M8cw3W9stD2xH4f167USWHJ
ETH: 0xfa00fb818a26bf8eda9726d80d6d8d6fbf4d97bd
Code released under the MIT License.