Jupiter DEX icon

Jupiter DEX

Interact with Jupiter DEX on Solana blockchain

Increase Position

AI-generated

Summary

This operation is not supported by the current API integration. It returns an error instructing the user to increase an existing perpetual position using Jupiter's website (jup.ag).

Inputs

  • Market (required) — Select the market (e.g., SOL, BTC, ETH) of the position to increase.
  • Side (required) — Specify the side of the position (Long or Short).
  • Leverage (required) — The leverage multiplier applied to the position.
  • Max Slippage (bps) (required) — The maximum acceptable slippage for the transaction, in basis points (e.g., 100 = 1%).
  • USDC to Add (required) — The amount of USDC collateral to add to the existing position.
  • Position Pubkey (required) — The public key of the existing position to be increased, typically obtained from the 'Get Positions' operation or a prior 'Open Position' response.

Output shape

A single JSON object containing an error message and debug information.

The operation will return an object with an error field explaining that Jupiter's Perps API does not support 'increasePosition' directly. It also provides limitation, workaround instructions, and a debug object with the input parameters.

Examples

Example 1: Attempt to increase an existing SOL long position by adding more collateral.

Set 'Market' to SOL, 'Side' to Long, 'Leverage' to 2, 'Max Slippage (bps)' to 50, 'USDC to Add' to 10, and provide a valid 'Position Pubkey'. The node will output an error message.

Discussion