POST Close Position
Closes a position in a specific account by instrument. Returns a list of positions closed in the account for the specific instrument.
Close a specific position by instrument
POST
/v1/api/accounts/{account}/positions/close
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Query Parameters
Name
Type
Required
Description
account
string
Required
Name of account in NT8
Body
Name
Type
Required
Description
instrument
string
Required
Name of underlying instrument
quantity
integer
Optional
Quantity of contracts to close
percent
float
Optional
% of remaining contracts to close
Code Examples
Response
Last updated