Installation
This guide will help you install the Market Data Java SDK and configure it for your project.
Prerequisites
- JDK 17 or newer. The SDK is compiled for Java 17 and is tested on JDK 17, 21, and 25.
- A build tool: Gradle or Maven.
Basic Installation
Add the SDK as a dependency. The published artifact is a single JAR; it does not pull in a Kotlin standard library or a third-party HTTP client.
- Gradle (Kotlin DSL)
- Gradle (Groovy DSL)
- Maven
// build.gradle.kts
dependencies {
implementation("app.marketdata:marketdata-sdk-java:1.0.0")
}
// build.gradle
dependencies {
implementation 'app.marketdata:marketdata-sdk-java:1.0.0'
}
<dependency>
<groupId>app.marketdata</groupId>
<artifactId>marketdata-sdk-java</artifactId>
<version>1.0.0</version>
</dependency>
tip
Always check the latest release for the current version number.
note
The Maven groupId is app.marketdata (the published Maven Central namespace), while the Java package you import from is com.marketdata.sdk — for example import com.marketdata.sdk.MarketDataClient;. The two are intentionally different.
Kotlin Support
Although the SDK is written in Java, Kotlin consumers are a first-class audience:
- The public API is null-annotated, so Kotlin sees real nullable/non-null types — not platform types (
String!). MarketDataClientisAutoCloseable, so you can useclient.use { ... }.- Async methods return
java.util.concurrent.CompletableFuture. If you use coroutines, bridge it withkotlinx-coroutines-jdk8'sawait()— the SDK does not depend on coroutines itself.
Requirements & Dependencies
The SDK keeps its dependency footprint small:
- No third-party HTTP client. It uses the JDK's built-in
java.net.http.HttpClient(HTTP/2). - Jackson (
jackson-databind) for JSON decoding. - JSpecify nullability annotations — compile-time only, with no runtime cost.
Next Steps
After installation, you'll need to:
- Set up your authentication token.
- Learn about the client and how to make your first API requests.
- Configure Settings to customize output format, date format, and other universal parameters.