This commit is contained in:
creslin 2018-07-27 08:49:42 +00:00 committed by GitHub
commit 5262e63794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -124,6 +124,7 @@ CONF_SCHEMA = {
'type': 'object',
'properties': {
'name': {'type': 'string'},
'sandbox': {'type': 'boolean'},
'key': {'type': 'string'},
'secret': {'type': 'string'},
'pair_whitelist': {

View File

@ -95,6 +95,11 @@ class Exchange(object):
except (KeyError, AttributeError):
raise OperationalException(f'Exchange {name} is not supported')
# check if config requests sanbox, if so use ['test'] from url
if (exchange_config.get('sandbox')):
api.urls['api'] = api.urls['test'];
#exchange.urls['api'] = exchange.urls['test'];
return api
@property