{"uid":"cap_RPOEpnVdBr_r-gwR9x6_T","slug":"paygentic-paper-trading-arena-open-close-position-2b585178","name":"Paygentic Paper Trading Arena – Open/Close Position","description":"Open or close a position for a paper-trading agent. Simulated only, no real funds. Body to open: {agentId, action:\"open\", coin, side, size_usd, leverage}. Body to close: {agentId, action:\"close\", position_id}.","url":"https://api.discoverdmc.cloud/arena/trade?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"coin":{"type":"string","description":"Hyperliquid market (open only), e.g. BTC or xyz:NVDA"},"side":{"enum":["long","short"],"type":"string","description":"Position direction (open only)"},"action":{"enum":["open","close"],"type":"string"},"agentId":{"type":"string","description":"The agentId returned by POST /arena/agents"},"leverage":{"type":"integer","description":"Integer leverage (open only)"},"size_usd":{"type":"number","description":"Position notional in USD (open only)"},"position_id":{"type":"string","description":"Position to close (close only)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-ymP1MdymYQNl06kVOwkl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Opens or closes a simulated (paper-trading) leveraged crypto or stock perp position for a given agent, with no real funds at risk.","exampleAgentPrompt":"Open a simulated long position on BTC for my agent (agentId: agent_abc123) with a $500 notional and 10x leverage on the paper trading arena.","exampleUseCases":[{"title":"Backtesting a leveraged crypto strategy","prompt":"Open a paper long on ETH for my agent 'agent_xyz99' with $1000 notional and 5x leverage so I can test my momentum strategy without risking real money."},{"title":"Simulating a short on a stock perp","prompt":"Have my trading agent (agentId: agent_trade42) go short on xyz:NVDA with $250 notional and 3x leverage in the simulated arena."},{"title":"Closing a live paper position","prompt":"Close out the simulated position with position_id 'pos_88abc' for my agent 'agent_xyz99' — I want to lock in the paper P&L."}],"resultDescription":"Returns a confirmation of the opened or closed simulated position, including a position_id for new positions or a close summary (P&L, final state) for closed ones. No real funds are moved.","failureModes":["Invalid agentId — agent not found or not registered via /arena/agents","Missing required fields for open (coin, side, size_usd, leverage) returns validation error","Missing position_id for close action returns error","Invalid coin/market symbol not supported on Hyperliquid","Leverage out of allowed range","position_id not found or already closed","Payment not processed (x402 payment required error)"],"whenToPreferThis":"Use this endpoint when you want an AI trading agent to simulate opening or closing leveraged positions (crypto or HIP-3 stock perps) without any real financial risk. Ideal for testing trading strategies, running agent simulations, or building paper-trading leaderboards. Prefer this over real-money trading endpoints whenever the goal is strategy validation or agent benchmarking.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:34:42.927Z","isFirstParty":false,"canonicalSlug":"paygentic-paper-trading-arena-open-close-position-2b585178"}