Giter Club home page Giter Club logo

binancebot's Introduction

BinanceBot

Crypto trading bot using the python-binance with CCXT API
NOTE!!! I'M NOT RESPONSIBLE FOR ANY MONEY THAT MAY BE LOST USING THIS BOT!
Also note, that the bot is still under development and will actually not perform any trades yet.

Installing

As usual, the required packages are installed with:

pip install -r requirements.txt

However, you may need to install websocket-client with pip3.

pip3 install websocket-client

Modifying parameters

One can modify the parameters that determine if the bot should sell at a certain loss or how/if a trailing stop-loss should be added when the profit of a trade increases above a certain threashold.

This could be useful if you want to trade on longer/shorter timeframes for less overall trades pr. time.
Below is an example of what a config file might look like at this current moment, however, this will likely change once the bot will be improved with defult parameters.

{
    "Coin": "BTC",
    "Fund": "BUSD",
    "Parameters":{
        "TakeProfit": 0.7,
        "StopLoss": 0.5,
        "TrailingStop": 0.2,
        "Oversold": 25,
        "Overbought": 70,
        "KLineInterval": "1m"
    },
    "Secrets":{
        "APIKey": "<Insert-Key-Here>",
        "SecretKey": "<Insert-Secret-Key>"
    }
}

What everything means

  • Coin = Coin you wish to trade(buy). NOTE! Keep BNB in your wallet for lower fees.
  • Fund = Funding coin, ex. BTCUSDT, where USDT is your funding coin
  • Parameters
    • TakeProfit = The increase at which you want you to sell above.
    • StopLoss = The maximum percentage you are willing to loose before selling.
    • TrailingStop = How far below current price should trailing stop-loss be?
    • OverSold = The RSI value at which the symbol is considered oversold.
    • OverBought = The RSI value at which the symbol is considered overbought.
    • KLineInterval = The interval of each candlestick. NOTE! String, as from this list.
  • Secrets
    • APIKey = Your API key.
    • SecretKey = Your secret key.

TODO

  • Improve buy/sell indication
  • Test bot!

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.