-
Notifications
You must be signed in to change notification settings - Fork 2
/
config-sample.toml
129 lines (115 loc) · 3.2 KB
/
config-sample.toml
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[account]
#Total Available balance (Add a bit more for trade fees)
balance=150
#USDT to use to buy per selected token (can this be tied to current volume to avoid moving the candle too much?
spendable=20
[exchange]
name="okx"
## Enable/disable trading on exchange
enable_trading=false
#From okx fees: https://www.okx.com/fees
taker_fee=0.10
maker_fee=0.08
#Cancel open orders after (x) seconds
order_ttl=30
[exchange.authentication]
access_key=""
secret_key=""
passphrase=""
[[exchange.channels]]
name = "candle1m"
topic = "candle1m"
endpoint = "wss://ws.okx.com:8443/ws/v5/business"
[[exchange.channels]]
name = "tickers"
topic = "tickers"
endpoint = "wss://ws.okx.com:8443/ws/v5/public"
[strategy]
#Scan for the top (x) tokens
top=8
#Work with (x) amount of tokens at the same time
portfolio_size=6
#Block following tokens
#deny_list=["LUNC", "UST", "BTC", "ETH", "MAGIC", "TAI", "VALUE", "AIDOGE", "APIX", "SWRV", "MDA", "BORING", "TRUE", "XPR", "TOWN", "FODL", "WSB", "TAMA", "SKEB", "CTC", "DEVT","BNT"]
#Order Type: market or "Immediate or cancel (ioc)"
order_type="ioc"
#retrieve last(x) minutes of candlesticks to analyze the performance of tokens
timeframe=10
#time to wait before adding tokens to portfolio
cooldown=10
#Dont wait for cooldown on first round (set to false when using blank database)
quickstart=true
#Min vol to be elegible (a sane default is: timeframe * 1600 to avoid tokens with high volatility in short periods of time)
min_vol=20000
#Min change to be elegible
min_change=0.1
#Last candle should be at least this much to be eligible
min_change_last_candle=0.05
#Min/max standard deviation on selected timeframe. (std deviation coming from sum of all candles)
#Min standard deviation on selected timeframe. (std deviation coming from sum of all candles)
min_deviation=0.05
max_deviation=0.1
#sell if losing more than (x) % (optional. Will sell if token is not in top tokens when cooldown finishes)
stoploss=2.0
#Sell if earnings on selected token are above (x)%.
cashout=4.0 #token will be bought back with spendable balance if is still selected
#Only sell tokens from portfolio if earnings are above (x)% -- set to 0.3 to at least break even
sell_floor=0.45
#sell if timeout is reached, even if 'sell_above' was not met. Min timeout is 10 seconds
timeout=180
#Avoid trading a token if stoploss was triggered
avoid_after_stoploss=true
[ui]
enable=false
dashboard=true
portfolio=true
deny_list=false
balance=true
strategy=true
system=true
logs=true
[pushover]
enable=false
token=""
key=""
[server]
enable=true
listen_address="0.0.0.0"
port = 9002
[database]
ip="127.0.0.1"
port=9042
workers=8
keyspace="okx"
#Retention policy, in seconds
data_ttl=7200 # 2 hours
[mq]
ip="127.0.0.1"
port=9092
[[mq.topics]]
name = "candle1m"
partitions = 5
#Offset per topic to start retrieving messages
offset = 0
replication_factor=1
min_batch_size=1
max_batch_size=100000
max_wait_ms=500
[[mq.topics]]
name = "tickers"
partitions = 20
#Offset per topic to start retrieving messages
offset = 0
replication_factor=1
min_batch_size=1
max_batch_size=100000
max_wait_ms=500
[[mq.topics]]
name = "trades"
partitions = 10
#Offset per topic to start retrieving messages
offset = 0
replication_factor=1
min_batch_size=1
max_batch_size=100000
max_wait_ms=500