macros

Fetches a JSON snapshot of FRED macro indicators including yields, VIX, CPI, and oil prices.

1|Updated Jun 17, 2026
One-click install
npx skills add https://github.com/tribes-protocol/trading-harness --skill macros-tribes-protocol
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: macros
Source: https://github.com/tribes-protocol/trading-harness/tree/main/skills/macros
Command: npx skills add https://github.com/tribes-protocol/trading-harness --skill macros-tribes-protocol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Traders and analysts need current macroeconomic numbers—Treasury yields, dollar index, VIX, inflation, oil prices—before forming or defending a trade thesis, but gathering them from multiple sources is slow and error-prone. This Skill returns all key indicators as one structured JSON payload via a single CLI command. ## Core Features & Use Cases - One-command macro snapshot: Run tribes-cli macros market to get DXY, 2y/10y yields, the 2s10s curve, VIX, Fed funds rate, CPI with YoY inflation, unemployment, gold, and Brent oil in a single JSON payload. - FRED-sourced data: All series come from FRED (DGS10, VIXCLS, CPIAUCSL, etc.) with per-series as_of dates and day-over-day change_pct fields. - Fault-tolerant output: Partial outages do not fail the payload; failed series appear in an errors array while available fields remain usable. - Use Case: Before entering a rates-sensitive position, run the snapshot and pipe it through jq to extract just the 10y yield, curve shape, and VIX level for your thesis. ## Quick Start Ask the agent to fetch the current macro market snapshot and summarize the 10-year Treasury yield, the 2s10s curve, and the VIX level.

Frequently Asked Questions about macros

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get current Treasury yields and macro data as JSON?▼

Run `tribes-cli macros market` to fetch a single JSON payload containing the 10-year and 2-year Treasury yields, the 2s10s curve, DXY, VIX, Fed funds rate, CPI, unemployment, gold, and Brent oil. The command takes no flags and prints JSON to stdout.

What macro indicators does the tribes-cli macros command include?▼

It includes the broad dollar index (DXY), US 2y and 10y yields, the 2s10s curve, VIX, Fed funds rate, CPI level with YoY inflation, unemployment rate, gold price, and Brent oil price. All series are sourced from FRED.

Can I save the macro snapshot to a file?▼

Yes, but there is no `--out` flag for this command. Redirect stdout instead: `tribes-cli macros market > snap.json`. Passing flags like `--out` will produce an unknown option error.

Why are some fields null in the macro snapshot output?▼

All values are nullable because partial outages do not fail the whole payload. Check the `errors` array to see which FRED series failed, and answer using the available fields rather than retrying the entire payload.

What should I do if the macros command returns an auth error?▼

Run `tribes-cli login` once to mint and persist an API bearer token, then retry the original command once. If it still fails, stop and report the error rather than retrying repeatedly.

When should I use macros instead of news or prediction markets data?▼

Use macros for current numeric indicators like yields, CPI, and oil prices. Use news for macro narrative and headlines, and prediction markets for event odds such as rate-cut probabilities, which this snapshot does not provide.