-
Notifications
You must be signed in to change notification settings - Fork 627
Description
2025-08-08T17:13:23 INFO Starting bot okx...
2025-08-08T17:13:34 ERROR error setting hedge mode okx POST https://www.okx.com/api/v5/account/set-position-mode
2025-08-08T17:13:34 ERROR passivbot error okx GET https://www.okx.com/api/v5/asset/currencies
Traceback (most recent call last):
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 1115, in _wrap_create_connection
sock = await aiohappyeyeballs.start_connection(
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/aiohappyeyeballs/impl.py", line 122, in start_connection
raise first_exception
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/aiohappyeyeballs/impl.py", line 73, in start_connection
sock = await _connect_sock(
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/aiohappyeyeballs/impl.py", line 208, in _connect_sock
await loop.sock_connect(sock, address)
File "/Users/mac/.pyenv/versions/3.9.16/lib/python3.9/asyncio/selector_events.py", line 500, in sock_connect
return await fut
File "/Users/mac/.pyenv/versions/3.9.16/lib/python3.9/asyncio/selector_events.py", line 505, in _sock_connect
sock.connect(address)
OSError: [Errno 64] Host is down
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/ccxt/async_support/base/exchange.py", line 208, in fetch
async with session_method(yarl.URL(url, encoded=True),
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/aiohttp/client.py", line 1425, in aenter
self._resp: _RetType = await self._coro
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/aiohttp/client.py", line 703, in _request
conn = await self._connector.connect(
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 548, in connect
proto = await self._create_connection(req, traces, timeout)
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 1056, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 1406, in _create_direct_connection
raise last_exc
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 1375, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host www.okx.com:443 ssl:default [Host is down]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/mac/Desktop/passivbot/src/passivbot.py", line 2457, in main
await bot.start_bot()
File "/Users/mac/Desktop/passivbot/src/passivbot.py", line 196, in start_bot
await self.init_markets()
File "/Users/mac/Desktop/passivbot/src/passivbot.py", line 210, in init_markets
self.markets_dict = await self.cca.load_markets(True)
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/ccxt/async_support/base/exchange.py", line 327, in load_markets
raise e
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/ccxt/async_support/base/exchange.py", line 319, in load_markets
result = await self.markets_loading
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/ccxt/async_support/base/exchange.py", line 284, in load_markets_helper
currencies = await self.fetch_currencies()
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/ccxt/async_support/okx.py", line 1792, in fetch_currencies
response = await self.privateGetAssetCurrencies(params)
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/ccxt/async_support/base/exchange.py", line 935, in request
return await self.fetch2(path, api, method, params, headers, body, config)
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/ccxt/async_support/base/exchange.py", line 929, in fetch2
raise e
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/ccxt/async_support/base/exchange.py", line 920, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
File "/Users/mac/Desktop/passivbot/venv/lib/python3.9/site-packages/ccxt/async_support/base/exchange.py", line 246, in fetch
raise ExchangeNotAvailable(details) from e
ccxt.base.errors.ExchangeNotAvailable: okx GET https://www.okx.com/api/v5/asset/currencies
2025-08-08T17:13:35 INFO restarting bot...
countdown 60...