From 79b654e336878cc47af0b1198f5948420f8bae7c3843c1cecb535c5d6db35d3c Mon Sep 17 00:00:00 2001 From: Minimons Date: Mon, 29 Jun 2026 15:54:21 +0200 Subject: [PATCH] 21: Add sizeUsd to JupiterPerpsPosition --- .../com/r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava | 2 ++ 1 file changed, 2 insertions(+) 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 b5c8f85..f831c43 100644 --- a/src/main/tjava/com/r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava +++ b/src/main/tjava/com/r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava @@ -13,6 +13,7 @@ import java.math.BigDecimal; * @param entryPrice the entry price of the position, denominated in USDC * @param direction whether the position is long or short * @param tradedTokenMint the mint address of the token being traded + * @param sizeUsd the size of this position in USD * @param collateralUsd the amount of USD representing the collateral for this position */ public record JupiterPerpsPosition( @@ -20,6 +21,7 @@ public record JupiterPerpsPosition( ΩUSDCPriceΩ entryPrice, JupiterPerpsPositionDirection direction, ΩSPLMintAddressΩ tradedTokenMint, + ΩUSDCAmountΩ sizeUsd, ΩUSDCAmountΩ collateralUsd ) { } \ No newline at end of file