{ "opencollection": "1.0.0", "info": { "name": "Capital.com REST Accounts Positions API", "version": "v1" }, "request": { "auth": { "type": "apikey", "key": "X-CAP-API-KEY", "value": "{{X-CAP-API-KEY}}", "placement": "header" } }, "items": [ { "info": { "name": "Positions", "type": "folder" }, "items": [ { "info": { "name": "Get Deal Confirmation", "type": "http" }, "http": { "method": "GET", "url": "https://api-capital.backend-capital.com/api/v1/confirms/:dealReference", "params": [ { "name": "dealReference", "value": "", "type": "path", "description": "The deal reference identifier." } ] }, "docs": "Returns the position or order confirmation for a given deal reference." }, { "info": { "name": "List All Positions", "type": "http" }, "http": { "method": "GET", "url": "https://api-capital.backend-capital.com/api/v1/positions" }, "docs": "Returns all open positions for the active account." }, { "info": { "name": "Create Position", "type": "http" }, "http": { "method": "POST", "url": "https://api-capital.backend-capital.com/api/v1/positions", "body": { "type": "json", "data": "{}" } }, "docs": "Opens a new trading position." }, { "info": { "name": "Get Position", "type": "http" }, "http": { "method": "GET", "url": "https://api-capital.backend-capital.com/api/v1/positions/:dealId", "params": [ { "name": "dealId", "value": "", "type": "path", "description": "The deal ID for the position." } ] }, "docs": "Returns details for a single open position." }, { "info": { "name": "Update Position", "type": "http" }, "http": { "method": "PUT", "url": "https://api-capital.backend-capital.com/api/v1/positions/:dealId", "params": [ { "name": "dealId", "value": "", "type": "path", "description": "The deal ID for the position." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates an existing position (e.g., stops, limits)." }, { "info": { "name": "Close Position", "type": "http" }, "http": { "method": "DELETE", "url": "https://api-capital.backend-capital.com/api/v1/positions/:dealId", "params": [ { "name": "dealId", "value": "", "type": "path", "description": "The deal ID for the position to close." } ] }, "docs": "Closes the specified open position." } ] } ], "bundled": true }