Close All Positions
DELETE {{baseUrl}}/v2/positions
Closes (liquidates) all of the account’s open long and short positions. A response will be provided for each order that is attempted to be cancelled. If an order is no longer cancelable, the server will respond with status 500 and reject the request.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
cancel_orders | boolean | If true is specified, cancel all open orders before liquidating all positions. |
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Accept | string | ||
Apca-Api-Key-Id | string | ||
Apca-Api-Secret-Key | string |