Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
sample_selltwap.cfg uses incorrect fields (DATA_TYPE_A and DATA_FEED_…
Browse files Browse the repository at this point in the history
…A_URL), replace them, closes #598
  • Loading branch information
nikhilsaraf committed Dec 1, 2020
1 parent 7c55c13 commit d696d42
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions examples/configs/trader/sample_selltwap.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,34 @@ START_ASK_FEED_TYPE="exchange"
# if left unspecified then this is defaulted to "mid" for backwards compatibility (until v2.0 is released) (LOH-2)
# 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.
# be careful about using USD vs. USDT since some exchanges support only one, or both, or in some cases neither.
#DATA_FEED_A_URL="ccxt-kraken/XLM/USD/last"
#DATA_FEED_A_URL="ccxt-binance/XLM/USDT/ask"
#DATA_FEED_A_URL="ccxt-poloniex/XLM/USDT/bid"
#START_ASK_FEED_URL="ccxt-kraken/XLM/USD/last"
#START_ASK_FEED_URL="ccxt-binance/XLM/USDT/ask"
#START_ASK_FEED_URL="ccxt-poloniex/XLM/USDT/bid"
# 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).
#DATA_FEED_A_URL="ccxt-bittrex/XLM/BTC"
#START_ASK_FEED_URL="ccxt-bittrex/XLM/BTC"
START_ASK_FEED_URL="kraken/XXLM/ZUSD/mid"

# sample priceFeed with the "crypto" type
#DATA_TYPE_A="crypto"
#START_ASK_FEED_TYPE="crypto"
# this is the URL to a coinmarketcap feed which the bot understands.
#DATA_FEED_A_URL="https://api.coinmarketcap.com/v1/ticker/stellar/"
#START_ASK_FEED_URL="https://api.coinmarketcap.com/v1/ticker/stellar/"

# sample priceFeed with the "sdex" type
# this feed pulls from the SDEX, you can use the asset you're trading or something else, like the same coin from another issuer
# DATA_TYPE_A = "sdex"
# START_ASK_FEED_TYPE = "sdex"
# this is a string representing a SDEX pair; the format is CODE:ISSUER/CODE:ISSUER
# for XLM leave the issuer string blank
# DATA_FEED_A_URL="COUPON:GBMMZMK2DC4FFP4CAI6KCVNCQ7WLO5A7DQU7EC7WGHRDQBZB763X4OQI/XLM:"
# START_ASK_FEED_URL="COUPON:GBMMZMK2DC4FFP4CAI6KCVNCQ7WLO5A7DQU7EC7WGHRDQBZB763X4OQI/XLM:"

# sample priceFeed of type "function"
# this feed type uses one of the pre-defined functions to recursively operate on other price feeds
# all URLs for this type of feed are formatted like so: function_name(feed_type/feed_url[,feed_type/feed_url])
#DATA_TYPE_A = "function"
#START_ASK_FEED_TYPE = "function"
# the supported functions for now are only the "max" and "invert" functions, example usage:
# "max": max(exchange/ccxt-kraken/XLM/USD/mid,exchange/ccxt-binance/XLM/USDT/mid) -- will give you the larger price
# between kraken's mid price and binance's mid price
# "invert": invert(exchange/ccxt-kraken/XLM/USD/mid) -- will give you the effective USD/XLM price
#DATA_FEED_A_URL = "max(exchange/ccxt-kraken/XLM/USD/mid,exchange/ccxt-binance/XLM/USDT/mid)"
#START_ASK_FEED_URL = "max(exchange/ccxt-kraken/XLM/USD/mid,exchange/ccxt-binance/XLM/USDT/mid)"

# what value of a price change triggers re-creating an offer. Price change refers to the existing price of the offer vs. what price we want to set. value is a percentage specified as a decimal number (0 < value < 1.00)
PRICE_TOLERANCE=0.001
Expand Down

0 comments on commit d696d42

Please sign in to comment.