curl --request POST \
--url https://api-uat.dimetrades.com/api/orders/bulk-cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{}'{
"data": {
"status": "pending_cancel",
"marketId": null,
"message": "Cancellation requested for all open orders."
},
"errors": []
}Cancel all open orders (optionally scoped to one market)
Cancels every one of the caller’s open/partially-filled orders in a
single request — across all markets, or narrowed to one market when
marketId is provided. Publishes a single command to the matching
engine rather than fanning out one DELETE per order; the engine finds
every matching resting order in its own book and cancels each through
the normal cancellation path, same as DELETE /orders/{orderId} —
poll GET /orders or positions for the outcome.
Always scoped to the caller’s own orders — there is no way to cancel
another user’s orders through this endpoint. Calling this with no
resting orders to cancel is not an error; it still returns 200.
Requires a KYC-verified account. Rate-limiting on this endpoint is
admin-configurable and disabled by default — confirm your brand’s
actual configuration before assuming a 429 can or can’t happen (see the
Conventions guide’s “Rate limits and restrictions” section).
curl --request POST \
--url https://api-uat.dimetrades.com/api/orders/bulk-cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{}'{
"data": {
"status": "pending_cancel",
"marketId": null,
"message": "Cancellation requested for all open orders."
},
"errors": []
}Authorizations
The end user's JWT access token, sent as Authorization: Bearer <token>.
Obtain one from POST /partner/customers or POST /partner/customers/login
— both return it as token. It identifies which of your users a call
is made for, and is sent alongside your X-API-Key on every authenticated
endpoint.
Event discovery, categories, subcategories and scores are public and need no token.
ISV / partner credential — public half. Required on every request.
Identifies the integration partner (ISV) making the call. Issued by Dime
Trades when the ISV is onboarded and sent on every /partner/* endpoint:
X-API-Key: dt_pk_live_7f3c9a2e5b18
- On the two partner endpoints that create accounts or issue tokens (
POST /partner/customers,POST /partner/customers/login), it is accompanied byX-API-Secretand is the only authentication — there is no user token yet. - On every other partner endpoint it is sent alongside the user's
Authorization: Bearer <token>: the API key says which platform is calling, the bearer token says which user it is calling for.
Credentials are scoped to one or more brands; using a key with a brandId outside that scope returns 403. Staging and production keys are separate.
The key identifies your platform — treat it as a backend credential.
Body
Optional. When provided, only cancels open orders on this market instead of all markets.
"60497"
Response
Cancellation request accepted.
Acknowledgement returned by POST /orders/bulk-cancel. A single command is published to the matching engine, which cancels every matching resting order and emits one ORDER_CANCELLED per order — poll GET /orders or positions for the outcome, the same way a single-order cancel works.
Show child attributes
Show child attributes
