POST /orders/{order_id}

Edits an existing order.

Path Params
string
required

Order ID is the hash of the order payload

Body Params
integer
required

Instrument ID number.

string
required

Account's Ethereum address.

boolean
required

True for long order, false for short order.

string
required

Number of contracts. In 6 decimals fixed number.

string
required

Order limit price. In 6 decimals fixed number.

string
required

A randomly generated number to guarantee transaction uniqueness. In 6 decimals fixed number.

string
required

Hash of order payload signature signed by the account.

string
required

Timestamp used in order signing in UNIX timestamp in seconds.

boolean

True for post-only maker orders, false for standard orders.

boolean

True for reduce-only orders, false for standard orders.

string
enum

Can be set to GTC or IOC (GTC is set by default)

Allowed:
boolean

Flag to include order into MMP.

string
enum

Type of stop order.

Allowed:
string

The price to trigger the stop order at. stop is required when trigger is specified.

boolean

Is order a close position TPSL order.

boolean

Is order a partial position TPSL order.

string

Order ID of the order which when cancelled, cancels this order as well

boolean

Whether this options order is part of a perps plus position

string
enum

Can be set to EXPIRE_NONE, EXPIRE_MAKER OR EXPIRE_TAKER (EXPIRE_NONE is set by default)

Allowed:
Responses

Language
Credentials
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json