Corgi BankDocumentation
OpenAPI

Create a treasury scenario

POST/reporting/treasury/scenarios

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

assumptionsarray of objectsRequired
8 child attributes
base_monthly_prepayment_bpsinteger or nullOptional
base_monthly_runoff_bpsinteger or nullOptional
deposit_beta_bpsinteger or nullOptional
evidenceobjectRequired

Evidence binds externally prepared inputs and assumptions to retained documentation.

2 child attributes
referencestringRequired
sha256stringRequired
inflow_haircut_bpsinteger or nullOptional
keystringRequired
stress_monthly_prepayment_bpsinteger or nullOptional
stress_monthly_runoff_bpsinteger or nullOptional
base_curve_bpsarray of integersRequired
base_index_bpsarray of integersRequired
contingency_actionsarray of objectsRequired
5 child attributes
actionstringRequired
evidenceobjectRequired

Evidence binds externally prepared inputs and assumptions to retained documentation.

2 child attributes
referencestringRequired
sha256stringRequired
idstringRequired
ownerstringRequired
trigger_below_amountintegerRequired
evidenceobjectRequired

Evidence binds externally prepared inputs and assumptions to retained documentation.

2 child attributes
referencestringRequired
sha256stringRequired
horizon_monthsintegerRequired
liquidity_floor_amountinteger or nullOptional
methodologystringRequired
namestringRequired
nii_monthsintegerRequired
stress_curve_bpsarray of integersRequired
stress_index_bpsarray of integersRequired

Returns

200 OK

The Treasury Scenario object.

Errors

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

400401403404409412413422424429500503

to move to open esc to close