Skip to content
This repository was archived by the owner on Mar 23, 2022. It is now read-only.

API positions aren't unique #167

Open
sspreitzer opened this issue Nov 15, 2021 · 0 comments
Open

API positions aren't unique #167

sspreitzer opened this issue Nov 15, 2021 · 0 comments

Comments

@sspreitzer
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant