Portfolio Analytics · Risk Metrics
Annualised volatility, Sharpe, Sortino, Calmar, max drawdown with peak/trough/recovery indices, skewness and excess kurtosis from a return series. Docs: https://www.brainiac.software/api/portfolio-analytics/risk-metrics
POST https://www.brainiac.software/api/v1/portfolio-analytics/risk-metrics
0.03 USDC on Base · payTo 0x6428665E83F503904571104311bB78CBb29b975c
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
{
"mar": null,
"periodsPerYear": 12,
"returns": [
0.02,
-0.01,
0.03,
-0.04,
0.015,
0.01,
-0.02,
0.025,
0.005,
-0.015,
0.03,
0.01
],
"riskFreePerPeriod": 0.002
}{
"annualReturn": 0.05886860527185367,
"calmar": 1.4717151317963404,
"drawdownPeakIndex": 3,
"drawdownTroughIndex": 4,
"excessKurtosis": -0.16094695621217464,
"limitations": [
"Outputs are calculations on caller-supplied inputs for human review. No market data is fetched, and this is not investment or tax advice.",
"Volatility, Sharpe and Sortino use the sample standard deviation; Sortino downside deviation averages squared losses over all periods."
],
"maxDrawdown": -0.040000000000000036,
"recoveryIndex": 11,
"sharpe": 0.4734458188602223,
"skewness": -0.7658791422339498,
"sortino": 0.6952709657232169,
"sources": [
{
"retrievedAt": "2026-11-14",
"source": "Caller-supplied holdings, returns, valuations and transactions processed locally",
"status": "ok",
"url": "https://www.brainiac.software/api/v1/portfolio-analytics"
}
],
"volatility": 0.07603826787755083
}Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Sellers · Contact
SML network: ScriptMasterLabs — the main site · SML Dual Market — the human store: human checkout, card & crypto · VA Ratings — VA disability ratings, free for veterans
Agent intel 
| Trust score | pending / 100 · breakdown |
|---|---|
| Probe uptime (30d) | — over 0 probes · daily |
| Avg 402 latency | — ms |
| Paid calls (30d, on-chain) | 0 calls · 0 buyers |
How to call
POST https://www.brainiac.software/api/v1/portfolio-analytics/risk-metrics · input in body · spec from live-challenge
Input schema
{
"type": "object",
"properties": {
"returns": {
"type": "array",
"items": {
"type": [
"number",
"object"
]
},
"description": "returns supplied by the caller for this operation.",
"example": [
0.02,
-0.01,
0.03,
-0.04,
0.015,
0.01,
-0.02,
0.025,
0.005,
-0.015,
0.03,
0.01
]
},
"periodsPerYear": {
"type": "number",
"description": "periods Per Year supplied by the caller for this operation.",
"example": 12
},
"riskFreePerPeriod": {
"type": [
"number",
"array"
],
"items": {
"type": "number"
},
"description": "risk Free Per Period supplied by the caller for this operation.",
"example": 0.002
},
"mar": {
"type": [
"number",
"null"
],
"description": "mar supplied by the caller for this operation.",
"example": null
}
},
"required": [
"returns"
],
"additionalProperties": false
}Output schema
{
"type": "object"
}curl -i -X POST 'https://www.brainiac.software/api/v1/portfolio-analytics/risk-metrics' \
-H 'content-type: application/json' -d '{"returns":[0.02,-0.01,0.03,-0.04,0.015,0.01,-0.02,0.025,0.005,-0.015,0.03,0.01],"periodsPerYear":12,"riskFreePerPeriod":0.002,"mar":null}'
Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs