Perpetual Trade Fills
Perpetual Trade Fills: 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. Examples run in a partner backend after initializing client in Quick Start.
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.
listPerpetualTrades
Request model: PerpetualTradesRequest.
Request fields
The example reads one page. For required fields, player scope, filter semantics, limit, cursor and bounded retries, follow Query overview. Keep all filters unchanged while paging; do not interpret an error as an empty result.
Trade fill details
Interface: trades. Requires explicit platformUserIds.
An order may have multiple fills, which should be saved in detail. Do not merge records of different players/fill roles by tradeId and then discard their record identities.
Example response envelope
This is an illustrative empty page, not a sample of a completed trade. Resource-specific field tables above describe populated items[].data.