prepare to support FIAT/Crypto trading
This commit is contained in:
parent
23e989d31f
commit
eea04c6b58
@ -99,6 +99,8 @@ class CryptoToFiatConverter(object):
|
||||
:param fiat_symbol: fiat to convert to
|
||||
:return: float, value in fiat of the crypto-currency amount
|
||||
"""
|
||||
if crypto_symbol == fiat_symbol:
|
||||
return crypto_amount
|
||||
price = self.get_price(crypto_symbol=crypto_symbol, fiat_symbol=fiat_symbol)
|
||||
return float(crypto_amount) * float(price)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user