Add fix for bibox exchange

This commit is contained in:
hroff-1902
2019-11-13 19:50:54 +03:00
parent baea06eac7
commit e26bbc7de8
3 changed files with 29 additions and 0 deletions

View File

@@ -30,6 +30,9 @@ class Exchange:
_config: Dict = {}
# Adjustments to ccxt exchange API metadata info (ccxt exchange `has` options)
_ccxt_has: Dict = {}
# Parameters to add directly to buy/sell calls (like agreeing to trading agreement)
_params: Dict = {}
@@ -152,6 +155,10 @@ class Exchange:
except ccxt.BaseError as e:
raise OperationalException(f"Initialization of ccxt failed. Reason: {e}") from e
# Adjust ccxt API metadata info (`has` options) for the exchange
for k, v in self._ccxt_has.items():
api.has[k] = v
self.set_sandbox(api, exchange_config, name)
return api