Closed RC-13 closed 1 year ago
Hi, Thank you for reporting the bug
After replicate and tracing the bug, I found that the balance is updated fine live monitor status.
This is when bot only creating 2 bid orders at first
and then bot cancel those orders and creating 3 bid orders. On monitor panel, it shows that balance is updated
For the fails to create order issue is because the base code of hummingbot is returning zero decimal (0) when validating the order amount (at quantize_order_amount function in class exchange_py_base.py) and not submiting the order because not meet the minimal order size.
code of quantize_order_amount function --> this function will always return 0 amount of buy if amount not meet the minimum order size of exchange and not meet the minimum notional size with + 1% of minimum notional size of exchange.
and this is the validation before submiting the order
So, I decide to override those function to show more informative error log when fail in validation this order is not meet the minimum notional size of exhange for USDT-BIDR pair (must atleast 20K IDR)
Hello @toriqahmads Thank you for checking this issue. The reason for the failing to submit an order is clear, however, its not clear why there was about 2 min period wherein the balance suddenly doesn't update. In my screenshot, we can see that there are no active orders both in the bot and exchange, so it is expected that the available balance should be equal to the total balance.
Note: I'm only running a single bot at that time. And the balance has been updating properly for about 10 min (first time seen the behavior). The second time I saw it was after running the bot for almost an hour.
Hi @RC-13 I don't know why that's happen, but based on the account balance update function, the total balance is from total free assets + total locked assets, and the available balance is from only total free assets. This mean that assets that locked in opened orders, staking, pending withdrawal or freezing asset is not calculated in available balance.
can you please check that your account have some locked assets?
HI @RC-13
I just tested again and it should be work fine now
have some active orders:
while no active orders:
Note: the bot needs a few seconds to update balance while there are have some update filled/complete order (in mine, it needs 1-2 seconds wait to update the live account balance)
I've pushed the updates. Kindly check and test again.
Commit: https://github.com/Tokocrypto/hummingbot/commit/1fb3cae2909b7bf01f80c67ebbd5f007416fd23a
Thank you
We will run an overnight bot and check the behavior, will post an update if no longer seeing the reported behavior.
Did not hit the issue during overnight runtime using the latest commit 1fb3cae2909b7bf01f80c67ebbd5f007416fd23a
Hi @PtrckM ,
Thank you for the updates.
Is this issue clear?
Closing this ticket now
Describe the bug Captured a scenario wherein the client stopped placing an order for about 2 min. It turns out that the balance did not update during this period. If we checked the exchanged, there was no open order at that time. So far I've seen it happened twice.
In the logs, the client created 4 ask orders (1 fail due to insufficient balance)
After this orders are canceled, the client starts to create a single ask order however it fails due to not meeting the exchange requirement. This is when we can see that there are no orders in the client for about 2min.
Steps To Reproduce
Possible step on how to replicate the behavior:
Release version Version: dev-1.10.0
Attachments tokocrypto-test-logs-and-config.zip