Sector Funding Flow (aggregate $ by sector by month, w/ breakdown) [beta]
mars_sector_funding_flowAggregate funding-flow time series by sector — the macro/thematic tool. "How much money flowed into AI infrastructure by month over the last 12 months?"
Required bounds: period_start + period_end + aggregation ('week'|'month'|'quarter'). Max period 5 years — larger errors invalid_input.
Optional breakdown: breakdown_by='stage' splits each bucket by funding_subcategory; breakdown_by='country' splits by companies_v2.country; breakdown_by='top_investor' adds a top-10-investors-by-total-deployed table alongside the base series.
PIT: as_of gates round_date <= as_of (applied AFTER period_end via LEAST).
Sparse buckets returned as zero-count entries so a time-plot renders monotone.
Currency: total_usd aggregates amount_usd_converted (FX-normalized via exchangerate.host at round_date; >95% coverage). A row without a converted value falls back to amount_usd ONLY when its own currency is USD or NULL (2026-10-10 fix — a non-USD row with no converted value is excluded from the aggregate rather than counted at its raw foreign-currency face value, which was silently inflating/deflating sums by up to ~1,457x on the ~0.6% of rows this hit per names/mars's #825). Long-window comparisons (>3y) may drift with historical FX rates.
deal_kind (2026-07-18 — the event-mix fix): funding_deals_v2 now carries a 9-value deal_kind classification (100% populated), so the old event-mix pollution is fixable at the query. Pass deal_kind='operating_raise' for a clean VC / company-primary series (strips bank_debt / fund_formation / pipe / grant — e.g. May-2026's $1.03T decomposes to 35% operating_raise / 29% bank_debt), or breakdown_by='deal_kind' to see the full mix per bucket. WITHOUT a deal_kind filter, broad-sector totals still mix all event types (bank debt + PE fund formations can dominate Financial Services) — so always set deal_kind for a company-funding series.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"period_start": "<period_start>",
"period_end": "<period_end>",
"aggregation": "<aggregation>"
},
"name": "mars_sector_funding_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | ISO 8601 UTC. Default now(). | |
| sector | No | Filter to one companies_v2.sector. | |
| top_by | No | When breakdown_by='top_investor', rank by this dimension. Default 'total_capital'. 'recent_momentum_90d' compares trailing 90d capital vs prior 90d and filters to investors with ≥3 trailing-90d deals. | total_capital |
| country | No | ISO 3166 alpha-2. | |
| deal_kind | No | Filter to one deal_kind. Pass 'operating_raise' for a clean VC/company-raise series (strips bank_debt/fund_formation/pipe). 100% populated. | |
| industries | No | Filter to companies whose industries[] overlaps this array. | |
| period_end | Yes | YYYY-MM-DD. Required. > period_start. | |
| aggregation | Yes | Bucket size. Required. | |
| pit_gate_on | No | Column the as_of PIT gate applies to. 'round_date' (default) = real round timeline; 'first_seen_at' = leak-free (when the deal became knowable in the corpus) for honest backtests. | round_date |
| breakdown_by | No | ||
| period_start | Yes | YYYY-MM-DD. Required. | |
| funding_subcategory | No |