Closed lvca closed 4 years ago
Please note that @ivca the negative quantity and "side": "short" go hand in hand. We support short selling of securities as well as long, currently easy to borrow tickers are shortable. This is a case where you sold a position that was at qty=0, which results in a short position. You can short assets that are listed as shortable in our assets api.
We understand there are cases where "over selling" can inadvertently result in this and we are considering options to prevent this in the API. The request #85 actually just came in right before yours that addresses this exact issue.
This is exactly why I opened up this issue : https://github.com/alpacahq/Alpaca-API/issues/85
These kinda of "happy accidents" could be easily avoided if Alpaca changed from simple Buy Sell to BTO, STC, STO, BTC.
I agree with @codebeaulieu, that this is confusing. By the way, I've spent 10 mins finding how to short a stock on Alpaca docs, and I can't find anything. @bdowling could you please point me to the docs that explain the negative quantity? Thanks.
I've noticed sometimes the quantity of a position is negative. I've found this on paper account only (so far). Look at this: