move exchange urls to constants

This commit is contained in:
iuvbio 2019-03-21 19:11:47 +01:00
parent 01c4f243d4
commit 85ac99aee0
2 changed files with 6 additions and 7 deletions

View File

@ -22,6 +22,12 @@ ORDERTIF_POSSIBILITIES = ['gtc', 'fok', 'ioc']
AVAILABLE_PAIRLISTS = ['StaticPairList', 'VolumePairList']
DRY_RUN_WALLET = 999.9
# Urls to exchange markets, insert quote and base with .format()
_EXCHANGE_URLS = {
"Bittrex": '/Market/Index?MarketName={quote}-{base}',
"Binance": '/tradeDetail.html?symbol={base}_{quote}',
}
TICKER_INTERVAL_MINUTES = {
'1m': 1,
'3m': 3,

View File

@ -21,13 +21,6 @@ logger = logging.getLogger(__name__)
API_RETRY_COUNT = 4
# Urls to exchange markets, insert quote and base with .format()
_EXCHANGE_URLS = {
ccxt.bittrex.__name__: '/Market/Index?MarketName={quote}-{base}',
ccxt.binance.__name__: '/tradeDetail.html?symbol={base}_{quote}',
}
def retrier_async(f):
async def wrapper(*args, **kwargs):
count = kwargs.pop('count', API_RETRY_COUNT)