Skip to content

💰 Cryptocurrency Trading Bot for Binance (Experimental)

Notifications You must be signed in to change notification settings

VasTShadowZz/binance-trader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binance Trader (RC)

@yasinkuyu - 2017

This is an experimental bot for auto trading the binance.com exchange.

Screenshot

Configuration

  1. Signup Binance ( Referral url: https://www.binance.com/?ref=10701111 or https://launchpad.binance.com/register.html?ref=10701111 )

  2. Enable Two-factor Authentication

  3. Go API Center, https://www.binance.com/userCenter/createApi.html

  4. Create New Key

     [✓] Read Info [✓] Enable Trading [X] Enable Withdrawals 
    
  5. Rename config.sample.py to config.py

  6. Get an API and Secret Key, insert into config.py

     API key for account access
     api_key = ''
     Secret key for account access
     api_secret = ''
    
     API Docs: https://www.binance.com/restapipub.html
    
  7. Optional: run as an excutable application in Docker containers

Requirements

sudo easy_install -U requests
or 
sudo pip install requests

Python 2.7
    import os
    import sys
    import time
    import config
    import argparse
    import threading
    import sqlite3

Usage

python trader.py --symbol XVGBTC

With option parameters

python trader.py --symbol XVGBTC --quantity 200 --profit 1.3 --loop 0 --orderid 0

--quantity     Buy/Sell Quantity (default 200)
--symbol       Market Symbol (default XVGBTC)
--profit       Target Profit (default 1.3)
--orderid      Target Order Id (default 0)
--wait_time    Wait Time (seconds) (default 1)
--increasing   Buy Price Increasing  +(default 0.00000001)
--decreasing   Sell Price Decreasing -(default 0.00000001)
--prints       Scanning Profit Screen Print (default True)
--loop         Loop (default 0 unlimited)

Symbol structure;
    XXXBTC  (Bitcoin)
    XXXETH  (Ethereum)
    XXXBNB  (Binance Coin)
    XXXUSDT (Tether)

All binance symbols are supported.

Every coin can be different in --profit and --quantity.
Total must be at least 0.002 

Variations;
    trader.py --symbol TBNBTC --quantity 50 --profit 3
    trader.py --symbol NEOBTC --quantity 3 --profit 1.1
    trader.py --symbol ETHUSDT --quantity 0.3 --profit 1.5
    ...

Run in a Docker container

docker build -t trader .

docker run trader

DISCLAIMER

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

Contributing

Fork this Repo
Commit your changes (git commit -m 'Add some feature')
Push to the changes (git push)
Create a new Pull Request

Thanks all for your contributions...

Failure

Filter failure: MIN_NOTIONAL
https://support.binance.com/hc/en-us/articles/115000594711-Trading-Rule

Filter failure: PRICE_FILTER
https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md

Roadmap

- MACD indicator (buy/sell)
- Stop-Loss implementation
- Binance/Bittrex/HitBTC Arbitrage  

...

- October 7, 2017 Beta
- January 6, 2018 RC

License

Code released under the MIT License.

Tip Box

Wallets


About

💰 Cryptocurrency Trading Bot for Binance (Experimental)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%