From 83ef722d5b678a5d3840d931f9be52b04eab62c0153a7e9c8d4f52b4a1aabe12 Mon Sep 17 00:00:00 2001
From: Minimons
Date: Fri, 26 Jun 2026 18:12:31 +0200
Subject: [PATCH] 16: Add direction to JupiterPerpsPosition
---
.../r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/main/tjava/com/r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava b/src/main/tjava/com/r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava
index 238643b..81a863d 100644
--- a/src/main/tjava/com/r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava
+++ b/src/main/tjava/com/r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava
@@ -9,14 +9,13 @@ import java.math.BigDecimal;
* 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
+ * @param direction whether the position is long or short
*/
public record JupiterPerpsPosition(
ΩJupiterPerpsPositionAccountΩ positionAccount,
- ΩUSDCPriceΩ entryPrice
+ ΩUSDCPriceΩ entryPrice,
+ JupiterPerpsPositionDirection direction
) {
}
\ No newline at end of file