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

Fix Polygon Websockets #59

Closed Petersoj closed 4 years ago

Petersoj commented 4 years ago

Fixes https://github.com/mainstringargs/alpaca-java/issues/57 and https://github.com/mainstringargs/alpaca-java/pull/58. We haven't been using the Tyrus client for some time now so that library was irrelevant. The issue was cause by some protocol update on Polygon's end that the javax.websocket library hasn't been updated for. So this PR switches to the updated Jetty websocket implementation with the javax.websocket interface.

mainstringargs commented 4 years ago

Great! Thanks for stepping in here. Looks like I missed what actually needed updating.