diff --git a/README.md b/README.md index 6f85535..e91ae09 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@

# Overview -This library is a Java client implementation of the Alpaca API. Alpaca lets you trade with algorithms, connect with apps, and build services all with a commission-free trading API for stocks, crypto, and options. This library uses the [Alpaca OpenAPI Specifications](https://docs.alpaca.markets/v1.1/openapi) to generate clients for the REST API with the [OkHttp](https://square.github.io/okhttp/) library, but implements the websocket and SSE streaming interface using a custom implementation with the [OkHttp](https://square.github.io/okhttp/) library. This library is community developed and if you have any questions, please ask them on [Github Discussions](https://github.com/Petersoj/alpaca-java/discussions), the [Alpaca Slack #dev-alpaca-java channel](https://alpaca.markets/slack), or on the [Alpaca Forums](https://forum.alpaca.markets/). This library strives to provide the complete Alpaca API as a Java client implementation, so open a [new issue](https://github.com/Petersoj/alpaca-java/issues) or [new pull request](https://github.com/Petersoj/alpaca-java/pulls) if you find something missing. +This library is a Java client implementation of the [Alpaca](https://alpaca.markets) API. Alpaca lets you trade with algorithms, connect with apps, and build services all with a commission-free trading API for stocks, crypto, and options. This library uses the [Alpaca OpenAPI Specifications](https://docs.alpaca.markets/openapi) to generate clients for the REST API with the [OkHttp](https://square.github.io/okhttp/) library, but implements the websocket and SSE streaming interface using a custom implementation with the [OkHttp](https://square.github.io/okhttp/) library. This library is community developed and if you have any questions, please ask them on [Github Discussions](https://github.com/Petersoj/alpaca-java/discussions), the [Alpaca Slack #dev-alpaca-java channel](https://alpaca.markets/slack), or on the [Alpaca Forums](https://forum.alpaca.markets/). This library strives to provide the complete Alpaca API as a Java client implementation, so open a [new issue](https://github.com/Petersoj/alpaca-java/issues) or [new pull request](https://github.com/Petersoj/alpaca-java/pulls) if you find something missing. Give this repository a star ⭐ if it helped you build a trading algorithm in Java! diff --git a/build.gradle b/build.gradle index 7eadeb3..6009b4a 100644 --- a/build.gradle +++ b/build.gradle @@ -87,7 +87,7 @@ javadoc { // BEGIN Alpaca OpenAPI Specification (OAS) client generation // -// These IDs come from the URLs on this page: https://docs.alpaca.markets/v1.1/openapi +// These IDs come from the URLs on this page: https://docs.alpaca.markets/openapi final def specIDsOfFileNames = Map.of( "trader.json", "657760422129f9005cf4bd58", "broker.json", "657771fc2471d20070183049", @@ -107,7 +107,7 @@ def downloadOpenAPISpecFilesTask = tasks.register("downloadOpenAPISpecFiles") { // Download spec files specIDsOfFileNames.forEach { fileName, alpacaSpecID -> final def outputFile = new File(specDownloadPath, fileName) - final def specURL = "https://docs.alpaca.markets/v1.1/openapi/${alpacaSpecID}" + final def specURL = "https://docs.alpaca.markets/openapi/${alpacaSpecID}" outputFile.getParentFile().mkdirs() try { logger.info("Downloading OpenAPI spec file from: {}", specURL) diff --git a/src/main/java/net/jacobpeterson/alpaca/util/apikey/APIKeyUtil.java b/src/main/java/net/jacobpeterson/alpaca/util/apikey/APIKeyUtil.java index 29de58e..c9d0ce0 100644 --- a/src/main/java/net/jacobpeterson/alpaca/util/apikey/APIKeyUtil.java +++ b/src/main/java/net/jacobpeterson/alpaca/util/apikey/APIKeyUtil.java @@ -15,7 +15,7 @@ public class APIKeyUtil { * * @return the key {@link String} * - * @see Alpaca Docs + * @see Alpaca Docs */ public static String createBrokerAPIAuthKey(String brokerAPIKey, String brokerAPISecret) { return Base64.getEncoder().encodeToString((brokerAPIKey + ":" + brokerAPISecret).getBytes());