This repository has been archived on 2025-10-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
gekko/docs/commandline/tradebot.md
T
2021-06-06 20:25:14 +02:00

1.0 KiB

Tradebot

You can set Gekko up as a tradebot, this will instruct Gekko to:

  • Watch a live market.
  • Run a strategy (in semi-realtime) over live market data.
  • Automatically create buy/sell orders based on signals coming from the strategy.

As with everything in Gekko, the tradebot will make decisions based on the strategy selected/configured/created by YOU. If you end up losing money, you have no one to blame but yourself.

Configuration

First, set up Gekko for commandline usage (see this document for details). After that, configure the following plugins:

  • config.watch - the market to trade on.
  • candleWriter - (optional) also store market data to disk.
  • tradingAdvisor - configure the strategy and candle properties.
  • trader - configure Gekko access to your exchange account.
  • performanceAnalyzer - enable.

Turn off the paperTrader (there can only be 1 trade plugin active per instance).

Once done, run Gekko like so:

node gekko --config your-config-file.js