Permalink
Browse files

Merge pull request #314 from december-soul/split_market_name

add options for Base Currency and Quote Currency
  • Loading branch information...
shads2 committed Jun 8, 2018
2 parents 5c59716 + be56d8c commit 7ea9255ed5c3dd9b3212a43bd489e85271792670
Showing with 5 additions and 0 deletions.
  1. +3 −0 app/notification.py
  2. +2 −0 docs/config.md
View
@@ -320,10 +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,
base_currency=base_currency,
quote_currency=quote_currency,
indicator=indicator,
indicator_number=index,
analysis=analysis,
View
@@ -304,6 +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.
- 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 7ea9255

Please sign in to comment.