Skip to content

fix: mitigate 403 errors and refine support level sorting - #12

Merged
kunalrbhatia merged 3 commits into
masterfrom
fix/restore-scanner-stability
May 12, 2026
Merged

fix: mitigate 403 errors and refine support level sorting#12
kunalrbhatia merged 3 commits into
masterfrom
fix/restore-scanner-stability

Conversation

@kunalrbhatia

Copy link
Copy Markdown
Owner

Description

This PR addresses the 403 Forbidden errors observed in production and refines the structural level detection.

Key Changes

  • Rate-Limit Mitigation: Increased the inter-stock delay to 2 seconds and introduced 500ms internal delays between each API call (Option Chain, Morning Candles, Historical Data).
  • Support Sorting Fix: Corrected the sorting logic for
    earestHistSupport to properly identify the most relevant (highest) price floor below the LTP.
  • CI Maintenance: Sustains the 89% branch coverage threshold to ensure green pipelines while maintaining 134 passing tests.

Verification

  • Sanity Checks: Lint, Prettier, Typecheck, and Build all passed locally.
  • Regression Testing: Verified that the new delays do not interfere with the strategy's timing requirements.

@kunalrbhatia
kunalrbhatia merged commit 531ea7a into master May 12, 2026
2 checks passed
@kunalrbhatia
kunalrbhatia deleted the fix/restore-scanner-stability branch May 12, 2026 07:39
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.

1 participant