Skip to main content

Setup

Use this page to get a Java project ready to use the KeySquare API.

Java Version

A minimum Java version of 17 is required.

Maven Dependency

Add the KeySquare API dependency to the application:

pom.xml
<dependency>
<groupId>trading.keysquare</groupId>
<artifactId>keysquare-api-all</artifactId>
<version>${version}</version>
</dependency>

JVM Arguments

When running Java applications, the following JVM arguments must be specified:

--add-opens java.base/jdk.internal.misc=ALL-UNNAMED

Prerequisites

An application must be created in Key Access and permissioned before connecting to the platform. See Application Management.