Market maker programmeAPI reference
Prepare a cancel for signing
Same three-step shape as placement. Pass the CURRENT contractId: it rotates on partial fill, so re-read GET /orders if a cancel returns CONTRACT_NOT_FOUND. To cancel many orders, call this concurrently; there is no batch endpoint because Canton has no batch transaction.
POST
/orders/{contractId}/cancelAuthorizationBearer <token>
Authorization: Bearer mm_ak_.. The part before the dot is a public handle, safe to log. The part after is the secret.
In: header
Path Parameters
contractId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/orders/string/cancel" \ -H "Content-Type: application/json" \ -d '{}'{ "ok": true, "data": { "cancelled": true, "order": { "contractId": "string", "orderId": "string", "pair": "CBTC/cETH", "side": "BUY", "type": "LIMIT", "price": "string", "quantity": "string", "filled": "string", "status": "OPEN", "stopPrice": "string", "timestamp": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "correlationId": "string" }, "signing": { "requiresSignature": true, "preparedTransactionHash": "string", "hashingSchemeVersion": "HASHING_SCHEME_VERSION_V2", "submitUrl": "http://example.com", "submitToken": "string", "commandId": "string", "status": "PENDING_SIGNATURE", "signingUrl": "string", "prepared": {} } }}Need help
Write to support@wolfedgelabs.com and include your party ID.