Merge pull request #313 from lbryio/config-bittrex

Add bittrex to conf
This commit is contained in:
Jack Robison 2016-12-06 12:41:45 -05:00 committed by GitHub
commit 28e88d89a5
2 changed files with 4 additions and 1 deletions

View file

@ -175,6 +175,7 @@ ENVIRONMENT = Env(
# give an attacker access to your wallet and you could lose # give an attacker access to your wallet and you could lose
# all of your credits. # all of your credits.
API_INTERFACE=(str, "localhost"), API_INTERFACE=(str, "localhost"),
bittrex_feed=(str, "https://bittrex.com/api/v1.1/public/getmarkethistory"),
) )

View file

@ -6,8 +6,10 @@ import googlefinance
from twisted.internet import defer, reactor from twisted.internet import defer, reactor
from twisted.internet.task import LoopingCall from twisted.internet.task import LoopingCall
from lbrynet import conf
from lbrynet.metadata.Fee import FeeValidator from lbrynet.metadata.Fee import FeeValidator
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
CURRENCY_PAIRS = ["USDBTC", "BTCLBC"] CURRENCY_PAIRS = ["USDBTC", "BTCLBC"]
@ -81,7 +83,7 @@ class BittrexFeed(MarketFeed):
self, self,
"BTCLBC", "BTCLBC",
"Bittrex", "Bittrex",
"https://bittrex.com/api/v1.1/public/getmarkethistory", conf.settings.bittrex_feed,
{'market': 'BTC-LBC', 'count': 50}, {'market': 'BTC-LBC', 'count': 50},
BITTREX_FEE BITTREX_FEE
) )