Releases: Petersoj/alpaca-java
5.0.3
5.0.2
5.0.1
5.0.0
Includes the following pull requests:
- #15 Code Cleanup and Style Changes
- #19 Updates Polygon to use Websockets in place of soon-to-be deprecated NATs protocol
- #20 Removed redundant documentation in README and cleanup
- #23 General code cleanup
- #24 Allow schemas and sources for jsonSchema2Pojo & organize sample JSON structure
- #21 Update Alpaca and Polygon API for new v2 endpoints
Closes the following issues:
- #16 Websocket Polygon support
- #17 Update to v2 for various Polygon endpoints
- #25 15 minute represented as 1 minute
Big thanks to @Petersoj for all of his hard work pulling this release together.
4.0.1
Updating API for historic trades and quotes to accept Long offset instead of Integer
4.0.0
Updating for Alpaca v2 API compliance.
Note v2 is generally accessed by using this property in alpaca.properties:
api_version = v2
3.1.0
Includes the following updates:
- OrderEvent Enum handles API name variations/tenses
- Adding ORDER_CANCEL_REJECTED OrderEvent
- Handling ConcurrentModificationException on Stream Listener Removal
- Handling Wildcard in Polygon NATS API to receive stream for all tickers
3.0.2
Fixes property file loading issues; Logs out where it is reading property files from.
3.0.0
This release adds initial support for the Polygon API and Polygon NATs streams. Also fixed an issue in the 2.0 release that was preventing the Alpaca WebSocket classes from loading correctly. See the https://github.com/mainstringargs/alpaca-java#polygon-api section for API details.
2.0
Adding stream listener for Alpaca WebSockets.
For example:
alpacaApi.addAlpacaStreamListener(
new AlpacaStreamListenerAdapter(MessageType.ACCOUNT_UPDATES, MessageType.ORDER_UPDATES) {
@Override
public void streamUpdate(MessageType messageType, UpdateMessage message) {
switch (messageType) {
case ACCOUNT_UPDATES:
AccountUpdateMessage accounUpdateMessage = (AccountUpdateMessage) message;
System.out
.println("\nReceived Account Update: \n\t" + accounUpdateMessage.toString());
break;
case ORDER_UPDATES:
OrderUpdateMessage orderUpdateMessage = (OrderUpdateMessage) message;
System.out.println("\nReceived Order Update: \n\t" + orderUpdateMessage.toString());
break;
}
}
});
Note: I am aware some of the artifacts contain pre-populated keyid and secret keys. I have since regenerated mine, and they are no longer in use. I will fix their inclusion in the future.