{"openapi":"3.0.3","info":{"title":"LastLook Data API","version":"2.14.0","description":"Financial market data and mortgage decision tools for AI agents — Treasury yields, mortgage rates, a refinance calculator and mortgage offer grader, FX, energy, macro indicators, crypto prices, and company fundamentals. Pay per query via x402 (USDC on Base or Solana). No accounts or API keys.","contact":{"name":"LastLook Data","url":"https://www.lastlookdata.com","email":"hello@lastlookdata.com"},"termsOfService":"https://www.lastlookdata.com/terms","x-x402":{"protocol":"x402-v2","asset":"USDC","networks":[{"network":"eip155:8453","payTo":"0xB4848d1b4b7E31B75b9b30d717F89777dC65D68e"},{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","payTo":"Ao49qVA2m6U2QxzvpSTpSeXmuh265vnywqYzKeLhrxFo"}],"docs":"https://www.lastlookdata.com/docs"},"x-mcp":"https://mcp.lastlookdata.com/mcp"},"servers":[{"url":"https://api.lastlookdata.com","description":"Production"}],"tags":[{"name":"Mortgage Tools","description":"Decision tools — refinance calculator and mortgage offer grader, priced against live market rates"},{"name":"Bundles","description":"Pre-built multi-series bundles — one payment, parallel data fetch"},{"name":"FRED","description":"Federal Reserve Economic Data — raw series"},{"name":"FX","description":"G10 FX rates via European Central Bank"},{"name":"Derived","description":"Computed and interpreted market signals"},{"name":"Calendar","description":"Economic data release schedule"},{"name":"Crypto","description":"Crypto prices via CoinGecko"},{"name":"EDGAR","description":"Company fundamentals via SEC EDGAR XBRL"},{"name":"Free","description":"No payment required"}],"paths":{"/api/calc/refi":{"get":{"tags":["Mortgage Tools"],"summary":"Refinance break-even calculator","description":"Refinance calculator priced against today's market. Give the current rate, balance and remaining term; get new monthly payment, monthly savings, break-even month, net benefit over the years you expect to stay, and a plain verdict. New rate defaults to the live Optimal Blue locked-rate index for the borrower's credit/LTV segment.","operationId":"getRefiCalculation","x-x402":{"price":"0.35","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"parameters":[{"name":"current_rate","in":"query","required":true,"description":"Current note rate in percent, e.g. 7.25","schema":{"type":"string","example":"7.25"}},{"name":"balance","in":"query","required":true,"description":"Remaining principal balance in USD, e.g. 400000","schema":{"type":"string","example":"400000"}},{"name":"remaining_years","in":"query","required":false,"description":"Years left on the current loan (default 30)","schema":{"type":"string","example":"28"}},{"name":"new_rate","in":"query","required":false,"description":"Quoted new rate in percent. Omit to use today's market rate for the segment.","schema":{"type":"string","example":"6.25"}},{"name":"new_term","in":"query","required":false,"description":"New loan term in years (default 30)","schema":{"type":"string","enum":["30","15"],"example":"30"}},{"name":"closing_costs","in":"query","required":false,"description":"Total refinance closing costs in USD (default: 2% of balance)","schema":{"type":"string","example":"8000"}},{"name":"years_in_home","in":"query","required":false,"description":"Years the borrower expects to keep the loan (default 7)","schema":{"type":"string","example":"7"}},{"name":"credit_score","in":"query","required":false,"description":"Borrower FICO score, used to pick the market-rate segment","schema":{"type":"string","example":"760"}},{"name":"ltv","in":"query","required":false,"description":"Loan-to-value percent, used to pick the market-rate segment","schema":{"type":"string","example":"75"}}],"responses":{"200":{"description":"Refinance break-even calculator","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","tool":"refi_calculator","as_of":"2026-10-30","market":{"benchmark_series":"OBMMIC30YFLVLE80FGE740","benchmark_rate":6.21,"benchmark_date":"2026-10-30"},"current_loan":{"rate":7.25,"balance":400000,"remaining_years":28,"monthly_pi":2804},"new_loan":{"rate":6.21,"term_years":30,"amount":400000,"monthly_pi":2452,"closing_costs":8000},"results":{"monthly_savings":352,"breakeven_months":23,"rate_reduction_bps":104,"net_benefit_at_horizon":21304,"horizon_years":7,"verdict":"worth_considering"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/grade/offer":{"get":{"tags":["Mortgage Tools"],"summary":"Grade a mortgage offer against the live market","description":"Grades a written mortgage offer (rate, points, lender fees) against the live Optimal Blue locked-rate index for the same product, term, credit score and LTV. Returns a letter grade, spread vs market in basis points, monthly and total-over-horizon cost vs market, and a plain-language verdict.","operationId":"getOfferGrade","x-x402":{"price":"0.50","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"parameters":[{"name":"rate","in":"query","required":true,"description":"Offered note rate in percent, e.g. 6.875","schema":{"type":"string","example":"6.875"}},{"name":"loan_amount","in":"query","required":true,"description":"Loan amount in USD, e.g. 450000","schema":{"type":"string","example":"450000"}},{"name":"points","in":"query","required":false,"description":"Discount points as percent of loan (negative for lender credits, default 0)","schema":{"type":"string","example":"0.5"}},{"name":"lender_fees","in":"query","required":false,"description":"Lender origination/underwriting fees in USD, excluding third-party costs (default 0)","schema":{"type":"string","example":"1500"}},{"name":"term","in":"query","required":false,"description":"Loan term in years (default 30)","schema":{"type":"string","enum":["30","15"],"example":"30"}},{"name":"loan_type","in":"query","required":false,"description":"Loan program (default conventional)","schema":{"type":"string","enum":["conventional","fha","va","jumbo","usda"],"example":"conventional"}},{"name":"credit_score","in":"query","required":false,"description":"Borrower FICO score","schema":{"type":"string","example":"740"}},{"name":"ltv","in":"query","required":false,"description":"Loan-to-value percent","schema":{"type":"string","example":"80"}},{"name":"years_in_home","in":"query","required":false,"description":"Years the borrower expects to keep the loan (default 7)","schema":{"type":"string","example":"7"}}],"responses":{"200":{"description":"Grade a mortgage offer against the live market","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","tool":"offer_grader","as_of":"2026-10-30","grade":"C","verdict":"above_market","offer":{"rate":6.875,"points":0.5,"lender_fees":1500,"loan_amount":450000,"term_years":30,"monthly_pi":2956},"market":{"benchmark_series":"OBMMIC30YFLVLE80FGE740","benchmark_rate":6.65,"benchmark_date":"2026-10-30"},"analysis":{"points_adjusted_rate":7,"spread_vs_market_bps":35,"monthly_cost_vs_market":68,"cost_vs_market_over_horizon":8212}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/current":{"get":{"tags":["FRED"],"summary":"Current value for any FRED series","description":"Most recent value for any supported FRED series. Use ?id=IORB, ?id=EFFR, ?id=MORTGAGE30US, ?id=FEDFUNDS, ?id=DGS10, etc.","operationId":"getFredCurrent","x-x402":{"price":"0.01","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"parameters":[{"name":"id","in":"query","required":true,"description":"FRED series ID","schema":{"type":"string","enum":["DGS30","DGS10","DGS5","DGS2","DGS1MO","MORTGAGE30US","MORTGAGE15US","MSPUS","HOUST","FEDFUNDS","SOFR","DPRIME","DTB3","IORB","EFFR","CPIAUCSL","CPILFESL","UNRATE","GDP","SAHMREALTIME","DCOILWTICO","DCOILBRENTEU","GASREGCOVW","DHHNGSP"],"example":"DGS30"}}],"responses":{"200":{"description":"Current value for any FRED series","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","series_id":"IORB","label":"Interest on Reserve Balances","date":"2026-05-09","value":4.4,"note":"Source: Federal Reserve Bank of St. Louis (FRED)"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/date":{"get":{"tags":["FRED"],"summary":"FRED series value on a specific date","description":"Value for any supported FRED series on a specific date. Use ?id=SERIES_ID&d=YYYY-MM-DD. Business days only.","operationId":"getFredByDate","x-x402":{"price":"0.01","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"parameters":[{"name":"id","in":"query","required":true,"description":"FRED series ID","schema":{"type":"string","enum":["DGS30","DGS10","DGS5","DGS2","DGS1MO","MORTGAGE30US","MORTGAGE15US","MSPUS","HOUST","FEDFUNDS","SOFR","DPRIME","DTB3","IORB","EFFR","CPIAUCSL","CPILFESL","UNRATE","GDP","SAHMREALTIME","DCOILWTICO","DCOILBRENTEU","GASREGCOVW","DHHNGSP"],"example":"DGS30"}},{"name":"d","in":"query","required":true,"description":"Date in YYYY-MM-DD format","schema":{"type":"string"}}],"responses":{"200":{"description":"FRED series value on a specific date","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","series_id":"DGS10","label":"10-Year Treasury Constant Maturity Rate","date":"2026-05-09","value":4.42,"note":"Source: Federal Reserve Bank of St. Louis (FRED)"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/series/30":{"get":{"tags":["FRED"],"summary":"Last 30 days of observations","description":"Last 30 days of any FRED series. Use for mortgage rates, Fed funds, IORB, EFFR, Treasury yields, CPI, energy prices, and more.","operationId":"getFredSeries30","x-x402":{"price":"0.05","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"parameters":[{"name":"id","in":"query","required":true,"description":"FRED series ID","schema":{"type":"string","enum":["DGS30","DGS10","DGS5","DGS2","DGS1MO","MORTGAGE30US","MORTGAGE15US","MSPUS","HOUST","FEDFUNDS","SOFR","DPRIME","DTB3","IORB","EFFR","CPIAUCSL","CPILFESL","UNRATE","GDP","SAHMREALTIME","DCOILWTICO","DCOILBRENTEU","GASREGCOVW","DHHNGSP"],"example":"DGS30"}}],"responses":{"200":{"description":"Last 30 days of observations","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","series_id":"MORTGAGE30US","days":30,"count":4,"start":"2026-04-10","end":"2026-05-09","observations":[{"date":"2026-04-10","value":6.82},{"date":"2026-05-09","value":6.79}],"note":"Source: Federal Reserve Bank of St. Louis (FRED)"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/series/90":{"get":{"tags":["FRED"],"summary":"Last 90 days of observations","description":"Last 90 days of any supported FRED series.","operationId":"getFredSeries90","x-x402":{"price":"0.10","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"parameters":[{"name":"id","in":"query","required":true,"description":"FRED series ID","schema":{"type":"string","enum":["DGS30","DGS10","DGS5","DGS2","DGS1MO","MORTGAGE30US","MORTGAGE15US","MSPUS","HOUST","FEDFUNDS","SOFR","DPRIME","DTB3","IORB","EFFR","CPIAUCSL","CPILFESL","UNRATE","GDP","SAHMREALTIME","DCOILWTICO","DCOILBRENTEU","GASREGCOVW","DHHNGSP"],"example":"DGS30"}}],"responses":{"200":{"description":"Last 90 days of observations","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","series_id":"DGS30","days":90,"count":63,"start":"2026-02-09","end":"2026-05-09","observations":[{"date":"2026-02-09","value":4.75},{"date":"2026-05-09","value":4.97}],"note":"Source: Federal Reserve Bank of St. Louis (FRED)"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/series/365":{"get":{"tags":["FRED"],"summary":"Last 365 days of observations","description":"Last 365 days of any supported FRED series.","operationId":"getFredSeries365","x-x402":{"price":"0.25","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"parameters":[{"name":"id","in":"query","required":true,"description":"FRED series ID","schema":{"type":"string","enum":["DGS30","DGS10","DGS5","DGS2","DGS1MO","MORTGAGE30US","MORTGAGE15US","MSPUS","HOUST","FEDFUNDS","SOFR","DPRIME","DTB3","IORB","EFFR","CPIAUCSL","CPILFESL","UNRATE","GDP","SAHMREALTIME","DCOILWTICO","DCOILBRENTEU","GASREGCOVW","DHHNGSP"],"example":"DGS30"}}],"responses":{"200":{"description":"Last 365 days of observations","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","series_id":"DGS30","days":365,"count":252,"start":"2025-05-09","end":"2026-05-09","observations":[{"date":"2025-05-09","value":4.55},{"date":"2026-05-09","value":4.97}],"note":"Source: Federal Reserve Bank of St. Louis (FRED)"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/treasury/current":{"get":{"tags":["FRED"],"summary":"Current 30-year Treasury yield","description":"Current 30-year US Treasury yield (DGS30). Alias for /api/current?id=DGS30.","operationId":"getTreasuryCurrent","x-x402":{"price":"0.01","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"responses":{"200":{"description":"Current 30-year Treasury yield","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","series":"DGS30 - 30-Year Treasury Constant Maturity Rate","date":"2026-05-09","yield_percent":4.97,"note":"Source: Federal Reserve Bank of St. Louis (FRED)"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/treasury/date":{"get":{"tags":["FRED"],"summary":"30-year Treasury yield on a specific date","description":"30-year Treasury yield for a specific date. Alias for /api/date?id=DGS30&d=YYYY-MM-DD.","operationId":"getTreasuryByDate","x-x402":{"price":"0.01","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"parameters":[{"name":"d","in":"query","required":true,"description":"Date in YYYY-MM-DD format","schema":{"type":"string"}}],"responses":{"200":{"description":"30-year Treasury yield on a specific date","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","series":"DGS30 - 30-Year Treasury Constant Maturity Rate","date":"2026-05-09","yield_percent":4.97,"note":"Source: Federal Reserve Bank of St. Louis (FRED)"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/fx/current":{"get":{"tags":["FX"],"summary":"Current G10 FX rate","description":"Current exchange rate for a G10 currency pair. Source: European Central Bank.","operationId":"getFxCurrent","x-x402":{"price":"0.01","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"parameters":[{"name":"pair","in":"query","required":true,"description":"G10 currency pair","schema":{"type":"string","enum":["EURUSD","GBPUSD","USDJPY","USDCHF","USDCAD","AUDUSD","NZDUSD","USDSEK","USDNOK"],"example":"EURUSD"}}],"responses":{"200":{"description":"Current G10 FX rate","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","pair":"EURUSD","label":"Euro / US Dollar","date":"2026-05-09","rate":1.1245,"base":"EUR","quote":"USD","note":"Source: Frankfurter (European Central Bank)"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/fx/date":{"get":{"tags":["FX"],"summary":"G10 FX rate on a specific date","description":"Exchange rate for a G10 currency pair on a specific date. Use ?pair=EURUSD&d=YYYY-MM-DD.","operationId":"getFxByDate","x-x402":{"price":"0.01","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"parameters":[{"name":"pair","in":"query","required":true,"description":"G10 currency pair","schema":{"type":"string","enum":["EURUSD","GBPUSD","USDJPY","USDCHF","USDCAD","AUDUSD","NZDUSD","USDSEK","USDNOK"],"example":"EURUSD"}},{"name":"d","in":"query","required":true,"description":"Date in YYYY-MM-DD format","schema":{"type":"string"}}],"responses":{"200":{"description":"G10 FX rate on a specific date","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","pair":"EURUSD","label":"Euro / US Dollar","date":"2026-05-09","rate":1.1245,"base":"EUR","quote":"USD","note":"Source: Frankfurter (European Central Bank)"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/fx/series":{"get":{"tags":["FX"],"summary":"Historical G10 FX rate series","description":"Historical daily exchange rates for a G10 currency pair.","operationId":"getFxSeries","x-x402":{"price":"0.05","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"parameters":[{"name":"pair","in":"query","required":true,"description":"G10 currency pair","schema":{"type":"string","enum":["EURUSD","GBPUSD","USDJPY","USDCHF","USDCAD","AUDUSD","NZDUSD","USDSEK","USDNOK"],"example":"EURUSD"}},{"name":"days","in":"query","required":true,"description":"30, 90, or 365 days of history","schema":{"type":"string","enum":["30","90","365"],"example":"30"}}],"responses":{"200":{"description":"Historical G10 FX rate series","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","pair":"EURUSD","label":"Euro / US Dollar","days":30,"count":21,"start":"2026-04-10","end":"2026-05-09","observations":[{"date":"2026-04-10","value":1.1102},{"date":"2026-05-09","value":1.1245}],"note":"Source: Frankfurter (European Central Bank)"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/derived/yield-curve":{"get":{"tags":["Derived"],"summary":"Yield curve spreads with inversion signal","description":"Yield curve spreads (2s10s and 3m10y) with inversion signal. Computed from FRED Treasury data.","operationId":"getYieldCurve","x-x402":{"price":"0.03","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"responses":{"200":{"description":"Yield curve spreads with inversion signal","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","as_of":"2026-05-15","spreads":{"2s10s":{"value":-0.15,"inverted":true},"3m10y":{"value":0.42,"inverted":false}},"components":{"DGS2":4.85,"DGS10":4.7,"DGS1MO":4.28},"signal":"Partially inverted"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/derived/recession":{"get":{"tags":["Derived"],"summary":"Sahm Rule recession indicator","description":"Real-time Sahm Rule recession indicator. Value >= 0.5 signals recession underway. Source: FRED SAHMREALTIME.","operationId":"getRecessionIndicator","x-x402":{"price":"0.02","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"responses":{"200":{"description":"Sahm Rule recession indicator","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","as_of":"2026-04-01","sahm_rule":{"value":0.37,"threshold":0.5,"triggered":false,"signal":"No recession signal"}}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/derived/policy-spread":{"get":{"tags":["Derived"],"summary":"Fed policy spread (EFFR vs IORB)","description":"EFFR vs IORB spread. Shows where the effective Fed funds rate trades relative to interest on reserves.","operationId":"getPolicySpread","x-x402":{"price":"0.02","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"responses":{"200":{"description":"Fed policy spread (EFFR vs IORB)","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","as_of":"2026-05-14","effr":4.33,"iorb":4.4,"spread":-0.07,"interpretation":"EFFR trading below IORB — within normal operating band"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/calendar":{"get":{"tags":["Calendar"],"summary":"Upcoming economic data release dates","description":"Upcoming FRED economic data release dates. CPI, jobs, GDP, Treasury, and more. Use ?days=30|60|90.","operationId":"getCalendar","x-x402":{"price":"0.02","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"parameters":[{"name":"days","in":"query","required":false,"description":"Lookahead window in days","schema":{"type":"string","enum":["30","60","90"],"example":"30"}}],"responses":{"200":{"description":"Upcoming economic data release dates","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","calendar_start":"2026-05-16","calendar_end":"2026-06-15","count":12,"releases":[{"date":"2026-05-20","release_id":50,"release_name":"Employment Situation"}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/bundle/refi-signal":{"get":{"tags":["Bundles"],"summary":"Refinance signal bundle","description":"Refinance signal bundle: current 30yr and 15yr mortgage rates, 52-week range, MBS spread, rate trend, and refi break-even threshold. Tells an AI agent whether a borrower should consider refinancing.","operationId":"getBundleRefiSignal","x-x402":{"price":"0.60","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"responses":{"200":{"description":"Refinance signal bundle","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","as_of":"2026-05-29","bundle":"refi_signal","series":{"MORTGAGE30US":6.86,"MORTGAGE15US":6.12,"DGS10":4.46,"FEDFUNDS":4.33},"derived":{"mbs_spread":2.4,"week52_high":7.22,"week52_low":6.41,"week52_position_pct":63,"refi_breakeven_threshold":7.61,"refi_breakeven_label":"Borrowers with existing rates above this level likely benefit from refinancing"},"signals":{"rate_trend_30d":"flat","rate_trend_90d":"falling","rate_vs_52wk":"mid_range","refi_environment":"neutral"}}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/bundle/purchase-market":{"get":{"tags":["Bundles"],"summary":"Home purchase market bundle","description":"Home purchase market bundle: current mortgage rate, median sale price, monthly payment estimate, income required to qualify, and affordability level. Directly answers whether a buyer can afford a median home.","operationId":"getBundlePurchaseMarket","x-x402":{"price":"0.60","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"responses":{"200":{"description":"Home purchase market bundle","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","as_of":"2026-05-29","bundle":"purchase_market","series":{"MORTGAGE30US":6.86,"MSPUS":419700,"HOUST":1378,"FEDFUNDS":4.33},"derived":{"loan_amount":335760,"monthly_payment_estimate":2213,"income_required_28pct":94843,"home_price_change_qoq":2.1},"signals":{"affordability_level":"elevated","market_activity":"moderate"}}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/bundle/rate-environment":{"get":{"tags":["Bundles"],"summary":"Rate environment snapshot bundle","description":"Rate environment snapshot: FEDFUNDS, SOFR, DGS2, DGS5, DGS10, DGS30 plus yield curve spreads and policy spread. One payment, all rate data.","operationId":"getBundleRateEnvironment","x-x402":{"price":"0.35","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"responses":{"200":{"description":"Rate environment snapshot bundle","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","as_of":"2026-05-29","bundle":"rate_environment","series":{"FEDFUNDS":4.33,"SOFR":4.31,"DGS2":3.94,"DGS5":4.01,"DGS10":4.46,"DGS30":4.97},"derived":{"spread_2s10s":0.52,"spread_3m10y":0.18,"policy_spread":-0.07},"signals":{"curve_shape":"Normal (upward sloping)","policy_stance":"EFFR trading below IORB — within normal operating band"}}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/bundle/mortgage-pulse":{"get":{"tags":["Bundles"],"summary":"Mortgage market pulse bundle","description":"Mortgage market pulse: 30yr and 15yr mortgage rates, 10Y Treasury, Fed funds, median home price, housing starts. Includes MBS spread and rate trend.","operationId":"getBundleMortgagePulse","x-x402":{"price":"0.40","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"responses":{"200":{"description":"Mortgage market pulse bundle","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","as_of":"2026-05-29","bundle":"mortgage_pulse","series":{"MORTGAGE30US":6.86,"MORTGAGE15US":6.12,"DGS10":4.46,"FEDFUNDS":4.33,"MSPUS":412000,"HOUST":1401},"derived":{"mbs_spread":2.4,"mbs_spread_label":"30yr mortgage minus 10Y Treasury"},"signals":{"rate_trend_30d":"flat"}}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/bundle/macro":{"get":{"tags":["Bundles"],"summary":"Macro health snapshot bundle","description":"Macro health snapshot: GDP, unemployment, CPI, core CPI, Fed funds, yield curve spreads, and Sahm Rule recession signal. Includes cycle phase.","operationId":"getBundleMacro","x-x402":{"price":"0.50","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"responses":{"200":{"description":"Macro health snapshot bundle","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","as_of":"2026-05-29","bundle":"macro","series":{"GDP":29350,"UNRATE":4.2,"CPIAUCSL":315.5,"CPILFESL":323.8,"FEDFUNDS":4.33},"derived":{"sahm_rule":0.37,"spread_2s10s":0.52},"signals":{"cycle_phase":"expansion","recession_triggered":false}}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/bundle/fx-dashboard":{"get":{"tags":["Bundles"],"summary":"G10 FX dashboard bundle","description":"G10 FX dashboard: all 9 spot rates (EURUSD, GBPUSD, USDJPY, USDCHF, USDCAD, AUDUSD, NZDUSD, USDSEK, USDNOK) plus USD strength index vs basket (30d).","operationId":"getBundleFxDashboard","x-x402":{"price":"0.35","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"responses":{"200":{"description":"G10 FX dashboard bundle","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","as_of":"2026-05-29","bundle":"fx_dashboard","series":{"EURUSD":1.1345,"GBPUSD":1.3512,"USDJPY":142.5,"USDCHF":0.891,"USDCAD":1.3621,"AUDUSD":0.6445,"NZDUSD":0.5987,"USDSEK":9.82,"USDNOK":10.28},"derived":{"usd_strength_index":-2.18,"usd_strength_index_label":"Avg % change of USD vs G10 basket (30d)"},"signals":{"usd_trend_30d":"weakening"}}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/bundle/energy":{"get":{"tags":["Bundles"],"summary":"Energy and commodities bundle","description":"Energy and commodities bundle: WTI crude, Brent crude, US regular gasoline, Henry Hub natural gas. Includes WTI-Brent spread and market signal.","operationId":"getBundleEnergy","x-x402":{"price":"0.25","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"responses":{"200":{"description":"Energy and commodities bundle","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","as_of":"2026-05-29","bundle":"energy","series":{"DCOILWTICO":61.5,"DCOILBRENTEU":64.8,"GASREGCOVW":3.18,"DHHNGSP":3.82},"derived":{"wti_brent_spread":-3.3,"wti_brent_spread_label":"WTI minus Brent crude (USD/bbl)"},"signals":{"wti_brent_signal":"Normal contango (Brent premium)"}}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/bundle/context-brief":{"get":{"tags":["Bundles"],"summary":"Economic context brief bundle","description":"Economic context brief: 15+ indicators across rates, inflation, employment, FX, and energy in a pre-formatted natural-language paragraph for LLM context injection.","operationId":"getBundleContextBrief","x-x402":{"price":"0.75","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"responses":{"200":{"description":"Economic context brief bundle","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","as_of":"2026-05-29","bundle":"context_brief","brief":"As of 2026-05-29: The Fed Funds Rate is 4.33%, the yield curve is +52bps (normal), 10Y Treasury at 4.46%, 30Y at 4.97%, CPI at 315.5, unemployment at 4.2%, 30yr mortgage rate 6.86% (240bps over 10Y), WTI crude $61.50/bbl, Brent $64.80/bbl, EUR/USD 1.1345, USD/JPY 142.5, Sahm Rule 0.37 (below 0.50 threshold).","series":{"FEDFUNDS":4.33,"DGS10":4.46,"DGS30":4.97,"MORTGAGE30US":6.86,"UNRATE":4.2,"CPIAUCSL":315.5,"DCOILWTICO":61.5}}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/crypto/price":{"get":{"tags":["Crypto"],"summary":"Current crypto price","description":"Current price, 24h change, market cap, and volume for any supported cryptocurrency. Use ?coin=BTC|ETH|SOL|BNB|XRP|ADA|AVAX|DOGE|LINK|DOT|etc. Source: CoinGecko.","operationId":"getCryptoPrice","x-x402":{"price":"0.02","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"parameters":[{"name":"coin","in":"query","required":true,"description":"Crypto symbol","schema":{"type":"string","enum":["BTC","ETH","SOL","BNB","XRP","USDT","USDC","ADA","AVAX","DOGE","DOT","MATIC","LINK","LTC","ATOM","UNI","SUI","APT","NEAR","PEPE"],"example":"BTC"}}],"responses":{"200":{"description":"Current crypto price","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","symbol":"BTC","name":"Bitcoin","price_usd":67500.5,"change_24h_pct":2.43,"market_cap_usd":1332000000000,"volume_24h_usd":28500000000,"as_of":"2026-06-23T12:00:00Z","source":"CoinGecko"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/crypto/history":{"get":{"tags":["Crypto"],"summary":"Historical crypto prices","description":"Historical daily closing prices for any supported cryptocurrency. Use ?coin=BTC&days=30|90|365. Source: CoinGecko.","operationId":"getCryptoHistory","x-x402":{"price":"0.15","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"parameters":[{"name":"coin","in":"query","required":true,"description":"Crypto symbol","schema":{"type":"string","enum":["BTC","ETH","SOL","BNB","XRP","USDT","USDC","ADA","AVAX","DOGE","DOT","MATIC","LINK","LTC","ATOM","UNI","SUI","APT","NEAR","PEPE"],"example":"BTC"}},{"name":"days","in":"query","required":true,"description":"30, 90, or 365 days of history","schema":{"type":"string","enum":["30","90","365"],"example":"30"}}],"responses":{"200":{"description":"Historical crypto prices","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","symbol":"BTC","name":"Bitcoin","days":30,"count":30,"start":"2026-05-24","end":"2026-06-23","observations":[{"date":"2026-05-24","price_usd":65000},{"date":"2026-06-23","price_usd":67500.5}],"source":"CoinGecko"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/bundle/crypto":{"get":{"tags":["Bundles"],"summary":"Top 20 crypto bundle","description":"Top 20 cryptocurrencies by market cap: price, 24h change, 7d change, market cap, and volume in one call. Source: CoinGecko.","operationId":"getBundleCrypto","x-x402":{"price":"0.50","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"responses":{"200":{"description":"Top 20 crypto bundle","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","bundle":"crypto","as_of":"2026-06-23T12:00:00Z","count":20,"coins":[{"rank":1,"symbol":"BTC","name":"Bitcoin","price_usd":67500.5,"change_24h_pct":2.43,"change_7d_pct":-1.2,"market_cap_usd":1332000000000,"volume_24h_usd":28500000000}],"source":"CoinGecko"}}}},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/edgar/company":{"get":{"tags":["EDGAR"],"summary":"Company fundamentals from SEC EDGAR","description":"Company financial fundamentals from SEC EDGAR XBRL: revenue, net income, total assets, stockholders equity, and EPS from 10-K and 10-Q filings. Use ?ticker=AAPL|MSFT|TSLA|AMZN|NVDA|GOOGL|META|etc.","operationId":"getEdgarCompany","x-x402":{"price":"0.75","currency":"USDC","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"]},"parameters":[{"name":"ticker","in":"query","required":true,"description":"Stock ticker symbol e.g. AAPL, MSFT, TSLA, AMZN, NVDA, GOOGL, META","schema":{"type":"string"}}],"responses":{"200":{"description":"Company fundamentals from SEC EDGAR","content":{"application/json":{"schema":{"type":"object"},"example":{"service":"LastLook Data","ticker":"AAPL","company_name":"APPLE INC","cik":"0000320193","fundamentals":{"revenue":{"annual":[{"period_end":"2023-09-30","value":383285000000,"fiscal_year":2023}],"quarterly":[{"period_end":"2024-03-30","value":90753000000,"fiscal_period":"Q2"}]},"net_income":{"annual":[{"period_end":"2023-09-30","value":96995000000}]},"total_assets":{"annual":[{"period_end":"2023-09-30","value":352583000000}]}},"as_of":"2026-06-23","source":"SEC EDGAR (XBRL)"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"}}}},"/api/treasury/public":{"get":{"tags":["Free"],"summary":"Current 30-year Treasury yield (free)","operationId":"getTreasuryPublic","description":"Most recent 30-year Treasury yield (DGS30). No payment required.","responses":{"200":{"description":"Current yield","content":{"application/json":{"example":{"date":"2026-10-30","yield_percent":4.71,"series":"DGS30"}}}}}}},"/health":{"get":{"tags":["Free"],"summary":"Health check","operationId":"getHealth","responses":{"200":{"description":"Service status","content":{"application/json":{"example":{"status":"ok","service":"LastLook Data","version":"2.14.0"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}},"responses":{"BadRequest":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"PaymentRequired":{"description":"Payment required via x402 v2. Pay USDC on Base or Solana; requirements are in the PAYMENT-REQUIRED response header."}}}}