Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig Initial commit Feb 8, 2018
.gitignore Added ETH-BTC Jun 22, 2019
LICENSE Initial commit Feb 8, 2018 Update Jun 23, 2019
index.js Small fix Jul 18, 2019

GDAX Trading Bot

This program is an automated trading system that can autonomously trade the LTC / BTC and ETH / BTC 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_LTC_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.


  • Your seeds are set as 1 ltc and 1 eth (default settings)
  • The price of litecoin 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


API Key generation

Generate an API Key only with trade permission (

Environment variables

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



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


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


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


Please consider making a donation to the following Bitcoin Confidential address (BC):


You can’t perform that action at this time.