mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
Add type-hint to exchange_has dict
This commit is contained in:
@@ -2,7 +2,7 @@ import asyncio
|
|||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
from typing import Any, Callable, Optional, TypeVar, cast, overload
|
from typing import Any, Callable, Dict, List, Optional, TypeVar, cast, overload
|
||||||
|
|
||||||
from freqtrade.constants import ExchangeConfig
|
from freqtrade.constants import ExchangeConfig
|
||||||
from freqtrade.exceptions import DDosProtection, RetryableOrderError, TemporaryError
|
from freqtrade.exceptions import DDosProtection, RetryableOrderError, TemporaryError
|
||||||
@@ -61,7 +61,7 @@ SUPPORTED_EXCHANGES = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
# either the main, or replacement methods (array) is required
|
# either the main, or replacement methods (array) is required
|
||||||
EXCHANGE_HAS_REQUIRED = {
|
EXCHANGE_HAS_REQUIRED: Dict[str, List[str]] = {
|
||||||
# Required / private
|
# Required / private
|
||||||
'fetchOrder': ['fetchOpenOrder', 'fetchClosedOrder'],
|
'fetchOrder': ['fetchOpenOrder', 'fetchClosedOrder'],
|
||||||
'cancelOrder': [],
|
'cancelOrder': [],
|
||||||
|
|||||||
Reference in New Issue
Block a user