forked from xeroc/bitshares-pricefeed
-
Notifications
You must be signed in to change notification settings - Fork 19
/
default.yaml
307 lines (285 loc) · 6.55 KB
/
default.yaml
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
# This is an example configuration file that might need modifications
# to properly run in your environment
#
# API KEYS
##########
# Some services require you to obtain an API key and provide it here in
# the configuration:
#
# * OpenExchangeRates (has a free subscription)
# * Currencylayer (has a a free subscription)
# * Quandl (has a a free subscription)
# * BitcoinAverage (has a a free subscription)
# * Fixer (has a free subscription)
# * AlphaVantage (has a free subscription)
# * WorldCoinIndex (has a free subscription)
#
# The corresponding variables can be defined in the `exchanges` key.
# If true, a new price feed needs manual confirmation
confirm: True
# The producer name(s)
producer: $PRODUCER
# Exchange settings (Here, you may need to add API keys)
exchanges:
####################################
# Fiat Exchange Rates
####################################
fixer:
klass: Fixer
enable: False
api_key:
free_subscription: True
quotes:
- EUR
- USD
- CNY
- TRY
- SGD
- HKD
- NZD
- MXN
- CAD
- CHF
- AUD
- GBP
- JPY
- KRW
- RUB
- SEK
bases:
- USD
- EUR
- CNY
- JPY
- HKD
aliases:
RUB: RUBLE
openexchangerates:
klass: OpenExchangeRates
enable: False
api_key:
free_subscription: True
quotes:
- ARS
- EUR
- USD
- CNY
- TRY
- SGD
- HKD
- NZD
- MXN
- CAD
- CHF
- AUD
- GBP
- JPY
- KRW
- SEK
- RUB
bases:
# Only USD with free subscription
- USD
currencylayer:
klass: CurrencyLayer
enable: False
api_key:
free_subscription: True
quotes:
- ARS
- TRY
- SGD
- HKD
- NZD
- CNY
- MXN
- CAD
- CHF
- AUD
- GBP
- JPY
- EUR
- USD
- KRW
- RUB
- SEK
bases:
# Only USD with free subscription
- USD
aliases:
RUB: RUBLE
####################################
# Commodities
####################################
quandl:
klass: Quandl
enable: False
api_key:
datasets:
"GOLD:USD":
- LBMA/GOLD
"SILVER:USD":
- LBMA/SILVER
####################################
# Bitcoin Exchange Rates
####################################
bitstamp:
klass: Bitstamp
quotes:
- BTC
bases:
- USD
- EUR
btcavg:
klass: BitcoinAverage
secret_key:
public_key:
quotes:
- BTC
bases:
- USD
- EUR
- CNY
okcoin:
klass: Okcoin
quotes:
- BTC
bases:
- USD
huobi:
klass: Huobi
enable: False
quotes:
- BTC
bases:
- CNY
####################################
# Bitcoin Exchange Rates
####################################
poloniex:
klass: Poloniex
quotes:
- BTS
bases:
- BTC
bittrex:
klass: Bittrex
enable: False
quotes:
- BTS
bases:
- BTC
zb:
klass: Zb
quotes:
- BTS
bases:
- BTC
bitshares:
klass: Graphene
quotes:
- USD
- CNY
bases:
- BTS
coinmarketcap:
klass: Coinmarketcap
quotes:
- BTC
- BTS
bases:
- BTC
- USD
aex:
klass: Aex
quotes:
- BTS
bases:
- BTC
lbank:
klass: Lbank
quotes:
- BTS
bases:
- BTC
# default settings
default:
# max age of a feed
maxage: 43200
# minimum percentage that forces a publish
min_change: 0.5
# warn if price change goes above this percentage
warn_change: 1.5
# skip publishing a feed if price goes above this percentage
skip_change: 3
# skip publishing a feed if producer is not an active witness.
skip_inactive_witness: True
# how to derive a single price from several sources
# Choose from: "median", "mean", or "weighted" (by volume)
metric: weighted
# Select sources for this particular asset. Each source
# has its own fetch() method and collects several markets
# any market of an exchanges is considered but only the
# current asset's price is derived
#
# Choose from: - "*": all,
# - loaded exchanges (see below)
sources:
- fixer
- openexchangerates
- currencylayer
- btcavg
- quandl
- bitstamp
- okcoin
- poloniex
- zb
- coinmarketcap
- aex
- bitshares
- lbank
# Core exchange factor for paying transaction fees in
# non-BTS assets. Premium of 5%
core_exchange_factor: 1.05
# maintenance collateral ratio (percentage)
maintenance_collateral_ratio: 175.0
# Maximum short squeeze ratio
maximum_short_squeeze_ratio: 110.0
# If set to True, prices are also derived via 3
# markets instead of just two:
# E.g.: GOLD:USD -> USD:BTC -> BTC:BTS = GOLD:BTS
derive_across_3markets: False
# When deriving price across several markets, limit final volume by the step with minimal volume
derive_across_markets_apply_volume_limit: false
# Enabled assets that are derived if no asset is provided via command
# line
assets:
BTC:
USD:
CNY:
core_exchange_factor: 1.2
# TRY:
# RUBLE:
# EUR:
# AUD:
# JPY:
# CHF:
# MXN:
# GBP:
# CAD:
# ARS:
# HKD:
# SEK:
# SGD:
# NZD:
# KRW:
# RUB:
# GOLD:
# SILVER:
# Intermediate assets are useful for 2 and 3 market price derivation
# E.g.: USD:BTC -> BTC:BTS = USD:BTS
# GOLD:USD -> USD:BTC -> BTC:BTS = GOLD:BTS
intermediate_assets:
- CNY
- USD
- BTC