Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Indian NSE Stock Insights

by alokbarnwalversion 1.0.1i★ 1iRuns in the cloudOfficial site ↗
Registry nameio.github.alokbarnwal/nse-public-mcp

How to install

What it does

Analyze any Nifty 500 stock with AI — price action, demand zones, technicals & screener.

  • Connects Runs in the cloud
  • Account or key No key needed
  • Category Other

Why it ranks here

This one is in the “Apps that connect to AI” tab, which is ordered without stars, in this order

1. In Claude’s connector directoryNo
2. Tried by our teamNo
3. Works for Thai usersNo
4. Usage without stars11/100Popularity 0 · Freshness 3 · Still answering 8 · Likes from users +0
5. Listed on2026-04-30

Likes from users: 0 · Adds at most 5 points to the order (1 per person). It cannot be bought.

Quality: Passed 4/5 basic checks (shown, not used for ordering)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Indian NSE Stock Insights. Follow https://mcp.popnx.com/i/alokbarnwal-nse-public-mcp.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 4/5 checks · What you ask goes through the maker’s server (stockmcp.alokbarnwal.com) · ✓ Commands checked Nov 13, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude · about 2 min

No key, nothing to install · Set it up once on claude.ai or the desktop app, then use it in chat · free accounts can add 1 · on Team/Enterprise an Owner adds it

  1. Open Claude’s Connectors page

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  2. Click “Add” → “Custom” → “Web” and fill in these 2 fields

    Copy each value into the field with the same name in Claude, then click Continue

    Name · NameIndian NSE Stock Insights
    Remote MCP server URL · Addresshttps://stockmcp.alokbarnwal.com/mcp

    Click Continue past the sign-in settings Claude detected · under Authentication choose what the maker says (Sign in now, Sign in when needed or No sign in), then click Add

  3. Turn it on in a chat

    +ConnectorsIndian NSE Stock Insights

  4. Try it

    Use Indian NSE Stock Insights and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Indian NSE Stock Insights or shows a Indian NSE Stock Insights tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with ChatGPT, depending on your plan

Full MCP: ChatGPT Business, Enterprise or Edu on the web · Pro: connects with read/fetch permissions, so tools that change data may not work · Plus: not confirmed in OpenAI’s docs; if you see an add-custom-MCP option on the Plugins page you can try these steps · web only

  1. Open ChatGPT’s add-MCP page on the web

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. Fill in the name and address

    Enter a name, paste the address under Connection, tick the risk warning and click Create as a plugin

    Name · NameIndian NSE Stock Insights
    Connection · Addresshttps://stockmcp.alokbarnwal.com/mcp
  3. Pick Indian NSE Stock Insights in a chat

    Start a new chat and pick Indian NSE Stock Insights from your plugins before typing

  4. Try it

    Use Indian NSE Stock Insights and tell me what you can do for me, then show me one thing

    ✓ If ChatGPT says it is using Indian NSE Stock Insights or shows a Indian NSE Stock Insights tool in the answer, you are connected

Menu names checked against OpenAI’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Claude Code · about 2 min

No key, nothing to install

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  2. Paste this command and press Enter

    claude mcp add --transport http --scope user nse-public https://stockmcp.alokbarnwal.com/mcp
  3. Type /mcp in Claude Code

    You should see Indian NSE Stock Insights listed as connected

  4. Try it

    Use Indian NSE Stock Insights and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Indian NSE Stock Insights or shows a Indian NSE Stock Insights tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor · about 2 min

No key, nothing to install

  1. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  2. Open the AI chat in Cursor in Agent mode

  3. Try it

    Use Indian NSE Stock Insights and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Indian NSE Stock Insights or shows a Indian NSE Stock Insights tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code · about 2 min

No key, nothing to install

  1. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  2. Open the AI chat in VS Code in Agent mode

  3. Try it

    Use Indian NSE Stock Insights and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Indian NSE Stock Insights or shows a Indian NSE Stock Insights tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

Address for apps that connect over the web

Addresshttps://stockmcp.alokbarnwal.com/mcp

JSON settings are under “For developers” below

Stuck? Ask people who use Indian NSE Stock Insights💬 Discussion →
For developers: Terminal commands and JSON settings

Over the web

Claude Code

claude mcp add --transport http --scope user nse-public https://stockmcp.alokbarnwal.com/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "nse-public": {
      "url": "https://stockmcp.alokbarnwal.com/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "nse-public": {
      "type": "http",
      "url": "https://stockmcp.alokbarnwal.com/mcp"
    }
  }
}

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
Not on npm/PyPI
Connection
Runs in the cloud
Transport
streamable-http
Latest versioni
1.0.1
Categoryi
Other
Published to registryi
May 1, 2026
Code last changedi
May 1, 2026
Last checked
Nov 16, 2026
Maker
alokbarnwal
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Connect over the internet in

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

All apps, with pros and cons →

Related guides

What it can do

Tool names and descriptions exactly as the server reported them on Nov 16, 2026. The maker wrote them, not us; we show them as plain text.

  • get_stock_quote

    Latest price snapshot for an NSE stock — last close, prev close, change %, day H/L, volume.

  • get_ohlc_data

    Recent OHLCV candles. timeframe in {daily, 15min, 5min}; limit capped at 500; newest first.

  • get_technical_indicators

    Latest technical indicators (EMAs, SMAs, RSI, MACD, BB, ADX, Stoch, ATR, OBV, VWAP).

  • get_support_resistance

    Pivot points + historical support/resistance levels, ordered by price desc.

  • get_demand_supply_zones

    Demand/supply zones (DBR/RBR/RBD/DBD) split into demand_zones and supply_zones.

  • get_candlestick_patterns

    Recent single-bar candlestick patterns (HAMMER, DOJI, ENGULFING, ...) newest first.

  • get_chart_patterns

    Multi-bar chart patterns (DOUBLE_TOP, HEAD_AND_SHOULDERS, ...). 'ACTIVE' = PENDING/CONFIRMED.

  • get_fibonacci_levels

    Latest fibonacci retracement swings (UP/DOWN) with 236/382/500/618/786 levels.

  • get_volume_analysis

    Volume diagnostic: top 5min hotspots + peak slot + OBV 20-day trend + today/20-day volume ratio.

  • get_market_overview

    Market-wide snapshot: indices, top_gainers, top_losers, most_active, breadth.

  • compare_stocks

    Side-by-side comparison of 2-5 symbols: quote, RSI/MACD/ADX, trend, 30d return, latest pattern.

  • screen_stocks

    Filter the active universe. Keys: rsi_min, rsi_max, adx_min, trend, near_demand_zone, pattern, min_volume_ratio, sector. At least one required.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account alokbarnwal, which owns the repo

  • ! Caution

    Still maintained

    Code last changed 7 months ago, more than 6 months ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • ✓ Pass

    Endpoint responds

    Responded in 445 ms (HTTP 200)

  • – Not applicable

    Sign-in with OAuth

    No sign-in needed

  • ✓ Pass

    No hidden instructions in tool descriptions

    Read 12 tool descriptions and found no hidden instructions to the AI

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/alokbarnwal-nse-public-mcp.svg)](https://mcp.popnx.com/en/servers/alokbarnwal-nse-public-mcp)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Otheri

  • More stars than 86% of the other 20693 servers in this category
  • Published to the registry more recently than 5% of the other 20693 servers in this category
  • Basic checks equal to or better than 60% of the other 20693 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Indian NSE Stock Insights safe?

It passed 4 of 5 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs in the maker’s cloud. Connect over the internet with nothing to install, but what you send passes through the maker’s servers.

Is it still maintained?

The GitHub repo last changed 7 months ago, and the latest version (1.0.1) reached the registry 7 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. It connects by URL, so apps that accept remote MCP servers work too, such as ChatGPT on the web (full MCP on Business and above; Pro read-only).

What can I use instead?

In the same category: World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.

by koala73Widely used★ 90.9KUpdated 3 days ago

Runs in the cloud✓ service owner · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

by openstatusHQWidely used★ 9.3KUpdated 2 months ago

Runs in the cloud✓ service owner · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

by JanDeDobbeleerWidely used★ 23.8K Stars for the whole repoUpdated 30 days ago

Runs in the cloud✓ service owner · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

by Klavis-AIGrowing★ 5.8KUpdated 14 months ago

Runs in the cloudRepo archived✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

by jitsucomWidely used★ 5.1KUpdated 4 months ago

Runs in the cloud✓ service owner · jitsu.com
Compared with similar ones
This one
Indian NSE Stock Insights
World MonitoropenstatusOh My Posh ValidatorStrataJitsu
Runs whereRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks4/54/44/44/41/44/4
LicenseMITAGPL-3.0AGPL-3.0MITApache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Indian NSE Stock Insights 🇮🇳📈

Public MCP server for Indian stock market analysis — Nifty 500 universe, 12 tools, 3 timeframes.

Built with FastMCP · Data from yfinance · Hosted at stockmcp.alokbarnwal.com

Educational only. Not investment advice. See DISCLAIMER.md.


Quick Connect — 30 Seconds

Claude.ai → Settings → Connectors → Add custom MCP connector:

Name: Indian NSE Stock Insights

URL: https://stockmcp.alokbarnwal.com/mcp

That's it. Start asking questions about Indian stocks.


12 Tools

#ToolParametersWhat it returns
1get_stock_quotesymbolLast close, prev close, change %, day H/L, volume
2get_ohlc_datasymbol, timeframe?, limit?OHLCV candles (up to 500, newest first)
3get_technical_indicatorssymbol, timeframe?EMAs, SMAs, RSI, MACD, Bollinger, ADX, Stoch, ATR, OBV, VWAP
4get_support_resistancesymbol, timeframe?Pivot points + historical S/R levels
5get_demand_supply_zonessymbol, timeframe?, status?Demand/supply zones (DBR/RBR/RBD/DBD)
6get_candlestick_patternssymbol, timeframe?, limit?HAMMER, DOJI, ENGULFING, etc.
7get_chart_patternssymbol, timeframe?, status?DOUBLE_TOP, HEAD_AND_SHOULDERS, etc.
8get_fibonacci_levelssymbol, timeframe?Retracement swings (UP/DOWN) with fib levels
9get_volume_analysissymbol5min hotspots, OBV trend, volume ratio
10get_market_overview*(none)*Indices, top gainers/losers, most active, breadth
11compare_stockssymbols (2-5) , timeframe?Side-by-side: quote, RSI/MACD/ADX, trend, 30d return
12screen_stocksfiltersFilter by RSI, ADX, trend, pattern, sector, etc.

timeframe defaults to daily. Options: daily, 15min, 5min.


Example Prompts

Try these in Claude.ai after connecting:

  • *"RELIANCE ka technical analysis do — RSI, MACD, aur support/resistance levels batao"*
  • *"Show me Nifty 500 stocks with RSI below 30 and ADX above 25"*
  • *"Compare TCS, INFY, and WIPRO — which one has the best setup right now?"*
  • *"What does the overall market look like today? Show me top gainers and losers"*
  • *"HDFC Bank ke demand and supply zones dikhao on the 15-minute chart"*

Architecture

graph TB

subgraph Internet C[Claude.ai / MCP Client] end

subgraph Server["Production Server"] subgraph Protection F2B[fail2ban auto-ban repeat abusers] NG[nginx rate limit 20r/s · conn limit · TLS] end

subgraph Application MCP["FastMCP Server port 8089 · 12 tools"] TOOLS["Tool Modules quote · ohlc · indicators levels · zones · patterns fibonacci · volume · market compare · screener"] end

subgraph Data DB[(MySQL: nse_public 500 stocks × 3 timeframes)] CRON[Cron Jobs 5min · 15min · daily] end end

subgraph External YF[Yahoo Finance yfinance API] end

C -->|HTTPS POST /mcp| NG NG -->|proxy_pass| MCP MCP --> TOOLS TOOLS -->|read-only queries| DB YF -->|OHLCV data| CRON CRON -->|upsert| DB F2B -.->|monitors| NG


Data Coverage

TimeframeRetentionUpdate FrequencyStocks
Daily5 yearsEOD (18:00 IST)500
15-minute2 yearsEvery 15 min (market hours)500
5-minute6 monthsEvery 5 min (market hours)500

Market hours: 09:15–15:30 IST, Monday–Friday (excluding NSE holidays).


Rate Limits

LayerLimitAction
nginx20 requests/sec per IP (burst 40)HTTP 429
nginx10 simultaneous connections per IPHTTP 429
fail2ban5× rate-limit violations in 2 minIP banned for 1 hour

Self-Hosting

Click to expand — full deployment runbook

Runs on /home/ubuntu/nse-public-mcp/ — completely isolated from /home/ubuntu/swingtrader/.

1. Clone
cd /home/ubuntu

git clone https://github.com/alokbarnwal/nse-public-mcp.git cd nse-public-mcp

2. Create database and user
sudo mysql <<'SQL'

CREATE DATABASE IF NOT EXISTS nse_public CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER IF NOT EXISTS 'nse_writer'@'localhost' IDENTIFIED BY 'CHANGE_ME_STRONG_PASSWORD'; GRANT ALL PRIVILEGES ON nse_public.* TO 'nse_writer'@'localhost'; FLUSH PRIVILEGES; SQL

3. Apply schema
mysql -u nse_writer -p nse_public < db/schema.sql

mysql -u nse_writer -p nse_public < db/schema_indicators.sql mysql -u nse_writer -p nse_public < db/schema_price_action.sql

4. Install dependencies
python3 -m venv .venv

source .venv/bin/activate pip install -r requirements.txt

5. Configure environment
cp .env.example .env

chmod 600 .env nano .env # set DB_PASSWORD to match step 2

6. (Optional) Refresh full Nifty 500 list

The repo ships with the top ~100 stocks hardcoded. To expand to all 500:

python -m config.stocks --refresh        # fetches NSE archives, rewrites config/stocks.py
7. Load stock universe into DB
python -m config.stocks --load-to-db
8. Backfill historical data (long-running, use screen/tmux)
screen -S backfill

source .venv/bin/activate python -m data.backfill --all

Ctrl-A D to detach. Reattach: screen -r backfill

Expected runtime:

  • daily 5y × 500: ~30 min
  • 15min 2y × 500: ~2 h
  • 5min 6mo × 500: ~1 h

If anything fails, the failure list is written to backfill_failures_ .json. Re-run:

python -m data.backfill --timeframe 15min --resume
8b. Bulk-compute indicators (long-running, use screen/tmux)

After the candle backfill completes, populate the indicators table for all 500 stocks across all 3 timeframes:

screen -S indicators

cd /home/ubuntu/nse-public-mcp python3 -m indicators.runner --all

Ctrl-A D to detach

Expected runtime: ~30–45 min. Idempotent — safe to re-run if interrupted.

8c. Bulk-compute price action (long-running, use screen/tmux)

After indicators are populated, compute price-action features (zones, S/R, patterns, breakouts, fibs, gaps, volume profile) for all 500 stocks across all 3 timeframes:

screen -S price_action

cd /home/ubuntu/nse-public-mcp python3 -m price_action.runner --timeframe daily --all-features python3 -m price_action.runner --timeframe 15min --all-features python3 -m price_action.runner --timeframe 5min --all-features

Ctrl-A D to detach

Expected runtime: ~60–90 min total. Idempotent — safe to re-run if interrupted.

9. Install crontab
crontab -e

Add:

# nse-public-mcp candle updaters

*/5 9-15 * * 1-5 cd /home/ubuntu/nse-public-mcp && /home/ubuntu/nse-public-mcp/.venv/bin/python -m jobs.cron_5min >> logs/cron_5min.log 2>&1 */15 9-15 * * 1-5 cd /home/ubuntu/nse-public-mcp && /home/ubuntu/nse-public-mcp/.venv/bin/python -m jobs.cron_15min >> logs/cron_15min.log 2>&1 0 18 * * 1-5 cd /home/ubuntu/nse-public-mcp && /home/ubuntu/nse-public-mcp/.venv/bin/python -m jobs.cron_daily >> logs/cron_daily.log 2>&1

nse-public-mcp indicator updaters (each runs after the matching candle fetch)

30 18 * * 1-5 cd /home/ubuntu/nse-public-mcp && /usr/bin/python3 -m jobs.cron_indicators_daily >> logs/indicators_daily.log 2>&1 20,35,50 9-15 * * 1-5 cd /home/ubuntu/nse-public-mcp && /usr/bin/python3 -m jobs.cron_indicators_15min >> logs/indicators_15min.log 2>&1 5 16 * * 1-5 cd /home/ubuntu/nse-public-mcp && /usr/bin/python3 -m jobs.cron_indicators_15min >> logs/indicators_15min.log 2>&1 2-57/5 9-15 * * 1-5 cd /home/ubuntu/nse-public-mcp && /usr/bin/python3 -m jobs.cron_indicators_5min >> logs/indicators_5min.log 2>&1

nse-public-mcp price-action updaters (each runs after the matching indicator cron)

35 18 * * 1-5 cd /home/ubuntu/nse-public-mcp && /usr/bin/python3 -m jobs.cron_price_action_daily >> logs/price_action_daily.log 2>&1 25,55 9-15 * * 1-5 cd /home/ubuntu/nse-public-mcp && /usr/bin/python3 -m jobs.cron_price_action_15min >> logs/price_action_15min.log 2>&1 9-54/15 9-15 * * 1-5 cd /home/ubuntu/nse-public-mcp && /usr/bin/python3 -m jobs.cron_price_action_5min >> logs/price_action_5min.log 2>&1

Cron times are server-local. Verify the server is on IST (timedatectl) — if not, shift the hour ranges.

The 5-min indicator cron is offset to 2-57/5 so it runs ~2 minutes after cron_5min and never reads stale candles.

The price-action 5-min cron is offset to 9-54/15 (minutes 9, 24, 39, 54) so it runs ~2 minutes after each cron_indicators_5min slot.

10. Verification
mysql -u nse_writer -p nse_public <<'SQL'

SELECT 'daily' AS tf, COUNT(*) AS n FROM candles_daily UNION ALL SELECT '15min', COUNT(*) FROM candles_15min UNION ALL SELECT '5min', COUNT(*) FROM candles_5min;

-- Per-stock coverage on daily — flag any with < 1000 rows (~4 trading years) SELECT symbol, COUNT(*) AS n FROM candles_daily GROUP BY symbol HAVING n < 1000 ORDER BY n;

-- Latest data freshness SELECT MIN(candle_date) AS earliest, MAX(candle_date) AS latest FROM candles_daily;

-- Recent cron health SELECT job_type, timeframe, symbols_success, symbols_failed, started_at, duration_seconds FROM fetch_log ORDER BY started_at DESC LIMIT 20; SQL

DB size on disk:

sudo du -sh /var/lib/mysql/nse_public/

Service Management

# Server status

sudo systemctl status nse-public-mcp

Restart

sudo systemctl restart nse-public-mcp

Logs

sudo journalctl -u nse-public-mcp -n 100 -f

nginx

sudo nginx -t && sudo systemctl reload nginx

fail2ban

sudo fail2ban-client status nginx-mcp-ratelimit


Layout

See PROJECT.md for architecture and data-flow diagram.

config/        # settings, stock universe, holiday calendar

data/ # yfinance fetcher, backfill CLI, shared upsert helpers db/ # schema and pooled connection indicators/ # technical indicator compute, persist, runner price_action/ # zones, patterns, levels, trends mcp_server/ # FastMCP server + 12 tool modules jobs/ # cron entrypoints (candles + indicators + price action) deploy/ # systemd service, nginx config, fail2ban rules tests/ # mocked unit tests (82 tests)


Operational Notes

  • Be respectful to Yahoo Finance. The fetcher sleeps 1–3 s between requests and retries with backoff. Don't reduce these.
  • Idempotent. All inserts are INSERT … ON DUPLICATE KEY UPDATE. Replaying a cron tick or rerunning backfill is safe.
  • Holiday calendar lives in config/holidays.py. Update it once a year when NSE publishes the next year's list.
  • Retention cleanup runs at the end of jobs/cron_daily.py. Daily candles older than 5 y, 15min older than 2 y, 5min older than 6 mo are purged.

License

MIT — free to use, modify, and distribute.

Disclaimer

This project is for educational and informational purposes only. Not investment advice. See DISCLAIMER.md.