POST Flat Place Order
Flattens any existing positions prior to placing an order.
Close position and place order
POST
/v1/api/accounts/{account}/orders/flatplace
Unlike reverse positions, flat placing an order will close any existing position and continue on to place the order regardless of whether or not the position existed. This is useful to ensure you are always cleanly entering a new positions. The equivalent of a webhook signal with the flatten_first
flag enabled.
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