Add note about okx trading mode

This commit is contained in:
Matthias
2022-09-21 20:59:12 +02:00
parent 923182680e
commit 08e183fb55
2 changed files with 2 additions and 1 deletions

View File

@@ -71,6 +71,7 @@ class Okx(Exchange):
try:
if self.trading_mode == TradingMode.FUTURES and not self._config['dry_run']:
accounts = self._api.fetch_accounts()
self._log_exchange_response('fetch_accounts', accounts)
if len(accounts) > 0:
self.net_only = accounts[0].get('info', {}).get('posMode') == 'net_mode'
except ccxt.DDoSProtection as e: