Skip to content
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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
README.md Update README.md Jun 23, 2019
index.js Small fix Jul 18, 2019
package.json

README.md

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.

Example:

  • 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

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_LTC_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

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

B9uuWVj83v75AHNpDnmwxPFSoGooKwZiS2zL9bRQirBT7WWQaa6LfkuwbP8K9Z15xTrySeFbTzo2FdJVse9xexH9tTN25bpWvw4kDE

You can’t perform that action at this time.