Skip to main content
POST
/
v1
/
complex-orders
/
cancel-all
Cancel All Complex Orders
curl --request POST \
  --url https://api.rivermarkets.com/v1/complex-orders/cancel-all \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "subaccount_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "cancelled_complex_order_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "failed_cancelled_complex_order_ids": {}
}

Authorizations

x-api-key
string
header
required

API key for programmatic access. Generate one at app.rivermarkets.com under Settings → API Keys.

Body

application/json

Request body for cancelling all complex orders for a subaccount.

subaccount_id
string<uuid>
required

Subaccount to cancel all complex orders for

Response

Successful Response

Schema for cancel order response What is returned when user cancels an order/ orders.

cancelled_complex_order_ids
string<uuid>[]
required

List of cancelled complex order identifiers

failed_cancelled_complex_order_ids
Failed Cancelled Complex Order Ids · object
required

Dictionary of failed to cancel complex order identifiers and reasons