forked from RagnarDanneskjold/BitBot-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sample.js
88 lines (75 loc) · 3.25 KB
/
config.sample.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
var config = {};
//------------------------------UserParams
//------------------------------EnableRealTrading
config.tradingEnabled = false;
// If false trading is simulated, candles are still aggregated
config.tradeAtStart = false;
// If true a trade is made immediately if the advice is either buy or sell
//------------------------------EnableRealTrading
//------------------------------exchangeSettings
config.exchangeSettings = {
exchange: '',
// Options: (bitstamp, kraken, btce)
currencyPair: {pair: '', asset: '', currency: ''},
// For Bitstamp just use {pair: 'XBTUSD', asset: 'XBT', currency: 'USD'}
// For Kraken look up the currency pairs in their API: https://api.kraken.com/0/public/AssetPairs
// Kraken Example: {pair: 'XXBTZEUR', asset: 'XXBT', currency: 'ZEUR'}
// For BTC-E look up the currency pairs in their API: https://btc-e.com/api/3/info
// BTC-E Example: {pair: 'BTC_USD', asset: 'BTC', currency: 'USD'}
tradingReserveAsset: 0,
// Enter an amount of "asset" you would like to freeze (not trade).
tradingReserveCurrency: 0,
// Enter an amount of "currency" you would like to freeze (not trade).
slippagePercentage: 0.1
// Percentage to sell below and buy above the market.
};
//------------------------------exchangeSettings
//------------------------------APISettings
config.apiSettings = {
bitstamp: {clientId: 0, apiKey: '', secret: ''},
kraken: {apiKey: '', secret: ''},
btce: {apiKey: '', secret: ''}
};
//------------------------------APISettings
//------------------------------dbSettings
config.mongoConnectionString = 'localhost/bitbot';
// The connection string for your MongoDB Installation.
// Example: config.mongoConnectionString = 'username:[email protected]/mydb';
//------------------------------dbSettings
//------------------------------downloaderSettings
config.downloaderRefreshSeconds = 10;
// Best to keep this default setting unless you know what you are doing.
config.downloaderMaxFails = 30;
// After failing to retrieve trade data n times the application will quit. A value of 0 prevents quitting.
//------------------------------downloaderSettings
//------------------------------IndicatorSettings
config.indicatorSettings = {
indicator: 'MACD',
// Choices: Any indicator from the indicators folder.
options: {neededPeriods: 26, shortPeriods: 12, longPeriods: 26, emaPeriods: 9, buyThreshold: 0, sellThreshold: 0},
// Options needed for your indicator (Look them up in the indicator's file).
candleStickSizeMinutes: 5
};
//------------------------------IndicatorSettings
//------------------------------orderSettings
config.orderKeepAliveMinutes = config.indicatorSettings.candleStickSizeMinutes / 10;
//------------------------------orderSettings
//------------------------------PushOver
config.pushOver = {
enabled: false,
pushUserId: '',
pushAppToken: ''
};
// Push notifications via pushover (https://pushover.net/).
//------------------------------PushOver
//------------------------------BackTesting
config.backTesterSettings = {
initialAssetBalance: 0,
initialCurrencyBalance: 10000
};
//------------------------------BackTesting
//------------------------------Debug
config.debug = true;
//------------------------------Debug
//------------------------------UserParams
module.exports = config;