@ckir/corelib-markets - v0.1.13
    Preparing search index...

    Class MarketSymbols

    Nasdaq symbol database using ts-core SQLite (local or Turso) alongside API & Ingestor fallbacks.

    Automatically refreshes on first use or when data is older than today (NY time). Modifies search hierarchy (DB vs API) dynamically based on edge vs non-edge runtimes.

    Index

    Constructors

    Methods

    Constructors

    • Parameters

      • Optionaldb: string | { dbToken: string; dbUrl: string }

        Optional database configuration:

        • undefined → uses ${getTempDir()}/NasdaqSymbols.sqlite
        • string → local SQLite file path
        • { dbUrl: string; dbToken: string } → Turso/LibSQL remote
      • ingestors: string[] = []

        Array of ingestor URLs (e.g., Google App Script endpoints) to query for missing symbols.

      Returns MarketSymbols

    Methods

    • Get symbol data. Searches Nasdaq API, external ingestors, and the DB. The sequence order is optimized dynamically based on whether it is running in an Edge environment.

      Parameters

      • symbol: string

      Returns Promise<MarketSymbolRow | null>

      null if the symbol is not found or is inactive.