Bitcoin trading bot that accepts a minimum profit to trade on, then waits for a price swing of that much to trade a proportal amount of the bankroll that is set. So if you provide $100 bankroll and bitcoin price swings 5%, the bot will trade $5 of your bankroll either buy or sell depending on what the swing was. Trade interval is configurable. This bot is a work in progress and I intended on adding trade signals to it for bitcoin price prediction such as a Bayesian regression.
I'm still experimenting with using pymongo, it's not an actual requirement at this point.
$ git clone https://github.com/mjmj/gdax-trader.git
$ cd gdax-trader
$ pip install -e .
Note: I installed gdax manually since their pip version was old as of 10-22-17. Visit: https://github.com/danpaquin/gdax-python
https://support.gdax.com/customer/en/portal/articles/2425383-how-can-i-create-an-api-key-for-gdax-
export COINBASE_KEY='' && export COINBASE_SECRET='' && COINBASE_PASSPHRASE=''
export COINBASE_SANDBOX_KEY='' && export COINBASE_SANDBOX_SECRET='' && COINBASE_SANDBOX_PASSPHRASE=''
$ brew services start mongodb
gdax-trader will look for prod environment variables
python gdax-trader.py https://api.gdax.com
gdax-trader will look for sandbox environment variables
python gdax-trader.py https://api-public.sandbox.gdax.com
This project is licensed under the terms of the MIT license. See LICENSE for more information.
If you found this software useful I happily accept bitcoin donations here and deeply appreciate your kindness -> 3PKBG1i87ZynPJDtb7R4iXLN64X6vrfjTW