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

getDailyOpenClose returning null #80

Closed tamuseanmiller closed 3 years ago

tamuseanmiller commented 3 years ago

The method getDailyOpenClose in PolygonAPI seems to always return null, I didn't spend too much time on it but I couldn't tell why it was happening. I haven't tested in any environment but my own but thought I would bring it up in case others get the issue.

Just an example call... polygonAPI.getDailyOpenClose("AMD", lastOpenDate);

Petersoj commented 3 years ago

Thanks for reporting this! I’ll investigate next week 👍

Petersoj commented 3 years ago

Fixed in d3ee31258a4303faf36afd965cdd948e99c0c02a. The JSON response format changed.

Petersoj commented 3 years ago

I will publish this in the next release once I get unit testing going 👍