X: Move JupiterPerpsPosition to API from implementation

This commit is contained in:
2026-06-26 18:06:01 +02:00
parent 8af76e126a
commit c5fe6c539f
@@ -0,0 +1,20 @@
package com.r35157.libs.jupiter.perps;
/**
* 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>
*
* <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 entryPrice the entry price of the position, denominated in USDC
*/
public record JupiterPerpsPosition(
ΩJupiterPerpsPositionAccountΩ positionAccount,
ΩUSDCPriceΩ entryPrice
) {
}