Java Quick Start
Java Quick Start: Agent Java SDK v0.3.0 integration, examples, parameters and response semantics.
This guide targets Agent Java SDK v0.3.0, Java 8+, and the tagged public contract. Initialize client using the installation and configuration steps on this page; run the examples in a partner backend.
Example prerequisites
The Java snippets share these imports. Initialize client using Quick Start and obtain platformUserId from the saved binding. Example user/order IDs must be replaced with your own persisted values.
Maven Coordinates
Current source coordinates:
GitHub is source hosting, not a Maven dependency repository. If the SDK has not been published to a Maven repository yet, install it into your local Maven repository first:
After local installation, your business project can resolve
com.sixmm.exchange.sdk:agent:0.3.0 from the local Maven repository.
For team builds and test environments, publish the SDK to a Maven repository such as Nexus, Artifactory, GitHub Packages, Maven Central, or use a GitHub based build service such as JitPack.
For an existing integration, see the SDK upgrade guide. Use the stable v0.3.0 source tag to install the SDK and read its matching integration documentation.
Client Initialization
Plain Java
Spring Boot
Example application properties:
Bind User
Bind creates or fetches the relationship between a partner user and a 6MM platform user. Call it when a user first enters the trading flow or before the first transfer into 6MM.
Request fields:
Response fields:
Recommended Business Flows
First Trading Entry
Deposit Into 6MM
Withdraw Back To Partner
Source and related guides
Error Handling
SDK exceptions are split into two categories:
Example:
Receive Webhooks
All four event types share the configured merchant callback URL; dispatch by the body event. Verify the original received bytes, then check the time window, merchant, and environment. Return HTTP 2xx only after committing business data and successful deduplication records, or reliably saving a persistent task.
Events and liquidation warnings · Signature verification, responses, and retries