BLD: getting config from the ohlcv directory on the server

This commit is contained in:
Frederic Fortier
2018-03-08 15:51:10 -05:00
parent 42aac37f34
commit 7ce382d52e
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ def scan_exchange_configs(features=None, history=None, is_authenticated=False,
def get_exchange_config(exchange_name, path=None, environ=None,
expiry='2H'):
expiry='1H'):
"""
The de-serialized content of the exchange's config.json.
Parameters
@@ -13,6 +13,7 @@ from six.moves.urllib import request
from catalyst.constants import EXCHANGE_CONFIG_URL
from catalyst.exchange.utils.serialization_utils import ExchangeJSONEncoder, \
ExchangeJSONDecoder, ConfigJSONEncoder
from catalyst.utils.deprecate import deprecated
from catalyst.utils.paths import data_root, ensure_directory, \
last_modified_time
@@ -105,6 +106,7 @@ def download_exchange_config(exchange_name, filename, environ=None):
request.urlretrieve(url=url, filename=filename)
@deprecated
def get_exchange_config(exchange_name, filename=None, environ=None):
"""
The de-serialized content of the exchange's config.json.