Provider response contracts
Provider response contracts
Tracking: Issue #332.
Purpose
The #328 failure class is: the provider (Financial Modeling Prep, "FMP") returns HTTP 200 with a response body that silently renamed, dropped, or nulled a field a consumer reads — marketCap → mktCap, exchangeShortName instead of exchange — and nothing in CI catches it. A downstream screener or analyzer just goes quietly empty. pytest against a hand-written fixture doesn't help, because nobody notices the fixture itself has drifted from what the provider actually returns.
This slice adds a recorded, versioned response contract per FMP endpoint: real (sanitized) field names, types, and nullability, checked against both a fixture (in CI, offline) and a live probe (weekly canary). It intentionally does not try to lint arbitrary FMP responses generically — a single endpoint like /stable/company-screener still returns exchangeShortName while /stable/profile renamed the same concept to exchange (verified live 2026-09-05), so a repo-wide static rule for legacy field names is not viable. Contracts are per endpoint.
File layout
config/provider-contracts/
fmp/
company-screener.v1.json
sp500-constituent.v1.json
profile.v1.json
quote.v1.json
historical-price-eod-full.v1.json
historical-price-eod-dividend-adjusted.v1.json
historical-price-eod-light.v1.json
earnings-calendar.v1.json
income-statement.v1.json
ratios.v1.json
economic-calendar.v1.json
trader-monty/
market-breadth-data.v1.json
market-breadth-summary.v1.json
uptrend-ratio-timeseries.v1.json
uptrend-sector-summary.v1.jsonLocation follows config/ci-test-policy.yaml's convention: data lives under config/, the code that reads it lives under scripts/ — see scripts/provider_contracts.py (loader/validator, stdlib-only at import time) and scripts/check_provider_contracts.py (the check / canary CLI).
Public CSV contracts (trader-monty)
The four trader-monty contracts cover keyless public CSVs. They feed market-breadth-analyzer and uptrend-analyzer, two of the three required skills of the market-regime-daily workflow. Because no API key is involved, their live canary actually runs in CI. The schema above is extended additively; FMP contracts are unchanged and default to format: "json".
| Key | Applies to | Meaning |
|---|---|---|
format | all | "json" (default) or "csv". Any other value fails check. |
url | csv only | Required for csv, forbidden for json. https only, host in {tradermonty.github.io, raw.githubusercontent.com}, no port, credentials, query string or fragment. path must equal the URL path and query must be empty. |
max_bytes | csv only | Positive integer cap on the decompressed body, default 2 MiB. The timeseries sets 16 MiB because the file is 2.81 MB today and grows about 14 KB per trading day. |
required_values | all | {column: [values]}. Each value must appear in at least one row, otherwise the fatal missing_required_value:<column>=<value>. Used for the worksheet == "all" row and the two summary metrics the breadth analyzer reads. |
parse_csv_rows(text) returns (rows, parse_anomalies) using the stdlib csv module:
- A UTF-8 BOM is stripped and the first CSV record is the header. Header names
retain their exact spelling and case; they are not stripped or case-folded. An empty/whitespace-only name reports fatal blank_header; an exact duplicate name reports fatal duplicate_header. Invalid headers return no rows rather than allowing DictReader to silently overwrite columns. These fixed codes never include provider header/cell contents. An otherwise valid header with no rows still follows the existing empty_response rule.
- CSV parsing uses the standard library's strict quoting checks. Unclosed quoted
fields and other syntax errors recognized by that parser raise csv.Error. NUL input is explicitly rejected on all supported Python versions, including in headers, so it cannot collide with the internal extra-cell marker. The fetch wrapper reports fatal parse_error and discards the entire response, including any valid rows before the error. It continues the remaining probes.
- An empty cell becomes
None. true/falsein any case becomesbool.- An integer literal becomes
int; a decimal or exponent literal becomesfloat. - Everything else stays
str, including dates,nanandinf. A numeric column holding
nan therefore reports wrong_type:<col>:str. This is intentional, because the breadth consumer rejects non-finite numbers, and the live files contain none.
- A short row maps missing cells to
None. A row with extra cells yields one fatal
extra_cells anomaly and keeps only the header keys.
- A header-only body returns
[], which givesempty_responsewhenmin_rows >= 1.
Fixtures are stored as already-coerced JSON rows, so a fixture and a live body go through the same coercion. Declared types follow what the consumers accept: float-parsed columns declare ["float", "int"], ["int"] is used only for Breadth_200MA_Trend, which the consumer parses with int(), and the timeseries count / total declare ["int", "float"] because the uptrend consumer's _safe_int is int(float(v)) and so tolerates 840.0. Bool columns declare ["bool"] (only true/false in any case) and are deliberately stricter than any single consumer. The owners disagree on other spellings: market-breadth-analyzer's _parse_bool accepts 1/0/yes/no and raises on anything else, while market-top-detector's (breadth_csv_client.py) silently reads every value other than true/1/yes as False. A provider switch to Y/N, 1/0 or yes/no would therefore produce wrong signals in one owner, so the canary reports it as fatal wrong_type:<col>:str / :int. The summary Value column declares ["int", "float", "str"] because it mixes numbers and dates.
market-breadth-data records SP500_Price, Breadth_200MA, Breadth_8MA and Trend as legacy_aliases. They are consumer-tolerated alternates read by breadth-chart-analyst (fetch_breadth_csv.py), not provider history. A provider rename to one of them is still fatal (canonical_absent_legacy_present) because market-breadth-analyzer and market-top-detector would break.
Canary fetch for CSV contracts
One GET per contract with no credentials, allow_redirects=False, a 30 s timeout and stream=True. The body is read up to max_bytes + 1 decompressed bytes and decoded as utf-8-sig. Fetch-level fatal codes:
| Code | When |
|---|---|
http_status:<code> | non-200 response, including a 3xx (redirects are never followed). Validation is skipped, so this is the only code. |
transport_error | the request failed. The redacted message goes to stderr only. It replaces http_status:-1 for CSV. |
body_too_large:<max_bytes> | the body exceeded the cap. |
decode_error | the body is not valid UTF-8. |
parse_error | invalid quoting, a NUL byte, or a field over the CSV size limit. All partial rows are discarded. Only that contract fails; the other contracts are still reported. |
blank_header | a header name is empty or whitespace-only. No rows are accepted. |
duplicate_header | an exact header name appears more than once. No rows are accepted. |
extra_cells | a row had more cells than the header. |
Deduplicated anomalies and count
validate_rows still emits one anomaly per row. The canary and summary use RowValidation.summarized(), which returns the unique (code, severity) pairs in first-seen order with a count. A 30k-row timeseries with one renamed column therefore reports one entry with count: 30000. count is additive and also appears in FMP reports. Summary table cells render code ×count when the count is above 1.
Contract schema
{
"schema_version": 1,
"provider": "fmp",
"endpoint": "profile",
"path": "/stable/profile",
"query": {"symbol": "AAPL"},
"contract_version": 1,
"recorded_on": "2026-09-05",
"recording": "live /stable response; description/website/image/... removed",
"owners": ["earnings-trade-analyzer", "pead-screener", "..."],
"tier_notes": "served on free tier; comma-batched symbol returns []",
"required_fields": {
"symbol": {"types": ["str"], "nullable": false},
"marketCap": {"types": ["int", "float"], "nullable": true, "reject_all_null": true},
"exchange": {"types": ["str"], "nullable": false}
},
"optional_fields": ["beta", "lastDividend", "..."],
"legacy_aliases": {
"mktCap": {"canonical": "marketCap"},
"exchangeShortName": {"canonical": "exchange"}
},
"known_gaps": [],
"non_empty": {"min_rows": 1, "reason": "AAPL profile must never be empty"},
"fixture": [{"...sanitized real rows...": true}]
}Field semantics:
required_fields— fields a consumer skill actually reads. Each entry
declares types (JSON-ish type names: str, int, float, bool, list, dict) and nullable (whether the provider is known to legitimately return null for this field, e.g. epsActual before an earnings report is filed). The optional boolean reject_all_null (default false) additionally rejects a non-empty response when every row explicitly has null for that field. Individual nulls alongside a non-null value still follow nullable; missing keys and malformed rows retain their existing fatal anomaly codes. Only profile.marketCap opts in: the AAPL probe should have a populated market cap. Earnings fields such as epsActual may legitimately be all-null before reporting and do not opt in. Non-boolean policy values fail both the offline fixture check and canary validation, including on empty responses. Two more opt-in boolean policies exist, both default false. finite: true requires numeric-only types (int/float) and rejects NaN, infinity and integers outside finite float range. iso_date: true requires types to be exactly ["str"] and rejects any value that is not a canonical YYYY-MM-DD calendar date. Only the light EOD contract opts in. A malformed policy value fails the offline fixture check and canary validation, including on empty responses.
optional_fields— every other field observed live but not read by any
in-scope consumer. Informational only; not validated.
legacy_aliases— a field name the provider used to use (mktCap,
exchangeShortName, lastDiv on the v3 API) mapped to its current canonical name. This is exactly the #328 signature: if a row has the legacy key but not the canonical one, the provider silently reverted or the endpoint changed shape.
known_gaps— a documented, accepted gap between what the provider used to
return (v3) and what /stable returns now, each tied to a follow-up issue number. Currently empty across all contracts; only earnings-calendar is allowed to carry entries here (it previously recorded #352 — the time field — until includeReportTimes=true restored it, see below).
non_empty—min_rowsis the floor below which an empty/Noneresponse is
itself an anomaly (empty_response), not just a shape mismatch.
fixture— real (sanitized) rows recorded live onrecorded_on. Rules
enforced by check: at least one row; every row satisfies required_fields; no row may contain a legacy_aliases key (a fixture records the current canonical stable shape, not the legacy one — the rename-regression unit tests construct the legacy-shaped row on the fly instead, see scripts/tests/test_provider_contracts.py).
Versioning rule: contract_version bumps only on a breaking change (a required field removed, renamed, or its type narrowed/changed). Adding a new optional_fields entry, widening a type set, or marking a field newly nullable is non-breaking and does not bump the version. Adding a new required field that consumers start reading (e.g. time after #352) is consumer-compatible and does not bump the version; it tightens the canary only. If the addition needs a new query parameter, record it in query so the canary requests the same shape.
Anomaly / severity table
Produced by validate_rows() in scripts/provider_contracts.py:
| Code | Severity | Meaning |
|---|---|---|
empty_response | fatal | [] / None where non_empty.min_rows >= 1 |
not_a_list | fatal | the response body itself is not a list |
row_not_object | fatal | a list entry is not a JSON object |
missing_required_field:<f> | fatal | required key absent from a row, and no legacy alias is present either |
null_required_field:<f> | fatal | required key is null and nullable: false |
all_null_required_field:<f> | fatal | every row explicitly has null for a field with reject_all_null: true |
invalid_contract_rule:<f>:reject_all_null | fatal | the opt-in policy value is not a JSON boolean |
wrong_type:<f>:<got> | fatal | required key's value type is outside its declared types |
non_finite_required_field:<f> | fatal | a value is NaN, infinity or out of float range for a field with finite: true |
invalid_contract_rule:<f>:finite | fatal | the finite policy is not a boolean, or its types are not numeric-only |
invalid_date_format:<f> | fatal | a value is not a canonical YYYY-MM-DD date for a field with iso_date: true |
invalid_contract_rule:<f>:iso_date | fatal | the iso_date policy is not a boolean, or types is not exactly ["str"] |
missing_required_value:<col>=<val> | fatal | a required_values entry (for example worksheet=all) appears in no row |
canonical_absent_legacy_present:<legacy>-><canonical> | fatal | the #328 signature — the legacy field name showed up instead of the canonical one |
legacy_alias_present:<legacy> | deprecation (non-fatal) | both the legacy and canonical keys are present; informational only |
A contract result is ok = True when it has zero fatal anomalies (a deprecation-only result is still ok).
Economic calendar contract (#332)
economic-calendar.v1.json records three unmodified public macro-event rows from a 2026-10-17 HTTP 200 response (568 rows) for 2026-10-01 through 2026-10-07. The probe uses the singular /stable/economic-calendar endpoint and that known populated historical window. It joins the existing scheduled canary automatically, adding one request to its default budget (now nine contracts). Entitlement is not inferred from a successful recording credential: HTTP 402 remains a failure.
The owning standalone consumer checks every row before reporting or opening an output file. It requires date/country/event/currency/impact strings and the five nullable numeric readings (previous/estimate/actual/change/changePercentage). An absent key is not equivalent to null. All-null readings are allowed; unit and unknown additional fields are preserved. Consumer validation also rejects blank strings, unparsable YYYY-MM-DD HH:MM:SS timestamps, booleans and nonfinite numeric values. It does not constrain the impact string to High/Medium/Low: the recording includes the valid string "None".
| CLI reason | Exit | Meaning |
|---|---|---|
economic_calendar_schema_drift | 1 | Malformed event rows, missing/renamed/retyped fields, invalid dates/numbers, or the generated client's explicit non-array JSON shape error |
calendar_fetch_failed | 1 | HTTP/tier/network failure, or a generic generated-client acquisition failure (including HTTP-200 null and invalid JSON after its existing bounded retry) |
empty_calendar_unverified | 1 | Clean empty array; no trusted completeness classifier proves this is a quiet calendar |
These failures preserve existing output files and do not write a successful empty report. The low-level Python fetch still returns a validated empty list, allowing callers with an independent completeness policy to decide what to do. The canary's min_rows: 1 applies to its populated historical probe, not to every arbitrary query window. No global economic-calendar holiday rule is assumed.
This slice does not promote the existing report-only canary, configure secrets, or complete #332's remaining provider/endpoint inventory.
Consumer zero-result reason codes
The anomaly table above is what the contract layer itself detects (fixture vs. live, or live vs. contract in the canary). Two consumer skills go further: when their own candidate-selection logic empties out, each prints a machine-readable ZERO_RESULT_REASON=<code> line to stderr (one line, exactly that format) before exiting, so a CI/scheduler consumer can tell "an ordinary quiet day" apart from "the provider response shape drifted" without parsing prose. Each code maps to a fixed exit code (and, for pead-screener, a log level); an unrecognized/unknown reason falls back to exit 1 in both scripts.
earnings-trade-analyzer (analyze_earnings_trades.py, _ZERO_RESULT_MESSAGES; falsy/non-list calendar bodies evaluated first in classify_empty_calendar; profiles_budget_exhausted is also emitted directly from the except ApiCallBudgetExceeded around the profile fetch in main(); the rest in explain_empty_selection in fixed order, first match wins):
| Code | Condition | Exit |
|---|---|---|
no_earnings_rows | the calendar returned [] for an inclusive date window containing zero XNYS sessions, or a non-empty response had no row carrying a symbol | 0 |
calendar_fetch_failed | the calendar fetch returned no usable body (None on transport/HTTP/rate-limit failure, or a non-list body) | 1 |
earnings_calendar_empty_with_market_sessions | the calendar returned a clean [], but the identical inclusive date window sent to FMP contains at least one XNYS session; possible silent provider drop | 1 |
market_calendar_unavailable | the shared XNYS calendar could not classify a clean []; query failure is not treated as a quiet window (a missing pandas-market-calendars package is not a zero-result reason: it exits 2 with a requirements.txt hint) | 1 |
profiles_budget_exhausted | profile fetching raised ApiCallBudgetExceeded (including after partial retrieval), or profiles came back empty and the budget is exhausted (api_stats["budget_remaining"] == 0 or rate_limit_reached) | 1 |
no_profiles_returned | ≥1 earnings symbol, but get_company_profiles returned nothing | 1 |
profiles_missing_required_field:marketCap | ≥1 profile came back, but none has a usable numeric marketCap (non-bool int/float, finite) | 1 |
profiles_missing_required_field:exchange | ≥1 usable market cap exists, but none of those profiles has a string exchange | 1 |
all_below_market_cap_floor | every usable profile's market cap is below --min-market-cap | 0 |
all_non_us_exchange | every usable profile's exchange is a non-US exchange (not in FMPClient.US_EXCHANGES) | 0 |
mixed_filters_rejected_all | usable profiles exist and were all rejected, but by a mix of the cap-floor and exchange filters rather than one uniform cause — treated as an ordinary empty day, not schema drift | 0 |
(fallback) unknown / any other reason not in the table | none of the above matched | 1 |
For earnings-trade-analyzer, profiles_budget_exhausted exits 1: a daily 429 limit or an aborted profile fetch leaves an incomplete profile set (possibly none at all), so no scored report can be produced — that is not a benign empty day.
pead-screener (screen_pead.py, _ZERO_RESULT_REASONS / _get_candidates_mode_a + _get_candidates_mode_b, both return (candidates, reason) with reason is None when candidates is non-empty):
| Code | Condition | Exit | Level |
|---|---|---|---|
no_earnings_rows | Mode A: the FMP earnings calendar returned no rows (or no rows carried a symbol) for the lookback window | 0 | WARNING |
calendar_fetch_failed | Mode A: the calendar fetch returned no usable body (None on transport/HTTP/rate-limit failure, or a non-list body); non-dict rows are ignored, never dereferenced | 1 | ERROR |
calendar_budget_exhausted | Mode A: the per-day calendar fetch (lookback_days + 1 calls) raised ApiCallBudgetExceeded; raise --max-api-calls or lower --lookback-days | 1 | ERROR |
profiles_budget_exhausted | Mode A: profile fetching raised ApiCallBudgetExceeded (including after partial retrieval), or profiles came back empty and the budget is exhausted (budget_remaining == 0 or rate_limit_reached) | 1 | ERROR |
no_profiles_returned | Mode A: ≥1 symbol, but get_company_profiles returned nothing and the budget is not exhausted | 1 | ERROR |
profiles_missing_required_field:marketCap | Mode A: no candidate passed the cap filter and no profile has a coercible marketCap or mktCap — see the value-based nuance below | 1 | ERROR |
all_below_market_cap_floor | Mode A: at least one profile has a usable market cap, but every candidate's cap is below --min-market-cap | 0 | INFO |
no_input_candidates | Mode B: no record in the input JSON met the --min-grade filter | 0 | INFO |
(fallback) unknown / any other reason not in the table | none of the above matched | 1 | ERROR |
pead-screener's marketCap check is value-based, not just key-presence. _coerce_market_cap() treats a present-but-null (or non-numeric, or non-finite) marketCap/mktCap as "no usable cap" — the same as the key being absent entirely. So a lookback window where every returned profile has "marketCap": null (key present, value null) is indistinguishable from one where the key is missing outright: both set any_usable_cap = False for every symbol and exit 1 with profiles_missing_required_field:marketCap, on the assumption that a batch of all-null market caps is more likely provider drift than 100% coincidental missing fundamentals data. Contrast this with profile_market_cap() (used only once a profile has already passed that value-based usability check), which collapses a missing/null/non-numeric cap to 0.0 so the plain < floor comparison never raises — that fallback is for a single bad profile among otherwise-usable ones, not the "everything is null" signal above.
Ownership table (this slice)
| Endpoint | Owners (skills that call it) |
|---|---|
profile | earnings-trade-analyzer, pead-screener, ibd-distribution-day-monitor, parabolic-short-trade-planner, canslim-screener, us-undervalued-growth-screener |
quote | vcp-screener, parabolic-short-trade-planner, ftd-detector, canslim-screener, market-top-detector, us-undervalued-growth-screener, stockbee-exhaustion-hammer-screener (generated client fetch_quote_row) |
historical-price-eod-full | 15 generated-client owners: pead-screener, earnings-trade-analyzer, ibd-distribution-day-monitor, vcp-screener, parabolic-short-trade-planner, ftd-detector, canslim-screener, macro-regime-detector, market-top-detector, us-undervalued-growth-screener, plus the five stockbee clients (#495 Batch C): stockbee-20pct-study, stockbee-episodic-pivot-analyzer, stockbee-exhaustion-hammer-screener, stockbee-momentum-burst-screener, stockbee-setup-fluency-trainer |
historical-price-eod-dividend-adjusted | pair-trade-screener (generated client fetch_pair_history, tried before historical-price-eod/full; falls back to the unadjusted close with a stderr warning and a price_basis record) |
earnings-calendar | pead-screener, earnings-trade-analyzer, ibd-distribution-day-monitor |
sp500-constituent | vcp-screener, parabolic-short-trade-planner |
income-statement | canslim-screener, dividend-growth-pullback-screener, value-dividend-screener — ad-hoc consumers (their own inline FMP fetch layer) |
ratios | value-dividend-screener — ad-hoc consumer |
company-screener (slice 2a) | dividend-growth-pullback-screener, downtrend-duration-analyzer, institutional-flow-tracker, pair-trade-screener, stockbee-20pct-study, stockbee-exhaustion-hammer-screener, stockbee-momentum-burst-screener, us-undervalued-growth-screener, value-dividend-screener — seven of these are generated-client consumers: dividend-growth-pullback-screener, institutional-flow-tracker, us-undervalued-growth-screener, value-dividend-screener and the three stockbee skills (stockbee-20pct-study, stockbee-exhaustion-hammer-screener, stockbee-momentum-burst-screener, via fetch_screener_rows on the stable-only client, #495 Batch C). Only downtrend-duration-analyzer and pair-trade-screener remain ad-hoc consumers with their own inline FMP fetch layer |
income-statement (this slice) | canslim-screener, dividend-growth-pullback-screener, value-dividend-screener — ad-hoc consumers (their own inline FMP fetch layer) |
ratios (this slice) | value-dividend-screener — ad-hoc consumer |
| market-breadth-data (trader-monty) | market-breadth-analyzer (csv_client.py), market-top-detector (breadth_csv_client.py), breadth-chart-analyst (fetch_breadth_csv.py) |
| market-breadth-summary (trader-monty) | market-breadth-analyzer (csv_client.py) |
| uptrend-ratio-timeseries (trader-monty) | uptrend-analyzer (data_fetcher.py), sector-analyst (analyze_sector_rotation.py), breadth-chart-analyst (fetch_breadth_csv.py), theme-detector (uptrend_client.py) |
| uptrend-sector-summary (trader-monty) | uptrend-analyzer (data_fetcher.py), sector-analyst, theme-detector, breadth-chart-analyst |
Owners are validated against skills-index.yaml by check — an owner naming a skill directory that does not exist there is a validation error.
company-screener field-usage inventory (slice 2a prerequisite)
/stable/company-screener (legacy alias for callers: v3 /stock-screener, which returns the same fields for legacy keys) is read by 9 call sites — one per skill, no shared helper — across 9 skills. Recorded below is what each consumer actually reads from the response rows, per grep-verified call sites:
| Skill | Fields read from screener rows |
|---|---|
| dividend-growth-pullback-screener | symbol, price, companyName, marketCap |
| downtrend-duration-analyzer | symbol, sector, marketCap |
| institutional-flow-tracker | symbol, companyName, isEtf, isFund, isActivelyTrading, sector |
| pair-trade-screener | symbol, companyName, marketCap, sector, exchangeShortName, isActivelyTrading |
| stockbee-20pct-study | symbol, exchangeShortName, type (defaults to "stock" — a key /stable rows do not carry), price, isEtf, isFund |
| stockbee-exhaustion-hammer-screener | symbol, isEtf, isFund, marketCap (defensive fallback mktCap) |
| stockbee-momentum-burst-screener | symbol, isEtf, isFund, isActivelyTrading (requested as isActivelyTrading=true and re-checked client-side), marketCap (defensive fallback mktCap) |
| us-undervalued-growth-screener | symbol, companyName, exchange OR exchangeShortName, sector, industry, price, marketCap, volume, isEtf, isFund, isActivelyTrading (client pins the three flags server-side; normalize_listing re-checks them client-side) |
| value-dividend-screener | symbol, price, lastAnnualDividend, marketCap, isEtf, isFund |
Two semantic notes the contract encodes:
exchangevsexchangeShortName. On/stable,exchangecarries the
full venue name ("NASDAQ Global Select") and exchangeShortName the exchange code ("NASDAQ"). They are different concepts, not aliases — the contract marks exchange optional and exchangeShortName required, and does NOT map one to the other.
typeis absent on/stablerows. Only stockbee-20pct-study reads it,
and only with a default, so it is left out of required_fields (and the fixture records what the provider actually returned).
This inventory is slice 2a's deliverable: it is what makes the company-screener contract's required_fields auditable, and it is what slice 2b's consumer zero-result reason codes must reuse.
Session-aware empty suspicion
The earnings-trade-analyzer is a generated consumer of the shared XNYS calendar. For a clean HTTP 200 [], it counts sessions over the exact same inclusive from / to dates sent to FMP. Zero sessions remains the benign no_earnings_rows result. One or more sessions is a fail-closed earnings_calendar_empty_with_market_sessions anomaly, while a calendar query failure is market_calendar_unavailable (a missing dependency exits 2 with a hint). This avoids the exchange-holiday false positives of a weekday approximation and keeps the standalone .skill install complete through the generated runtime and pinned requirement. Non-empty lists whose rows carry no symbol retain the pre-#356 no_earnings_rows behavior; session suspicion applies only to the provider's literal empty list.
Follow-up issue: earnings-calendar time field — resolved (2026-09-06)
Previously (verified live 2026-09-05): /stable/earnings-calendar with no query parameters did not return a time field, unlike the legacy v3 earning_calendar endpoint (bmo / amc — before/after market open/close), which earnings-trade-analyzer and pead-screener used for timing logic.
The text continues at the source. Read the rest.
Source: https://github.com/tradermonty/claude-trading-skills/blob/main/docs/dev/provider-contracts.md
Author: tradermonty, Trading skills. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
- HTTP Error Codes Reference (shared) (Anthropic skills)
- FMP Economic Calendar API Documentation (economic calendar fetcher) (Trading skills) (11688)
- FMP API Endpoints - CANSLIM Screener Phase 3 (Full CANSLIM)
- Gold Mapping - Win/Loss Interview (fixture)
- HTTP Error Codes Reference (shared) (Claude Code templates (davila7))
- Security Validation Record (treatment plans)
There are more like this in the members library
The Claude Code library holds 13,843 entries. Members can search all of them by meaning and read every one in full.