This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 264
/
sample_mirror.cfg
66 lines (55 loc) · 3.29 KB
/
sample_mirror.cfg
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
# Sample config file for the "mirror" strategy
# specifies the exchange to use, currently we only support the "kraken", "ccxt-binance", "ccxt-poloniex", and "ccxt-bittrex" exchanges. You can easily add support for your own exchange and set this field once it has been integrated into the bot.
# You will need to set up CCXT to use the CCXT-based exchanges, see the "Using CCXT" section in the README for details.
EXCHANGE="kraken"
# the base asset as specified by the exchange.
EXCHANGE_BASE="XXLM"
# the quote asset as specified by the exchange.
EXCHANGE_QUOTE="ZUSD"
# some alternative setups for ccxt-based exchanges:
# be careful about using USD vs. USDT since some exchanges support only one, or both, or in some cases neither.
# binance (these are the only valid values for ORDERBOOK_DEPTH when using binance: 5, 10, 20, 50)
#EXCHANGE="ccxt-binance"
#EXCHANGE_BASE="XLM"
#EXCHANGE_QUOTE="USDT"
# poloniex
#EXCHANGE="ccxt-poloniex"
#EXCHANGE_BASE="XLM"
#EXCHANGE_QUOTE="USDT"
# bittrex
# bittrex does not have an XLM/USD market so this config lists XLM/BTC instead; you should NOT use this when trying to price an asset based on the XLM/USD price (unless you know what you are doing).
#EXCHANGE="ccxt-bittrex"
#EXCHANGE_BASE="XLM"
#EXCHANGE_QUOTE="BTC"
# maximum depth of order levels that we want to create on the orderbook on each side
ORDERBOOK_DEPTH=40
# number to divide volume by when placing orders so we can scale volume as needed
VOLUME_DIVIDE_BY=500.0
# spread % we should maintain per level between the mirrored exchange and SDEX (0 < spread < 1.0). This moves the price away from the center price on SDEX so we can cover the position on the external exchange, i.e. if this value is > 0 then the spread you provide on SDEX will be more than the spread on the exchange you are mirroring.
# in this example the spread is 0.5%
PER_LEVEL_SPREAD=0.005
# minimum values for Kraken: https://support.kraken.com/hc/en-us/articles/205893708-What-is-the-minimum-order-size-volume-
# minimum order value for Binance: https://support.binance.com/hc/en-us/articles/115000594711-Trading-Rule
# (optional) number of decimal units to be used for price, which is specified in units of the quote asset, needed to place an order on the backing exchange
#PRICE_PRECISION_OVERRIDE=6
# (optional) number of decimal units to be used for volume, which is specified in units of the base asset, needed to place an order on the backing exchange
#VOLUME_PRECISION_OVERRIDE=1
# (optional) minimum volume of base units needed to place an order on the backing exchange
#MIN_BASE_VOLUME_OVERRIDE=30.0
# (optional) minimum volume of quote units needed to place an order on the backing exchange
#MIN_QUOTE_VOLUME_OVERRIDE=30.0
# set to true if you want the bot to offset your trades onto the backing exchange to realize the per_level_spread against each trade
# requires you to specify the EXCHANGE_API_KEYS below
#OFFSET_TRADES=true
# you can use multiple API keys to overcome rate limit concerns
#[[EXCHANGE_API_KEYS]]
#KEY=""
#SECRET=""
# if your exchange requires additional parameters, list them here with the the necessary values (only ccxt supported currently)
#[[EXCHANGE_PARAMS]]
#PARAM=""
#VALUE=""
# if your exchange requires additional headers, list them here with the the necessary values (only ccxt supported currently)
#[[EXCHANGE_HEADERS]]
#HEADER=""
#VALUE=""