Treasury Risk
Treasury Risk Analyzer — Deterministic treasury/portfolio risk analysis: volatility, Sharpe/Sortino/Calmar, VaR/CVaR, concentration (HHI), risk contribution, correlated stress scenarios.
POST https://portfolio-risk-analyzer-g9ao.onrender.com/treasury-risk
0.1 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",
"confidenceLevels": [
0.95,
0.99
],
"currencyExposure": {
"EUR": 0.25,
"GBP": 0.1,
"USD": 0.65
},
"periodsPerYear": 12,
"returns": {
"EURCASH": [
0.0322,
0.0186,
-0.0166,
-0.0109,
0.0172,
-0.0254,
0.0003,
-0.0122,
-0.008,
0.0095,
0.0107,
-0.0056,
-0.0353,
-0.0401,
0.001,
-0.0176,
-0.0535,
-0.0263,
0.0014,
0.0294,
-0.0106,
0.0028,
0.0199,
0.0112,
0.0097,
0.0084,
-0.0262,
-0.0016,
0.0029,
0.032,
-0.0095,
-0.0194,
0.008,
0.0141,
0.056,
0.0251
],
"GBPCASH": [
0.0321,
-0.0108,
-0.0218,
-0.0401,
0.0243,
-0.0144,
-0.0006,
-0.012,
-0.0218,
0.016,
0.0238,
-0.0233,
-0.0113,
-0.0051,
0.0211,
-0.0173,
-0.0332,
-0.0291,
0.0412,
-0.0067,
0.0319,
0.0095,
0.0217,
0.0371,
-0.0059,
-0.0362,
0.0034,
0.0031,
0.0034,
0.0079,
0.0037,
0.0111,
-0.0047,
-0.014,
-0.0048,
0.0047
],
"SUKUK": [
-0.0052,
0.0038,
0.0132,
0.015,
0.0009,
0.015,
0.0024,
-0.0044,
-0.0009,
-0.0006,
0.0014,
0.001,
-0.0002,
0,
0.0129,
0.0017,
0.0096,
0.0013,
0.0167,
0.0007,
0.0033,
0.0057,
-0.0009,
0.0004,
-0.0088,
-0.0094,
0.0067,
0.0081,
0.0105,
-0.0008,
0.0093,
-0.0054,
-0.0037,
0.0064,
-0.0019,
0.0055
],
"USDC": [
0.001,
0.0001,
-0.0002,
0.0002,
0.0001,
0.0002,
-0.0001,
0,
-0.0003,
-0.0001,
0.0007,
0.0007,
-0.0001,
0.0003,
-0.0004,
-0.0004,
0.0003,
-0.0007,
-0.0003,
0.0002,
-0.0007,
0,
-0.0002,
-0.0003,
0.0001,
-0.0001,
0.0005,
-0.0008,
0.0005,
-0.0003,
0.0002,
-0.0005,
-0.0004,
-0.0004,
-0.0003,
-0.0001
],
"USDCASH": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
"riskFreeRate": 0,
"stressScenarios": [
{
"name": "EUR -10% vs USD",
"shocks": {
"EURCASH": -0.1
}
},
{
"name": "USD strength: EUR -8%, GBP -8%",
"shocks": {
"EURCASH": -0.08,
"GBPCASH": -0.08
}
}
],
"weights": {
"EURCASH": 0.25,
"GBPCASH": 0.1,
"SUKUK": 0.08,
"USDC": 0.12,
"USDCASH": 0.45
}
}{
"analysis_id": "f0c81e8b-dd75-4d29-b467-56efa6384537",
"concentration": {
"asset": {
"effectiveCount": 3.380662609871534,
"hhi": 0.29580000000000006
},
"currency": {
"effectiveCount": 2.02020202020202,
"hhi": 0.49500000000000005
}
},
"portfolio": {
"assets": 5,
"base_currency": "USD"
},
"risk_classification": {
"level": "LOW",
"score": 13
},
"risk_contribution": {
"EURCASH": 0.810126104389689,
"GBPCASH": 0.20369558487953252,
"SUKUK": -0.01387419668716468,
"USDC": 0.00005250741794303742,
"USDCASH": 0
},
"risk_metrics": {
"annualized_downside_deviation": 0.016314745784105862,
"annualized_return": 0.0015806666666666677,
"annualized_volatility": 0.022887884000471682,
"beta": null,
"calmar_ratio": 0.026042407038104752,
"correlation_to_benchmark": null,
"diversification_ratio": 1.2578489024549253,
"expected_shortfall": {
"0.95": {},
"0.99": {}
},
"hhi": 0.29580000000000006,
"max_drawdown": -0.06069587440031432,
"sharpe_ratio": 0.06906128441729663,
"sortino_ratio": 0.09688576748812007,
"value_at_risk": {
"0.95": {},
"0.99": {}
}
},
"status": "success",
"stress_test": [
{
"directOnlyImpact": -0.025,
"directShocks": {},
"excludedDrivers": [],
"impliedShocks": {},
"name": "EUR -10% vs USD",
"portfolioImpact": -0.028548659485710694,
"propagation": {},
"unmatchedSymbols": []
}
],
"timestamp": "2026-11-03T06:35:12.258Z",
"warnings": [
"Some implied stress shocks were set to 0 because the historical relationship with the shocked sym..."
]
}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 | 19 ms |
| Paid calls (30d, on-chain) | 0 calls · 0 buyers |
| Facilitator-reported (30d) | 4 calls · 1 payers (CDP Bazaar) |
How to call
POST https://portfolio-risk-analyzer-g9ao.onrender.com/treasury-risk · input in body · spec from live-challenge
Input schema
{
"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-risk' \
-H 'content-type: application/json' -d '{"baseCurrency":"USD","returns":{"USDCASH":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"EURCASH":[0.0322,0.0186,-0.0166,-0.0109,0.0172,-0.0254,0.0003,-0.0122,-0.008,0.0095,0.0107,-0.0056,-0.0353,-0.0401,0.001,-0.0176,-0.0535,-0.0263,0.0014,0.0294,-0.0106,0.0028,0.0199,0.0112,0.0097,0.0084,-0.0262,-0.0016,0.0029,0.032,-0.0095,-0.0194,0.008,0.0141,0.056,0.0251],"GBPCASH":[0.0321,-0.0108,-0.0218,-0.0401,0.0243,-0.0144,-0.0006,-0.012,-0.0218,0.016,0.0238,-0.0233,-0.0113,-0.0051,0.0211,-0.0173,-0.0332,-0.0291,0.0412,-0.0067,0.0319,0.0095,0.0217,0.0371,-0.0059,-0.0362,0.0034,0.0031,0.0034,0.0079,0.0037,0.0111,-0.0047,-0.014,-0.0048,0.0047],"USDC":[0.001,0.0001,-0.0002,0.0002,0.0001,0.0002,-0.0001,0,-0.0003,-0.0001,0.0007,0.0007,-0.0001,0.0003,-0.0004,-0.0004,0.0003,-0.0007,-0.0003,0.0002,-0.0007,0,-0.0002,-0.0003,0.0001,-0.0001,0.0005,-0.0008,0.0005,-0.0003,0.0002,-0.0005,-0.0004,-0.0004,-0.0003,-0.0001],"SUKUK":[-0.0052,0.0038,0.0132,0.015,0.0009,0.015,0.0024,-0.0044,-0.0009,-0.0006,0.0014,0.001,-0.0002,0,0.0129,0.0017,0.0096,0.0013,0.0167,0.0007,0.0033,0.0057,-0.0009,0.0004,-0.0088,-0.0094,0.0067,0.0081,0.0105,-0.0008,0.0093,-0.0054,-0.0037,0.0064,-0.0019,0.0055]},"weights":{"USDCASH":0.45,"EURCASH":0.25,"GBPCASH":0.1,"USDC":0.12,"SUKUK":0.08},"riskFreeRate":0,"periodsPerYear":12,"confidenceLevels":[0.95,0.99],"currencyExposure":{"USD":0.65,"EUR":0.25,"GBP":0.1},"stressScenarios":[{"name":"EUR -10% vs USD","shocks":{"EURCASH":-0.1}},{"name":"USD strength: EUR -8%, GBP -8%","shocks":{"EURCASH":-0.08,"GBPCASH":-0.08}}]}'
Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs