Closed rxlxrxsx closed 1 year ago
@rxlxrxsx It says insufficient balance. However, I'll try to suppress that error.
@rxlxrxsx I raised a clearer error in this case.
Thank you @vic-en, we found out the issue and it was due to the position management (one-way, hedge) being different from the exchange and confirm orders are now being placed. Posting the error message here for reference:
2023-04-15 11:03:06,089 - 3313062 - hummingbot.connector.derivative.phemex_perpetual.phemex_perpetual_derivative.PhemexPerpetualDerivative - NETWORK - Error submitting buy LIMIT order to Phemex_perpetual for 500.0 DOGE-USDT 0.08748.
Traceback (most recent call last):
File "/home/ubuntu/phemex/hummingbot/connector/exchange_py_base.py", line 484, in _create_order
exchange_order_id = await self._place_order_and_process_update(order=order, **kwargs,)
File "/home/ubuntu/phemex/hummingbot/connector/exchange_py_base.py", line 502, in _place_order_and_process_update
exchange_order_id, update_timestamp = await self._place_order(
File "/home/ubuntu/phemex/hummingbot/connector/derivative/phemex_perpetual/phemex_perpetual_derivative.py", line 323, in _place_order
raise IOError(f"{code} - {order_result.get('msg')}")
OSError: 20004 - TE_ERR_INCONSISTENT_POS_MODE
Summary and Screenshots
Getting this error every time the bot tries to place an order.
Steps To Reproduce
Expected Results
Bot should be able to place orders given it has enough asset to place an order
Test Result Comparison
N/A, new connector
Attachments
Logs and config: phemex_order.zip