Treasury Decision
Treasury Risk Analyzer — Can we safely execute this payment today? Combines liquidity, FX exposure and treasury risk into a PAY/REVIEW/DO_NOT_PAY decision with confidence.
POST https://portfolio-risk-analyzer-g9ao.onrender.com/treasury-decision
2 USDC on Base · payTo 0xcfe5143d4a7386f0fe60b93bb8f46dc2ed9a8f27
Status: verified · payable
Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.
Settlement: direct to the seller's payTo — 0% HIVE402 take
Payment routes
{
"baseCurrency": "USD",
"fxExposure": {
"fxRates": {
"EUR": 1.08
}
},
"liquidity": {
"horizonDays": 30,
"minimumCashBuffer": 1000000,
"openingCash": 5000000,
"startDate": "2026-09-14"
},
"payment": {
"amount": 750000,
"currency": "EUR",
"date": "2026-09-14"
}
}{
"analysis_id": "7401c601-2407-4807-aab5-cfe0b4943430",
"base_currency": "USD",
"components": {
"fx_exposure": {
"context": "payment_only",
"currency_concentration_hhi": null,
"net_exposure_payment_currency": -810000,
"risk_level": "LOW",
"score": 2
},
"liquidity": {
"minimum_cash_position": 4190000,
"minimum_date": "2026-09-14",
"required_buffer": 1000000,
"shortfall": 0,
"status": "HEALTHY"
},
"treasury_risk": {
"evaluated": false
}
},
"confidence": 0.83,
"decision": "PAY",
"payment": {
"amount": 750000,
"amount_base_currency": 810000,
"currency": "EUR",
"date": "2026-09-14"
},
"status": "success",
"timestamp": "2026-11-03T06:35:12.348Z",
"warnings": [
"[fx_exposure] No existing FX positions were supplied — fx_exposure severity reflects only this pa..."
]
}Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Contact
SML network: ScriptMasterLabs — the main site · SML Dual Market — the human storefront · VA Ratings — VA disability ratings, free for veterans
Agent intel 
| Trust score | 64 / 100 · breakdown |
|---|---|
| Probe uptime (30d) | 100.0% over 1 probes · daily |
| Avg 402 latency | 11 ms |
| Paid calls (30d, on-chain) | 0 calls · 0 buyers |
| Facilitator-reported (30d) | 1 calls · 1 payers (CDP Bazaar) |
How to call
POST https://portfolio-risk-analyzer-g9ao.onrender.com/treasury-decision · input in body · spec from live-challenge
Input schema
{
"type": "object",
"required": [
"payment",
"liquidity",
"fxExposure"
],
"properties": {
"baseCurrency": {
"type": "string",
"default": "USD"
},
"payment": {
"type": "object",
"required": [
"amount",
"currency"
],
"properties": {
"amount": {
"type": "number",
"exclusiveMinimum": 0
},
"currency": {
"type": "string"
},
"date": {
"type": "string",
"format": "date"
},
"description": {
"type": "string",
"maxLength": 200
}
}
},
"liquidity": {
"type": "object",
"required": [
"openingCash",
"horizonDays",
"minimumCashBuffer"
],
"properties": {
"openingCash": {
"type": "number"
},
"startDate": {
"type": "string",
"format": "date"
},
"horizonDays": {
"type": "integer",
"minimum": 1,
"maximum": 3650
},
"minimumCashBuffer": {
"type": "number",
"minimum": 0
},
"cashFlows": {
"type": "array",
"items": {
"type": "object",
"required": [
"date",
"amount"
],
"properties": {
"date": {
"type": "string",
"format": "date"
},
"amount": {
"type": "number"
},
"category": {
"type": "string",
"maxLength": 50
},
"description": {
"type": "string",
"maxLength": 200
}
}
}
},
"workingCapital": {
"type": "object",
"required": [
"accountsReceivable",
"accountsPayable",
"periodCreditSales",
"periodCOGS",
"periodDays"
],
"properties": {
"accountsReceivable": {
"type": "number",
"minimum": 0
},
"accountsPayable": {
"type": "number",
"minimum": 0
},
"periodCreditSales": {
"type": "number",
"minimum": 0
},
"periodCOGS": {
"type": "number",
"minimum": 0
},
"periodDays": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 3650
},
"inventory": {
"type": "number",
"minimum": 0
}
}
}
}
},
"fxExposure": {
"type": "object",
"properties": {
"positions": {
"type": "array",
"items": {
"type": "object",
"required": [
"currency",
"type",
"amount"
],
"properties": {
"currency": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"receivable",
"payable",
"cash"
]
},
"amount": {
"type": "number",
"minimum": 0
},
"hedged": {
"type": "boolean",
"default": false
}
}
}
},
"fxRates": {
"type": "object",
"additionalProperties": {
"type": "number"
}
},
"stressShockPct": {
"type": "number",
"default": 0.1
},
"totalTreasuryValueBase": {
"type": "number"
}
}
},
"treasuryRisk": {
"type": "object",
"required": [
"returns",
"weights"
],
"properties": {
"returns": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "number"
}
}
},
"weights": {
"type": "object",
"additionalProperties": {
"type": "number"
}
},
"riskFreeRate": {
"type": "number",
"default": 0
},
"periodsPerYear": {
"type": "number",
"default": 252
},
"confidenceLevels": {
"type": "array",
"items": {
"type": "number"
},
"default": [
0.95,
0.99
]
},
"baseCurrency": {
"type": "string",
"default": "USD"
},
"minimumAcceptableReturn": {
"type": "number",
"default": 0
},
"benchmarkReturns": {
"type": "array",
"items": {
"type": "number"
}
},
"currencyExposure": {
"type": "object",
"additionalProperties": {
"type": "number"
}
},
"geographyExposure": {
"type": "object",
"additionalProperties": {
"type": "number"
}
},
"sectorExposure": {
"type": "object",
"additionalProperties": {
"type": "number"
}
},
"stressScenarios": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"shocks": {
"type": "object",
"additionalProperties": {
"type": "number"
}
}
}
}
}
}
}
}
}Output schema
{
"type": "object"
}curl -i -X POST 'https://portfolio-risk-analyzer-g9ao.onrender.com/treasury-decision' \
-H 'content-type: application/json' -d '{"baseCurrency":"USD","payment":{"amount":750000,"currency":"EUR","date":"2026-09-14"},"liquidity":{"openingCash":5000000,"startDate":"2026-09-14","horizonDays":30,"minimumCashBuffer":1000000},"fxExposure":{"fxRates":{"EUR":1.08}}}'
Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs