From c5fe6c539fd4b88c18074b7db36ae857ceafce3b934e9681232e3bf33d67f32c Mon Sep 17 00:00:00 2001 From: Minimons Date: Fri, 26 Jun 2026 18:06:01 +0200 Subject: [PATCH] X: Move JupiterPerpsPosition to API from implementation --- .../jupiter/perps/JupiterPerpsPosition.tjava | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/main/tjava/com/r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava diff --git a/src/main/tjava/com/r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava b/src/main/tjava/com/r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava new file mode 100644 index 0000000..c448426 --- /dev/null +++ b/src/main/tjava/com/r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava @@ -0,0 +1,20 @@ +package com.r35157.libs.jupiter.perps; + +/** + * Represents a Jupiter Perps position. + * + *

A Jupiter Perps position is represented on-chain by a Solana account owned by + * the Jupiter Perps program. This record contains the public API view of such a + * position.

+ * + *

The initial version of this API only exposes the position account and the entry + * price. More position fields may be added later as the Jupiter Perps API matures.

+ * + * @param positionAccount the Solana account address of the Jupiter Perps position + * @param entryPrice the entry price of the position, denominated in USDC + */ +public record JupiterPerpsPosition( + ΩJupiterPerpsPositionAccountΩ positionAccount, + ΩUSDCPriceΩ entryPrice +) { +} \ No newline at end of file