[Bug] Sold twice when executing sell

I am testing the paper trading.

the bug is:

  1. i submit a sell order, the response was insufficient qty but the dashboard shows that it was accepted and then filled
  2. as an exception handling, i have a close all positions logic when exception thrown

and you can see on the screenshot: i buy 1711, then sell 1711, it still enables me to sell 1711 more. This leads to double my cash and i have to reset now.

Hope this can be consistent in your real trading, i won’t mind if it can help me double my cash every day.

Thank you