Merge pull request #2172 from hroff-1902/exchange-cosmetics
exchange cosmetics
This commit is contained in:
commit
447bcf98e1
@ -772,20 +772,20 @@ class Exchange(object):
|
|||||||
raise OperationalException(e) from e
|
raise OperationalException(e) from e
|
||||||
|
|
||||||
|
|
||||||
def is_exchange_bad(exchange: str) -> bool:
|
def is_exchange_bad(exchange_name: str) -> bool:
|
||||||
return exchange in BAD_EXCHANGES
|
return exchange_name in BAD_EXCHANGES
|
||||||
|
|
||||||
|
|
||||||
def get_exchange_bad_reason(exchange: str) -> str:
|
def get_exchange_bad_reason(exchange_name: str) -> str:
|
||||||
return BAD_EXCHANGES.get(exchange, "")
|
return BAD_EXCHANGES.get(exchange_name, "")
|
||||||
|
|
||||||
|
|
||||||
def is_exchange_available(exchange: str, ccxt_module=None) -> bool:
|
def is_exchange_available(exchange_name: str, ccxt_module=None) -> bool:
|
||||||
return exchange in available_exchanges(ccxt_module)
|
return exchange_name in available_exchanges(ccxt_module)
|
||||||
|
|
||||||
|
|
||||||
def is_exchange_officially_supported(exchange: str) -> bool:
|
def is_exchange_officially_supported(exchange_name: str) -> bool:
|
||||||
return exchange in ['bittrex', 'binance']
|
return exchange_name in ['bittrex', 'binance']
|
||||||
|
|
||||||
|
|
||||||
def available_exchanges(ccxt_module=None) -> List[str]:
|
def available_exchanges(ccxt_module=None) -> List[str]:
|
||||||
|
Loading…
Reference in New Issue
Block a user