POST Replace Order

Cancels order by given ID and then replaces it with a new order.

Cancel & replace an existing order by ID

POST /v1/api/accounts/{account}/orders/{orderId}/replace

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Query Parameters

Name
Type
Required
Description

account

string

Required

Name of account in NT8

orderId

string

Required

ID of the order to by replaced

Body

Name
Type
Required
Description

instrument

string

Required

Name of underlying instrument (e.g., "ES 12-24")

action

string

Required

BUY, SELL

quantity

integer

Required

Contract quantity of new order

orderType

string

Required

MARKET, LIMIT, STOPMARKET, STOPLIMIT

timeInForce

string

Required

DAY, GTC

limitPrice

float

Optional

Limit price when submitting limit order type

stopPrice

float

Optional

Stop price when submitting stop order type

ocoId

string

Optional

Create or append to OCO order by ID

strategy

string

Optional

ATM strategy name if opening with ATM template

Code Examples (coming soon)

// Some code

Response

{
    "orderId": "36f59a2f4594436084484b92350ca25a",
    "success": true
}

Last updated