UNPKG

4.18 kBMarkdownView Raw
1# Configuring Gekko
2
3This file will explain all different parameters you can set in the [config](https://github.com/askmike/gekko/blob/master/config.js).
4
5The easiest way to configure Gekko is in the normal zone of the config:
6
7 config.normal = {
8 enabled: true,
9 exchange: 'MtGox', // 'MtGox', 'BTCe' or 'Bitstamp'
10 currency: 'USD',
11 asset: 'BTC',
12 tradingEnabled: false,
13 key: '',
14 secret: '',
15 }
16
17## Exchanges
18
19Gekko currently supports these exchanges:
20
21* [Mt. Gox](https://mtgox.com) (MtGox)
22* [BTC-e](http://btc-e.com) (BTCe)
23* [Bitstamp](http://bitstamp.com) (Bitstamp)*
24
25You have to tell Gekko what market to monitor on the selected exchange, A market is defined by a `currency` and an `asset`. here are all supported combinations per exchange:
26
27* Mt. Gox:
28 currencies: USD, EUR, GBP, AUD, CAD, CHF, CNY, DKK, HKD, PLN, RUB, SGD, THB
29 assets: BTC
30
31* BTC-e:
32 currencies: USD, EUR, RUR
33 assets: BTC
34
35* Bitstamp:
36 currencies: USD
37 assets: BTC
38
39*Even though Bitcoin is a currency Gekko treats is like an asset when you are trading USD vs BTC.*
40
41### *Warning for Bitstamp users
42
43Bitstamp only offers login via username and password at their API, so if you want to use Bitstamp that is something you need to set instead of the API key and secret. This does imposes a big security risk:
44
45Gekko won't do anything on the account except for: checking balance and creating buy / sell orders (don't take my word: [check the code yourself](https://github.com/askmike/gekko)). **If you have not downloaded Gekko directly from this Github repo I CANNOT guarantee that malicious code has not been added that will withdraw all your funds.**
46
47If you choose to let Gekko trade on Bitstamp note that you first have to enable API access in your Bitstamp settings.
48
49## Real trading
50
51If you want to let Gekko trade on your account you also need to fill in your `key` and `secret` (or `user` and `password` if you want to trade at Bitstamp*) and set `tradingEnabled` to true. You can get the key and secret on the websites of the exchanges. Gekko only needs trade rights to create the trade orders.
52
53## EMA Settings
54
55You can configure all EMA settings Gekko will use to base its advice on. They are all explained in the config.
56
57## Mail advice
58
59Gekko will always log the advice it gives. You can also let Gekko mail you new advice to buy or sell. You do need to have a Gmail (of Google Apps) account and Gekko needs to have the password so it can send the email from your account.
60
61**WARNING: If you have NOT downloaded Gekko from the original github page we CANNOT garantuee that your email address & password are safe!**
62
63
64## Profit Calculator
65
66Gekko can calculate the profit of its advice by using a trade simulation.
67
68 config.profitCalculator = {
69 enabled: true,
70 reportInCurrency: true,
71 simulationBalance: {
72 asset: 1,
73 currency: 100,
74 },
75 verbose: true
76 }
77
78The calculator listens to Gekko's advice and on a sell it will swap all (simulated) currency into (simulated) assets at the current price. On a buy it will be the other way around. If you set `reportInCurrency` to false the profit will be calculated in `asset` instead of `currency` (the ones you set in the normal zone). When you set `verbose` to false Gekko will only report the profit after a sell instead of after every interval.
79
80
81## Enabling real trading
82
83To enable real trading at a supported exchange you need to enable a trader in the advances zone of the config. The currently supported exchanges are:
84
85## The advanced zone
86
87If you want to monitor an exchange but act on a different one, or watch a single exchange and act on multiple exchanges based on the advice you have to disable (or uncomment) the normal zone and configure the advanced zone:
88
89### Set the watcher
90
91The watcher is the exchange Gekko pulls trade data from to analyze and detect trend. Set it as you would set the market in the normal zone.
92
93### Set traders
94
95The traders are objects with properties reflecting the exchange, the market and the credentials to create orders. The objects need to have the same structure as the object in the normal zone.
\No newline at end of file