Update list-exchanges with watchOHLCV
This commit is contained in:
@@ -92,6 +92,8 @@ EXCHANGE_HAS_OPTIONAL = [
|
|||||||
# 'fetchMarketLeverageTiers', # Futures initialization
|
# 'fetchMarketLeverageTiers', # Futures initialization
|
||||||
# 'fetchOpenOrder', 'fetchClosedOrder', # replacement for fetchOrder
|
# 'fetchOpenOrder', 'fetchClosedOrder', # replacement for fetchOrder
|
||||||
# 'fetchOpenOrders', 'fetchClosedOrders', # 'fetchOrders', # Refinding balance...
|
# 'fetchOpenOrders', 'fetchClosedOrders', # 'fetchOrders', # Refinding balance...
|
||||||
|
# ccxt.pro
|
||||||
|
'watchOHLCV'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,10 @@ def validate_exchange(exchange: str) -> Tuple[bool, str]:
|
|||||||
returns: can_use, reason
|
returns: can_use, reason
|
||||||
with Reason including both missing and missing_opt
|
with Reason including both missing and missing_opt
|
||||||
"""
|
"""
|
||||||
ex_mod = getattr(ccxt, exchange.lower())()
|
try:
|
||||||
|
ex_mod = getattr(ccxt.pro, exchange.lower())()
|
||||||
|
except AttributeError:
|
||||||
|
ex_mod = getattr(ccxt.async_support, exchange.lower())()
|
||||||
result = True
|
result = True
|
||||||
reason = ""
|
reason = ""
|
||||||
if not ex_mod or not ex_mod.has:
|
if not ex_mod or not ex_mod.has:
|
||||||
|
|||||||
Reference in New Issue
Block a user