Tracking error and capture ratios API
Tracking error, information ratio, up/down capture, batting average and optional active share versus a benchmark.
The Tracking error and capture ratios operation is part of the Portfolio TWR Risk Attribution Analytics API on BRAINIAC.software. Tracking error, information ratio, up/down capture, batting average and optional active share versus a benchmark. It is exposed as POST /api/v1/portfolio-analytics/tracking-error-capture and priced at $0.03 USDC on Base. Payment uses the x402 exact scheme: an unpaid call returns HTTP 402 with payment requirements; after paying the exact USDC amount, retry the same request with a payment-signature header and Idempotency-Key. No account and no API key are required. Data sources for this product: Caller-supplied holdings, valuations, returns, factor series and transactions processed locally IRS Publication 550 (2025) wash-sale rules for wash-sale-detect Limitations: Pure computation on caller input: no custodian, price, factor or market-data feed is called at request time. Outputs are calculations for human review. They are not investment, tax or legal advice. Monte Carlo endpoints use the documented mulberry32 generator so seeded runs are reproducible. Portfolio values and money amounts are decimals in one currency (not minor units) unless an endpoint states otherwise. Outputs are compliance prechecks, drafts, or data lookups for human review. They are not official determinations, legal advice, identity confirmation, or certified filings. Related operations in this group include Time-weighted and money-weighted returns, Volatility, Sharpe, Sortino and drawdown, Value-at-Risk and Expected Shortfall, Brinson-Fachler attribution. Open the group documentation for the full request schema, field notes, and response examples before integrating.
/api/v1/portfolio-analytics/tracking-error-captureExample request
curl -i -X POST "https://www.brainiac.software/api/v1/portfolio-analytics/tracking-error-capture" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"portfolio": [
0.025,
-0.012,
0.035,
-0.045,
0.018,
0.012,
-0.021,
0.028,
0.007,
-0.016,
0.033,
0.013
],
"benchmark": [
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,
"holdings": {
"portfolio": {
"A": 0.4,
"B": 0.3,
"C": 0.3
},
"benchmark": {
"A": 0.3,
"B": 0.2,
"D": 0.5
}
}
}
JSONAn unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
FAQ
- Do I need an API key? No. Pay the listed USDC amount with x402.
- What network? Base (eip155:8453), USDC.
- Is this an official determination? No. Results are for human review against the cited sources.
Related operations
- Time-weighted and money-weighted returns — $0.04 USDC
- Volatility, Sharpe, Sortino and drawdown — $0.03 USDC
- Value-at-Risk and Expected Shortfall — $0.04 USDC
- Brinson-Fachler attribution — $0.04 USDC
Related APIs
Portfolio TWR Risk Attribution Analytics APIFull docsHow it works