SperaxOS Build Close Perpetual Position Transaction is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-14).
Builds an unsigned close-position transaction for a perpetual futures position on GMX, Hyperliquid, or dYdX, specifying the percentage of the position to close.
SperaxOS is an AI-powered DeFi operating system — track portfolios, execute swaps, analyze on-chain data, and collaborate with intelligent agents that manage your crypto workflow.
Returns an unsigned transaction object (calldata, to address, value, etc.) that the caller can sign and broadcast to close the specified percentage of a perpetual futures position on the chosen DEX. No on-chain state is changed until the transaction is signed and submitted.
POSThttps://chat.sperax.io/api/x402/tools/perpetuals/buildClosePositionTx?utm_source=zero.xyzUse this endpoint when an agent needs to programmatically generate an unsigned close-position transaction for perpetual futures on GMX, Hyperliquid, or dYdX without requiring an API key, paying per-call via x402. Prefer this over manual transaction construction when you need exchange-specific calldata built correctly for partial or full position closure.
| Field | Type | Description |
|---|---|---|
| exchange | string | Exchange where position is held |
| positionId | string | Position ID (from getPositions) |
| walletAddress | string | Trader wallet address |
| closeSizePercent | number | Percentage of position to close (1–100) |
No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"