API Reference
DraftLast reviewed 2026-06-23Substitute collateral on a repo deal
POST/api/v1/deals/:id/substitute-collateral
Replaces the pledged collateral instrument. Rejected with 409 if the counterparty has an open margin call.
Request
Responses
- 200
- 400
- 403
- 404
- 409
Collateral substituted; new lien created
Deal is not a REPO, or new instrument is not SHARABLE, or insufficient available quantity
Insufficient scope — requires deals:substitute_collateral
Deal not found
Counterparty has an open margin call — resolve before substituting