Petersoj / alpaca-java

A Java API for Alpaca, the commission free, algo friendly, stock trading broker. https://alpaca.markets
https://petersoj.github.io/alpaca-java/
MIT License
197 stars 82 forks source link

Position Object is missing qty_available #131

Closed dsgraham81 closed 1 year ago

dsgraham81 commented 1 year ago

It looks like the Position object is not parsing or exposing qty_available.

https://alpaca.markets/docs/api-references/trading-api/positions/#example

qty_available | string | Total number of shares available minus open orders -- | -- | --

This would be useful for what I am working on as I might have multiple orders on a security and don't want to put in a sell if I don't have enough for all of them to clear

Petersoj commented 1 year ago

Fixed in #132.