Corgi BankDocumentation
OpenAPI

Create a treasury run

POST/reporting/treasury/runs

Requires verified staff with reporting:write and authentication within five minutes; service/customer/API-key callers are refused. Idempotency is bound to exact input and actor. Scenarios fix every discount/index curve month and explicit runoff/prepayment/beta/haircut assumptions. Runs require an independently approved scenario, exact tied historical ledger closing, matching modeled or explicitly excluded GL balances, and evidenced complete cash/unsupported-instrument projections. Results are immutable monthly static-runoff analytics, not a regulatory ratio, live funding action or an intramonth liquidity guarantee.

Headers

Idempotency-KeystringRequired

Send on every write that creates or changes money or state; a replay with the same key returns the original result with 200.

Body parameters

as_ofstring · dateRequired

A business date, YYYY-MM-DD

contingent_flowsarray of objectsRequired
4 child attributes
base_amountsarray of integersRequired
evidenceobjectRequired

Evidence binds externally prepared inputs and assumptions to retained documentation.

2 child attributes
referencestringRequired
sha256stringRequired
idstringRequired
stress_amountsarray of integersRequired
coverage_evidenceobjectRequired

Review of exclusions, off-balance exposures and assumed funding

2 child attributes
referencestringRequired
sha256stringRequired
exclusionsarray of objectsRequired
4 child attributes
amountintegerRequired
evidenceobjectRequired

Evidence binds externally prepared inputs and assumptions to retained documentation.

2 child attributes
referencestringRequired
sha256stringRequired
gl_codestringRequired
reasonstringRequired
positionsarray of objectsRequired
15 child attributes
annual_coupon_bpsinteger or nullOptional
assumption_keystringRequired
base_flowsarray of objectsOptional
2 child attributes
interest_amountintegerRequired
principal_amountintegerRequired
cap_bpsinteger or nullOptional
contractual_principalarray of integersOptional
evidenceobjectRequired

Evidence binds externally prepared inputs and assumptions to retained documentation.

2 child attributes
referencestringRequired
sha256stringRequired
floor_bpsinteger or nullOptional
gl_codestringRequired
idstringRequired
kindstringRequired

Fixed, floating, nonmaturity, imported, cash

maturity_monthintegerRequired
principal_amountintegerRequired
sidestringRequired
spread_bpsinteger or nullOptional
stress_flowsarray of objectsOptional
2 child attributes
interest_amountintegerRequired
principal_amountintegerRequired
rationalestringRequired
scenario_idstringRequired

Returns

200 OK

The Treasury Run object.

Errors

Every error is a problem document with a stable code. See Errors.

400401403404409412413422424429500503

to move to open esc to close