POST Flatten Positions
Flatten positions by account and/or instrument.
Last updated
Flatten positions by account and/or instrument.
Last updated
POST
/v1/api/accounts/{account}/positions/flatten
Flatten allows for flattening all positions and orders in an account or for a specific instrument in an account. Differs from Flatten Everything, which flattens all positions and order in all accounts for all instruments.
Headers
Name | Value |
---|---|
Query Parameters
Name | Type | Required | Description |
---|---|---|---|
Body
Name | Type | Required | Description |
---|---|---|---|
Code Examples (coming soon)
Response
Content-Type
application/json
Authorization
Bearer <token>
account
string
Required
Name of account in NT8
instrument
string
Optional
Optional name of instrument