21: Add sizeUsd to JupiterPerpsPosition

This commit is contained in:
2026-06-29 15:54:21 +02:00
parent b60f897110
commit 79b654e336
@@ -13,6 +13,7 @@ import java.math.BigDecimal;
* @param entryPrice the entry price of the position, denominated in USDC * @param entryPrice the entry price of the position, denominated in USDC
* @param direction whether the position is long or short * @param direction whether the position is long or short
* @param tradedTokenMint the mint address of the token being traded * @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 * @param collateralUsd the amount of USD representing the collateral for this position
*/ */
public record JupiterPerpsPosition( public record JupiterPerpsPosition(
@@ -20,6 +21,7 @@ public record JupiterPerpsPosition(
ΩUSDCPriceΩ entryPrice, ΩUSDCPriceΩ entryPrice,
JupiterPerpsPositionDirection direction, JupiterPerpsPositionDirection direction,
ΩSPLMintAddressΩ tradedTokenMint, ΩSPLMintAddressΩ tradedTokenMint,
ΩUSDCAmountΩ sizeUsd,
ΩUSDCAmountΩ collateralUsd ΩUSDCAmountΩ collateralUsd
) { ) {
} }