{ "opencollection": "1.0.0", "info": { "name": "Alpaca API (Trading, Market Data, Broker) Account Positions API", "version": "1.0" }, "request": { "auth": { "type": "apikey", "key": "APCA-API-KEY-ID", "value": "{{APCA-API-KEY-ID}}", "placement": "header" } }, "items": [ { "info": { "name": "Positions", "type": "folder" }, "items": [ { "info": { "name": "List open positions", "type": "http" }, "http": { "method": "GET", "url": "https://api.alpaca.markets/v2/positions" }, "docs": "Retrieves all open positions in the account." }, { "info": { "name": "Close all positions", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.alpaca.markets/v2/positions" }, "docs": "Liquidates all open positions." }, { "info": { "name": "Get an open position", "type": "http" }, "http": { "method": "GET", "url": "https://api.alpaca.markets/v2/positions/:symbol_or_asset_id", "params": [ { "name": "symbol_or_asset_id", "value": "", "type": "path", "description": "Symbol or asset UUID." } ] }, "docs": "Retrieves the open position for a given symbol or asset." }, { "info": { "name": "Close a position", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.alpaca.markets/v2/positions/:symbol_or_asset_id", "params": [ { "name": "symbol_or_asset_id", "value": "", "type": "path", "description": "Symbol or asset UUID." } ] }, "docs": "Liquidates the open position for a symbol or asset." } ] } ], "bundled": true }