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 using a sub-account API key on OKX, orders cannot be placed because they are quantized down to amount 0, likely because the check for available balance reduces amount down to 0. However, this does not occur when using the API key for a primary account
Steps to reproduce
1 - Create sub-account keys for an OKX account
2 - Run Simple PMM with OKX sub-account API key
Config
2024-05-15 10:35:28,002 - 76243 - hummingbot.strategy.script_strategy_base - INFO - Creating ETH-USDT buy order: price: 2967.552675 amount: 0E-29.
2024-05-15 10:35:28,003 - 76243 - hummingbot.strategy.script_strategy_base - INFO - Creating ETH-USDT sell order: price: 2997.377325 amount: 0E-11.
2024-05-15 10:35:28,004 - 76243 - hummingbot.connector.exchange.okx.okx_exchange.OkxExchange - WARNING - Buy order amount 0E-29 is lower than the minimum order size 0.0001. The order will not be created, increase the amount to be higher than the minimum order size.
2024-05-15 10:35:28,005 - 76243 - hummingbot.connector.exchange.okx.okx_exchange.OkxExchange - WARNING - Sell order amount 0E-11 is lower than the minimum order size 0.0001. The order will not be created, increase the amount to be higher than the minimum order size.
Run Simple PMM or Simple VWAP with OKX main account API key
@fengtality@nikspz I already talked with Mike in private since is there is an issue with the connector, should be affecting the main account and the subaccount (there is no specific code for it).
The problem was that the config provided has an order amount of 0.01 ETH (around 300 USDT) and the total balance of the subaccount was 200 USDT.
The Simple PMM script uses the budget checker to adjust the order to the budget, and if you don't have enough balance to send the order will reduce the amount to 0, so the behavior was expected.
I reduced the order amount to 0.001 (around 30 USDT) and I was able to place orders with the subaccount.
Describe the bug
When using a sub-account API key on OKX, orders cannot be placed because they are quantized down to amount 0, likely because the check for available balance reduces amount down to 0. However, this does not occur when using the API key for a primary account
Steps to reproduce
1 - Create sub-account keys for an OKX account
2 - Run Simple PMM with OKX sub-account API key
Config
Logs
Config
Logs
Release version
dev-1.28
Type of installation
Source
Attach required files
logs_conf_simple_pmm_1.log
The text was updated successfully, but these errors were encountered: