From 3b400277244280139f13dc35ec1b774c2dd71e83dcfa6ca7c58d1851834d81b8 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 | 22 +++++++++++++++++++ 1 file changed, 22 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..238643b --- /dev/null +++ b/src/main/tjava/com/r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava @@ -0,0 +1,22 @@ +package com.r35157.libs.jupiter.perps; + +import java.math.BigDecimal; + +/** + * 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