{"source":"terminalfeed-pro","endpoint":"/api/pro/correlation-matrix","generated_at":"2026-06-20T07:24:13.022Z","window":"30d","method":"Pearson correlation on daily simple returns","assets":[{"symbol":"BTC","asset_class":"crypto","observations":29},{"symbol":"TREASURY_10Y","asset_class":"rates","observations":28},{"symbol":"TREASURY_2Y","asset_class":"rates","observations":28},{"symbol":"USD_INDEX","asset_class":"fx","observations":28},{"symbol":"OIL_WTI","asset_class":"commodity","observations":28}],"pairs":[{"a":"TREASURY_10Y","b":"TREASURY_2Y","pearson_r":0.855,"n_observations":28,"relationship":"strong","direction":"positive"},{"a":"TREASURY_2Y","b":"USD_INDEX","pearson_r":-0.2379,"n_observations":28,"relationship":"weak","direction":"negative"},{"a":"TREASURY_10Y","b":"OIL_WTI","pearson_r":0.2373,"n_observations":28,"relationship":"weak","direction":"positive"},{"a":"BTC","b":"TREASURY_10Y","pearson_r":0.1204,"n_observations":28,"relationship":"negligible","direction":"positive"},{"a":"USD_INDEX","b":"OIL_WTI","pearson_r":0.1167,"n_observations":28,"relationship":"negligible","direction":"positive"},{"a":"TREASURY_10Y","b":"USD_INDEX","pearson_r":-0.11,"n_observations":28,"relationship":"negligible","direction":"negative"},{"a":"BTC","b":"OIL_WTI","pearson_r":-0.1066,"n_observations":28,"relationship":"negligible","direction":"negative"},{"a":"TREASURY_2Y","b":"OIL_WTI","pearson_r":0.0622,"n_observations":28,"relationship":"negligible","direction":"positive"},{"a":"BTC","b":"TREASURY_2Y","pearson_r":-0.0514,"n_observations":28,"relationship":"negligible","direction":"negative"},{"a":"BTC","b":"USD_INDEX","pearson_r":-0.0227,"n_observations":28,"relationship":"negligible","direction":"negative"}],"matrix":{"BTC":{"BTC":1,"TREASURY_10Y":0.1204,"TREASURY_2Y":-0.0514,"USD_INDEX":-0.0227,"OIL_WTI":-0.1066},"TREASURY_10Y":{"BTC":0.1204,"TREASURY_10Y":1,"TREASURY_2Y":0.855,"USD_INDEX":-0.11,"OIL_WTI":0.2373},"TREASURY_2Y":{"BTC":-0.0514,"TREASURY_10Y":0.855,"TREASURY_2Y":1,"USD_INDEX":-0.2379,"OIL_WTI":0.0622},"USD_INDEX":{"BTC":-0.0227,"TREASURY_10Y":-0.11,"TREASURY_2Y":-0.2379,"USD_INDEX":1,"OIL_WTI":0.1167},"OIL_WTI":{"BTC":-0.1066,"TREASURY_10Y":0.2373,"TREASURY_2Y":0.0622,"USD_INDEX":0.1167,"OIL_WTI":1}},"sample_size":{"assets_requested":10,"assets_with_data":5,"data_availability":{"BTC":30,"ETH":0,"SOL":0,"AVAX":0,"LINK":0,"GOLD_PAXG":0,"TREASURY_10Y":29,"TREASURY_2Y":29,"USD_INDEX":29,"OIL_WTI":29}},"notes":{"use_case":"Use to size positions, build hedges, or detect regime shifts. A high BTC-SPY correlation, for example, signals \"risk-on\" coupling; a sharp drop in correlation often precedes a regime change.","methodology":"Daily simple returns r_t = (P_t - P_{t-1}) / P_{t-1}. Pearson r computed on overlapping observations only. Minimum 10 observations to report a pair.","sources":"Crypto (BTC, ETH, SOL) from Coinbase Exchange daily candles. Rates (10Y, 2Y treasury), USD trade-weighted index, gold (London PM fix), and WTI oil from FRED. No Finnhub quota burned.","asset_universe":"Ten assets across four classes: crypto (BTC, ETH, SOL, AVAX, LINK), commodities (gold via PAXG-USD, WTI oil), rates (10Y treasury yield, 2Y treasury yield), and fx (trade-weighted USD index). The PAXG-USD pair on Coinbase tracks gold spot via tokenized gold and is reliable without FRED. The four FRED-sourced macro series (treasuries, USD index, oil) populate when FRED_API_KEY is set on the Worker. Equity ETFs (SPY, QQQ) deliberately excluded in v1 because reliable free historical sources require API keys; macro correlations (crypto vs rates, crypto vs USD) are arguably more valuable to trading agents than crypto vs SPY anyway.","caveat":"Pearson assumes linear relationships and stationary distributions. For tail-risk analysis, supplement with rank correlation or copula-based methods. Correlations can flip sign in stress regimes.","cache_ttl":"30 minutes. Daily-return correlations move slowly within a day."},"_meta":{"generated_at":"2026-06-20T07:24:13.022Z","endpoint":"/api/pro/correlation-matrix","tier":"premium","sources":[{"name":"Coinbase.BTC_USD_candles_30d","status":"live","fetched_at":"2026-06-20T07:24:12.455Z","latency_ms":567},{"name":"Coinbase.ETH_USD_candles_30d","status":"error","fetched_at":"2026-06-20T07:24:12.455Z","latency_ms":567,"reason":"no_data"},{"name":"Coinbase.SOL_USD_candles_30d","status":"error","fetched_at":"2026-06-20T07:24:12.455Z","latency_ms":567,"reason":"no_data"},{"name":"Coinbase.AVAX_USD_candles_30d","status":"error","fetched_at":"2026-06-20T07:24:12.455Z","latency_ms":567,"reason":"no_data"},{"name":"Coinbase.LINK_USD_candles_30d","status":"error","fetched_at":"2026-06-20T07:24:12.455Z","latency_ms":567,"reason":"no_data"},{"name":"Coinbase.PAXG_USD_candles_30d","status":"error","fetched_at":"2026-06-20T07:24:12.455Z","latency_ms":567,"reason":"no_data"},{"name":"FRED.DGS10_30d","status":"live","fetched_at":"2026-06-20T07:24:12.455Z","latency_ms":567},{"name":"FRED.DGS2_30d","status":"live","fetched_at":"2026-06-20T07:24:12.455Z","latency_ms":567},{"name":"FRED.DTWEXBGS_30d","status":"live","fetched_at":"2026-06-20T07:24:12.455Z","latency_ms":567},{"name":"FRED.DCOILWTICO_30d","status":"live","fetched_at":"2026-06-20T07:24:12.455Z","latency_ms":567}],"sanitized":true,"sanitizer_version":"1.0"},"_cached":false,"_cache_age_seconds":0,"captured_at":"2026-06-20T07:24:13.022Z","suggested_next_calls":[{"url":"https://terminalfeed.io/api/pro/macro","method":"GET","why":"The macro indicators that compose the correlation series. Drill into any single series here.","credits":2},{"url":"https://terminalfeed.io/api/pro/crypto-deep","method":"GET","why":"Per-coin price + on-chain depth for any crypto pair surfacing in the matrix.","credits":2}],"billing":{"tier":"free_trial","credits_charged":0,"credits_remaining":0,"no_charge_reason":"free_trial","afta_doc":"https://terminalfeed.io/agent-fair-trade","free_trial_used_today":1,"free_trial_remaining":99,"free_trial_limit":100,"free_trial_resets_at":"2026-06-21T07:24:12.455Z","upgrade_when_ready":"https://terminalfeed.io/api/payment/buy-credits"},"receipt":{"v":1,"id":"rcpt_e4c3ded854832077","endpoint":"/api/pro/correlation-matrix","method":"GET","token_short":"free_trial","credits_charged":0,"credits_remaining":0,"request_hash":"sha256:6052fa057d2b05a09526bfd795a712ae39691da50e20316a724fde0aa52092d3","response_hash":"sha256:90d27f77c78dfaa96f0f2b17af994c7f843af8ba89785d0f53b9528ea8c54a7d","captured_at":"2026-06-20T07:24:13.022Z","server_time":"2026-06-20T07:24:13.557Z","no_charge_reason":"free_trial","freshness_sla_seconds":3600,"signature":"O_c4xUxSuDdZWZnkIMURrGgD65eIo6wRipohC9KkYWbINBdtpEHWaBn4DzniCwvMZMZ1rCaucARZDzxVod_8CQ","key_id":"512774f98d56bb02","signing_alg":"EdDSA","signing_curve":"Ed25519","canonical_form":"tensorfeed-canonical-json-v1","verify_doc":"https://terminalfeed.io/agent-fair-trade#receipts"}}