Add sizeUsd to JupiterPerpsPosition #21

Closed
opened 2026-06-29 15:46:41 +02:00 by minimons · 0 comments
Owner

Description

The Jupiter Perps API should expose the USD size of a position.

The position account contains a sizeUsd field located immediately after price and before collateralUsd. This value should be decoded and exposed through the public API.

Required changes

  • Add a new field to JupiterPerpsPosition:

    • ΩUSDCAmountΩ sizeUsd
  • Decode the sizeUsd field from the Jupiter Perps position account.

  • Return the decoded value as part of JupiterPerpsPosition.

Validation

Verify the decoded value against the Jupiter web UI for one or more open positions to ensure the decoded value is correct.

Notes

The value represents the position size in USD and is not the collateral.

This field is expected to become one of the required building blocks for a future implementation of liquidation price calculations.

### Description The Jupiter Perps API should expose the USD size of a position. The position account contains a `sizeUsd` field located immediately after `price` and before `collateralUsd`. This value should be decoded and exposed through the public API. ### Required changes * Add a new field to `JupiterPerpsPosition`: * `ΩUSDCAmountΩ sizeUsd` * Decode the `sizeUsd` field from the Jupiter Perps position account. * Return the decoded value as part of `JupiterPerpsPosition`. ### Validation Verify the decoded value against the Jupiter web UI for one or more open positions to ensure the decoded value is correct. ### Notes The value represents the position size in USD and is **not** the collateral. This field is expected to become one of the required building blocks for a future implementation of liquidation price calculations.
minimons added the enhancement label 2026-06-29 15:46:41 +02:00
minimons self-assigned this 2026-06-29 15:46:41 +02:00
minimons added this to the AssetAZ project 2026-06-29 15:46:41 +02:00
minimons moved this to Done in AssetAZ on 2026-06-29 22:37:32 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: r35157/com_r35157_nenjim-hubd-impl_ref#21