default fiat_currency to none
This commit is contained in:
parent
f54ac5a8de
commit
456e49fe35
@ -224,7 +224,7 @@ class Telegram(RPC):
|
|||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
stake_cur = self._config['stake_currency']
|
stake_cur = self._config['stake_currency']
|
||||||
fiat_disp_cur = self._config['fiat_display_currency']
|
fiat_disp_cur = self._config.get('fiat_display_currency', None)
|
||||||
try:
|
try:
|
||||||
timescale = int(update.message.text.replace('/daily', '').strip())
|
timescale = int(update.message.text.replace('/daily', '').strip())
|
||||||
except (TypeError, ValueError):
|
except (TypeError, ValueError):
|
||||||
@ -257,7 +257,7 @@ class Telegram(RPC):
|
|||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
stake_cur = self._config['stake_currency']
|
stake_cur = self._config['stake_currency']
|
||||||
fiat_disp_cur = self._config['fiat_display_currency']
|
fiat_disp_cur = self._config.get('fiat_display_currency', None)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
stats = self._rpc_trade_statistics(
|
stats = self._rpc_trade_statistics(
|
||||||
@ -296,7 +296,7 @@ class Telegram(RPC):
|
|||||||
def _balance(self, bot: Bot, update: Update) -> None:
|
def _balance(self, bot: Bot, update: Update) -> None:
|
||||||
""" Handler for /balance """
|
""" Handler for /balance """
|
||||||
try:
|
try:
|
||||||
result = self._rpc_balance(self._config['fiat_display_currency'])
|
result = self._rpc_balance(self._config.get('fiat_display_currency', None))
|
||||||
output = ''
|
output = ''
|
||||||
for currency in result['currencies']:
|
for currency in result['currencies']:
|
||||||
output += "*{currency}:*\n" \
|
output += "*{currency}:*\n" \
|
||||||
|
Loading…
Reference in New Issue
Block a user