forked from bitphage/golos-witness-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_price_feed.yml.example
43 lines (34 loc) · 1.08 KB
/
update_price_feed.yml.example
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
#node: 'wss://api.golos.cf'
node:
- ws://localhost:8091
witness: foo
keys:
- WIF_PRIVATE_KEY
# specify price source here
# supported sources are: graphene, kuna
source: graphene
# graphene nodes to use
node_gph:
- wss://node.gph.ai
- wss://node.hk.graphene.fans
# what markets should be used for price measurements
markets:
- RUDEX.GOLOS/GPH
- RUDEX.GOLOS/RUDEX.BTC
- RUDEX.GOLOS/RUDEX.USDT
# When several markets used, how to calculate resulting price
# Supported metrics are:
# - median: use median price across markets
# - mean: use simple averaged price
# - weighted_average: markets with more volume has higher influence
metric: weighted_average
# Volume is measured looking into orderbook liquidity. This setting determine how deeply orderbooks should be measured
depth_pct: 20
# how often calculate price
interval: 3600
# force update price if previous price expired
max_age: 86400
# update price only if difference between old and current price more than threshold, percentage
threshold_pct: 10
# price correction coefficient (default: don't touch automatic price)
k: 1