Permalink
Browse files

rename template option to base_currency and quote_currency

  • Loading branch information...
patrick
patrick committed Jun 6, 2018
1 parent ca667f1 commit be56d8c0b87edfac8cce96467a2e1dbba63e129a
Showing with 5 additions and 4 deletions.
  1. +3 −2 app/notification.py
  2. +2 −2 docs/config.md
View
@@ -320,12 +320,13 @@ def _indicator_message_templater(self, new_analysis, template):
should_alert = False
if should_alert:
base_currency, quote_currency = market.split('/')
new_message += message_template.render(
values=values,
exchange=exchange,
market=market,
market_from=market.split("/")[0],
market_to=market.split("/")[1],
base_currency=base_currency,
quote_currency=quote_currency,
indicator=indicator,
indicator_number=index,
analysis=analysis,
View
@@ -304,8 +304,8 @@ The notifier templates are built with a templating language called [Jinja2](http
- exchange - The name of the exchange for the indicator.
- market - The name of the market for the indicator.
- market_from - The name of the base currency. If the market is BTC/USD, then this value is BTC.
- market_to - The name of the quote currency. If the market is BTC/USD, then this value is USD.
- base_currency - The name of the base currency. If the market is BTC/USD, then this value is BTC.
- quote_currency - The name of the quote currency. If the market is BTC/USD, then this value is USD.
- indicator - The name of the analyzer used for this indicator.
- indicator_number - Which configured instance of the analyzer this indicator applies too.
- status - Whether the indicator is hot, cold or neutral.

0 comments on commit be56d8c

Please sign in to comment.