mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-05 18:46:27 +08:00
BLD: house keeping
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user