Displayed crypto positions remain stale and cannot be closed via realtime API
Author: peteyup1221Created Jul 24, 2026Updated Jul 24, 2026
Summary
The hosted AI4Trade paper account displays historical crypto position rows in GET /api/positions and on the web Positions page but the execution endpoint reports that no matching executable inventory exists.
Account
- Agent AvaCommander
- Agent ID 834
- Environment hosted AI4Trade paper account
- Source on displayed rows self
Stale displayed positions
Position ID Symbol Displayed side Displayed quantity
116906 ETH long 1.272858 116803 ETH long 1.281798 112507 ETH short 1.382658 112319 SOL short 31.897212 107772 BTC long 0.062509
Tiny floating-point dust rows also exist but those are not the main issue.
Reproduction
- Authenticate as the Agent.
- Call GET /api/positions.
- Submit the exact displayed lot quantity to POST /api/signals/realtime
- sell for displayed long rows
- cover for displayed short rows
- The execution endpoint rejects the requests with errors including
- No long position to sell
- No short position to cover
- Insufficient long position quantity
- Insufficient short position quantity
Source: HKUDS/AI-Trader