Real questions. Full answers.
Choose your format.
ChatGPT / ClaudeResearch questions, connected sources and saved answers.
One question.
Connected financial sources.
Thirteen research examples. Combine filings, prices, ownership, macro data, rates, volatility and crypto in one question. Open a saved answer, inspect its sources and view the SDK calls.
Saved answers keep their original source dates. Re-run through MCP with your credentials; coverage and results can change.
Showing 13 examples
1Single-name research
Company fundamentals, filings and market positioning · 3 examples
The filing, the regulator, the exchange and the central bank
Show the SDK calls
d = QuantJourneyAPI.from_env().domains inc = d.equity.fundamentals.get_income_statement(symbol="AAPL", period="quarter", limit=4) si = d.equity.shorting.get_short_interest(symbol="AAPL") exp = d.derivatives.options.get_options_expirations(symbol="AAPL") fx = d.fx.rates.get_ecb_reference_rates() usd_per_eur = next(r.rate for r in fx.data if r.currency == "USD") eur_revenue = inc.data[0].revenue / usd_per_eur
Margin expanded 290bp in four quarters while shorts grew 20% in a single month — and if you want to act on that, 24 listed expiries run out to January 2029. A data vendor, a US regulator, an options exchange and a central bank, in one call shape. No one of them sells the other three.
Two of the four numbers came from institutions that do not sell data at all — FINRA and the ECB publish, they do not license. That is the part no vendor contract replaces.
| Fiscal quarter | Revenue fmp | In EUR ecb | Gross margin | Net margin | Diluted EPS | Filed |
|---|---|---|---|---|---|---|
| Q3 FY2026 | $109.42bn | €95.48bn | 50.1% | 27.2% | $2.03 | 31 Jul 2026 |
| Q2 FY2026 | $111.18bn | €97.02bn | 49.3% | 26.6% | $2.01 | 01 May 2026 |
| Q1 FY2026 | $143.76bn | €125.44bn | 48.2% | 29.3% | $2.84 | 30 Jan 2026 |
| Q4 FY2025 | $102.47bn | €89.41bn | 47.2% | 26.8% | $1.85 | 31 Oct 2025 |
Statements from fmp with fiscalYear, period and filingDate attached, so “Q3” is never silently a calendar quarter. EUR column at the ECB reference rate for 18 Sep 2026 (EUR/USD 1.1460) — the rate a European IC pack is obliged to use, taken from the central bank that sets it.
A capex story only rates can finish
Show the SDK calls
km = d.equity.fundamentals.get_key_metrics_ttm(symbol="MSFT") si = d.equity.shorting.get_short_interest(symbol="MSFT") ust = d.benchmarks.treasury.get_treasury_rates(start_date="2026-09-01", end_date="2026-09-18") cpi = d.macro.series.get_cpi(start_date="2026-01-01", end_date="2026-08-31") ten_year = ust.data.rates[0].year10 spread = km.data.freeCashFlowYieldTTM * 100 - ten_year
The AI-capex story sits in two numbers — 18.2× EBITDA but 56.3× free cash flow, because capex absorbs 63% of operating cash flow at 2.7× depreciation. The question that finishes it lives in another domain entirely: a 1.83% free cash flow yield against a 5.01% ten-year is minus 318 basis points. You are paid in growth or not at all. An equity-only API cannot ask that question.
Capex at 2.7× depreciation cannot hold indefinitely: either depreciation catches up and the multiple compresses, or revenue absorbs it. Either way the spread to the risk-free rate is the number to track — not the EBITDA multiple.
A valuation argument, both sides
Show the SDK calls
km = d.equity.fundamentals.get_key_metrics_ttm(symbol="NVDA") g = d.equity.ratios.get_quarterly_revenue_growth_yoy(symbol="NVDA") pt = d.equity.estimates.get_price_target_summary(symbol="NVDA") si = d.equity.shorting.get_short_interest(symbol="NVDA") exp = d.derivatives.options.get_options_expirations(symbol="NVDA") upside = pt.data.lastMonthAvgPriceTarget / quote.data.price - 1
Bull: 28× earnings, +105.9% revenue, 59.5% ROIC, 2.4% capex intensity. Bear: income quality of 0.70 and 150 days of inventory say cash is arriving slower than earnings. The tell: at 2.14 days to cover almost nobody is positioned for the bear case, even though 24 listed expiries make it trivial to express. Four institutions built that argument; the agent didn't get to choose which one flattered the thesis.
For a desk the actionable line is the last one: with 24 expiries and 2.14 days to cover, hedging the bear case costs option premium, not liquidity.
2Screens, calendars & ownership
Company screens, catalysts and institutional ownership · 3 examples
Valuation from the vendor, positioning from the regulator
Show the SDK calls
rows = d.equity.reference.get_stock_screener(
industry="Semiconductors", marketCapMoreThan=100_000_000_000, limit=12)
for r in rows.data:
pe = d.equity.ratios.get_pe_ratio_ttm(symbol=r.symbol)
g = d.equity.ratios.get_quarterly_revenue_growth_yoy(symbol=r.symbol)
si = d.equity.shorting.get_short_interest(symbol=r.symbol)
print(r.symbol, pe.data, g.data, si.data[0].days_to_cover)The valuation ranking and the positioning ranking disagree, which is the whole point of joining them: Micron is the cheapest name on the fastest growth and the least shorted at 1.16 days to cover, while shorts grew 12.2% in a month on Intel — the only name in the group with no trailing earnings. One vendor ranked them; a regulator said who was actually leaning.
Positioning is the column that changes the trade. Cheap-and-unshorted (Micron) and expensive-and-shorted (AMD) are different setups, even when the valuation screen ranks them side by side.
| Name | Market cap | P/E ttm | Revenue y/y | Short interest finra | Days to cover finra |
|---|---|---|---|---|---|
| Micron · MU | $1.15tn | 22.7× | +345.7% | 29.7M · −1.0% | 1.16 |
| NVIDIA · NVDA | $5.38tn | 28.0× | +105.9% | 298.3M · +4.3% | 2.14 |
| Broadcom · AVGO | $1.70tn | 44.4× | +85.5% | not in FINRA file | — |
| TSMC · TSM | $2.25tn | 28.5× | +36.0% | ADR — not covered | — |
| AMD | $0.91tn | 142.1× | +50.1% | 41.7M · +4.1% | 2.49 |
| Intel · INTC | $0.55tn | n/m | +25.4% | 152.2M · +12.2% | 1.69 |
The screen itself is one vendor's job and we don't pretend otherwise — fmp returns the universe, the multiple and the market cap in three calls. The column FMP cannot produce is the last two: FINRA's consolidated short-interest file, published by the regulator on a settlement cycle. Blank cells are blank on purpose — ADRs and some issues are not in that file, and we would rather show the gap than invent a number.
The next two weeks, from four institutions
Show the SDK calls
win = dict(from_date="2026-09-21", to_date="2026-10-05") earn = d.equity.calendar.get_earnings_calendar(**win) events = d.macro.calendar.get_economic_events(**win) claims = d.macro.series.get_jobless_claims(start_date="2026-07-01", end_date="2026-09-18") odds = d.predictions.markets.search_markets(query="Fed rate", limit=5) us = [e for e in events.data if e.country == "US"]
Four institutions, one calendar: a data vendor for earnings, a macro provider for prints, a Federal Reserve bank for the realised claims series, and a prediction market for what is already in the price. The street expects durable goods to swing from +1.1% to −0.5% and payrolls to fall by a quarter — while real money pays 54.5% for a hike. One of those two views is wrong, and you can see both in a single response.
The Micron print on 30 September lands the same morning as core PCE. If both surprise in the same direction, the curve moves before the equity does.
| Date | Event | Type | Previous | Estimate |
|---|---|---|---|---|
| 23 Sep | S&P Global Composite PMI | macro eod | 56.0 | 55.2 |
| 24 Sep | Costco · COST | earnings fmp | — | $6.53 EPS |
| 24 Sep | Initial Jobless Claims | macro eod | 196k | 202k |
| 25 Sep | Durable Goods Orders | macro eod | +1.1% | −0.5% |
| 29 Sep | CB Consumer Confidence | macro eod | 89.4 | — |
| 30 Sep | Micron · MU | earnings fmp | — | $31.27 EPS |
| 30 Sep | Core PCE Price Index y/y | macro eod | 3.3% | — |
| 30 Sep | Chicago PMI | macro eod | 47.1 | 48.9 |
| 01 Oct | ISM Manufacturing PMI | macro eod | 54.6 | 54.0 |
| 01 Oct | Nike · NKE / Accenture · ACN | earnings fmp | — | $0.44 / $3.19 |
| 02 Oct | Nonfarm Payrolls, private | macro eod | 127k | 95k |
1,352 scheduled earnings and 1,000 macro events across 111 countries in the window; 150 of the macro prints are US. Shown: what actually moves a book.
A 170KB filing payload, reduced to seven numbers
Show the SDK calls
h = d.regulatory.ownership.get_institutional_holders(symbol="NVDA") pt = d.equity.estimates.get_price_target_summary(symbol="NVDA") q = d.equity.market.get_quote(symbol="NVDA") si = d.equity.shorting.get_short_interest(symbol="NVDA") top10 = sum(x.sharesNumber for x in sorted(h.data, key=lambda x: -x.sharesNumber)[:10]) breadth = sum(1 for x in h.data if x.changeInSharesNumber > 0) / len(h.data)
Institutions hold 14.47bn shares and shorts hold 298M — a 48-to-1 long-to-short ratio with breadth on a knife edge at 51%. The vendor gave you the crowd; the regulator gave you the absence of a counterweight. You never touched an EDGAR parser.
Read with rung 03: a 48:1 long-to-short ratio on 51% breadth is the profile of a name that gaps on flow, not on fundamentals.
Q2 2026 filings, quarter-end price $200.09. One call returned 100 filers across 4,816 lines of JSON.
3Macro, rates & the Fed
Inflation, rates and central bank expectations · 3 examples
The same series from two agencies
Show the SDK calls
cpi_a = d.macro.us.get_cpi(start_year=2023, end_year=2026) un = d.macro.us.get_unemployment_rate(start_year=2024, end_year=2026) cpi_b = d.macro.series.get_cpi(start_date="2026-01-01", end_date="2026-08-31") claims = d.macro.series.get_jobless_claims(start_date="2026-07-01", end_date="2026-09-18") cpi_a.data[-1].cpi_all == cpi_b.data[-1].CPIAUCSL cpi_b.data[-1].realtime_start
CPI bottomed at 2.33% (Apr 2025), peaked at 4.17% (May 2026) and sits at 3.35%, while unemployment fell from 4.5% to 4.1% and claims dropped to 196k. Two independent agencies agree on the index to the third decimal — and FRED carries realtime_start on every row, so a backtest can ask what was known on the day rather than what is believed today.
For a backtest this matters more than the level: the FRED vintage field reconstructs what an analyst could have known on any given day, with no look-ahead.
Line break at October 2025: BLS published no observation. The gap is left open rather than interpolated — a silent fill is how a hole enters a backtest.
Rates and volatility, one question
Show the SDK calls
ust = d.benchmarks.treasury.get_treasury_rates(start_date="2026-09-01", end_date="2026-09-18") vix = d.derivatives.vol.get_vix_data(start_date="2026-08-18", end_date="2026-09-18") curve = ust.data.rates[0] twos_tens = curve.year10 - curve.year2
The front end sold off nearly twice as hard as the long end, and equity vol gave the whole move back inside a week.
Bear flattening with vol collapsing is the market saying the hike is priced and not feared. Whether that is right is a separate question — see rung 12.
What real money thinks the Fed will do
Show the SDK calls
mk = d.predictions.markets.search_markets(query="Fed rate", limit=5)
ust = d.benchmarks.treasury.get_treasury_rates(start_date="2026-09-11", end_date="2026-09-18")
hike = next(m for m in mk.data
if "increase" in m.question and "25 bps" in m.question)
hike.yes_price, hike.one_week_change, hike.volumeIn seven days the market flipped from 62/38 in favour of holding to 55/44 in favour of hiking, on $7.1m of combined volume and $2.3m of resting liquidity — while the 2-year sold off 37bp in the same window. A prediction market and the Treasury curve, two institutions, telling the same story independently. That corroboration is the trade; assembling it by hand is an afternoon.
The move is large relative to liquidity: $2.3m of resting orders absorbed a 17-point swing. Worth knowing before treating the probability as a consensus.
Four outcomes on the October 2026 meeting, priced at 05:06 UTC. Week-ago levels derived from each market's own reported one-week change. The four probabilities sum to 99.5% — near arbitrage-free.
4Credit & crypto
Bank fundamentals, stablecoins and crypto carry · 2 examples
Counterparty diligence: the regulator and the market
Show the SDK calls
banks = d.regulatory.banking.get_institutions(limit=5, filters="ACTIVE:1")
for b, ticker in zip(banks.data, ["JPM", "BAC", "C", "WFC", "GS"]):
pb = d.equity.ratios.get_pb_ratio_ttm(symbol=ticker)
print(b.NAMEHCR, b.ROA, b.ROE, pb.data)JPMorgan earns 159bp on assets against Citi's 106bp — and the market pays 2.60× book versus 1.06× for that gap. The regulator and the market agree on the ranking. FDIC data needs no vendor contract, no licence and no key; it is simply in the catalog.
The pairing is the point: the regulator's ROA says how the bank earns; the market's P/B says what investors make of it. When the two disagree, that is the diligence question.
| Institution | Assets fdic | Deposits fdic | ROA fdic | ROE fdic | P/B fmp |
|---|---|---|---|---|---|
| JPMorgan Chase | $4,091bn | $2,820bn | 1.59% | 18.55% | 2.60× |
| Bank of America | $2,655bn | $2,122bn | 1.13% | 12.31% | — |
| Citigroup | $1,976bn | $1,548bn | 1.06% | 11.69% | 1.06× |
| Wells Fargo | $1,908bn | $1,564bn | 1.38% | 14.88% | — |
| Goldman Sachs | $759bn | $499bn | 1.21% | 13.72% | — |
FDIC reports the insured depository institution; the ratio route reports the listed holding company. Same brand, different legal entity — which is exactly why the envelope labels each number with the source that produced it, so the two never get averaged by accident.
Stablecoin float is a bill bid
Show the SDK calls
sc = d.crypto.stablecoins.get_stablecoins() glb = d.crypto.market.get_global_data() ust = d.benchmarks.treasury.get_treasury_rates(start_date="2026-09-18", end_date="2026-09-18") fr = d.crypto.funding.get_funding_rate(symbol="BTC/USDT:USDT", exchange="binance") float_usd = sum(s.circulating.peggedUSD for s in sc.data) carry = float_usd * ust.data.rates[0].month3 / 100 perp_apr = fr.data.fundingRate * 3 * 365
A $311.9bn float sitting mostly in short-dated Treasuries earns roughly $12.9bn a year at a 4.14% three-month bill — which is why the front end and stablecoin supply are now the same trade seen from two sides. And with perp funding at 8.04%, the leveraged long pays almost double what the collateral earns. Four vendors: an on-chain analytics firm, a market aggregator, a rates source and an exchange connector. No equity data vendor sells any of this.
It also means the front end is now partly a crypto-demand market — a $30bn change in stablecoin float is a $30bn change in bill demand, visible through these same routes.
5Volatility regime & cross-asset
Volatility, positioning and cross-asset signals · 2 examples
Identifying the volatility regime
Show the SDK calls
cpi = d.macro.us.get_cpi(start_date="2026-01-01", end_date="2026-08-31") win = dict(start_date="2026-08-18", end_date="2026-09-18") vix = d.derivatives.vol.get_vix_data(**win) vvix = d.derivatives.vol.get_vvix_data(**win) skew = d.derivatives.vol.get_skew_index_data(**win) ust = d.benchmarks.treasury.get_treasury_rates(start_date="2026-09-01", end_date="2026-09-18") odds = d.predictions.markets.search_markets(query="Fed rate", limit=5) ratio = float(vvix.data[-1].close) / float(vix.data[-1].close)
The regime is cheap spot vol with expensive tails. VIX and VVIX both sit below where August started, but SKEW is 3% above it and set its high on 11 September — after the VIX spike had passed. A VVIX/VIX ratio of 5.90 is the month's highest: convexity is bid even though the level is not. Put that beside a front end repricing 37bp and prediction markets flipping to a hike, and the classification writes itself — this is not calm, it is unhedged.
Practically: protection here is cheap on level and expensive on skew, so the efficient hedge is a spread rather than an outright put.
All three rebased to 100 at 18 August 2026, so they share one axis — three different scales never belong on two y-axes. Cboe publishes all three; the gateway returns them in the same shape.
One question across six domains
Show the SDK calls
packet = {}
for route, kw in [
("macro.us.get_cpi", dict(start_year=2023, end_year=2026)),
("macro.us.get_unemployment_rate", dict(start_year=2024, end_year=2026)),
("benchmarks.treasury.get_treasury_rates", dict(start_date="2026-09-01", end_date="2026-09-18")),
("macro.positioning.get_net_positioning", dict(symbol="T_NOTES_10Y")),
("derivatives.vol.get_vix_data", dict(start_date="2026-08-18", end_date="2026-09-18")),
("sentiment.fear_greed.get_summary", {}),
("crypto.funding.get_funding_rate", dict(symbol="BTC/USDT:USDT", exchange="binance")),
("predictions.markets.search_markets", dict(query="Fed rate", limit=5)),
]:
r = api.call(route, kw)
packet[route] = (r.data, r.meta.provider, r.meta.request_id)Read together: prices re-accelerating into a tightening labour market, a front end repricing hawkishly, speculators structurally short duration, real money paying 54.5% for an October hike — and equity vol asleep at 14.8 while sentiment sits in fear. That is a regime where the surprise is not the hike; it is that nothing is hedged for it. Assembling it from seven institutions is a sprint. Here it is one prompt, ~11 seconds, one key — and every figure still names the source that produced it.
Every figure above carries its request_id, so the packet can be re-run next week and diffed line by line.
CFTC legacy report, 52 weeks to 15 Sep 2026. Negative means speculators are net short.
SDK / API examplesPython workflows for quants, portfolio managers and buy-side research.
Different sources.
One research question.
Twenty-nine workflows. At least two data providers in every example. Combine portfolio risk, options, regulatory reports, macro releases, identity and prediction markets. Start with the Gateway calls and result. Download the full code for date alignment, calculations and plotting.
Saved calculations use observed API responses captured on 31 October 2026 UTC. Re-run with your credentials; availability and results can change.
Showing 29 workflows
01How does FX change your portfolio’s tail risk?
Translate a multi-asset allocation into EUR, estimate historical VaR and Expected Shortfall, and inspect high-VIX observations.
How does FX change your portfolio’s tail risk?
Translate a multi-asset allocation into EUR, estimate historical VaR and Expected Shortfall, and inspect high-VIX observations.
from quantjourney.sdk import QuantJourneyAPI
from sdk_portfolio_var import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'prices': qj.domains.call('equity.pricing.get_historical_prices',
provider='eod', symbols=['SPY', 'TLT', 'GLD', 'DBC', 'UUP'], start_date='2020-01-01', end_date='2025-12-31', frequency='1d'),
'ecb_fx': qj.domains.call('macro.eu.get_ecb_series',
provider='ecb', series_id='EXR.D.USD.EUR.SP00.A', start_date='2020-01-01', end_date='2025-12-31'),
'vix_history': qj.domains.call('macro.indicators.get_fred_data_series_by_id',
provider='fred', search_id='VIXCLS', start='2020-01-01', end='2025-12-31'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
02What risks sit behind the stock returns?
Align monthly adjusted returns and the five Fama–French factors, subtract the risk-free return, then estimate exposures.
What risks sit behind the stock returns?
Align monthly adjusted returns and the five Fama–French factors, subtract the risk-free return, then estimate exposures.
from quantjourney.sdk import QuantJourneyAPI
from sdk_factor_exposure import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'prices': qj.eod.get_historical_prices(
symbols=['AAPL', 'MSFT', 'SPY'], start_date='2020-01-01', end_date='2025-12-31', frequency='1d'),
'factors': qj.ff.get_factors(
region='america', factor='5_factors'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
03Where is the option market pricing the skew?
Find a live expiration, filter actual option observations and compare call and put implied volatility against a daily-price reference.
Where is the option market pricing the skew?
Find a live expiration, filter actual option observations and compare call and put implied volatility against a daily-price reference.
from quantjourney.sdk import QuantJourneyAPI
from sdk_smile import analyze, AS_OF, payload, timedelta
qj = QuantJourneyAPI.from_env()
available = payload(qj.cboe.get_options_expirations(symbol='SPY'))
if isinstance(available, dict):
available = available['expirations']
dates = sorted((str(item)[:10] for item in available if str(item)[:10] >= AS_OF.isoformat()))
if not dates:
raise ValueError('No nonexpired SPY option expiration returned')
raw = {
'chain': qj.cboe.get_options_chain(
symbol='SPY', expiration_date=dates[0]),
'spy_spot': qj.eod.get_historical_prices(
symbols=['SPY'], start_date=(AS_OF - timedelta(days=14)).isoformat(), end_date=(AS_OF - timedelta(days=1)).isoformat(), frequency='1d'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
04What is the volatility curve saying?
Compare delayed VIX futures, the latest published VIX close and realised equity volatility with explicit observation dates.
What is the volatility curve saying?
Compare delayed VIX futures, the latest published VIX close and realised equity volatility with explicit observation dates.
from quantjourney.sdk import QuantJourneyAPI
from sdk_vix_curve import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'vix_curve': qj.domains.call('derivatives.vol.get_vix_term_structure',
provider='cboe'),
'vix_current': qj.domains.call('macro.indicators.get_fred_data_series_by_id',
provider='fred', search_id='VIXCLS', start='2026-01-01', end='2026-10-30'),
'recent_prices': qj.domains.call('equity.pricing.get_historical_prices',
provider='eod', symbols=['SPY'], start_date='2026-01-01', end_date='2026-10-30', frequency='1d'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
05What does a put spread protect at expiry?
Select strikes from an observed option chain, use executable sides of the quote and calculate the protected payoff per underlying share.
What does a put spread protect at expiry?
Select strikes from an observed option chain, use executable sides of the quote and calculate the protected payoff per underlying share.
from quantjourney.sdk import QuantJourneyAPI
from sdk_option_overlay import analyze, AS_OF, payload, timedelta
qj = QuantJourneyAPI.from_env()
dates = payload(qj.domains.call('derivatives.options.get_options_expirations', provider='cboe', symbol='SPY'))
dates = dates['expirations'] if isinstance(dates, dict) else dates
available = sorted((str(day)[:10] for day in dates if str(day)[:10] >= AS_OF.isoformat()))
if not available:
raise ValueError('No nonexpired SPY option expiration')
raw = {
'chain': qj.domains.call('derivatives.options.get_options_chain',
provider='cboe', symbol='SPY', expiration_date=available[0]),
'spy_spot': qj.domains.call('equity.pricing.get_historical_prices',
provider='eod', symbols=['SPY'], start_date=(AS_OF - timedelta(days=14)).isoformat(), end_date=(AS_OF - timedelta(days=1)).isoformat(), frequency='1d'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
06How large are holders against trading volume?
Compare reported positions with normal and high-volatility trading volume observed before the holdings date.
How large are holders against trading volume?
Compare reported positions with normal and high-volatility trading volume observed before the holdings date.
from quantjourney.sdk import QuantJourneyAPI
from sdk_ownership_capacity import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'vix_history': qj.domains.call('macro.indicators.get_fred_data_series_by_id',
provider='fred', search_id='VIXCLS', start='2020-01-01', end='2025-12-31'),
'holders': qj.domains.call('regulatory.ownership.get_institutional_holders',
provider='fmp', symbol='AAPL', year=2025, quarter=3, limit=100),
'prices': qj.domains.call('equity.pricing.get_historical_prices',
provider='eod', symbols=['AAPL'], start_date='2020-01-01', end_date='2025-12-31', frequency='1d'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
07Is speculative positioning stretched?
Normalize net noncommercial futures-and-options positions by open interest and compare them with the equity-market path.
Is speculative positioning stretched?
Normalize net noncommercial futures-and-options positions by open interest and compare them with the equity-market path.
from quantjourney.sdk import QuantJourneyAPI
from sdk_cot import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'cot': qj.cftc.get_cot_data(
symbol='13874A', report_type='legacy', start_date='2020-01-01', end_date='2025-12-31'),
'prices': qj.eod.get_historical_prices(
symbols=['SPY'], start_date='2020-01-01', end_date='2025-12-31', frequency='1d'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
08Does the short-interest denominator matter?
Compare FINRA’s reported days to cover with a clearly defined volume denominator aligned to the settlement date.
Does the short-interest denominator matter?
Compare FINRA’s reported days to cover with a clearly defined volume denominator aligned to the settlement date.
from quantjourney.sdk import QuantJourneyAPI
from sdk_short_liquidity import analyze, frame, pd
qj = QuantJourneyAPI.from_env()
short = qj.finra.get_short_interest(symbol='AAPL')
settlement = frame(short, 'settlement_date').iloc[-1]['settlement_date']
raw = {
'short': short,
'short_prices': qj.eod.get_historical_prices(
symbols=['AAPL'], start_date=(settlement - pd.Timedelta(days=120)).date().isoformat(), end_date=settlement.date().isoformat(), frequency='1d'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
09Did earnings surprises move the stock?
Join reported EPS surprises to adjusted-price windows and inspect the size and direction of the subsequent move.
Did earnings surprises move the stock?
Join reported EPS surprises to adjusted-price windows and inspect the size and direction of the subsequent move.
from quantjourney.sdk import QuantJourneyAPI
from sdk_earnings_reaction import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'vix_history': qj.fred.get_fred_data_series_by_id(
search_id='VIXCLS', start='2020-01-01', end='2025-12-31'),
'earnings': qj.fmp.get_earnings_surprises(
symbol='AAPL'),
'prices': qj.eod.get_historical_prices(
symbols=['AAPL'], start_date='2020-01-01', end_date='2025-12-31', frequency='1d'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
10What growth do analyst estimates imply?
Compare filed and expected EPS, then check whether the latest reported short position increased.
What growth do analyst estimates imply?
Compare filed and expected EPS, then check whether the latest reported short position increased.
from quantjourney.sdk import QuantJourneyAPI
from sdk_expectations import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'short': qj.domains.call('equity.shorting.get_short_interest',
provider='finra', symbol='AAPL'),
'income': qj.domains.call('equity.fundamentals.get_income_statement',
provider='fmp', symbol='AAPL', period='annual', limit=5),
'filings': qj.domains.call('regulatory.filings.get_company_filings',
provider='sec', symbol='AAPL', form_type='10-K', limit=12),
'estimates': qj.fmp.get_analyst_estimates(
symbol='AAPL', period='annual', limit=8),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
11Do earnings turn into cash?
Verify filing dates, measure earnings-to-cash conversion and calculate inflation-adjusted free-cash-flow growth.
Do earnings turn into cash?
Verify filing dates, measure earnings-to-cash conversion and calculate inflation-adjusted free-cash-flow growth.
from quantjourney.sdk import QuantJourneyAPI
from sdk_cash_conversion import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'bls_cpi': qj.domains.call('macro.us.get_cpi',
provider='bls', start_year=2020, end_year=2025, category='all', seasonally_adjusted=True),
'income': qj.domains.call('equity.fundamentals.get_income_statement',
provider='fmp', symbol='AAPL', period='annual', limit=5),
'cash': qj.domains.call('equity.fundamentals.get_cash_flow_statement',
provider='fmp', symbol='AAPL', period='annual', limit=5),
'filings': qj.domains.call('regulatory.filings.get_company_filings',
provider='sec', symbol='AAPL', form_type='10-K', limit=12),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
12Are credit spreads and bond returns telling the same story?
Put high-yield option-adjusted spreads beside high-yield versus investment-grade ETF returns, using only common dates.
Are credit spreads and bond returns telling the same story?
Put high-yield option-adjusted spreads beside high-yield versus investment-grade ETF returns, using only common dates.
from quantjourney.sdk import QuantJourneyAPI
from sdk_credit import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'credit': qj.fred.get_fred_data_series_by_id(
search_id='BAMLH0A0HYM2', start='2020-01-01', end='2025-12-31'),
'prices': qj.eod.get_historical_prices(
symbols=['HYG', 'LQD'], start_date='2020-01-01', end_date='2025-12-31', frequency='1d'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
13Do inflation differences line up with the currency move?
Align US inflation, German inflation and ECB exchange rates on a monthly calendar before comparing their relationship.
Do inflation differences line up with the currency move?
Align US inflation, German inflation and ECB exchange rates on a monthly calendar before comparing their relationship.
from quantjourney.sdk import QuantJourneyAPI
from sdk_macro_fx import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'oecd_cpi': qj.domains.call('macro.series.get_cpi_data',
provider='oecd', countries=['USA', 'DEU'], start_date='2020-01-01', end_date='2025-12-31'),
'bls_cpi': qj.domains.call('macro.us.get_cpi',
provider='bls', start_year=2020, end_year=2025, category='all', seasonally_adjusted=True),
'ecb_fx': qj.domains.call('macro.eu.get_ecb_series',
provider='ecb', series_id='EXR.D.USD.EUR.SP00.A', start_date='2020-01-01', end_date='2025-12-31'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
14Which sectors moved with inflation?
Join actual CPI observations with sector returns relative to SPY, then compare descriptive relationships across the sample.
Which sectors moved with inflation?
Join actual CPI observations with sector returns relative to SPY, then compare descriptive relationships across the sample.
from quantjourney.sdk import QuantJourneyAPI
from sdk_inflation import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'cpi': qj.fred.get_fred_data_series_by_id(
search_id='CPIAUCSL', start='2020-01-01', end='2025-12-31', frequency='m'),
'prices': qj.eod.get_historical_prices(
symbols=['SPY', 'XLE', 'XLK', 'XLF', 'XLU', 'XLP', 'XLY'], start_date='2020-01-01', end_date='2025-12-31', frequency='1d'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
15How did bank margins and deposits change?
Join regulatory bank financials to policy rates and inflation, then distinguish deposit growth from purchasing-power growth.
How did bank margins and deposits change?
Join regulatory bank financials to policy rates and inflation, then distinguish deposit growth from purchasing-power growth.
from quantjourney.sdk import QuantJourneyAPI
from sdk_bank_cycle import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'fdic_bank': qj.domains.call('regulatory.banking.get_institutions',
provider='fdic', filters='CERT:628', limit=1),
'fdic_history': qj.domains.call('regulatory.banking.get_financials',
provider='fdic', filters='CERT:628 AND REPDTE:[20200101 TO 20251231]', limit=30, sort_by='REPDTE', sort_order='ASC'),
'funds': qj.domains.call('macro.indicators.get_fred_data_series_by_id',
provider='fred', search_id='DFF', start='2020-01-01', end='2025-12-31'),
'bls_cpi': qj.domains.call('macro.us.get_cpi',
provider='bls', start_year=2020, end_year=2025, category='all', seasonally_adjusted=True),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
16Does perp funding agree with the spot move?
Aggregate actual funding observations by UTC day and align them with Bitcoin spot returns from a separate source.
Does perp funding agree with the spot move?
Aggregate actual funding observations by UTC day and align them with Bitcoin spot returns from a separate source.
from quantjourney.sdk import QuantJourneyAPI
from sdk_crypto_funding import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'funding': qj.ccxt.get_historical_funding_rates(
exchange='binance', symbol='BTC/USDT:USDT', limit=300),
'crypto': qj.coingecko.get_historical_prices(
coin_id='bitcoin', vs_currency='usd', days=365, interval='daily'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
17Does sentiment agree with observed market risk?
Combine CNN Fear & Greed observations, VIX closes and SPY returns without treating sentiment as a trade signal.
Does sentiment agree with observed market risk?
Combine CNN Fear & Greed observations, VIX closes and SPY returns without treating sentiment as a trade signal.
from quantjourney.sdk import QuantJourneyAPI
from sdk_sentiment import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'cnn': qj.domains.call('sentiment.fear_greed.get_index_range',
provider='cnnf', start_date='2026-08-01', end_date='2026-10-30'),
'vix_current': qj.domains.call('macro.indicators.get_fred_data_series_by_id',
provider='fred', search_id='VIXCLS', start='2026-01-01', end='2026-10-30'),
'recent_prices': qj.domains.call('equity.pricing.get_historical_prices',
provider='eod', symbols=['SPY'], start_date='2026-01-01', end_date='2026-10-30', frequency='1d'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
18Is capital earning more than the benchmark?
Calculate a reported-capital return proxy and compare it with the Treasury yield observed during each fiscal year.
Is capital earning more than the benchmark?
Calculate a reported-capital return proxy and compare it with the Treasury yield observed during each fiscal year.
from quantjourney.sdk import QuantJourneyAPI
from sdk_capital_returns import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'income': qj.fmp.get_income_statement(
symbol='AAPL', period='annual', limit=5),
'balance': qj.fmp.get_balance_sheet_statement(
symbol='AAPL', period='annual', limit=5),
'rates_all': qj.fred.get_fred_data_series_by_id(
search_id='DGS10', start='2020-01-01', end='2025-12-31'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
19How much revenue growth survives inflation?
Deflate reported revenue with CPI averaged over the matching fiscal year, rather than comparing mismatched calendar dates.
How much revenue growth survives inflation?
Deflate reported revenue with CPI averaged over the matching fiscal year, rather than comparing mismatched calendar dates.
from quantjourney.sdk import QuantJourneyAPI
from sdk_real_growth import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'income': qj.fmp.get_income_statement(
symbol='AAPL', period='annual', limit=5),
'bls_cpi': qj.bls.get_cpi(
start_year=2020, end_year=2025, category='all', seasonally_adjusted=True),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
20What happened after the annual filing?
Use the SEC acceptance timestamp as the event anchor and measure a conservative post-filing return window.
What happened after the annual filing?
Use the SEC acceptance timestamp as the event anchor and measure a conservative post-filing return window.
from quantjourney.sdk import QuantJourneyAPI
from sdk_filing_reaction import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'vix_history': qj.domains.call('macro.indicators.get_fred_data_series_by_id',
provider='fred', search_id='VIXCLS', start='2020-01-01', end='2025-12-31'),
'filings': qj.domains.call('regulatory.filings.get_company_filings',
provider='sec', symbol='AAPL', form_type='10-K', limit=12),
'prices': qj.domains.call('equity.pricing.get_historical_prices',
provider='eod', symbols=['AAPL'], start_date='2020-01-01', end_date='2025-12-31', frequency='1d'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
21When did the numbers become available?
Match reported fiscal periods to SEC acceptance dates before using fundamentals in research.
When did the numbers become available?
Match reported fiscal periods to SEC acceptance dates before using fundamentals in research.
from quantjourney.sdk import QuantJourneyAPI
from sdk_reporting_dates import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'income': qj.fmp.get_income_statement(
symbol='AAPL', period='annual', limit=5),
'filings': qj.sec.get_company_filings(
symbol='AAPL', form_type='10-K', limit=12),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookAdapted from this notebook. The downloadable code produces this analysis.
22Which legal entity sits behind the bank?
Match the registration authority and bank certificate, then link the bank’s LEI to its reported ultimate parent.
Which legal entity sits behind the bank?
Match the registration authority and bank certificate, then link the bank’s LEI to its reported ultimate parent.
from quantjourney.sdk import QuantJourneyAPI
from sdk_entity_identity import analyze, linked_bank
qj = QuantJourneyAPI.from_env()
raw = {
'fdic_bank': qj.domains.call('regulatory.banking.get_institutions',
provider='fdic', filters='CERT:628', limit=1),
'lei_search': qj.domains.call('reference.entities.search_lei_records',
provider='gleif', query='JPMorgan Chase Bank', country='US', entity_status='ACTIVE', registration_status='ISSUED', page_size=10),
}
_, record = linked_bank(raw)
raw['lei_parent'] = qj.domains.call('reference.entities.get_ultimate_parent', provider='gleif', lei=record['id'])
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookOriginal SDK workflow. Download the complete notebook and run it with your credentials.
23What does the inflation market price beyond the last release?
Compare quoted CPI threshold contracts with the latest calculated year-on-year inflation from BLS. Preserve each bid and ask.
What does the inflation market price beyond the last release?
Compare quoted CPI threshold contracts with the latest calculated year-on-year inflation from BLS. Preserve each bid and ask.
from quantjourney.sdk import QuantJourneyAPI
from sdk_inflation_market import analyze, AS_OF
qj = QuantJourneyAPI.from_env()
raw = {
'kalshi_cpi': qj.domains.call('predictions.markets.search_markets',
provider='kalshi', series_ticker='KXCPIYOY', status='open', limit=1000),
'bls_latest': qj.domains.call('macro.us.get_cpi',
provider='bls', category='all', seasonally_adjusted=False, start_year=AS_OF.year - 1, end_year=AS_OF.year),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookOriginal SDK workflow. Download the complete notebook and run it with your credentials.
24What drove 80% of the portfolio’s losses?
Locate the largest observed drawdown, attribute the loss to each holding and compare the period with VIX.
What drove 80% of the portfolio’s losses?
Locate the largest observed drawdown, attribute the loss to each holding and compare the period with VIX.
from quantjourney.sdk import QuantJourneyAPI
from sdk_drawdown_attribution import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'prices': qj.eod.get_historical_prices(
symbols=['SPY', 'TLT', 'GLD', 'DBC', 'UUP'], start_date='2020-01-01', end_date='2025-12-31', frequency='1d'),
'vix_history': qj.fred.get_fred_data_series_by_id(
search_id='VIXCLS', start='2020-01-01', end='2025-12-31'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookOriginal SDK workflow. Download the complete notebook and run it with your credentials.
25Which names have rising EPS estimates but falling prices?
Compare next-quarter EPS revisions with 30-calendar-day price returns and retain the latest reported earnings date.
Which names have rising EPS estimates but falling prices?
Compare next-quarter EPS revisions with 30-calendar-day price returns and retain the latest reported earnings date.
from quantjourney.sdk import QuantJourneyAPI
from sdk_earnings_revisions import analyze, AS_OF, timedelta
qj = QuantJourneyAPI.from_env()
raw = {
'trends': qj.eod.get_trends_calendar(
symbols=['AAPL.US', 'MSFT.US', 'NVDA.US']),
'revision_prices': qj.eod.get_historical_prices(
symbols=['AAPL', 'MSFT', 'NVDA'], start_date=str(AS_OF - timedelta(days=90)), end_date=str(AS_OF), frequency='1d'),
}
for symbol, key in [('AAPL', 'earnings'), ('MSFT', 'earnings_msft'), ('NVDA', 'earnings_nvda')]:
raw[key] = qj.fmp.get_earnings_surprises(symbol=symbol)
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookOriginal SDK workflow. Download the complete notebook and run it with your credentials.
26Which reported positions would take longest to exit?
Combine a common institutional filer’s three-stock holdings sample with report-date trading volume and peer ownership.
Which reported positions would take longest to exit?
Combine a common institutional filer’s three-stock holdings sample with report-date trading volume and peer ownership.
from quantjourney.sdk import QuantJourneyAPI
from sdk_crowded_exit import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'book_prices': qj.eod.get_historical_prices(
symbols=['AAPL', 'MSFT', 'NVDA'], start_date='2025-01-01', end_date='2025-12-31', frequency='1d'),
}
for symbol, key in [('AAPL', 'holders'), ('MSFT', 'holders_msft'), ('NVDA', 'holders_nvda')]:
raw[key] = qj.fmp.get_institutional_holders(symbol=symbol, year=2025, quarter=3, limit=100)
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookOriginal SDK workflow. Download the complete notebook and run it with your credentials.
27Is the portfolio becoming more exposed to one factor?
Estimate rolling monthly factor exposures for the notebook allocation and compare the market loading with VIX.
Is the portfolio becoming more exposed to one factor?
Estimate rolling monthly factor exposures for the notebook allocation and compare the market loading with VIX.
from quantjourney.sdk import QuantJourneyAPI
from sdk_factor_regime import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'prices': qj.eod.get_historical_prices(
symbols=['SPY', 'TLT', 'GLD', 'DBC', 'UUP'], start_date='2020-01-01', end_date='2025-12-31', frequency='1d'),
'factors': qj.ff.get_factors(
region='america', factor='5_factors'),
'vix_history': qj.fred.get_fred_data_series_by_id(
search_id='VIXCLS', start='2020-01-01', end='2025-12-31'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookOriginal SDK workflow. Download the complete notebook and run it with your credentials.
28Do the sources support the same equity thesis?
Review earnings, cash conversion, insider filing activity and short interest without collapsing different dates into one score.
Do the sources support the same equity thesis?
Review earnings, cash conversion, insider filing activity and short interest without collapsing different dates into one score.
from quantjourney.sdk import QuantJourneyAPI
from sdk_equity_conviction import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'income': qj.fmp.get_income_statement(
symbol='AAPL', period='annual', limit=5),
'cash': qj.fmp.get_cash_flow_statement(
symbol='AAPL', period='annual', limit=5),
'sec_insider': qj.sec.get_insider_transactions(
symbol='AAPL', limit=100),
'short': qj.finra.get_short_interest(
symbol='AAPL'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookOriginal SDK workflow. Download the complete notebook and run it with your credentials.
29How much of the post-earnings move was residual?
Fit market, sector and style exposures before an earnings event, then reconcile their contributions to the observed stock return.
How much of the post-earnings move was residual?
Fit market, sector and style exposures before an earnings event, then reconcile their contributions to the observed stock return.
from quantjourney.sdk import QuantJourneyAPI
from sdk_event_attribution import analyze
qj = QuantJourneyAPI.from_env()
raw = {
'prices': qj.eod.get_historical_prices(
symbols=['AAPL', 'SPY', 'XLK'], start_date='2023-01-01', end_date='2025-12-31', frequency='1d'),
'daily_factors': qj.ff.get_factors(
region='america', factor='5_factors', frequency='daily', start_date='2023-01-01', end_date='2025-12-31'),
'earnings': qj.fmp.get_earnings_surprises(
symbol='AAPL'),
}
result, figure = analyze(raw)
print(result.head())
figure.show()
The preview imports the analysis helper from the full Python file below.
Open the full notebookOriginal SDK workflow. Download the complete notebook and run it with your credentials.