2 Commits

Author SHA256 Message Date
minimons 83ef722d5b 16: Add direction to JupiterPerpsPosition 2026-06-26 18:13:16 +02:00
minimons 3b40027724 X: Move JupiterPerpsPosition to API from implementation 2026-06-26 18:13:16 +02:00
@@ -0,0 +1,21 @@
package com.r35157.libs.jupiter.perps;
import java.math.BigDecimal;
/**
* Represents a Jupiter Perps position.
*
* <p>A Jupiter Perps position is represented on-chain by a Solana account owned by
* the Jupiter Perps program. This record contains the public API view of such a
* position.</p>
*
* @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,
JupiterPerpsPositionDirection direction
) {
}