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

KeyDatatypeRequiredDescription
cancel_ordersbooleanIf true is specified, cancel all open orders before liquidating all positions.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
Apca-Api-Key-Idstring
Apca-Api-Secret-Keystring