user-docs icon indicating copy to clipboard operation
user-docs copied to clipboard

API positions aren't unique

Open sspreitzer opened this issue 3 years ago • 0 comments

I believe that the current API version has a fundamental error in which it enumerates positions by symbol.

In my humble opinion each position should be unique with its own financial analysis data and be accessible via a unique position id. So it is possible to have multiple long and short positions of the same symbol manageable with different dates and prices. So it is possible to:

  • GET a specific position by id instead of symbol
  • DELETE a specific position by id instead of symbol

Looking at the documentation at https://alpaca.markets/docs/api-documentation/api-v2/positions/ it seems as if the concept of multiple positions per symbol (varied by long/short, date, price, expiry, etc..) is not yet taken care of. This is but a fundamental feature of stock trading and implemented in all major open stock trading API's. For example FIX.

sspreitzer avatar Nov 15 '21 07:11 sspreitzer