POST Reverse Position
Reverses the position specified by instrument in the account.
Combined Close Position and Place Order
POST
/v1/api/accounts/{account}/positions/reverse
Effectively closes the position and then executes a Place Order instruction if and only if a position already exists. A position must be already open in the specific instrument for this command to work, otherwise an error will be returned and execution will cease. It is otherwise identical to calling Close Position and the Place Order. Returns the Order ID of the newly opened position.
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Query Parameters
Name | Type | Required | Description |
---|---|---|---|
| string | Required | Name of account in NT8 |
Body
Name | Type | Required | Description |
---|---|---|---|
| string | Required | Name of underlying instrument (e.g., "ES 12-24") |
| string | Required | BUY, SELL |
| integer | Required | Contract quantity of new order |
| string | Required | MARKET, LIMIT, STOPMARKET, STOPLIMIT |
| string | Required | DAY, GTC |
| float | Optional | Limit price when submitting limit order type |
| float | Optional | Stop price when submitting stop order type |
| string | Optional | Create or append to OCO order by ID |
| string | Optional | ATM strategy name if opening with ATM template |
Code Examples (coming soon)
Response
Last updated