Cancel And Place
Performs an order cancellation + order placement in a single request
Rate limits
The sum of Cancel Orders + Place Order limits
See more details in API Rate limits.
Request
Request Parameters
cancel_tx
object
Yes
Cancel order transaction object. See Cancel order signing for details on the transaction fields.
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
Used to differentiate between the same cancellation multiple times. See Cancel order signing section for more details.
place_order
object
Yes
Payload of order to be placed. See Place order request parameters for payload details.
Signing
Note: both cancel_tx
and place_order
objects must be signed using the same signer, otherwise the request will be rejected.
See Cancel orders signing for details on how to sign the order cancellation.
See Place order signing for details on how to sign the order placement.
Response
Success
Failure
Last updated