Skip to content

Automated crypto trading bots for Binance and KuCoin platforms

License

Notifications You must be signed in to change notification settings

kaikoh95/crypto-trading-bot

Repository files navigation

crypto-trading-bot

Features

  1. Binance Bot
  2. KuCoin Bot

Binance Bot

This is as adapted from Algovibes.

Pre-requisites

Ensure that you have created a Binance API key before proceeding.

Ensure that you are running on Python 3.6 and above.

Setup

Recommended to use virtual environment to run the files not required.

# copy and populate your Binance API credentials in the env file
cp test.env .env
# ENV in .env takes either "development" or "production"

# install dependencies
pip install -r requirements.txt

Getting a ticker's data

Fetches the data from Binance and stores in sqlite.

# you can pass in an argument 
# consisting of the ticker that you want
$ python asyncio_run_ticker.py BTCUSDT

# or just run the command
# with the preset symbol defined in constant.py
$ python asyncio_run_ticker.py

Processing/Reading ticker's data

# show all entries of the ticker in the sqlite stream
$ python read_db.py

# show entries as a graph
$ python read_db.py --graph

Executing the trade bot

Please let the asyncio_run_ticker.py script run for a few minutes first before initialising this script. WARNING: Please check that you have set the correct ENV in .env file before running the following.

$ python trade_bot.py

KuCoin Bot

This was made from scratch using KuCoin's Python SDK.

Executing the KuCoin bot to snag first listings

WARNING: Please check that you have set the correct ENV in .env file before running the following.

$ python kucoin_first_trade.py

About

Automated crypto trading bots for Binance and KuCoin platforms

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published