odd cut and paste error fixed.
This commit is contained in:
parent
6e437a7290
commit
d23b3ccc5e
@ -124,6 +124,7 @@ CONF_SCHEMA = {
|
|||||||
'type': 'object',
|
'type': 'object',
|
||||||
'properties': {
|
'properties': {
|
||||||
'name': {'type': 'string'},
|
'name': {'type': 'string'},
|
||||||
|
'sandbox': {'type': 'boolean'},
|
||||||
'key': {'type': 'string'},
|
'key': {'type': 'string'},
|
||||||
'secret': {'type': 'string'},
|
'secret': {'type': 'string'},
|
||||||
'pair_whitelist': {
|
'pair_whitelist': {
|
||||||
|
@ -95,6 +95,11 @@ class Exchange(object):
|
|||||||
except (KeyError, AttributeError):
|
except (KeyError, AttributeError):
|
||||||
raise OperationalException(f'Exchange {name} is not supported')
|
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
|
return api
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user