BLD: house keeping

This commit is contained in:
Frederic Fortier
2017-12-29 18:43:22 -05:00
parent 24d7f52d46
commit 4a904a0106
4 changed files with 5 additions and 10 deletions
@@ -20,12 +20,6 @@ log = Logger('DataPortalExchange', level=LOG_LEVEL)
class DataPortalExchangeBase(DataPortal):
def __init__(self, *args, **kwargs):
# TODO: put somewhere accessible by each algo
self.retry_get_history_window = 5
self.retry_get_spot_value = 5
self.retry_delay = 5
self.attempts = dict(
get_spot_value_attempts=5,
get_history_window_attempts=5,
+1
View File
@@ -4,6 +4,7 @@ from catalyst.gens.sim_engine import (
SESSION_START
)
from logbook import Logger
from catalyst.constants import LOG_LEVEL
from catalyst.exchange.utils.stats_utils import prepare_stats
+3 -2
View File
@@ -1,8 +1,9 @@
from catalyst.exchange.exchange_errors import \
MismatchingBaseCurrenciesExchanges
import matplotlib.dates as mdates
import pandas as pd
from catalyst.exchange.exchange_errors import \
MismatchingBaseCurrenciesExchanges
fmt = mdates.DateFormatter('%Y-%m-%d %H:%M')
@@ -1,9 +1,8 @@
import json
import re
from json import JSONEncoder
import pandas as pd
import re
from six import string_types
from catalyst.constants import DATE_TIME_FORMAT