16: Add direction to JupiterPerpsPosition

This commit is contained in:
2026-06-26 18:12:31 +02:00
parent d918f3ab1a
commit 33b1464f8b
@@ -9,14 +9,13 @@ import java.math.BigDecimal;
* the Jupiter Perps program. This record contains the public API view of such a * the Jupiter Perps program. This record contains the public API view of such a
* position.</p> * position.</p>
* *
* <p>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.</p>
*
* @param positionAccount the Solana account address of the Jupiter Perps position * @param positionAccount the Solana account address of the Jupiter Perps position
* @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
*/ */
public record JupiterPerpsPosition( public record JupiterPerpsPosition(
ΩJupiterPerpsPositionAccountΩ positionAccount, ΩJupiterPerpsPositionAccountΩ positionAccount,
ΩUSDCPriceΩ entryPrice ΩUSDCPriceΩ entryPrice,
JupiterPerpsPositionDirection direction
) { ) {
} }