You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running test on kucoin spot, we observed instances of these errors while the connector was fetching trade updates, balances or trying to cancel an active order
Failed to fetch trade updates:
2024-02-22 14:59:16,360 - 71791 - hummingbot.connector.exchange.kucoin.kucoin_exchange.KucoinExchange - WARNING - Failed to fetch trade updates. Error: Error executing request GET https://api.kucoin.com/api/v1/fills. HTTP status is 400. Error: {"code":"400002","msg":"Invalid KC-API-TIMESTAMP"}
Failed to cancel order:
2024-02-22 15:17:04,438 - 71791 - hummingbot.connector.exchange.kucoin.kucoin_exchange.KucoinExchange - ERROR - Failed to cancel order BSLUT611f300c7f139e43fde9f696090a26c784d
Traceback (most recent call last):
File "/Users/rapcomia/github/hummingbot/staging/hummingbot/connector/exchange_py_base.py", line 520, in _execute_order_cancel
cancelled = await self._execute_order_cancel_and_process_update(order=order)
File "/Users/rapcomia/github/hummingbot/staging/hummingbot/connector/exchange_py_base.py", line 540, in _execute_order_cancel_and_process_update
cancelled = await self._place_cancel(order.client_order_id, order)
File "/Users/rapcomia/github/hummingbot/staging/hummingbot/connector/exchange/kucoin/kucoin_exchange.py", line 226, in _place_cancel
cancel_result = await self._api_delete(
File "/Users/rapcomia/github/hummingbot/staging/hummingbot/connector/exchange_py_base.py", line 875, in _api_delete
return await self._api_request(*args, **kwargs)
File "/Users/rapcomia/github/hummingbot/staging/hummingbot/connector/exchange_py_base.py", line 905, in _api_request
request_result = await rest_assistant.execute_request(
File "/Users/rapcomia/github/hummingbot/staging/hummingbot/core/web_assistant/rest_assistant.py", line 47, in execute_request
response = await self.execute_request_and_get_response(
File "/Users/rapcomia/github/hummingbot/staging/hummingbot/core/web_assistant/rest_assistant.py", line 99, in execute_request_and_get_response
raise IOError(f"Error executing request {method.name} {url}. HTTP status is {response.status}. "
OSError: Error executing request DELETE https://api.kucoin.com/api/v1/orders/65d6f1206100db0007218806. HTTP status is 400. Error: {"code":"400002","msg":"Invalid KC-API-TIMESTAMP"}
Failed to update balance:
2024-02-22 17:09:16,591 - 71791 - hummingbot.connector.exchange.kucoin.kucoin_exchange.KucoinExchange - WARNING - Failed to update balances. Error: Error executing request GET https://api.kucoin.com/api/v1/accounts. HTTP status is 400. Error: {"code":"400002","msg":"Invalid KC-API-TIMESTAMP"}
Traceback (most recent call last):
File "/Users/rapcomia/github/hummingbot/staging/hummingbot/connector/exchange_py_base.py", line 938, in _update_all_balances
await self._update_balances()
File "/Users/rapcomia/github/hummingbot/staging/hummingbot/connector/exchange/kucoin/kucoin_exchange.py", line 320, in _update_balances
response = await self._api_get(
File "/Users/rapcomia/github/hummingbot/staging/hummingbot/connector/exchange_py_base.py", line 863, in _api_get
return await self._api_request(*args, **kwargs)
File "/Users/rapcomia/github/hummingbot/staging/hummingbot/connector/exchange_py_base.py", line 905, in _api_request
request_result = await rest_assistant.execute_request(
File "/Users/rapcomia/github/hummingbot/staging/hummingbot/core/web_assistant/rest_assistant.py", line 47, in execute_request
response = await self.execute_request_and_get_response(
File "/Users/rapcomia/github/hummingbot/staging/hummingbot/core/web_assistant/rest_assistant.py", line 99, in execute_request_and_get_response
raise IOError(f"Error executing request {method.name} {url}. HTTP status is {response.status}. "
OSError: Error executing request GET https://api.kucoin.com/api/v1/accounts. HTTP status is 400. Error: {"code":"400002","msg":"Invalid KC-API-TIMESTAMP"}
On the attached log file:
2024-02-22 17:57:19,179 - Failed to cancel error occurred
2024-02-22 18:02:24,273 - Connector fixed itself and orders canceled successfully
Took 5mins to cancel orders ok and seen happened again on later timeframes
This is also observed when stop command is initiated causing orders to be stuck on exchange.
Tried to run again stop command so it can try to recheck active orders but still same error
Steps to reproduce
Add Kucoin spot API keys
Setup a v1(Pure Market Making) or v2 strategy script with long refresh time (15mins or more)
Describe the bug
When running test on kucoin spot, we observed instances of these errors while the connector was fetching trade updates, balances or trying to cancel an active order
Failed to fetch trade updates:
Failed to cancel order:
Failed to update balance:
Steps to reproduce
Release version
dev-1.25.0
Type of installation
Source
Attach required files
logs_pmm-kucoin1.log
The text was updated successfully, but these errors were encountered: