Methodology
Collection
A scheduled pipeline requests each series from its source’s official API (for the indicators, the FRED API from the Federal Reserve Bank of St. Louis; for Trade Shifts, the US Census Bureau’s International Trade API). Requests use an honest user agent, are rate limited, and respect each site’s robots.txt and terms.
The raw response is saved before anything is parsed. If a number on this site is ever questioned, the exact payload it came from can be inspected. API keys are removed from stored request URLs.
Vintages and history
Official statistics get revised. Capisaga never overwrites a stored value. When a source revises a figure, the new value is stored as a new vintage next to the old one, with the time it was retrieved. The database rejects updates and deletes on stored observations.
Charts, tables, and downloads show the latest vintage of each observation. Each stored observation records its source, the source URL, when it was retrieved, and its vintage.
Freshness
- Every series states its update frequency as reported by the source.
- Every tracker shows the date of its last observation, when the pipeline last checked the source (whether or not anything changed), and when it last stored new or revised data.
- A daily series that the pipeline has not checked for 3 days is marked stale on the page.
- Monthly and quarterly series are labelled as such and show their reporting lag. They are never described as real-time.
Pages read from the database when they are requested. Nothing on the site is updated more often than the pipeline runs.
Charts
The 1Y view plots every daily observation. Longer ranges plot weekly (5Y, 10Y) or monthly (Max) averages, computed in the database, and say so under the chart. The data table always shows exactly what is plotted. The CSV download always contains the full daily history.
Indicators
The indicators are FRED series: US interest rates, inflation expectations derived from Treasury yields, the yuan per US dollar and the broad dollar index. A series appears only after its source’s terms have been read and allow it. Each card and page shows a citation line taken from the series’ stored FRED metadata: “Source: Board of Governors of the Federal Reserve System via FRED” or “Source: Federal Reserve Bank of St. Louis via FRED”.
1-month change. The latest observation against the last observation on or before the same date one month earlier (31 March compares with the end of February). If no observation falls within 7 days before that date, the change is shown as not available, never as zero. Rates change in percentage points; the yuan and the dollar index change in percent, rounded to two decimal places with exact decimal arithmetic. The small chart on each card plots two years of weekly averages.
Comparing. An indicator page can draw up to two other indicators below its chart, in separate panels on the same time axis, each with its own scale and units. Two different measures are never drawn on one chart with two scales.
Trade Shifts
Data. US general imports (total customs value, in US dollars) by country of origin, as published monthly by the US Census Bureau’s International Trade API, from January 2010. Each product on the watchlist is a Harmonized System chapter (HS2) or heading (HS4), plus all goods. Partners are the economies on the watchlist, plus the World total. Monthly figures are not seasonally adjusted.
US side only. These are US-side figures: what the US Census Bureau records as imported into the US from each partner (general imports, by country of origin). A change in where the US buys a product shows a change in recorded origin. On its own it is not evidence that goods were transshipped or rerouted through another country, and it does not show where the goods were made. Partner-side records (what other countries report exporting to the US) will be added later; comparing both sides is the step that can say more.
12-month totals and shares. The default view sums the 12 months ending in each month, which removes seasonal swings. A 12-month total is computed only when all 12 months have a Census figure. A partner’s share is its 12-month total divided by the World 12-month total for the same product and months. The monthly view uses single months instead.
Missing months. A missing month means Census published no figure for that partner and product. That usually reflects little or no recorded trade, but we don't assume zero, so the line shows a gap. Nothing is filled in or interpolated. An explicit zero from Census is a figure and is kept.
Highlighted partners and all other partners. Highlighted partners are chosen from the data for each product: China, the five other watchlist partners with the largest imports in the latest 12 months, and up to two that were among the five largest in 2017 but are not now. A highlighted partner needs a 12-month figure in each of the last 24 months and at least 1% of the product's imports from all countries (in the latest 12 months, or in 2017 for the former leaders). Other partners stay thin grey lines, can be added to the chart, and are listed in the partner table. All other partners is World minus China and the partners highlighted on that product's chart. It includes the other watchlist partners, which are also drawn individually as thin grey lines, and is left blank for any month where a highlighted partner has no Census figure.
Baseline. Changes are measured against calendar year 2017, the last full year before the 2018 Section 301 tariffs on imports from China. A 2017 share is shown only when all 12 months of 2017 have a figure. Changes in percentage points are computed from unrounded shares, so they can differ by 0.1 from the difference of the rounded shares shown. Year-on-year changes compare a 12-month total with the 12 months ending a year earlier.
Partner table. “Rank among watched partners” ranks each partner by its share in 2017 and in the latest 12 months, among the watchlist partners only, not among all countries the US imports from; equal shares share a rank, and a partner with a missing share has no rank. “Change in imports since 2017” is the latest 12-month total minus calendar-2017 imports, in nominal US dollars, not adjusted for inflation or prices.
“What changed” sentences are produced by fixed templates from these figures. They state levels and changes only and make no claim about causes.
Revisions. Census revises recent months and publishes annual revisions to earlier years. The pipeline re-requests recent months on every run and full history after each annual revision. A changed figure is stored as a new vintage next to the old one; pages and downloads use the latest vintage.
Policy events. Each event on a chart or list has at least one official source (Federal Register, the Harmonized Tariff Schedule from the US International Trade Commission, presidential documents on GovInfo, or court opinions), and states when it was announced, when it took effect, and its status as of the date it was last checked. Later changes (rate changes, suspensions, truces, terminations and court rulings) are listed as separate events. Tariff lists are written at the 8-digit HTS level, while these pages cover 2- and 4-digit codes, so a measure is marked full only when it lists every 8-digit subheading under the code, and partial otherwise, with the count of subheadings and the source used. Measures that apply to all goods from a partner are listed on every product, without mapping their product exemptions. A few milestones appear on every chart; other markers appear only on the products they list. Partner-specific trade deals after August 2025 are not yet mapped in the event list.
Unit values (dollars per kilogram) are not shown. At the 2- and 4-digit level each code mixes very different goods, so a change in value per kilogram mostly reflects a change in the mix; and Census shipping weights cover air and vessel shipments only, which misses most trade with Mexico and Canada. They may be added at a more detailed product level.
Release dates. Pages show the next scheduled Census release from its published schedule. Releases can be delayed, so the date is labelled “scheduled”.
Figures come from code
Every number on this site is the result of a database query run in code. An AI model never generates, estimates, or rounds a figure. Where software helps write narrative text, it only refers to figures that code supplied.
Scope
Capisaga covers economic, policy, and trade data and analysis. It makes no buy or sell recommendations on any security. It does not collect data on private individuals. Sources are listed on the sources page.