𝗦𝗰𝗮𝗿𝗮𝗯 𝗗𝗶𝗮𝗴𝗻𝗼𝘀𝘁𝗶𝗰 𝗦𝘂𝗶𝘁𝗲 𝗙𝗶𝗲𝗹𝗱 𝗧𝗲𝘀𝘁 #𝟬𝟯𝟬

Scarab Diagnostic Suite identified a bug in Hummingbot.

The issue lived in the PositionExecutor. A close order would fail and trigger a retry loop. If a late fill arrived during this loop, the system ignored it. The executor did not link the late fill to the failed order. This caused the system to send a second market close order.

Duplicate orders create financial risk.

The fix preserves the identity of failed close orders. This allows PositionExecutor to reconcile late fills. If a fill arrives after a failure, the system marks it as successful. The executor then avoids placing a duplicate order.

Validation results:

This test moves Scarab into trading execution. In this space, order identity and lifecycle state are vital. Late fills and retries define how a system functions.

Source: https://dev.to/scarab-systems/scarab-diagnostic-suite-field-test-030-hummingbot-close-order-lifecycle-boundary-3p30

Optional learning community: https://t.me/GyaanSetuAi