Skip to content

Commit f8cfbfd

Browse files
committed
Fix flake8 warnings
1 parent c46b3ad commit f8cfbfd

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

investing_algorithm_framework/infrastructure/data_providers/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def get_default_data_providers():
1212
CCXTDataProvider(),
1313
]
1414

15+
1516
def get_default_ohlcv_data_providers():
1617
"""
1718
Function to get the default OHLCV data providers.
@@ -23,6 +24,7 @@ def get_default_ohlcv_data_providers():
2324
CCXTOHLCVDataProvider(),
2425
]
2526

27+
2628
__all__ = [
2729
'CCXTDataProvider',
2830
'CCXTOHLCVDataProvider',

investing_algorithm_framework/infrastructure/data_providers/ccxt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ def create_start_date(self, end_date, time_frame, window_size):
315315
return end_date - timedelta(minutes=window_size * minutes)
316316

317317

318-
319318
class CCXTOHLCVDataProvider(DataProvider):
320319
"""
321320
CCXT OHLCV Data Provider is a data provider that uses the

investing_algorithm_framework/services/market_data_source_service/data_provider_service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import logging
2+
from collections import defaultdict
23
from datetime import datetime
34
from typing import List, Optional
4-
from collections import defaultdict
55

66
from investing_algorithm_framework.domain import DataProvider, \
7-
OperationalException, NetworkError, ImproperlyConfigured, TradingDataType
7+
OperationalException, ImproperlyConfigured, TradingDataType
88

99
logger = logging.getLogger("investing_algorithm_framework")
1010

@@ -28,6 +28,7 @@ def register_data_provider(self, data_provider: DataProvider) -> None:
2828
"""
2929
self.data_providers.append(data_provider)
3030

31+
3132
class OHLCVDataProviderIndex:
3233
"""
3334
Efficient lookup for ohlcv data providers in O(1) time.
@@ -130,7 +131,6 @@ def reset(self):
130131
self.data_providers = []
131132

132133

133-
134134
class DataProviderService:
135135
data_providers: List[DataProvider] = []
136136
default_data_providers: List[DataProvider] = [

0 commit comments

Comments
 (0)