# \[Bug\] Sold twice when executing sell

**URL:** <https://forum.alpaca.markets/t/bug-sold-twice-when-executing-sell/10999>\
**Category:** Alpaca Account Troubleshooting\
**Created:** [November 8, 2022, 12:33am UTC](https://forum.alpaca.markets/t/bug-sold-twice-when-executing-sell/10999 "2022-11-08T00:33:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyle](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kyle](https://forum.alpaca.markets/u/kyle)\
**Post date:** [November 8, 2022, 12:33am UTC](https://forum.alpaca.markets/t/bug-sold-twice-when-executing-sell/10999/1 "2022-11-08T00:33:48Z")

</div>

I am testing the paper trading.

 ![Screenshot 2022-11-07 at 7.28.25 PM](https://us1.discourse-cdn.com/flex020/uploads/alp/original/2X/1/186ebdd55588142103240de3257191ac4a2bbfc3.png)

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
