Skip to main content
Glama
diaorui

Jupiter Perps MCP Server

by diaorui

close_position

Closes an existing leveraged perpetual futures position at market price on Jupiter Perpetuals, returning collateral as USDC. Specify asset (SOL, BTC, or ETH) and side (Long or Short) to execute.

Instructions

Submits a transaction to fully close an existing position at market price. The protocol processes asynchronously (may take a few seconds) - use get_account_portfolio to verify closure. Returns transaction signature (for logging) and confirmation message. Collateral is returned as USDC.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetYesThe asset of the position to close
sideYesThe side of the position to close

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/diaorui/jupiter-perps-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server