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
198 stars 84 forks source link

Add API version (v1 or v2) to properties and AlpacaRequestBuilder for proper query #13

Closed Petersoj closed 5 years ago

Petersoj commented 5 years ago

My previous PR changed the JSON files, but the API never actually queried the v2 API because it was hard-coded to query the v1 API. This allows users to specify which API version they want to use ("v1" or "v2").

Petersoj commented 5 years ago

This might be a good point for a new version release by the way!

mainstringargs commented 5 years ago

Great. Thanks. I’m away at the moment, but will merge and then spin a new release soon.