mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-15 12:15:22 +08:00
BLD: getting config from the ohlcv directory on the server
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user