Close a PositionAsk AIdelete https://paper-api.alpaca.markets/v2/positions/{symbol_or_asset_id}Closes (liquidates) the account’s open position for the given symbol. Works for both long and short positions.Path Paramssymbol_or_asset_idstringrequiredsymbol or assetIdQuery Paramsqtynumberthe number of shares to liquidate. Can accept up to 9 decimal points. Cannot work with percentagepercentagenumberpercentage of position to liquidate. Must be between 0 and 100. Would only sell fractional if position is originally fractional. Can accept up to 9 decimal points. Cannot work with qtyResponse 200Successful response Returns the order created to close out this positionUpdated 7 months ago