add bittrex to conf
This commit is contained in:
parent
2fb71610a4
commit
8f80e8a3da
2 changed files with 4 additions and 1 deletions
|
@ -176,6 +176,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"),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue