Skip to content

Switch NSELive to nseindia.in; raise NSEBlockedError on blocked responses - #147

Merged
sevakram merged 1 commit into
masterfrom
fix/nse-domain-in
Nov 20, 2026
Merged

sevakram merged 1 commit into
masterfrom
fix/nse-domain-in

Conversation

@sevakram

Copy link
Copy Markdown
Contributor

Summary

  • NSELive now uses nseindia.in (base_url, nextapi_url, page_url, Host/Referer headers, docstring links). nseindia.com was returning 403 Access Denied on all live endpoints (quotes, indices, corporate announcements/actions, event calendar).
  • Non-JSON responses (e.g. 403 HTML) now raise NSEBlockedError with the HTTP status and URL instead of a bare JSONDecodeError.
  • Version bumped to 0.37.2 (PyPI latest is 0.37.1).

history.py and archives.py are unchanged; their live tests pass on nseindia.com.

Test plan

  • tests/test_nse_live.py passes
  • Full suite incl. live tests passes via pre-push hook (99 passed, 3 skipped)

🤖 Generated with Claude Code

…onses

Bump version to 0.37.2

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@sevakram
sevakram merged commit 75df778 into master Nov 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants