Alpaca bug - Negative shares

Hi, I’ve been using the Alpaca paper money api to test my trading algorithms but my paper money account ended up with -6000 shares.
How is that even possible? This would’ve been problematic if I was using real money with my trading algorithm

Hopefully you guys will be able to fix this bug or else I won’t feel safe running my trading algorithm with live money on Alpaca.



Hi ry12

A negative share amount means you have a short position in that stock.

You may have at some point submitted an order which sold more shares than you had of TQQQ.

Oh it’s that easy to short stocks on Alpaca. Is there a way to turn off this feature so an error pops up if one tries to sell more than the shares they currently have?

You should be able to turn off shorting from the configurations page on the dashboard.