Get a lossless compact position replay
Changed onComplete replay at one capture cutoff, without temporary storage. Decode RFC 4648 base64, decompress gzip with an output limit of byteLength (maximum 128 MiB), verify the exact byte count, then decode UTF-8 and validate PositionReplayCompactPayload. Verify its id matches the requested position; capturedAt is included in the decoded payload. Version 2 uses fixed-column tuple tables documented by its row schemas; all other PositionReplay v1 fields are unchanged. Null optional trade cells mean absent fields. Reconstruct v1 objects without recalculating financial values. The serialized envelope is limited to 4,000,000 UTF-8 bytes; larger payloads return HTTP 412 with data.replayReason=payload_limit and no truncated data.
Request
- Base URLhttps://app.legend.trade/api/rest
- URLhttps://app.legend.trade/api/rest/v1/positions/{positionId}/replay/compact
- Authnone declared
Path parameters
Response
Successful response
Changes
- info
endpoint added
- info