Cancel And Place
Performs an order cancellation + order placement in a single request
Last updated
Performs an order cancellation + order placement in a single request
Last updated
The sum of + limits
cancel_tx
object
Yes
cancel_tx.sender
string
Yes
Hex string representing the subaccount's 32 bytes (address + subaccount name) of the tx sender.
cancel_tx.productIds
number[]
Yes
A list of product IDs, corresponding to the product ids of the orders in digests
cancel_tx.digests
string[]
Yes
A list of order digests, represented as hex strings.
cancel_tx.nonce
string
Yes
cancel_signature
string
Yes
place_order
object
Yes
Note: both cancel_tx
and place_order
objects must be signed using the same signer, otherwise the request will be rejected.
Cancel order transaction object. See for details on the transaction fields.
Used to differentiate between the same cancellation multiple times. See section for more details.
Signed transaction. See for more details.
Payload of order to be placed. See for payload details.
See for details on how to sign the order cancellation.
See for details on how to sign the order placement.