Skip to content

mjmj/gdax-trader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

gdax-trader

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.

Requirements

Install dependencies

    $ 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

Create an api key at GDAX

https://support.gdax.com/customer/en/portal/articles/2425383-how-can-i-create-an-api-key-for-gdax-

Set PROD secrets as environment variables

export COINBASE_KEY='' && export COINBASE_SECRET='' && COINBASE_PASSPHRASE=''

Set Sandbox secrets as environment variables

export COINBASE_SANDBOX_KEY='' && export COINBASE_SANDBOX_SECRET='' && COINBASE_SANDBOX_PASSPHRASE=''

Start Mongo locally

  $ brew services start mongodb

Run in Prod (live trades will happen!)

gdax-trader will look for prod environment variables

python gdax-trader.py https://api.gdax.com

Run in GDAX Sandbox

gdax-trader will look for sandbox environment variables

python gdax-trader.py https://api-public.sandbox.gdax.com

License

This project is licensed under the terms of the MIT license. See LICENSE for more information.

Donations

If you found this software useful I happily accept bitcoin donations here and deeply appreciate your kindness -> 3PKBG1i87ZynPJDtb7R4iXLN64X6vrfjTW

About

Bitcoin trading bot for GDAX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages