forked from DeviaVir/zenbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
105 lines (94 loc) · 2.34 KB
/
config.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
var c = module.exports = {}
c.key = '' // TO ENABLE BOT TRADING: set this to GDAX api key,
c.secret = '' // set this to GDAX api secret,
c.passphrase = '' // set this to GDAX api passphrase.
// mongo stuff
c.mongo_url = "mongodb://localhost:27017/zenbrain" // change if your mongo server isn't local
c.mongo_username = null // normally not needed
c.mongo_password = null
// add assets/currencies you want to track
c.assets = [
"BTC",
//"ETH",
//"LTC"
]
c.currencies = [
//"CNY",
//"EUR",
"USD"
]
// will require(plugins/{name}/_codemap or {name}/_codemap)
c.enabled_plugins = [
//"bitfinex",
"gdax",
//"poloniex",
"server"
]
// twitter stuff
c.twitter_key = "" // create a twitter app, generate an access token, and add it here
c.twitter_secret = ""
c.twitter_access_token = ""
c.twitter_access_token_secret = ""
// graph server
c.default_graph_period = "15m"
c.default_graph_limit = 1000
c.graph_limits = [50, 100, 150, 200, 300, 500, 1000, 2000]
c.graph_selectors = [
"gdax.BTC-USD",
//"gdax.BTC-EUR",
//"gdax.ETH-USD",
//"poloniex.BTC-USD",
//"bitfinex.BTC-USD",
//"bitfinex.ETH-USD",
//"bitfinex.ETH-BTC",
//"bitfinex.ETC-BTC",
//"bitfinex.LTC-USD",
//"bitfinex.LTC-BTC",
//"bitfinex.ETC-BTC",
//"bitfinex.ETC-USD"
]
c.log_query_limit = 200
c.tracking_scripts = ''
// RSI indicator config
c.rsi_sizes = ['15m']
c.rsi_reporter_selector = "gdax.BTC-USD"
c.rsi_query_limit = 100
c.rsi_periods = 14
// trade logic
c.logic = require('./default_logic')
// reporter
c.reporter_sizes = ['15m']
c.price_reporter_selector = "gdax.BTC-USD"
c.price_reporter_length = 9
c.reporter_cols = [
"tick_id",
"num_trades",
"timestamp",
"rsi",
"volume",
"price",
"progress"
]
c.reducer_report_interval = 30000
c.trade_report_interval = 30000
// backfiller
c.backfill_days = 91
c.record_timeout = 20000
c.backfill_timeout = 5000
// simulator
c.sim_input_unit = "7d"
c.sim_input_limit = 12
// zenbrain engine stuff
c.bucket_size = "1m"
c.reducer_limit = 500 // how many thoughts to process per reduce run
c.reducer_sizes = ["1m", "5m", "15m", "1h", "6h", "1d"]
c.save_state_interval = 10000 // save state
c.parallel_limit = 8 // run this many concurrent tasks
c.reduce_timeout = 200
c.run_limit = 100
c.lock_timeout = 60000
c.lock_backoff = 20
c.lock_tries = 100
c.passive_update_timeout = 5000
c.return_timeout = 60000
c.brain_speed_ms = 200