Urgent.News

What's breaking now, across thousands of outlets.

Tech

9 Free Endpoints I Built Into a Financial Data API — With Curl/Python Examples

9 Free Endpoints I Built Into a Financial Data API — With Curl/Python Examples I've been building XFINLAB, a financial intelligence API — market events, sentiment, technical analysis, macro data — with an MCP server for AI agents on top. Along the way I also built a handful of free, no-key tools directly into the site. Sharing the actual working requests here, labeled honestly by which ones you…

Here are 9 free endpoints built into a financial data API, along with examples using curl and Python:

1. Official Intelligence API: versioned, requires X-API-Key auth, documented, part of the paid product. Safe to build a production integration on.

2. Free website tool: no key, no versioning guarantee, no SLA. Suitable for personal scripts, quick lookups, or prototyping, but not recommended for anything that depends on stability.

3. AI Chart Analysis (also has a free web version):

- Free web tool: `curl https://api.xfinlab.com/api/chart-search/AAPL?period=6mo&interval=1d`

- Official API: `curl https://api.xfinlab.com/api/intelligence/v1/technical/AAPL -H "X-API-Key: YOUR_KEY"`

- Python example using requests:

```python

import requests

r = requests.get("https://api.xfinlab.com/api/intelligence/v1/technical/AAPL", headers={"X-API-Key": "YOUR_KEY"})

data = r.json()

print(data["confluence"]["direction"], data["confluence"]["confidence_pct"])

print(data["support"], data["resistance"])

```

4. Stress Lab (also has a free web version):

- Free web tool: `curl -X POST https://api.xfinlab.com/api/stress-lab -H "Content-Type: application/json" -d '{"symbol": "Stocks/Bonds 60/40", "amount": 100000, "horizon_days": 252}'`

- Official API (Python example):

```python

import requests

r = requests.post("https://api.xfinlab.com/api/intelligence/v1/stress-test", headers={"X-API-Key": "YOUR_KEY"}, json={"symbol": "AAPL", "amount": 100000, "horizon_days": 252})

d = r.json()["data"]

print(f"Median outcome: ${d['ending_value_p50']:,}")

print(f"5th percentile (bad case): ${d['ending_value_p5']:,}")

print(f"Median max drawdown: {d['max_drawdown_p50_pct']}%")

```

5. Free Signals (no key, no official API equivalent):

- `curl https://api.xfinlab.com/api/free-signals`

- Returns today's top confluence-ranked signals across stocks, futures, and crypto.

6. Opportunity Radar (official API has a free web version):

- Free web tool: `curl https://api.xfinlab.com/api/free-tools-demo/opportunity-radar`

- Official API: `curl https://api.xfinlab.com/api/intelligence/v1/opportunity-radar -H "X-API-Key: YOUR_KEY"`

- Returns real % change per indicator across various sectors and economic indicators.

7. Stock Screener (free web version, no key):

- `curl -X POST https://api.xfinlab.com/api/ai-analysis -H "Content-Type: application/json" -d '{"filters": {"sector": "Technology", "growth": "high"}}`

- AI-generated commentary grounded in specified filter criteria, but lacks a structured list of tickers with scores.

8. Pairs Statistical Arbitrage Scanner (free web version, no key):

- `curl -X POST https://api.xfinlab.com/api/pairs-scan -H "Content-Type: application/json" -d '{"symbol_a": "KO", "symbol_b": "PEP", "period": "6mo"}`

- Returns z_score, correlation, divergence, and which side of the pair is richer or cheaper, explicitly not a formal cointegration test.

9. Probability Scan (free web version, no key):

- `curl https://api.xfinlab.com/api/pipeline/AAPL`

- Combines market data, technicals, and news sentiment into bullish/bearish probabilities, but should be treated as a reference number rather than a calibrated probability.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Your App Works Everywhere Except the Corporate Network

You ship something. It works on your machine, in CI, in staging, and for every user who tries it. Then one customer opens a ticket: it doesn't work for them.

  • Application works flawlessly on developer's machine but fails in corporate network
  • Inspection proxy breaks TLS connection, causing five failure modes

Why Modern B2B SaaS Sites Fail Core Web Vitals (And How to Fix INP)

As web developers and software engineers building B2B SaaS applications, we take pride in clean code, modern frameworks, and robust CI/CD pipelines.

  • B2B SaaS sites struggle with Core Web Vitals, especially INP metric.
  • INP measures latency of user interactions like clicks and taps.

More from Saturday 12 September →