|
2 | 2 |
|
3 | 3 | # We are selling the base asset here, i.e. ASSET_CODE_A as defined in the trader config |
4 | 4 |
|
5 | | -# this defines a "priceFeed" type, i.e. where to get the data from |
6 | | -# types supported: |
7 | | -# crypto |
8 | | -# fiat |
9 | | -# fixed |
10 | | -# exchange |
11 | | -# sdex |
12 | | -# |
13 | | -# We take the values from both feeds and divide them to get the center price. |
| 5 | +# Price Feeds |
| 6 | +# Note: we take the value from the A feed and divide it by the value retrieved from the B feed below. |
| 7 | +# the type of feeds can be one of crypto, fiat, fixed, exchange, sdex. |
14 | 8 |
|
| 9 | +# specification of feed type "exchange" |
15 | 10 | DATA_TYPE_A="exchange" |
16 | | -# the format is <exchange name>/<base-asset-code-defined-by-exchange>/<quote-asset-code-defined-by-exchange> |
17 | | -# use "kraken" or any of the ccxt-exchanges (run `kelp exchanges` for full list) |
18 | | -# examples: "kraken", "ccxt-kraken", "ccxt-binance", "ccxt-poloniex", "ccxt-bittrex" |
19 | | -DATA_FEED_A_URL="kraken/XXLM/ZUSD" |
20 | | -# uncomment to use binance, poloniex, or bittrex as your price feed. You will need to set up CCXT to use this, see the "Using CCXT" section in the README for details. |
| 11 | +# the specification of the A feed |
| 12 | +# the format is <exchange name>/<base-asset-code-defined-by-exchange>/<quote-asset-code-defined-by-exchange>/<modifier> |
| 13 | +# exchange name: |
| 14 | +# use "kraken" or any of the ccxt-exchanges (run `kelp exchanges` for full list) |
| 15 | +# examples: "kraken", "ccxt-kraken", "ccxt-binance", "ccxt-poloniex", "ccxt-bittrex" |
| 16 | +# base asset code defined by exchange: |
| 17 | +# this is the asset code defined by the exchange for the asset whose price you want to fetch (base asset). |
| 18 | +# this code can be retrieved from the exchange's website or from the ccxt manual for ccxt-based exchanges. |
| 19 | +# quote asset code defined by exchange: |
| 20 | +# this is the asset code defined by the exchange for asset in which you want to quote the price (quote asset). |
| 21 | +# this code can be retrieved from the exchange's website or from the ccxt manual for ccxt-based exchanges. |
| 22 | +# modifier: |
| 23 | +# this is a modifier that can be included only for feed type "exchange". |
| 24 | +# a modifier allows you to fetch the "mid" price, "ask" price, or "bid" price for now. |
| 25 | +# if left unspecified then this is defaulted to "mid" for backwards compatibility (until v2.0 is released) |
| 26 | +# uncomment below to use binance, poloniex, or bittrex as your price feed. You will need to set up CCXT to use this, see the "Using CCXT" section in the README for details. |
21 | 27 | # be careful about using USD vs. USDT since some exchanges support only one, or both, or in some cases neither. |
22 | | -#DATA_FEED_A_URL="ccxt-kraken/XLM/USD" |
23 | | -#DATA_FEED_A_URL="ccxt-binance/XLM/USDT" |
24 | | -#DATA_FEED_A_URL="ccxt-poloniex/XLM/USDT" |
| 28 | +#DATA_FEED_A_URL="ccxt-kraken/XLM/USD/mid" |
| 29 | +#DATA_FEED_A_URL="ccxt-binance/XLM/USDT/ask" |
| 30 | +#DATA_FEED_A_URL="ccxt-poloniex/XLM/USDT/bid" |
25 | 31 | # 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). |
26 | 32 | #DATA_FEED_A_URL="ccxt-bittrex/XLM/BTC" |
| 33 | +DATA_FEED_A_URL="kraken/XXLM/ZUSD/mid" |
27 | 34 |
|
28 | 35 | # sample priceFeed with the "crypto" type |
29 | 36 | #DATA_TYPE_A="crypto" |
@@ -72,27 +79,27 @@ AMOUNT_OF_A_BASE=10.0 |
72 | 79 | # levels are mirrored on the buy and sell side. spread is a percentage specified as a decimal number (0 < spread < 1.00) |
73 | 80 | # first level |
74 | 81 | [[LEVELS]] |
75 | | -SPREAD=0.00010 # distance from center price = 0.010%, i.e. bid/ask spread = 0.02% |
| 82 | +SPREAD=0.00010 # distance from mid price = 0.010%, i.e. bid/ask spread = 0.02% |
76 | 83 | AMOUNT=100.0 # multiple of base amount = 10.0 * 100 units of base asset |
77 | 84 |
|
78 | 85 | # second level |
79 | 86 | [[LEVELS]] |
80 | | -SPREAD=0.00015 # distance from center price = 0.015%, i.e. bid/ask spread = 0.03% |
| 87 | +SPREAD=0.00015 # distance from mid price = 0.015%, i.e. bid/ask spread = 0.03% |
81 | 88 | AMOUNT=100.0 # multiple of base amount = 10.0 * 100 units of base asset |
82 | 89 |
|
83 | 90 | # third level |
84 | 91 | [[LEVELS]] |
85 | | -SPREAD=0.00020 # distance from center price = 0.020%, i.e. bid/ask spread = 0.04% |
| 92 | +SPREAD=0.00020 # distance from mid price = 0.020%, i.e. bid/ask spread = 0.04% |
86 | 93 | AMOUNT=100.0 # multiple of base amount = 10.0 * 100 units of base asset |
87 | 94 |
|
88 | 95 | # fourth level |
89 | 96 | [[LEVELS]] |
90 | | -SPREAD=0.00025 # distance from center price = 0.025%, i.e. bid/ask spread = 0.05% |
| 97 | +SPREAD=0.00025 # distance from mid price = 0.025%, i.e. bid/ask spread = 0.05% |
91 | 98 | AMOUNT=100.0 # multiple of base amount = 10.0 * 100 units of base asset |
92 | 99 |
|
93 | 100 | # fifth level |
94 | 101 | [[LEVELS]] |
95 | | -SPREAD=0.00030 # distance from center price = 0.030%, i.e. bid/ask spread = 0.06% |
| 102 | +SPREAD=0.00030 # distance from mid price = 0.030%, i.e. bid/ask spread = 0.06% |
96 | 103 | AMOUNT=100.0 # multiple of base amount = 10.0 * 100 units of base asset |
97 | 104 |
|
98 | 105 | # you can have as many levels as you want, just create more entries here |
0 commit comments