Giter Site home page Giter Site logo

bitcoin-trading-bot-using-lstm's Introduction


Logo

Bitcoin Trading Bot Using LSTM

- A Real-Time Bitcoin Trading Bot

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact

About The Project

A bitcoin trading bot that is trained on live dataset from Binance using the Binance API. The bot is trained on the live data using LSTM Deep Learning and uses that prediction to make its move in the market. The bot is capable of both buying and selling Bitcoin according to the situation of the market. The bot is also capable of transfer learning in order to improve its accuracy.

Built With

Getting Started

  • Clone the repo or download the zip folder to your local machine.
  • Install Python and all dependencies on your machine.
  • Train your model using the "Training Using LSTM" notebook.
  • Using that model, you can trade on your Binance account through the "Trading" notebook.

Prerequisites

First of all, you need a binance account to trade on the platform. Sign up on:

  https://accounts.binance.com/en/register?return_to=aHR0cHM6Ly93d3cuYmluYW5jZS5jb20vZW4=

SignUp.PNG

Fill in the required details, do all the necesssary authentication and you are good to go!

After that, Create the Binance API for your account. In your account settings, go to API Management, label your API, and press Create.

Logo

After you complete all verification and create your API, you will get the following screen:

Logo

This API Key and Secret Key are the essentials required to use the Binance API in Python. Store them on a safe file (NOTE: THE SECRET KEY IS ONLY DISPLAYED ONCE WHEN THE API IS CREATED. STORE IT IN AN EXTERNAL FILE AS IT WILL NOT BE SHOWN AGAIN.)

Once you have completed all the steps above, you have setup your Binance Account and API and are ready to run your trading bot! In order to run this bot on your python environment, run the following lines on your Python/Anaconda command line to install the required dependencies:

 pip install numpy
 pip install pandas
 pip install matplotlib
 pip install scikit-learn
 pip install Keras
 pip install python-binance

Once you install all the dependencies, open the Jupyter Notebook, run the bot and start trading!

Usage

Displaying the Candlesticks data loaded from Binance API:

Logo

Standardizing the dataset and loading the dataset into a Pandas Dataframe:

Logo

Tuning the hyperparameters and compiling the training model

Logo

Tuning the hyperparameters and compiling the training model

Logo

Evaluating the accuracy of the model:

Logo

Using the trading model to trade real-time on the Binance Platform:

Logo

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Hassan Raza - https://www.linkedin.com/in/hassan-raza-mahmood/ - [email protected]

Project Link: https://github.com/HassanRaza1313/Bitcoin-Trading-Bot-Using-LSTM

bitcoin-trading-bot-using-lstm's People

Contributors

hassanraza1313 avatar

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.