Closed Petersoj closed 4 years ago
Wow, cool, you did that fast! I’ll take a look at it tomorrow and merge it
On Tue, Oct 29, 2019 at 7:14 PM Jacob Peterson notifications@github.com wrote:
You can view, comment on, or merge this pull request online at:
https://github.com/mainstringargs/alpaca-java/pull/19 Commit Summary
- Remove NATs dependency and cleanup
- Update Polygon from NATs to Websockets
File Changes
- M build.gradle https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-0 (2)
- A sampleJson/polygon/channelStatus.json https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-1 (5)
- M src/main/java/io/github/mainstringargs/alpaca/websocket/AlpacaStreamListener.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-2 (1)
- M src/main/java/io/github/mainstringargs/alpaca/websocket/AlpacaWebsocketClientEndpoint.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-3 (16)
- M src/main/java/io/github/mainstringargs/polygon/PolygonAPI.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-4 (24)
- M src/main/java/io/github/mainstringargs/polygon/PolygonExample.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-5 (4)
- M src/main/java/io/github/mainstringargs/polygon/enums/ChannelType.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-6 (2)
- D src/main/java/io/github/mainstringargs/polygon/nats/NatsTest.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-7 (60)
- D src/main/java/io/github/mainstringargs/polygon/nats/PolygonNatsClient.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-8 (335)
- D src/main/java/io/github/mainstringargs/polygon/nats/message/AggregatePerMinuteMessage.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-9 (22)
- D src/main/java/io/github/mainstringargs/polygon/nats/message/AggregatePerSecondMessage.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-10 (22)
- M src/main/java/io/github/mainstringargs/polygon/properties/PolygonProperties.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-11 (52)
- R src/main/java/io/github/mainstringargs/polygon/websocket/PolygonStreamListener.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-12 (5)
- R src/main/java/io/github/mainstringargs/polygon/websocket/PolygonStreamListenerAdapter.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-13 (15)
- A src/main/java/io/github/mainstringargs/polygon/websocket/PolygonWebsocketClient.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-14 (351)
- A src/main/java/io/github/mainstringargs/polygon/websocket/PolygonWebsocketClientEndpoint.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-15 (193)
- R src/main/java/io/github/mainstringargs/polygon/websocket/PolygonWebsocketTestDriver.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-16 (208)
- R src/main/java/io/github/mainstringargs/polygon/websocket/message/AggregateMessage.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-17 (32)
- A src/main/java/io/github/mainstringargs/polygon/websocket/message/AggregatePerMinuteMessage.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-18 (19)
- A src/main/java/io/github/mainstringargs/polygon/websocket/message/AggregatePerSecondMessage.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-19 (19)
- R src/main/java/io/github/mainstringargs/polygon/websocket/message/ChannelMessage.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-20 (2)
- R src/main/java/io/github/mainstringargs/polygon/websocket/message/QuotesMessage.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-21 (29)
- A src/main/java/io/github/mainstringargs/polygon/websocket/message/StatusMessage.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-22 (68)
- R src/main/java/io/github/mainstringargs/polygon/websocket/message/TradesMessage.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-23 (34)
- A src/main/java/io/github/mainstringargs/util/time/TimeUtil.java https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-24 (28)
- M src/main/resources/polygon.properties https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-25 (2)
- M src/main/resources/polygon.properties.default https://github.com/mainstringargs/alpaca-java/pull/19/files#diff-26 (2)
Patch Links:
- https://github.com/mainstringargs/alpaca-java/pull/19.patch
- https://github.com/mainstringargs/alpaca-java/pull/19.diff
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mainstringargs/alpaca-java/pull/19?email_source=notifications&email_token=ABVXM4TB3W6SVBEZHRRWRQTQRDGWXA5CNFSM4JGROZN2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HVHYOHQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVXM4UV63LT6KZIA735LFLQRDGWXANCNFSM4JGROZNQ .
Looks good!
This updates the polygon API to use websockets in place of the NATs protocol which is going to be officially deprecated on 01/01/2020. This resolves issue #16.