diff --git a/lbrynet/conf.py b/lbrynet/conf.py index e2162f8f7..738a524b6 100644 --- a/lbrynet/conf.py +++ b/lbrynet/conf.py @@ -175,6 +175,7 @@ ENVIRONMENT = Env( # give an attacker access to your wallet and you could lose # all of your credits. API_INTERFACE=(str, "localhost"), + bittrex_feed=(str, "https://bittrex.com/api/v1.1/public/getmarkethistory"), ) diff --git a/lbrynet/lbrynet_daemon/ExchangeRateManager.py b/lbrynet/lbrynet_daemon/ExchangeRateManager.py index 8748d5cd0..097f4321d 100644 --- a/lbrynet/lbrynet_daemon/ExchangeRateManager.py +++ b/lbrynet/lbrynet_daemon/ExchangeRateManager.py @@ -6,8 +6,10 @@ import googlefinance from twisted.internet import defer, reactor from twisted.internet.task import LoopingCall +from lbrynet import conf from lbrynet.metadata.Fee import FeeValidator + log = logging.getLogger(__name__) CURRENCY_PAIRS = ["USDBTC", "BTCLBC"] @@ -81,7 +83,7 @@ class BittrexFeed(MarketFeed): self, "BTCLBC", "Bittrex", - "https://bittrex.com/api/v1.1/public/getmarkethistory", + conf.settings.bittrex_feed, {'market': 'BTC-LBC', 'count': 50}, BITTREX_FEE )