Jupiter DEX icon

Jupiter DEX

Interact with Jupiter DEX on Solana blockchain

Decrease Position

AI-generated

Summary

Attempt to decrease an existing perpetual position on Jupiter DEX. This operation is not supported by Jupiter's Perps API through this node and will always return an error message prompting the user to use jup.ag/perps instead.

Inputs

  • Market (required) — The market (e.g., SOL, BTC, ETH) of the position to decrease.
  • Side (required) — The side (Long or Short) of the position to decrease.
  • Leverage (required) — The leverage multiplier of the position.
  • Max Slippage (bps) (required) — The maximum allowed slippage in basis points (100 = 1%).
  • Position Pubkey (required) — The public key of the existing perpetual position to decrease.
  • Size Delta USD (required) — The USD amount by which to reduce the position size.

Output shape

A JSON object containing an error message and debug information.

The operation will return an object with error, limitation, workaround, supportedOperations, debug (including all input parameters), and a timestamp. It explicitly states that Jupiter's Perps API does not support this operation via the node and advises using jup.ag/perps to manage positions.

Discussion