While monitoring the logs, random network errors were displaying.
2023-04-18 11:24:00,508 - 1594 - hummingbot.connector.derivative.phemex_perpetual.phemex_perpetual_derivative.PhemexPerpetualDerivative - NETWORK - Unexpected error while fetching account updates.
Traceback (most recent call last):
File "/Users/admin/phemex/hummingbot/connector/exchange_py_base.py", line 813, in _status_polling_loop
await self._status_polling_loop_fetch_updates()
File "/Users/admin/phemex/hummingbot/connector/derivative/phemex_perpetual/phemex_perpetual_derivative.py", line 213, in _status_polling_loop_fetch_updates
await safe_gather(
File "/Users/admin/phemex/hummingbot/core/utils/async_utils.py", line 22, in safe_gather
return await asyncio.gather(*args, **kwargs)
File "/Users/admin/phemex/hummingbot/connector/derivative/phemex_perpetual/phemex_perpetual_derivative.py", line 581, in _update_balances
raise IOError(f"{code} - {message}")
OSError: 39999 - Error in query account position
2023-04-18 11:24:01,243 - 1594 - hummingbot.connector.derivative.phemex_perpetual.phemex_perpetual_derivative.PhemexPerpetualDerivative - WARNING - Could not fetch account updates from Phemex_perpetual. Check API key and network connection.
2023-04-18 11:24:02,020 - 1594 - hummingbot.connector.derivative.phemex_perpetual.phemex_perpetual_derivative.PhemexPerpetualDerivative - NETWORK - Unexpected error while fetching account updates.
Traceback (most recent call last):
File "/Users/admin/phemex/hummingbot/connector/exchange_py_base.py", line 813, in _status_polling_loop
await self._status_polling_loop_fetch_updates()
File "/Users/admin/phemex/hummingbot/connector/derivative/phemex_perpetual/phemex_perpetual_derivative.py", line 213, in _status_polling_loop_fetch_updates
await safe_gather(
File "/Users/admin/phemex/hummingbot/core/utils/async_utils.py", line 22, in safe_gather
return await asyncio.gather(*args, **kwargs)
File "/Users/admin/phemex/hummingbot/connector/derivative/phemex_perpetual/phemex_perpetual_derivative.py", line 601, in _update_positions
for position in positions.get("data", {}).get("positions", []):
AttributeError: 'NoneType' object has no attribute 'get'
Steps to reproduce
Clone and install the feat branch
Create a Perpetual Market Making Strategy. Set tight spreads to fill in orders quickly.
Summary and Screenshots
While monitoring the logs, random network errors were displaying.
Steps to reproduce
Expected Results
Test Result Comparison
n/a, new connector
Attachments
Network_error_Phemex.zip