Git Product home page Git Product logo

gdax-trading-bot's Introduction

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

gdax-trading-bot's People

Contributors

kenshiro-28 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.