Skip to content

Commit

Permalink
Minor fixes/changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Petersoj committed Mar 24, 2024
1 parent ab2225f commit c8d41b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</p>

# Overview
This library is a Java client implementation of the <a href="https://alpaca.markets/">Alpaca</a> 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!

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class APIKeyUtil {
*
* @return the key {@link String}
*
* @see <a href="https://docs.alpaca.markets/v1.1/docs/getting-started-with-broker-api#api-keys">Alpaca Docs</a>
* @see <a href="https://docs.alpaca.markets/docs/getting-started-with-broker-api#api-keys">Alpaca Docs</a>
*/
public static String createBrokerAPIAuthKey(String brokerAPIKey, String brokerAPISecret) {
return Base64.getEncoder().encodeToString((brokerAPIKey + ":" + brokerAPISecret).getBytes());
Expand Down

0 comments on commit c8d41b7

Please sign in to comment.