Skip to content

Duplicate keys in KNOWN_TICKERS dict silently override #14

Description

@AshayK003

Problem

ticker_resolver.py KNOWN_TICKERS dict has duplicate keys that silently override each other:

  • "tata steel" appears at line 97 and line 117 (second wins)
  • "tata power" appears at line 117 and line 134 (second wins)
  • "coal india" appears at line 99 and line 132 (second wins)
  • "tech mahindra" appears at line 36 and line 91 (second wins)
  • "hcl technologies" appears at line 36 and line 90 (second wins)
  • "tata consultancy" appears at line 37 and line 89 (second wins)

Python silently keeps the last value for duplicate dict keys. The intended ticker may be different from what's actually stored.

Solution

Remove duplicate entries, keeping the correct ticker for each. For Indian stocks, use .NS suffix consistently.

Acceptance Criteria

  • No duplicate keys in KNOWN_TICKERS
  • Each company maps to exactly one ticker

Difficulty: Easy
Labels: bug, data-quality

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdata-qualityData quality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions