Skip to content

Just-We-On/BinanceTradingBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BinanceTradingBot

(Note: currently only for USDT as quote asset and market buy/sell only!)

Register on Binance

Features

  • run the bot precisely at specific time (like Cronjob)

  • set custom strategy to enter and exit long position

    • use TA-Lib indicators (see all indicators on TA-Lib git)
    • use custom indicators (just modify indicators.py :])
    • to use an indicator, add your indicator to the add_indicators method in lib/Symbol.py
  • keep a record of every executed trade (buy, sell, profit)

    results/trades.csv:

    name;symbol;{price: qty};avg_price

    results/executed_sell_trades.csv:

    name,time,buy_qty,sell_qty,percent_profit,stable_profit

    results/profit.csv:

    name,profit

  • get Telegram notification after every executed trade

Configuration

  • easy and fast configuration (edit lib/settings.json)

  • (Note: usage of BTC as quote asset not implemented yet)

    BinanceSettings

    BinanceSettings properties

    property name desription
    Account settings to use your Binance account
    Exchange settings for candle interval etc.
    Filter settings to filter the ticker data
    TradeParameters parameters how risky you want to trade

    BinanceSettings.Account

    settings to use your Binance account

    • Name: your name ("admin" per default)
    • Total_USDT: how much USDT you have to use as quote asset
    • API_Key: your Binance API Key
    • API_Secret: your Binance API Secret

    BinanceSettings.Exchange

    settings for candle interval etc.

    • Candle_Interval: the candle interval for the historical klines ("15MINUTE" per default)

    BinanceSettings.Filter

    settings to filter the ticker data

    • Coins_to_ignore: list of symbols to ignore (e.g. "BTCUSDT")
    • Coins_to_include: list of symbols to trade even though maybe not enough volume
    • Min_Volume_USDT: minimum trading volume for symbols with USDT as quote asset

    BinanceSettings.TradeParameters

    parameters how risky you want to trade

    • Percent_per_Trade: how many percent of your quote asset you want to invest per trade? (Note: 0.09 = 9%)
    • MinValue_USDT: how much of USDT should be invested per trade even though there is not enough available USDT in percentage terms?

    NotificationSettings

    NotificationSettings properties

    property name desription
    Telegram settings to get notifications in Telegram

    NotificationSettings.Telegram

    settings to get notifications in Telegram

    • Get_Notification: set this to true if you want to be notified after buy/sell
    • Bot_API_Key: Telegram Bot API key (BotFather TelegramBot)
    • Chat_ID: the chat ID of the Telegram chat which gets the notifications

Additional Indicators

  • Middle (average of High, Low, Open, Close)
  • VWMA (Volume Weighted Moving Average)
  • RVGI (Relative Vigor Index + RVGI Signal)
  • Supertrend

Used Libraries

apscheduler

pandas

numpy

python-binance

TA-Lib

python-telegram-bot

Disclaimer

I am not responsible for anything done with this trading bot. You use it at your own risk. There are no warranties or guarantees expressed or implied. You assume all responsibility and liability.

About

A Python Bot for fully automated trading on Binance.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%