# FDA Orange Book Patent Cliff & USPTO Weekly Grant Tracker API

- **Canonical HTML**: https://quantdesk.fastmesh.dev/seo_geo/fda-orange-book-patent-cliff-tracker-api.html
- **Target Query**: `FDA Orange Book patent cliff tracker API` (`calculator`)
- **Source Family**: `openfda_uspto` | **MCP Tool**: `quantdesk_full_brief` | **Pricing**: $0.10 full brief ($0 on retired USPTO fake-200 shells)
- **Seed**: `42` | **Trials**: `10000` | **Receipt SHA-256**: `fc0dd84f27830aa143d04d6fcfb0f0076a5dd9ce09ff23f789430a460cb0900a`

## Direct Answer
Parse official FDA Orange Book ZIP archives (22,600 patent rows, 48,991 products, 2,463 exclusivities) and USPTO Official Gazette weekly grants into normalized days-to-expiry patent-cliff factors while automatically rejecting retired USPTO CloudFront fake-200 HTML shells at $0 cost.

## Patent-Cliff Countdown & Statutory Exclusivity Risk Scoring
- Application Key Alignment: Appl_Type ('N' -> NDA, 'A' -> ANDA) + zero-padded 6-digit Appl_No joins directly to openFDA application_number.
- Patent Cliff Score: days_to_expiry > 1825 (+0.45 protected runway); days_to_expiry <= 365 (-0.65 imminent cliff); Delist_Flag == 'Y' (-0.55); expired/lapsed (-0.75).
- Exclusivity Horizon: Max(Patent_Expire_Date, Exclusivity_Date) bounds earliest generic entry window.

## Deterministic 10,000-Trial Risk Metrics (Seed 42)
- P5 / P50 / P95 Return: -26.66% / -5.91% / +19.79%
- Mean / Std Return: -4.98% / 14.17%
- VaR 95 / CVaR 95: 26.66% / 31.08%
- VaR 99 / CVaR 99: 33.79% / 36.84%
- Max Drawdown (95th) / Ruin Probability: 31.43% / 0.71%
- Half-Kelly Cap: 0.00%
- Top Tornado Driver: `volatility` (swing 10.47%, variance share 61.5%)

## Key Engineering Capabilities
- Parses tilde-delimited (~) FDA Orange Book patent.txt, products.txt, and exclusivity.txt files and normalizes 'Mon DD, YYYY' dates to ISO-8601.
- Tracks weekly Tuesday USPTO Official Gazette grant issues and Dublin Core public patent records.
- Intercepts retired developer.uspto.gov/ptab-api and ibd-api HTTP 200 CloudFront error shells (12,258 bytes) with strictly billed_micros = 0.

## Remote `/mcp` Invocation Example
```bash
curl -fsSL -X POST "https://quantdesk.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "quantdesk_full_brief", "arguments": {"source_type": "openfda_uspto", "raw_payload": {"application_number": "NDA020610", "patent_no": "7625884", "patent_expire_date": "2027-08-24", "delist_flag": "N", "exclusivity_code": "U-141"}, "seed": 42, "trials": 10000, "horizon_days": 63, "initial_capital": 100000}}}'
```

## Frequently Asked Questions
### Why do legacy USPTO developer API endpoints silently break scrapers?
Retired endpoints such as developer.uspto.gov/ptab-api/* return HTTP 200 OK with header X-Cache: Error from cloudfront and a 12,258-byte HTML error page. Our Stage 2 verifier rejects them deterministically at $0 cost.

### How does Orange Book patent.txt link to Drugs@FDA records?
Prefixing Appl_Type ('N' for NDA, 'A' for ANDA) to the zero-padded 6-digit Appl_No creates an exact primary key matching openFDA's application_number.

### Can I run 10,000-trial patent-cliff erosion risk scenarios?
Yes. Passing Orange Book expiry factors into POST /v1/desk/full-brief outputs VaR 95/99, CVaR 95/99, and Tornado sensitivity drivers in under a second.

## Compliance & Zero-Resale Policy
Agent-WallStreet-Desk is a deterministic quantitative public-disclosure extraction and Monte Carlo risk modeling engineering tool only. It is NOT investment advice under the U.S. Investment Advisers Act of 1940, NOT a broker-dealer, and provides ZERO asset management, trade execution, or custody. 100% legal public regulatory disclosures and public market data only (zero MNPI, zero paywall bypass). Strictly $0 billed on empty, unchanged, fake-200, SSRF-blocked, or HTTP 422 responses. Zero client trading strategy, portfolio holdings, or watchlist retention or resale (zero_resale_policy: true). Support: support@fastmesh.dev.
