engine_request
POST a JSON body to any engine endpoint, validating against OpenAPI first and returning the response plus the exact request for custom pricing calls.
Instructions
POST a JSON body to any engine endpoint (the raw escape hatch).
Args:
endpoint: one of the engine's POST paths (see list_endpoints),
e.g. /price-ois-swap.
body: the full request object exactly as the engine expects it
(engine_schema and the quantra://examples/* resources
show the shape). The engine does not default omitted fields.
validate: check body against the vendored OpenAPI schema first
(default True). On failure nothing is sent and problems
lists each JSON-pointer path with a message.
request_id: optional X-Request-Id to forward; one is generated
when absent and reported in engine.request_id.
Returns {ok, endpoint, request, response, engine}; on an engine
error ok=false with the HTTP status and the engine's error
text verbatim (400 = request wrong, 422 = well-formed but unpriceable).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| endpoint | Yes | ||
| validate | No | ||
| request_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||