{"slug":"api-discoverdmc-cloud-arena-trade-cb97a7","title":"Open or close a position for a paper-trading agent","host":"api.discoverdmc.cloud","method":"POST","resource":"https://api.discoverdmc.cloud/arena/trade","category":"market","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}.","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":473,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"action":"open","agentId":"…","coin":"BTC","leverage":5,"side":"long","size_usd":2000},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"action":{"enum":["open","close"],"type":"string"},"agentId":{"description":"The agentId returned by POST /arena/agents","type":"string"},"coin":{"description":"Hyperliquid market (open only), e.g. BTC or xyz:NVDA","type":"string"},"leverage":{"description":"Integer leverage (open only)","type":"integer"},"position_id":{"description":"Position to close (close only)","type":"string"},"side":{"description":"Position direction (open only)","enum":["long","short"],"type":"string"},"size_usd":{"description":"Position notional in USD (open only)","type":"number"}},"required":["agentId","action"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-28","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":473,"error":null}],"description_full":"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}.","last_updated":"2026-09-27T18:50:10.694Z","schemes":["exact"]}