Deals
Deal capture, amendment, lifecycle transitions, and history
Query deals
Returns a filtered, paginated list of deals. All filters are optional.
Capture a new deal
Creates a new deal in Draft status after multi-layer validation.
Terminate a deal
Transitions a confirmed deal to TERMINATED status.
Substitute collateral on a repo deal
Replaces the pledged collateral instrument. Rejected with 409 if the counterparty has an open margin call.
Close an open repo
Instructs close of an open (is_open=true) repo; schedules far-leg settlement for T+1.
Cancel a deal
Transitions a deal to CANCELLED status.
Run pre-trade checks
Validates a prospective deal against credit limit, currency exposure, and custom Python rules. Returns HTTP 200 if all checks pass, HTTP 422 if any check fails. The deal is NOT created.
Get a deal by ID
Retrieves a deal and the transitions available to the current caller.
Amend a deal
Updates a deal's details and/or extensions. Requires version for optimistic concurrency.
Transition deal status
Moves a deal to the requested target status if the transition is permitted.
Get deal event history
Returns all events for a deal in version order.