Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

GDAX Trading Bot

This program is an automated trading system that can autonomously trade the Maker / Bitcoin and Ethereum / Bitcoin pairs in the Coinbase Pro exchange.

Keep in mind that trading is a risky activity that can involve a loss of money. You should only invest the amount you can afford to lose.

Trading strategy

The trading strategy consists of issuing a large number of low value orders. The program continuously monitors the price of each coin and issues a market buy order when the price begins to rise above the weighted average of the previous prices. Once the buy order is filled, the program issues a limit sell order at a higher price.

The seed

The seed is the amount of each coin that the program will trade continuously to earn bitcoins. The greater the seed, the greater the benefit. The seed values must be set in the program variables SEED_MKR_AMOUNT and SEED_ETH_AMOUNT.

You should be able to buy at least 10 seeds of each coin with your initial bitcoin balance. The more seeds you can buy, the easier it will be to recover from a losing streak.

Example:

  • Your seeds are set as 1 MKR and 1 ETH (default settings)
  • The price of Maker is 0.01 BTC and the price of Ethereum is 0.02 BTC
  • You should be able to buy 10 seeds of each coin with your initial bitcoin balance
  • Your minimum bitcoin balance should be: (0.01 + 0.02) * 10 = 0.3 BTC

Quick guide

Registration

API Key generation

Generate an API Key only with trade permission (https://pro.coinbase.com/profile/api)

Environment variables

Save the three values of the API key in the following environment variables of the operating system:

  • TRADING_BOT_PASSPHRASE
  • TRADING_BOT_KEY
  • TRADING_BOT_SECRET

Installation

  • Install Node.js (https://nodejs.org)
  • Download this repository
  • Open a system console
  • Run "npm install" in the root folder to install the required modules

Configuration

  • Open the file "index.js" with a text editor
  • Set the seeds in the variables SEED_MKR_AMOUNT and SEED_ETH_AMOUNT

Execution

  • Open a system console
  • Run "node index.js" in the root folder to start the execution of the program
  • Press Ctrl + C to exit

Donations

Monero: 48UKr19MznsFVurfcYmR92WubUYTT3TCMFgfk5oF1qK9bcefjrqYEwicDCi9ZyP5ABefDbCyAdg7d4Q8Mf2Kys1YT5K2CVc

Bitcoin Confidential: B9uuWVj83v75AHNpDnmwxPFSoGooKwZiS2zL9bRQirBT7WWQaa6LfkuwbP8K9Z15xTrySeFbTzo2FdJVse9xexH9tTN25bpWvw4kDE

About

Trading bot for Coinbase Pro

Resources

License

Packages

No packages published