From b60f897110819d4e1da9693dc841537d7bf0f0e2ce9c6c0257850d8643a9ed8f Mon Sep 17 00:00:00 2001 From: Minimons Date: Mon, 29 Jun 2026 13:09:40 +0200 Subject: [PATCH] 19: Add 'collateralUsd' to JupiterPerpsPosition --- .../com/r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 00bceac..b5c8f85 100644 --- a/src/main/tjava/com/r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava +++ b/src/main/tjava/com/r35157/libs/jupiter/perps/JupiterPerpsPosition.tjava @@ -13,11 +13,13 @@ 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 collateralUsd the amount of USD representing the collateral for this position */ public record JupiterPerpsPosition( ΩJupiterPerpsPositionAccountΩ positionAccount, ΩUSDCPriceΩ entryPrice, JupiterPerpsPositionDirection direction, - ΩSPLMintAddressΩ tradedTokenMint + ΩSPLMintAddressΩ tradedTokenMint, + ΩUSDCAmountΩ collateralUsd ) { } \ No newline at end of file