MCP ScannerCustom audit
All servers

EodHistoricalData/EODHD-MCP-Server

EODHD MCP Server for AI assistants

Packageeodhd-mcp
Version2.3.2 in pyproject.toml
PublisherEodHistoricalData community
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 24Forks 4Last push 2026-10-22
Python 100.0%by source files the scanner reads
Code safetypartly tracedExposure6.1Prompts10.0Supply chain7.0Secrets10.0Transparency10.0
Analysis confidence91%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure6.1/10Fair

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain7.0/10Fair

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • In 23 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
  • 3 of 108 tools, prompts and resources could not be followed through the code
  • 1 place in the code registers tools whose names are computed at run time; how many tools that makes cannot be read from the code
  • 11 tools, prompts and resources registered only in the repository's tests are not counted on this page

Top risks in plain words

  • INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Not every path through the code could be followed. Code findings appear here only after a person has verified them.

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Give it a narrowly scoped token

    Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 93 tools, 3 prompts, 1 resource. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Read or write filesopen, create, change or delete files
retrieve_description_by_id
1 of 97
Connect to the internet or other hostssend requests or open connections
get_asx_corporate_actions, get_bulk_fundamentals, get_cboe_index_data, get_cboe_indices_list, get_company_news, get_congressional_trades and 85 more
91 of 97
Read passwords, tokens or keysload secrets such as API keys
capture_realtime_ws, get_asx_corporate_actions, get_bulk_fundamentals, get_cboe_index_data, get_cboe_indices_list, get_company_news and 86 more
92 of 97
Read environment variablesoften where API keys are kept
capture_realtime_ws, get_asx_corporate_actions, get_bulk_fundamentals, get_cboe_index_data, get_cboe_indices_list, get_company_news and 86 more
92 of 97
Touch sensitive locationssuch as ~/.ssh, cloud credentials or browser data
capture_realtime_ws, get_asx_corporate_actions, get_bulk_fundamentals, get_cboe_index_data, get_cboe_indices_list, get_company_news and 86 more
92 of 97

No tool was seen to: start other programs on the machine.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • EODHD_API_KEY · get_asx_corporate_actions, get_bulk_fundamentals, get_cboe_index_data +88
Addresses the caller chooses

Requests whose address comes from the tool's input: the agent decides where they go.

  • get_cboe_indices_list1 call
  • get_exchanges_list1 call
  • get_fundamentals_data1 call
  • mp_index_components1 call
  • mp_indices_list1 call
  • get_mp_investverte_esg_list_companies1 call
  • get_mp_investverte_esg_list_countries1 call
  • get_mp_investverte_esg_list_sectors1 call
  • get_mp_investverte_esg_view_company1 call
  • get_mp_investverte_esg_view_sector1 call
  • get_mp_praams_bank_balance_sheet_by_isin1 call
  • get_mp_praams_bank_balance_sheet_by_ticker1 call
  • get_mp_praams_bank_income_statement_by_isin1 call
  • get_mp_praams_bank_income_statement_by_ticker1 call
  • get_mp_praams_bond_analyze_by_isin1 call
  • get_mp_praams_report_equity_by_ticker1 call
  • get_mp_praams_risk_scoring_by_isin1 call
  • get_mp_praams_risk_scoring_by_ticker1 call
  • get_realtime_minute_bars1 call
  • get_stock_market_logos1 call
  • get_stock_market_logos_svg1 call
  • get_technical_indicators1 call
  • get_user_details1 call
  • get_sec_filings1 call

67 request addresses could not be settled from the code (built at run time).

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • web or API responses91 tools · get_asx_corporate_actions, get_bulk_fundamentals, get_cboe_index_data +88
  • files1 tool · retrieve_description_by_id
Reads private data30 tools
Takes text from outside30 tools
Can send data out24 tools

All three are present: text from outside could make the agent send private data away. Keep confirmations on for tools that send data.

Tool annotations

93 of 97 tools declare annotations. readOnlyHint 90.

Each declaration matches what the traced code does.

Tools, prompts and resources (97: 93 tools, 3 prompts, 1 resource)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

analyze_stockprompt Analyze a stock by chaining fundamental, technical, and news data.
Analyze a stock by chaining fundamental, technical, and news data.

        Args:
            ticker: Stock symbol in SYMBOL.EXCHANGE format (e.g. 'AAPL.US').
compare_stocksprompt Compare two stocks side by side using fundamental and price data.
Compare two stocks side by side using fundamental and price data.

        Args:
            ticker1: First stock symbol in SYMBOL.EXCHANGE format (e.g. 'AAPL.US').
            ticker2: Second stock symbol in SYMBOL.EXCHANGE format (e.g. 'MSFT.US').
market_overviewprompt Get a broad market overview using screener, economic events, and earnings data.
Get a broad market overview using screener, economic events, and earnings data.

        Args:
            exchange: Exchange code (e.g. 'US', 'LSE', 'NSE'). Defaults to 'US'.
(name computed at run time)resource
No description.
capture_realtime_wstool Capture real-time streaming market data via WebSocket for a fixed time window. Use whenCredentialsEnv varsSensitive pathsread-only (declared)
Capture real-time streaming market data via WebSocket for a fixed time window. Use when
        the user needs live tick-by-tick prices, real-time trades, bid/ask quotes, or streaming
        forex/crypto rates.

        Connects to EODHD WebSocket feeds, subscribes to
        specified symbols, collects messages for the given duration, then returns all captured
        data at once. Unlike get_live_price_data (REST snapshot), this streams continuous updates.

        For a single REST-based price snapshot, use get_live_price_data instead.
        For historical tick-level trade data (not real-time), use get_us_tick_data.

        Args:
            feed (str): One of {'us_trades','us_quotes','us_candles','us_status',
                'eu_trades','eu_quotes','eu_candles','eu_status','forex','crypto'}.
            symbols (str | list[str]): Single or comma-separated symbols, or a list.
                US equities use plain tickers ('AAPL'); European equities use
                TICKER.EXCHANGE ('GSK.LSE'). For a European dual-class ticker the
                un-hyphenated alias is accepted too, and the reply always reports the
                canonical hyphenated form in 's'.
                Returns:
            Object with:
            - feed (str): feed name used
            - endpoint (str): WS endpoint path
            - symbols (array[str]): subscribed symbols
            - duration_seconds (int): capture window length
            - started_at (int): start epoch in ms
            - ended_at (int): end epoch in ms
            - message_count (int): total messages captured
            - messages (array): captured messages, each varies by feed:
              - us_trades / eu_trades: s (str, symbol), p (float, price), v (int, size),
                dp (bool, dark pool - always false on this feed), ms (str, one of open |
                closed | extended-hours), t (int, timestamp ms), c (array, trade conditions -
                ALWAYS EMPTY on this feed, the exchange top-of-book source carries none)
              - us_quotes / eu_quotes: s (str, symbol), ap (float, ask price), as (int, ask size), bp (float, bid price), bs (int, bid size), t (int, timestamp ms)
              - us_candles / eu_candles: s (str, symbol), i (str, interval, '1m'), t (int, bar
                OPEN timestamp ms), o/h/l/c (float, open/high/low/CLOSE - note c is the close
                price here, not the conditions array), v (int, size in the bar). The current
                bar is re-sent on every update, so the same t recurs with a growing v: take
                the newest message per t rather than summing them.
              - us_status / eu_status: s (str, symbol), h (str, venue trading-status code,
                'T' while trading normally), r (str, reason code), t (int, timestamp ms)
              - forex: s (str, symbol), a (float, ask), b (float, bid), dc (STRING, daily
                change percent), dd (STRING, daily change absolute), ppms (bool), t (int, timestamp ms)
              - crypto: s (str, symbol), p (STRING, price), q (STRING, quantity - may use
                exponent notation such as '1.9e-7'), dc (STRING), dd (STRING), t (int, timestamp ms)

        Examples: 'AAPL,MSFT,TSLA' (US), 'EURUSD' (forex), 'ETH-USD,BTC-USD' (crypto).
            duration_seconds (int): How long to capture messages (1..600). Default 5.
            api_token (str, optional): WebSocket token; 'demo' supports limited symbols.
            max_messages (int, optional): Stop early after N messages.
            ping_interval (float): WebSocket ping interval in seconds.
            ping_timeout (float): WebSocket ping timeout in seconds.
            connect_timeout (float): Overall connection timeout in seconds.
            max_data_bytes (int): Maximum total captured data size in bytes (default 50 MB).
                Capture stops early if this limit is reached to prevent unbounded memory use.

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL, MSFT, TSLA (stocks), EURUSD, and BTC-USD in Websocket API.
get_asx_corporate_actionstool Get structured corporate action data for ASX (Australian Securities Exchange) listedNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get structured corporate action data for ASX (Australian Securities Exchange) listed
        securities: dividends, splits, bonus issues, rights issues, buybacks, capital returns,
        and share purchase plans. Data is sourced from the official ASX ReferencePoint (E34)
        feed and refreshed daily. Coverage is limited to ASX-listed tickers (all use the .AU
        suffix). Costs 1 API call per request.

        Use when the user asks about Australian dividends and franking credits, ASX splits,
        bonus/rights issues, buybacks, capital returns, or share purchase plans. For corporate
        actions on other exchanges use get_historical_dividends / get_historical_splits.

        Args:
            action_type (str, optional): Corporate action category. One of: 'dividends',
                'splits', 'bonus-issues', 'rights-issues', 'buybacks', 'capital-returns',
                'spp', 'other'. Omit to return all types.
            symbol (str, optional): Ticker with .AU suffix (e.g. 'PMV.AU'). Filters to a
                single security.
            start_date (str, optional): 'date_from' in YYYY-MM-DD (inclusive, on event date).
            end_date (str, optional): 'date_to' in YYYY-MM-DD (inclusive, on event date).
            limit (int): Page size, 1..1000. Default 100.
            offset (int): Zero-based pagination offset. Default 0.
            fmt (str): 'json' only.
            api_token (str, optional): Per-call token override.

        Returns:
            Object with:
            - data (array): type-specific corporate-action records. Common fields include
              code, date, currency, exchange, recordDate, paymentDate/despatchDate. Dividend
              records add value/unadjustedValue/period plus an '_asx_extra' object carrying
              AU-specific fields (franked_amount_aud, franked_percent, drp_indicator,
              withholding_tax_rate, etc.). Splits add 'split', bonus/rights issues add 'ratio'.
            - meta (object): total (int) and page {offset, limit}.
            - links (object): next (str|null) — URL for the next page, null on the last page.

        Notes:
            - Pagination: when 'links.next' is not null, increment 'offset' (or follow that URL)
              to fetch the next page.
            - ASX only. Buybacks and 'other' categories are sparse — ASX publishes them less
              frequently than dividends or rights issues.
            - 1 API call per request.

        Examples:
            "Premier Investments ASX dividends" → symbol="PMV.AU", action_type="dividends"
            "All ASX splits in 2026" → action_type="splits", start_date="2026-01-01", end_date="2026-12-31"
            "Recent ASX corporate actions" → get_asx_corporate_actions()

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_bulk_fundamentalstool Fetch fundamental data for all stocks on an exchange in bulk. Use when the user needsNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch fundamental data for all stocks on an exchange in bulk. Use when the user needs
        financials, valuation, or earnings data for many companies at once -- screening,
        comparing sectors, or building dashboards across an entire exchange.

        Returns General, Highlights, Valuation, Technicals, SplitsDividends, Earnings (last 4
        quarters + 4 years), and Financials for up to 500 stocks per call. Stocks only (no ETFs
        or mutual funds). Costs 100 API calls per request. Requires Extended Fundamentals plan.

        For a single ticker's full fundamentals, use get_fundamentals_data instead.
        For macro country-level economic data, use get_macro_indicator.

        Args:
            exchange (str): Exchange code (e.g., 'NASDAQ', 'NYSE', 'US', 'LSE').
            symbols (str, optional): Comma-separated list of specific symbols to filter.
            offset (int, optional): Pagination start (default 0).
            limit (int, optional): Max symbols to return (default 500, max 500).
            version (str, optional): '1.2' for single-symbol-like output format.
            fmt (str): 'json' (default) or 'csv'.
            api_token (str, optional): Per-call token override.


        Returns:
            Dict of ticker -> fundamentals object, each with:
            - General (object): Code, Type, Name, Exchange, CurrencyCode, CurrencyName, CountryName, ISIN, Sector, Industry
            - Highlights (object): MarketCapitalization, EBITDA, PERatio, WallStreetTargetPrice, BookValue, EarningsShare, DividendYield
            - Valuation (object): TrailingPE, ForwardPE, PriceSalesTTM, PriceBookMRQ, EnterpriseValue
            - SharesStats (object): SharesOutstanding, SharesFloat, PercentInsiders, PercentInstitutions
            - Technicals (object): Beta, 52WeekHigh, 52WeekLow, 50DayMA, 200DayMA
            - SplitsDividends (object): ForwardAnnualDividendRate, ForwardAnnualDividendYield, ExDividendDate, LastSplitDate, LastSplitFactor
            - Earnings (object): Last_4_Quarters (array), Annual_Earnings (array)
            - Financials (object): Income_Statement, Balance_Sheet, Cash_Flow (quarterly + yearly)

        Notes:
            - Requires Extended Fundamentals subscription plan.
            - API cost: 100 calls per request (or 100 + number of symbols if using symbols param).
            - Stocks only (no ETFs or Mutual Funds).
            - Max pagination limit: 500.
            - Historical data limited to 4 quarters and 4 years.

        Examples:
            "Fundamentals for all NASDAQ stocks" → get_bulk_fundamentals(exchange="NASDAQ")
            "AAPL and MSFT fundamentals from NYSE" → get_bulk_fundamentals(exchange="US", symbols="AAPL,MSFT")
            "LSE fundamentals, second page" → get_bulk_fundamentals(exchange="LSE", offset=500, limit=500)


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_cboe_index_datatool Fetch detailed data for a specific CBOE index on a given date, including all constituentNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch detailed data for a specific CBOE index on a given date, including all constituent
        components. Use when the user needs index close value, divisor, and full component
        breakdown (symbols, weights, market caps, sectors) for a CBOE index.

        Requires index_code, feed_type, and date. Returns index-level attributes plus an array
        of components with ISIN, closing price, currency, shares, market cap, weighting, and
        sector. Costs 10 API calls per request.

        For listing all available CBOE indices, use get_cboe_indices_list first.

        Args:
            index_code (str): CBOE index code (e.g., 'BDE30P', 'BAT20N').
            feed_type (str): Feed type (e.g., 'snapshot_official_closing').
            date (str): Trading date in YYYY-MM-DD format.
            fmt (str): 'json' only (default).
            api_token (str, optional): Per-call token override.


        Returns:
            Object with:
            - meta (object): total (int) — number of results
            - data (array): index feed objects, each with:
              - id (str): composite key (index_code-date-feed_type)
              - type (str): "cboe-index"
              - attributes (object):
                - region (str): geographic region
                - index_code (str): CBOE index code
                - feed_type (str): feed type
                - date (str): trading date (YYYY-MM-DD)
                - index_close (float): index closing value
                - index_divisor (float): index divisor
                - effective_date (str|null): effective date
                - review_date (str|null): review date
              - components (array): index constituents, each with:
                - id (str): component identifier
                - type (str): "cboe-index-component"
                - attributes (object):
                  - symbol (str): ticker symbol
                  - isin (str): ISIN code
                  - name (str): company name
                  - closing_price (float): component closing price
                  - currency (str): trading currency
                  - total_shares (int): total shares outstanding
                  - market_cap (float): market capitalization
                  - index_weighting (float): weight in index (%)
                  - index_value (float): contributed index value
                  - sector (str): industry sector

        Notes:
            - If required filters are missing, the API returns a JSON error
              under the "errors" key.
            - Rate limits: 10 API calls per request (dataset-specific rule of thumb).

        Examples:
            - /api/cboe/index?filter[index_code]=BDE30P
              &filter[feed_type]=snapshot_official_closing
              &filter[date]=2017-02-01
get_cboe_indices_listtool List all available CBOE indices with their latest values. Use when the user wants toNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
List all available CBOE indices with their latest values. Use when the user wants to
        browse CBOE European and regional index families, check which CBOE indices are available,
        or find a CBOE index code.

        Returns index codes, regions, latest close values, index divisors, and feed metadata
        for ~38 CBOE indices. Paginated via 'links.next'. Costs 10 API calls per request.

        For detailed component-level data on a specific CBOE index, use get_cboe_index_data.

        Returns:
            Object with:
            - meta (object): total (int) — total number of indices
            - data (array): index objects, each with:
              - id (str): CBOE index identifier
              - type (str): always "cboe-index"
              - attributes (object):
                - region (str): geographic region (e.g. "Eurozone", "Germany")
                - index_code (str): CBOE index code
                - feed_type (str): feed type (e.g. "snapshot_official_closing")
                - date (str): latest date (YYYY-MM-DD)
                - index_close (float): latest closing value
                - index_divisor (float): index divisor
            - links (object): next (str|null) — URL for next page, null if last

        Notes:
            - Pagination:
              If 'links.next' is not null, call that URL to get the next page.
            - Rate limits:
                * 10 API calls per request (CBOE dataset rule of thumb).

        Examples:
            "List all CBOE indices" → get_cboe_indices_list()
            "What CBOE European indices are available?" → get_cboe_indices_list()
get_company_newstool Fetch financial news articles for a stock ticker or topic tag within a date range.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch financial news articles for a stock ticker or topic tag within a date range.
        Returns full article objects with title, content, URL, date, and related tickers.
        Use when the user asks for news headlines, recent articles, or press coverage about a company or sector.
        For aggregated sentiment scores derived from news, use get_sentiment_data instead.
        For keyword frequency analysis in news, use get_news_word_weights instead.

        Args:
            ticker (str, optional): SYMBOL.EXCHANGE_ID (e.g., 'AAPL.US'). Mapped to 's'.
            tag (str, optional): Topic tag (e.g., 'technology'). Mapped to 't'.
            start_date (str, optional): YYYY-MM-DD. Mapped to 'from'.
            end_date (str, optional): YYYY-MM-DD. Mapped to 'to'.
            limit (int): 1..1000 (default 50).
            offset (int): 0..9000 (default 0). To reach older articles, narrow the period with start_date/end_date.
            fmt (str): 'json' or 'xml' (default 'json').
            api_token (str, optional): Per-call token override; env token used if omitted.

        Returns:
            Array of articles, each with:
            - date (str): publication datetime ISO 8601
            - title (str): headline
            - content (str): full article text
            - link (str): source URL
            - symbols (list[str]): related ticker symbols
            - tags (list[str]): topic tags
            - sentiment (object): title/content/ner polarity and neg/neu/pos scores

        Examples:
            "Apple news last week" → ticker="AAPL.US", start_date="2026-02-27", end_date="2026-03-06"
            "Crypto news, 50 results" → tag="crypto", limit=50
            "Tesla news in February 2026, first 10" → ticker="TSLA.US", start_date="2026-02-01", end_date="2026-02-28", limit=10

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_congressional_tradestool Fetch US Congress securities transaction disclosures filed under the STOCK Act (stocks,NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch US Congress securities transaction disclosures filed under the STOCK Act (stocks,
        options, funds and bonds). Use when the user asks
        about congressional trading, which stocks a senator or representative bought or sold, politician
        trades, or Senate/House financial disclosures.

        Covers both chambers in one feed, sourced from the official Senate EFD and House Clerk portals.
        Beta API, ordered by transaction_date descending; sources are polled several times a day, so
        a trade shows up only once its filing is published.
        Filter by ticker, chamber, member (Bioguide ID), transaction type, and transaction or disclosure
        date range. Requires the All-in-One plan. Costs 10 API calls per request.

        Args:
            symbol (str, optional): Ticker as the filing lists it, e.g. "AAPL" or "BRK.B" for a
                class share. A trailing ".US" is accepted and stripped ("AAPL.US" → "AAPL");
                class-share dots are preserved.
            chamber (str, optional): "senate" or "house".
            bioguide_id (str, optional): Member Bioguide ID — one letter plus six digits,
                e.g. "S000250" (case-insensitive).
            transaction_type (str, optional): One or more of "purchase", "sale", "exchange"
                (comma-separated for multiple).
            transaction_date_from (str, optional): Earliest transaction date, YYYY-MM-DD.
            transaction_date_to (str, optional): Latest transaction date, YYYY-MM-DD.
            disclosure_date_from (str, optional): Earliest disclosure date, YYYY-MM-DD.
            disclosure_date_to (str, optional): Latest disclosure date, YYYY-MM-DD.
            limit (int, optional): Records per page, 1..100 (default 20 upstream).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.

        Returns:
            Envelope with data, meta (total, page), and links (next). Each record has:
            - chamber (str): senate or house
            - member (obj): bioguide_id, first_name, last_name, full_name, office, state, party, district
            - asset (obj): symbol, description, asset_type
            - transaction (obj): type, transaction_date, disclosure_date, owner, amount_range,
              amount_low, amount_high, days_to_disclose, is_late, comment
            - source (obj): filing_url, source_system, filing_identifier

        Notes:
            - 10 API calls per request.
            - Requires the All-in-One plan.
            - Filters are flat query keys; only pagination uses page[limit] / page[offset].

        Examples:
            "Recent congressional trades" → get_congressional_trades()  # newest transaction_date first
            "Senate purchases and sales in 2026" → get_congressional_trades(chamber="senate", transaction_type="purchase,sale", transaction_date_from="2026-01-01")
            "Which trades did member S000250 make in Apple" → get_congressional_trades(bioguide_id="S000250", symbol="AAPL")
get_credit_cds_market_aggregatestool Fetch aggregated CDS market statistics. Use when the user asks about CDS market grossNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch aggregated CDS market statistics. Use when the user asks about CDS market gross
        notional, CDS activity broken down by grade or cleared status, or CDS market size over time.

        Returns aggregated CDS market metrics (e.g. gross notional) broken down by a chosen
        dimension (grade or cleared status). Filterable by metric, dimension, and date range.
        Paginated.

        Args:
            metric (str, optional): Metric to aggregate. Currently 'gross_notional'.
            dimension (str, optional): Breakdown dimension: 'grade' or 'cleared_status'.
            value (str, optional): Filter by a specific breakdown value within the dimension.
            region (str, optional): Filter by region.
            date_from (str, optional): Start date filter (YYYY-MM-DD).
            date_to (str, optional): End date filter (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - as_of_date (str): observation date (ISO 8601 timestamp, e.g. 2026-07-03T00:00:00+00:00)
            - release_date (str|null): data release date (ISO 8601 timestamp)
            - metric (str): metric name
            - breakdown_dimension (str): breakdown dimension
            - breakdown_value (str): breakdown value
            - region (str): region
            - usd_notional_mn (float): notional in USD millions
            - source (str): data source

        Examples:
            "CDS gross notional by grade" → get_credit_cds_market_aggregates(metric="gross_notional", dimension="grade")
            "CDS notional by cleared status" → get_credit_cds_market_aggregates(dimension="cleared_status")
get_credit_corporate_cmditool Fetch the Corporate Market-based Default Indicator (CMDI) time series. Use when the user asksNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch the Corporate Market-based Default Indicator (CMDI) time series. Use when the user asks
        about corporate credit stress, the CMDI index, or investment-grade vs high-yield market
        default indicators.

        Returns the market CMDI along with investment-grade (IG) and high-yield (HY) sub-indices
        over time. Filterable by date range. Paginated.

        Args:
            date_from (str, optional): Start date filter (YYYY-MM-DD).
            date_to (str, optional): End date filter (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - as_of_date (str): observation date (ISO 8601 timestamp, e.g. 2026-06-19T00:00:00+00:00)
            - market_cmdi (float|null): overall market CMDI
            - ig_cmdi (float|null): investment-grade CMDI
            - hy_cmdi (float|null): high-yield CMDI
            - source (str): data source

        Examples:
            "Corporate CMDI for 2025" → get_credit_corporate_cmdi(date_from="2025-01-01", date_to="2025-12-31")
            "Latest CMDI" → get_credit_corporate_cmdi()
get_credit_corporate_hqm_yieldstool Fetch HQM (High Quality Market) corporate bond yield curves. Use when the user asks aboutNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch HQM (High Quality Market) corporate bond yield curves. Use when the user asks about
        HQM corporate yields, high-quality corporate bond spot or par yields, or yields by tenor.

        Returns HQM corporate bond yields by tenor (in years) and yield type (par or spot) over
        time. Filterable by tenor, type, and date range. Paginated.

        Args:
            tenor (int, optional): Tenor in years — one of 1, 2, 3, 5, 7, 10, 15, 20, 25, 30
                (or a comma-separated list, e.g. "5,10").
            type (str, optional): Yield type 'par' or 'spot' (or a comma-separated list).
            date_from (str, optional): Start date filter (YYYY-MM-DD).
            date_to (str, optional): End date filter (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - series_id (str): HQM series identifier
            - tenor_years (int): tenor in years
            - yield_type (str): 'par' or 'spot'
            - as_of_date (str): observation date (ISO 8601 timestamp, e.g. 2026-06-01T00:00:00+00:00)
            - yield_value (float): yield value
            - source (str): data source

        Examples:
            "10-year HQM spot yield" → get_credit_corporate_hqm_yields(tenor=10, type="spot")
            "HQM par yields for 2025" → get_credit_corporate_hqm_yields(type="par", date_from="2025-01-01")
get_credit_sovereign_cds_spreadstool Fetch sovereign CDS (credit default swap) spreads by country. Use when the user asks aboutNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch sovereign CDS (credit default swap) spreads by country. Use when the user asks about
        sovereign CDS spreads, default insurance costs for government debt, or CDS net of the
        Switzerland benchmark.

        Returns sovereign CDS spreads (raw and net of Switzerland) with Moody's rating context.
        Filterable by country and as-of date. Paginated.

        Args:
            country (str, optional): Country ISO-3 code, or a comma-separated list of ISO-3 codes.
                Country names are NOT matched (upstream filters on ISO-3 only).
            as_of (str, optional): Filter by as-of date (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - country_iso3 (str): ISO-3 country code
            - country_name (str): country name
            - as_of_date (str): as-of date (ISO 8601 timestamp, e.g. 2026-01-01T00:00:00+00:00)
            - moodys_rating (str|null): Moody's rating
            - cds_spread (float|null): sovereign CDS spread
            - cds_spread_net_of_switzerland (float|null): CDS spread net of Switzerland benchmark
            - source (str): data source

        Examples:
            "Italy sovereign CDS spread" → get_credit_sovereign_cds_spreads(country="ITA")
            "CDS spreads as of 2025-06-30" → get_credit_sovereign_cds_spreads(as_of="2025-06-30")
get_credit_sovereign_credit_ratingstool Fetch sovereign credit ratings from the three major agencies. Use when the user asks aboutNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch sovereign credit ratings from the three major agencies. Use when the user asks about
        a country's credit rating, Moody's / S&P / Fitch sovereign ratings, or ratings comparisons
        across countries.

        Returns Moody's, S&P, and Fitch sovereign ratings by country. Filterable by country and
        as-of date. Paginated.

        Args:
            country (str, optional): Country ISO-3 code, or a comma-separated list of ISO-3 codes.
                Country names are NOT matched (upstream filters on ISO-3 only).
            as_of (str, optional): Filter by as-of date (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - country_iso3 (str): ISO-3 country code
            - country_name (str): country name
            - as_of_date (str): as-of date (ISO 8601 timestamp, e.g. 2026-01-01T00:00:00+00:00)
            - moodys_rating (str|null): Moody's rating
            - sp_rating (str|null): S&P rating
            - fitch_rating (str|null): Fitch rating
            - source (str): data source

        Examples:
            "Germany credit rating" → get_credit_sovereign_credit_ratings(country="DEU")
            "Sovereign ratings as of 2025-01-01" → get_credit_sovereign_credit_ratings(as_of="2025-01-01")
get_credit_sovereign_default_spreadstool Fetch default spreads by credit rating. Use when the user asks about the default spreadNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch default spreads by credit rating. Use when the user asks about the default spread
        associated with a given rating (e.g. Aaa, Baa2), or the rating-to-spread mapping used to
        derive country risk premiums.

        Returns the default spread for each rating bucket. Filterable by rating and as-of date.
        Paginated.

        Args:
            rating (str, optional): Filter by rating (e.g. 'Aaa', 'Baa2').
            as_of (str, optional): Filter by as-of date (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - rating (str): credit rating bucket
            - as_of_date (str): as-of date (ISO 8601 timestamp, e.g. 2026-01-01T00:00:00+00:00)
            - default_spread (float): default spread for the rating
            - source (str): data source

        Examples:
            "Default spread for Baa2" → get_credit_sovereign_default_spreads(rating="Baa2")
            "Rating default spreads as of 2025-01-01" → get_credit_sovereign_default_spreads(as_of="2025-01-01")
get_credit_sovereign_risk_premiumtool Fetch sovereign country risk premiums. Use when the user asks about country risk premium,NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch sovereign country risk premiums. Use when the user asks about country risk premium,
        equity risk premium, adjusted default spreads, or Moody's sovereign ratings by country.

        Returns country-level risk premium data (Damodaran-style): adjusted default spread,
        country risk premium, equity risk premium, corporate tax rate, and sovereign CDS where
        available. Filterable by country, region, and as-of date. Paginated.

        Args:
            country (str, optional): Country ISO-3 code, or a comma-separated list of ISO-3 codes.
                Country names are NOT matched (upstream filters on ISO-3 only).
            region (str, optional): Filter by region.
            as_of (str, optional): Filter by as-of date (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - country_iso3 (str): ISO-3 country code
            - country_name (str): country name
            - region (str|null): region
            - as_of_date (str): as-of date (ISO 8601 timestamp, e.g. 2026-01-01T00:00:00+00:00)
            - moodys_rating (str|null): Moody's sovereign rating
            - adj_default_spread (float|null): adjusted default spread
            - country_risk_premium (float|null): country risk premium
            - equity_risk_premium (float|null): equity risk premium
            - corporate_tax_rate (float|null): corporate tax rate
            - sovereign_cds (float|null): sovereign CDS spread
            - source (str): data source

        Examples:
            "US country risk premium" → get_credit_sovereign_risk_premium(country="USA")
            "Latin America risk premiums" → get_credit_sovereign_risk_premium(region="Latin America")
get_earnings_trendstool Get earnings trend data including EPS/revenue estimates, analyst revisions, and growth projections for specific stocks.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get earnings trend data including EPS/revenue estimates, analyst revisions, and growth projections for specific stocks.
        Returns quarterly and annual consensus estimates, number of analysts, and revision history.
        Requires explicit symbol(s). Each request consumes ~10 API calls.
        Use when the user asks about earnings expectations, analyst estimate changes, or EPS growth trends.
        For earnings report dates and calendar, use get_upcoming_earnings instead.

        Returns:
            Array of trend records, each with:
            - code (str): ticker symbol
            - date (str): report date
            - period (str): fiscal period (e.g. '+1y', '0q')
            - growth (float|null): expected growth rate
            - earningsEstimate (object): avg, low, high, yearAgoEps, numberOfAnalysts, growth
            - revenueEstimate (object): avg, low, high, yearAgoRevenue, numberOfAnalysts, growth
            - epsTrend (object): current, 7daysAgo, 30daysAgo, 60daysAgo, 90daysAgo
            - epsRevisions (object): upLast7days, upLast30days, downLast7days, downLast30days

        Examples:
            "Apple earnings trend" → symbols="AAPL.US"
            "Compare Tesla and Nvidia earnings trends" → symbols="TSLA.US,NVDA.US"


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_economic_eventstool Fetch macroeconomic calendar events such as GDP, CPI, employment, and interest rate releases.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch macroeconomic calendar events such as GDP, CPI, employment, and interest rate releases.
        Returns scheduled and past economic indicators with actual, estimate, and previous values.
        Covers global economies; filter by country (ISO-2), date range, comparison period (mom/qoq/yoy), and event type.
        Use when the user asks about economic calendar, macro releases, or upcoming government data publications.
        This tool covers macro events only -- for company-level earnings dates, use get_upcoming_earnings.

        Returns:
            Array of events, each with:
            - type (str): event category
            - country (str): ISO-3166 alpha-2 country code
            - date (str): event datetime
            - actual (float|null): actual value
            - previous (float|null): previous period value
            - estimate (float|null): consensus estimate
            - change (float|null): absolute change
            - changePercentage (float|null): percentage change
            - event (str): event name/description

        Examples:
            "US economic events this week" → country="US", start_date="2026-03-02", end_date="2026-03-06"
            "German GDP year-over-year" → country="DE", comparison="yoy", type="GDP"
            "All events in March 2026, first 200" → start_date="2026-03-01", end_date="2026-03-31", limit=200


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_exchange_detailstool Retrieve detailed metadata for a single exchange: trading hours, timezone, open/closedNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Retrieve detailed metadata for a single exchange: trading hours, timezone, open/closed
        status, holidays, and ticker counts. Use when the user asks about exchange schedules,
        market holidays, or whether an exchange is currently open.

        Returns timezone, isOpen flag, trading hours (open/close with UTC equivalents, working
        days, lunch breaks), exchange holidays (bank and official, ~6 months window), and
        ticker statistics (active, updated today, previous day).

        For the list of all exchanges, use get_exchanges_list.
        For tickers on an exchange, use get_exchange_tickers.

        Args:
            exchange_code (str): Exchange code (e.g., 'US', 'LSE', 'XETRA').
            start_date (str, optional): YYYY-MM-DD; filter holidays from this date.
            end_date (str, optional): YYYY-MM-DD; filter holidays up to this date.
            fmt (str): 'json' only (default).
            api_token (str, optional): Per-call token override (env token otherwise).

        Returns:
            Object with:
            - Name (str): exchange full name
            - Code (str): exchange code
            - OperatingMIC (str): ISO 10383 operating MIC
            - Country (str): country name
            - Currency (str): primary currency code
            - CountryISO2 (str): alpha-2 country code
            - CountryISO3 (str): alpha-3 country code
            - Timezone (str): IANA timezone (e.g. "America/New_York")
            - isOpen (bool): whether the exchange is currently open
            - tradingHours (object): open, close, UTC equivalents, working days, lunch hours
            - ExchangeHolidays (array): holiday objects with Name, Date, Type (bank/official)
            - ActiveTickers (int): tickers active in last 2 months
            - UpdatedTickers (int): tickers updated today
            - PreviousDayUpdatedTickers (int): tickers updated previous day

        Examples:
            "Is the US market open right now?" → get_exchange_details(exchange_code="US")
            "LSE trading hours and timezone" → get_exchange_details(exchange_code="LSE")
            "XETRA holidays in Q1 2026" → get_exchange_details(exchange_code="XETRA", start_date="2026-01-01", end_date="2026-03-31")
get_exchange_tickerstool List all tickers (symbols) available on a given exchange. Use when the user needs toNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
List all tickers (symbols) available on a given exchange. Use when the user needs to
        enumerate stocks, ETFs, or funds on an exchange, or check if a specific instrument
        is listed there.

        Covers common stocks, preferred stocks, ETFs, and funds. By default returns tickers
        active in the last month. Supports delisted tickers via the delisted flag. For US
        markets, use 'US' (unified) or specific venues like NYSE, NASDAQ.

        For the list of all exchanges, use get_exchanges_list.
        For exchange metadata and trading hours, use get_exchange_details.

        Returns:
            Array of ticker objects, each with:
            - Code (str): ticker symbol
            - Name (str): instrument name
            - Country (str): country of listing
            - Exchange (str): exchange code
            - Currency (str): trading currency
            - Type (str): instrument type (e.g. "Common Stock", "ETF")
            - Isin (str|null): ISIN code, if available

        Examples:
            "All tickers on London Stock Exchange" → get_exchange_tickers(exchange_code="LSE")
            "Show me delisted US stocks" → get_exchange_tickers(exchange_code="US", delisted=True)
            "ETFs trading on XETRA" → get_exchange_tickers(exchange_code="XETRA", type="etf")
get_exchanges_listtool List all available stock exchanges worldwide. Use when the user asks which exchangesNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
List all available stock exchanges worldwide. Use when the user asks which exchanges
        are supported, needs exchange codes, or wants to browse markets by country.

        Covers 60+ global exchanges. Returns Name, Code, OperatingMIC, Country, Currency,
        and ISO country codes for each exchange.

        For tickers listed on a specific exchange, use get_exchange_tickers.
        For trading hours, holidays, and metadata of one exchange, use get_exchange_details.

        Returns:
            Array of exchange objects, each with:
            - Name (str): exchange full name
            - Code (str): exchange code (e.g. "US", "LSE")
            - OperatingMIC (str): ISO 10383 operating MIC
            - Country (str): country name
            - Currency (str): primary currency code
            - CountryISO2 (str): ISO 3166-1 alpha-2 country code
            - CountryISO3 (str): ISO 3166-1 alpha-3 country code

        Examples:
            "List all available exchanges" → get_exchanges_list()
            "What stock exchanges does EODHD support?" → get_exchanges_list()
get_fundamentals_datatool Retrieve fundamental data for a single stock, ETF, mutual fund, index, or crypto.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Retrieve fundamental data for a single stock, ETF, mutual fund, index, or crypto.
        Auto-detects asset type. For stocks: returns financials (income statement, balance sheet, cash flow),
        earnings, valuation, analyst ratings, holders, insider transactions, and outstanding shares.
        For ETFs: returns holdings, asset allocation, sector/country weights. For mutual funds: fund-specific data.
        Supports date-range pruning to limit financials and earnings to a specific window.
        For bulk fundamentals across many tickers at once, use get_bulk_fundamentals instead.
        For price data, use get_historical_stock_prices or get_live_price_data instead.

        Returns:
            Nested object; structure depends on asset Type:

            Common Stock — top-level keys:
            - General: name, exchange, currency, sector, industry, description, etc.
            - Highlights: marketCap, EBITDA, PE, EPS, dividendYield, etc.
            - Valuation: trailing/forward PE, PEG, price-to-sales/book, EV ratios
            - SharesStats: shares outstanding, float, percent insiders/institutions
            - Technicals: beta, 52wHigh/Low, moving averages, short ratio
            - SplitsDividends: forward/trailing dividend rate & yield, payout ratio, split history
            - AnalystRatings: target price, strong buy/buy/hold/sell/strong sell counts
            - Holders: top institutional & fund holders with shares/weight
            - InsiderTransactions: array of insider trades (date, name, shares, value)
            - outstandingShares: quarterly & annual share counts by date
            - Earnings: History (actual/estimate EPS), Trend, Annual
            - Financials: Balance_Sheet, Cash_Flow, Income_Statement (quarterly & yearly)

            ETF — top-level keys:
            - General, Technicals
            - ETF_Data: Holdings (top N positions), Sector_Weights, World_Regions,
              Top_10_Holdings, Asset_Allocation, performance, fees

            Mutual Fund — top-level keys:
            - General
            - MutualFund_Data: fund family, category, NAV, yield, holdings, sector weights

            Index — General only (pass extra_params={'historical': 1} for components).

        Examples:
            "Apple fundamentals" → ticker="AAPL.US"
            "Tesla earnings and valuation for 2025" → ticker="TSLA.US", sections=["Earnings", "Valuation"], from_date="2025-01-01", to_date="2025-12-31"
            "Vanguard Total Stock Market ETF info" → ticker="VTI.US", sections=["General", "ETF_Data"]


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_historical_commodity_pricestool Get historical price data for a commodity series (energy, metals, agriculturals, andNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get historical price data for a commodity series (energy, metals, agriculturals, and
        commodity indices) sourced from FRED (Federal Reserve Economic Data). Series go back
        decades for major energy commodities. Costs 5 API calls per request.

        Use when the user asks for the price history of oil, gas, metals, or agricultural
        commodities, or a broad commodity index — e.g. WTI/Brent crude, natural gas, gasoline,
        diesel, copper, aluminum, wheat, corn, sugar, coffee, uranium, coal, or ALL_COMMODITIES.

        Available codes:
            Energy: WTI, BRENT, NATURAL_GAS, GASOLINE_US, DIESEL_USGULF, HEATING_OIL_NYH,
                JET_FUEL_USGULF, PROPANE_MBTX, COAL_AU, URANIUM
            Metals: ALUMINUM, COPPER
            Agricultural: WHEAT, CORN, SUGAR, COTTON, COFFEE_MILD_ARABICA, COFFEE_ROBUSTAS
            Indices: ALL_COMMODITIES, ALL_COMMODITIES_PRODUCER, ENERGY_INDEX, NATGAS_EU, LNG_ASIA

        Args:
            code (str): Commodity code (e.g. 'WTI', 'BRENT', 'URANIUM') or 'ALL_COMMODITIES'.
                Case-insensitive; normalized to upper case.
            interval (str): Data frequency — 'daily', 'weekly', 'monthly' (default),
                'quarterly', or 'annual'. Daily data is only available for energy commodities.
            api_token (str, optional): Per-call token override.

        Returns:
            Object with:
            - meta (object):
                - name (str): full commodity name from FRED
                - interval (str): data frequency
                - unit (str): measurement unit (e.g. 'Dollars per Barrel', 'Index 2016 = 100')
                - total (int): total number of data points available
            - data (array): records ordered newest-first, each with:
                - date (str): YYYY-MM-DD
                - value (float): price or index value

        Notes:
            - 5 API calls per request.
            - The 'demo' API key only returns WTI; other codes return 403 with that key.
            - Monthly metals/agriculturals/indices lag 2–3 weeks after month end; daily energy
              series are published by the EIA in weekly batches (up to ~1 week lag).

        Examples:
            "WTI crude oil price history" → code="WTI"
            "Daily Brent prices" → code="BRENT", interval="daily"
            "Annual copper prices" → code="COPPER", interval="annual"
            "Global all-commodities index" → code="ALL_COMMODITIES"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key only provides access to WTI in the Commodities API.
get_historical_dividendstool Get historical dividend records for a stock, ETF, or fund ticker.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get historical dividend records for a stock, ETF, or fund ticker.
        Returns ex-dividend dates, dividend amounts, and for many major tickers also declaration,
        record, and payment dates. Free access may be limited to roughly 1 year of history,
        while paid plans can return deeper history.
        Use when the user asks about dividend history, ex-dividend dates, payout trends,
        or dividend event details for a specific ticker.
        For upcoming dividend calendar events across symbols or dates, use get_upcoming_dividends.

        Args:
            ticker (str): Symbol in SYMBOL.EXCHANGE format, e.g. 'AAPL.US'.
            start_date (str, optional): 'from' date in YYYY-MM-DD.
            end_date (str, optional): 'to' date in YYYY-MM-DD.
            fmt (str): 'json' only.
            api_token (str, optional): Per-call token override.

        Returns:
            Array of dividend records, each with fields such as:
            - date (str): ex-dividend date
            - declarationDate (str | null): declaration date when available
            - recordDate (str | null): record date when available
            - paymentDate (str | null): payment date when available
            - period (str | null): payout frequency such as 'Quarterly'
            - value (float): adjusted dividend value
            - unadjustedValue (float): unadjusted dividend value
            - currency (str): dividend currency

        Examples:
            "Apple dividend history since 2024" → ticker="AAPL.US", start_date="2024-01-01"
            "Microsoft dividends in 2025" → ticker="MSFT.US", start_date="2025-01-01", end_date="2025-12-31"
            "Latest dividend history for VTI" → ticker="VTI.US"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_historical_market_captool Get historical market capitalization data for a US stock over time.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get historical market capitalization data for a US stock over time.
        Returns weekly market cap data points (from 2020 onward) for NYSE/NASDAQ tickers.
        Filter by date range. Each request consumes 10 API calls.
        Use when the user asks about market cap history, company valuation over time, or market cap trends.
        This is the only tool for historical market cap -- do not confuse with fundamental data or price history.

        Returns:
            Array of weekly data points, each with:
            - date (str): observation date YYYY-MM-DD
            - value (float): market capitalization in USD

        Examples:
            "Apple market cap history in 2025" → ticker="AAPL.US", start_date="2025-01-01", end_date="2025-12-31"
            "Microsoft market cap last 6 months" → ticker="MSFT.US", start_date="2025-09-06", end_date="2026-03-06"
            "Google market cap since 2023" → ticker="GOOG.US", start_date="2023-01-01"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_historical_splitstool Get historical stock split events for a specific ticker.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get historical stock split events for a specific ticker.
        Returns split dates and split ratios such as 2-for-1, 4-for-1, or reverse split ratios.
        Use when the user asks about historical splits, reverse splits, or corporate action history
        for a specific stock.
        For upcoming split calendar events across symbols or dates, use get_upcoming_splits.

        Args:
            ticker (str): Symbol in SYMBOL.EXCHANGE format, e.g. 'AAPL.US'.
            start_date (str, optional): 'from' date in YYYY-MM-DD.
            end_date (str, optional): 'to' date in YYYY-MM-DD.
            fmt (str): 'json' only.
            api_token (str, optional): Per-call token override.

        Returns:
            Array of split records, each with:
            - date (str): split effective date
            - split (str): split ratio string such as '4.000000/1.000000'

        Examples:
            "Apple split history since 2000" → ticker="AAPL.US", start_date="2000-01-01"
            "Tesla split history" → ticker="TSLA.US"
            "NVIDIA splits between 2010 and 2025" → ticker="NVDA.US", start_date="2010-01-01", end_date="2025-12-31"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_historical_stock_pricestool Get historical daily, weekly, or monthly OHLCV price data for any stock, ETF, index, or crypto.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get historical daily, weekly, or monthly OHLCV price data for any stock, ETF, index, or crypto.
        Covers open, high, low, close, adjusted close, and volume for a date range.
        Use for price history, charting, backtesting, and performance analysis.
        For intraday candles (1min-1h), use get_intraday_historical_data instead.
        For current/live prices, use get_live_price_data instead.

        Args:
            ticker (str): Symbol in SYMBOL.EXCHANGE format, e.g. 'AAPL.US'.
            start_date (str, optional): 'from' date in YYYY-MM-DD. If omitted, API returns full history (plan limits apply).
            end_date (str, optional): 'to' date in YYYY-MM-DD. If omitted, API returns up to most recent.
            period (str): 'd' (daily), 'w' (weekly), 'm' (monthly). Default 'd'.
            order (str): 'a' (ascending) or 'd' (descending). Default 'a'.
            fmt (str): 'json' or 'csv'. Default 'json'. (API default is csv.)
            filter (str, optional): e.g., 'last_close', 'last_volume' (works with fmt=json; returns a single value).
            api_token (str, optional): Override API token for this call. If not provided, env token is used.

        Returns:
            Array of daily/weekly/monthly records, each with:
            - date (str): YYYY-MM-DD
            - open, high, low, close (float): OHLC prices (unadjusted)
            - adjusted_close (float): split- and dividend-adjusted close
            - volume (int): shares traded

            Use adjusted_close for return calculations; close is raw exchange price.
            If filter is set (e.g. 'last_close'), returns a single scalar value.

        Examples:
            "Apple stock price last month" → ticker="AAPL.US", start_date="2026-02-01", end_date="2026-02-28"
            "Weekly Tesla for 2025" → ticker="TSLA.US", period="w", start_date="2025-01-01", end_date="2025-12-31"
            "Monthly S&P 500 since 2020" → ticker="GSPC.INDX", period="m", start_date="2020-01-01"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_insider_transactionstool Fetch SEC Form 4 insider trading transactions -- purchases and sales by company officers, directors, and major shareholders.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch SEC Form 4 insider trading transactions -- purchases and sales by company officers, directors, and major shareholders.
        Returns transaction date, insider name, title, transaction type (P=Purchase, S=Sale), shares, and value.
        Filter by ticker symbol and/or date range. Each request consumes 10 API calls.
        Use when the user asks about insider buying/selling activity, executive stock transactions, or Form 4 filings.

        Args:
            start_date (str, optional): 'from' in YYYY-MM-DD. Defaults to ~1 year ago by API if omitted.
            end_date (str, optional):   'to'   in YYYY-MM-DD. Defaults to today by API if omitted.
            limit (int): Number of entries to return, 1..1000. Default 100.
            symbol (str, optional): Filter by ticker (API param 'code'), e.g. 'AAPL' or 'AAPL.US'.
            fmt (str): Only 'json' is supported by this tool.
            api_token (str, optional): Per-call token; env token used if omitted.

        Returns:
            Object with:
            - code (str): ticker symbol
            - transactions (list): array of transactions, each with:
              - date (str): transaction date
              - ownerName (str): insider name
              - transactionType (str): 'P' (Purchase) or 'S' (Sale)
              - sharesTraded (int): number of shares traded
              - pricePerShare (float|null): price per share
              - sharesOwned (int): total shares owned after transaction

        Notes:
            • Each request consumes 10 API calls (per docs).
            • Transaction codes in results include 'P' (Purchase) and 'S' (Sale).

        Examples:
            "Apple insider trades this year" → symbol="AAPL.US", start_date="2026-01-01", end_date="2026-03-06"
            "Recent insider transactions, top 50" → limit=50
            "Tesla insider buys and sells in Feb 2026" → symbol="TSLA.US", start_date="2026-02-01", end_date="2026-02-28"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_insider_transactions_form4tool Get SEC Form 4 insider-trading filings for a US-listed issuer, sourced directly fromNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get SEC Form 4 insider-trading filings for a US-listed issuer, sourced directly from
        SEC EDGAR. This is the richer V2 ("SEC Form 4") endpoint: each filing exposes
        non-derivative transactions (common stock), derivative transactions (options, RSUs,
        warrants), and the footnotes referenced from each row, with the full SEC transaction
        code set and reporting-owner relationship flags. Costs 10 API calls per request.

        Use when the user asks about insider buying/selling, executive stock transactions, or
        Form 4 filings for a US company and wants full per-filing detail. For a flat, simpler
        list across symbols/dates use the legacy get_insider_transactions tool instead.

        Args:
            symbol (str): US ticker, e.g. 'AAPL' or 'AAPL.US'. Case-insensitive; the .US suffix
                is optional. Form 4 is filed by US-listed issuers only — non-US symbols 404.
            limit (int): Page size, 1..100. Default 20.
            offset (int): Zero-based pagination offset. Default 0.
            api_token (str, optional): Per-call token override.

        Returns:
            Object with:
            - data (array): Form 4 filings (newest filed_at first), each with:
                - accession_number (str): unique SEC filing identifier
                - filed_at (str): submission date (YYYY-MM-DD)
                - period_of_report (str): reporting period (YYYY-MM-DD)
                - non_derivative (array): direct stock transactions, each with reporting_owner_cik,
                  reporting_owner_name, is_director/is_officer/is_ten_percent_owner/is_other,
                  officer_title, security_title, transaction_date, transaction_code,
                  acquired_or_disposed (A/D), shares_amount, price_per_share, shares_owned_after,
                  total_value
                - derivative (array): option/RSU/warrant transactions, adding
                  conversion_or_exercise_price, underlying_security_title, underlying_shares,
                  exercise_date, expiration_date
                - footnotes (array): {footnote_id, text} referenced from transaction rows
            - meta (object): total (int) and page {offset, limit}.
            - links (object): next (str|null) — URL for the next page, null on the last page.

        Notes:
            - 10 API calls per request.
            - Transaction codes follow the SEC Section 16 set (P=purchase, S=sale, A=grant,
              M=exercise/conversion, F=tax withholding, G=gift, etc.).
            - Forward-only pagination: only 'links.next' is exposed. Increment 'offset' (up to
              'meta.total') to reach a specific page.
            - History depth varies by ticker — large caps (AAPL, MSFT, NVDA) reach back many
              years; recently onboarded issuers may expose ~12 months.

        Examples:
            "Apple insider Form 4 filings" → symbol="AAPL.US"
            "Tesla insider transactions, 50 per page" → symbol="TSLA", limit=50
            "Next page of NVDA insider filings" → symbol="NVDA.US", offset=20

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_intraday_historical_datatool Get historical intraday OHLCV candles at 1-minute, 5-minute, or 1-hour intervals.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get historical intraday OHLCV candles at 1-minute, 5-minute, or 1-hour intervals.
        Use for intraday price analysis, short-term patterns, and high-resolution charting.
        Accepts date strings or Unix timestamps for the time range.
        Max range depends on interval: 1m=120 days, 5m=600 days, 1h=7200 days.
        For daily/weekly/monthly end-of-day bars, use get_historical_stock_prices instead.
        For current live price, use get_live_price_data instead.

        Args:
            ticker (str): SYMBOL.EXCHANGE_ID, e.g. 'AAPL.US'.
            interval (str): One of {'1m','5m','1h'}. Default '5m'.
            from_timestamp (int|str, optional): Start as Unix seconds OR a date string
                (auto-detected). Examples: 1704067200, '2024-01-01', '01-01-24', '01/01/2024',
                '2024-01-01T15:30:00Z', 'Jan 1, 2024'.
            to_timestamp (int|str, optional): End as Unix seconds OR a date string (auto-detected).
            fmt (str): 'json' or 'csv'. Default 'json'.
            split_dt (bool, optional): If True, adds 'split-dt=1' to split date/time fields.
            api_token (str, optional): Per-call token override; env token used if omitted.

        Returns:
            Array of intraday bar records, each with:
            - timestamp (int): Unix epoch seconds
            - gmtoffset (int): GMT offset in seconds for the exchange
            - datetime (str): human-readable datetime (YYYY-MM-DD HH:MM:SS)
            - open, high, low, close (float): bar OHLC
            - volume (int): shares traded in this bar

        Notes:
            - If no 'from'/'to' provided, API returns last 120 days by default (per docs).
            - Max span depends on interval:
                1m -> 120 days, 5m -> 600 days, 1h -> 7200 days.

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_live_price_datatool Get the current (delayed ~15-20 min) price snapshot for one or more tickers.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get the current (delayed ~15-20 min) price snapshot for one or more tickers.
        Returns last trade price, change, change percent, volume, high, low, open, previous close, and timestamp.
        Supports stocks, ETFs, indices, forex, and crypto. Batch up to 20 symbols in one call.
        For US stocks with bid/ask, 52w range, and market cap, use get_us_live_extended_quotes instead.
        For historical daily/weekly/monthly OHLCV, use get_historical_stock_prices instead.

        Args:
            ticker (str): Primary symbol in SYMBOL.EXCHANGE format (e.g., 'AAPL.US').
                          Required and placed in the path, per API spec.
            additional_symbols (Sequence[str], optional): Extra symbols for 's=' query param,
                          comma-separated by the tool (e.g., ['VTI', 'EUR.FOREX']).
                          Docs recommend <= 15–20 total.
            fmt (str): 'json' or 'csv'. Defaults to 'json' for easier client handling.
            api_token (str, optional): Per-call token override. If omitted, env token is used.

        Returns:
            Single object (one ticker) or array (multiple tickers), each with:
            - code (str): ticker symbol
            - timestamp (int): Unix epoch seconds of last trade
            - open, high, low, close (float): session OHLC
            - volume (int): session volume
            - previousClose (float): prior session close
            - change (float): absolute change from previousClose
            - change_p (float): percent change from previousClose

            Prices are delayed ~15-20 min depending on exchange.

        Examples:
            "Current Apple price" → ticker="AAPL.US"
            "Live quotes for Tesla, Google, and Amazon" → ticker="TSLA.US", additional_symbols=["GOOG.US", "AMZN.US"]
            "Bitcoin and Ethereum prices right now" → ticker="BTC-USD.CC", additional_symbols=["ETH-USD.CC"]


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_macro_indicatortool Fetch macroeconomic indicators for a country over time. Use when the user asks aboutNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch macroeconomic indicators for a country over time. Use when the user asks about
        country-level economic data: GDP, inflation, CPI, unemployment, population, trade
        balance, debt-to-GDP, life expectancy, and 30+ other World Bank-style indicators.

        Returns a historical time series for one indicator in one country. Country is specified
        by ISO-3 alpha code (e.g., USA, DEU, FRA). Defaults to GDP if no indicator specified.

        This is for country-level macro data only. For company fundamentals, use
        get_fundamentals_data (single ticker) or get_bulk_fundamentals (entire exchange).

        Args:
            country (str): Alpha-3 ISO country code (e.g., 'USA', 'FRA', 'DEU').
            indicator (str, optional): One of documented indicators. Defaults to 'gdp_current_usd'.
            fmt (str): 'json' or 'csv'. Default 'json'.
            api_token (str, optional): Per-call token override.


        Returns:
            Array of indicator data points, each with:
            - CountryCode (str): ISO-3 country code (e.g. "USA")
            - Indicator (str): indicator key (e.g. "gdp_current_usd")
            - Date (str): observation date (YYYY-MM-DD)
            - Period (str): reporting period
            - Value (float): indicator value
            - Frequency (str): data frequency (e.g. "Annual")
            - Unit (str): measurement unit

        Examples:
            "US GDP over time" → get_macro_indicator(country="USA", indicator="gdp_current_usd")
            "Germany unemployment rate" → get_macro_indicator(country="DEU", indicator="unemployment_total_percent")
            "France inflation (CPI)" → get_macro_indicator(country="FRA", indicator="inflation_consumer_prices_annual")
get_mp_investverte_esg_list_companiestool [InvestVerte] List all companies available in the ESG dataset.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[InvestVerte] List all companies available in the ESG dataset.
        Returns an array of symbol/name pairs for every company with ESG coverage.
        Use as a reference lookup before calling get_mp_investverte_esg_view_company for detailed ESG scores.
        Consumes 10 API calls per request.
        For country or sector reference lists, use get_mp_investverte_esg_list_countries or list_sectors.


        Returns:
            A JSON-formatted string containing an array of objects:
            [
              {"symbol": "000001.SZ", "name": "Ping An Bank Co., Ltd."},
              {"symbol": "000002.SZ", "name": "China Vanke Co., Ltd."},
              ...
            ]

        Notes:
            - This endpoint lists all companies covered by the Investverte ESG dataset.
            - Rate limits (Marketplace product):
                * 100,000 API calls per 24 hours
                * 1,000 API requests per minute
                * 1 API request = 10 API calls

        Examples:
            "List all ESG companies" → (no params needed)
            "Which companies have ESG data?" → (no params needed)
get_mp_investverte_esg_list_countriestool [InvestVerte] List all countries available in the ESG dataset.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[InvestVerte] List all countries available in the ESG dataset.
        Returns an array of country_code/country_descr pairs for every country with ESG coverage.
        Use as a reference lookup before calling get_mp_investverte_esg_view_country for detailed ESG scores.
        Consumes 10 API calls per request.
        For company or sector reference lists, use get_mp_investverte_esg_list_companies or list_sectors.


        Returns:
            A JSON-formatted string containing an array of objects:
            [
              {"country_code": "AD", "country_descr": "Andorra"},
              {"country_code": "AE", "country_descr": "United Arab Emirates"},
              ...
            ]

        Notes:
            - This endpoint lists all countries covered by the Investverte ESG dataset.
            - Rate limits (Marketplace product):
                * 100,000 API calls per 24 hours
                * 1,000 API requests per minute
                * 1 API request = 10 API calls

        Examples:
            "List all ESG countries" → (no params needed)
            "Which countries have ESG ratings?" → (no params needed)
get_mp_investverte_esg_list_sectorstool [InvestVerte] List all sectors available in the ESG dataset.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[InvestVerte] List all sectors available in the ESG dataset.
        Returns an array of sector names with ESG coverage (e.g., "Airlines", "Aerospace & Defense").
        Use as a reference lookup before calling get_mp_investverte_esg_view_sector for detailed ESG data.
        Consumes 10 API calls per request.
        For company or country reference lists, use get_mp_investverte_esg_list_companies or list_countries.


        Returns:
            A JSON-formatted string containing an array of objects:
            [
              {"sector": "Aerospace & Defense"},
              {"sector": "Airlines"},
              ...
            ]

        Notes:
            - This endpoint lists all sectors covered by the Investverte ESG dataset.
            - Rate limits (Marketplace product):
                * 100,000 API calls per 24 hours
                * 1,000 API requests per minute
                * 1 API request = 10 API calls

        Examples:
            "List all ESG sectors" → (no params needed)
            "What sectors have ESG coverage?" → (no params needed)
get_mp_investverte_esg_view_companytool [InvestVerte] Get detailed ESG scores (E, S, G, and composite) for a specific company by symbol.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[InvestVerte] Get detailed ESG scores (E, S, G, and composite) for a specific company by symbol.
        Returns Environmental, Social, Governance, and combined ESG scores broken down by year and
        frequency (FY, Q1-Q4). Optionally filter by year and frequency. Consumes 10 API calls per request.
        Use get_mp_investverte_esg_list_companies first to discover available symbols.
        For country-level ESG, use get_mp_investverte_esg_view_country.
        For sector-level ESG, use get_mp_investverte_esg_view_sector.


        Returns:
            A JSON-formatted string with an array of objects, e.g.:

            [
              {
                "e": 58.97,
                "s": 68.66,
                "g": 65.21,
                "esg": 64.09,
                "year": 2021,
                "frequency": "FY"
              },
              ...
            ]

        Notes:
            - Year and frequency are optional; when omitted, all available
              years/frequencies for the symbol are returned.
            - Rate limits (Marketplace product):
                * 100,000 API calls per 24 hours
                * 1,000 API requests per minute
                * 1 API request = 10 API calls

        Examples:
            - /api/mp/investverte/esg/AAPL?year=2021&frequency=FY
            - /api/mp/investverte/esg/000039.SZ
get_mp_investverte_esg_view_countrytool [InvestVerte] Get detailed ESG ratings for a specific country by country code.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[InvestVerte] Get detailed ESG ratings for a specific country by country code.
        Returns mean and median ESG scores broken down by year and frequency (FY, Q1-Q4).
        Optionally filter by year and frequency. Consumes 10 API calls per request.
        Use get_mp_investverte_esg_list_countries first to discover available country codes.
        For company-level ESG, use get_mp_investverte_esg_view_company.
        For sector-level ESG, use get_mp_investverte_esg_view_sector.


        Returns:
            A JSON-formatted string with an array of objects, e.g.:

            [
              {
                "symbol": "US",
                "name": "United States of America",
                "mean": 63.2928294103373,
                "median": 63.32,
                "year": 2021,
                "frequency": "FY"
              },
              ...
            ]

        Notes:
            - Year and frequency are optional; when omitted, all available
              years/frequencies for the country are returned.
            - Rate limits (Marketplace product):
                * 100,000 API calls per 24 hours
                * 1,000 API requests per minute
                * 1 API request = 10 API calls

        Examples:
            - /api/mp/investverte/country/US?year=2021&frequency=FY
            - /api/mp/investverte/country/US
get_mp_investverte_esg_view_sectortool [InvestVerte] Get detailed ESG time-series data for a specific sector by name.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[InvestVerte] Get detailed ESG time-series data for a specific sector by name.
        Returns ESG values mapped by industry/sub-sector across all available year-frequency
        combinations (e.g., "2015-FY", "2021-Q3"). Consumes 10 API calls per request.
        Use get_mp_investverte_esg_list_sectors first to discover available sector names.
        For company-level ESG, use get_mp_investverte_esg_view_company.
        For country-level ESG, use get_mp_investverte_esg_view_country.


        Returns:
            A JSON-formatted string with a sector ESG object:
            {
              "find": true,
              "industry": {
                "Airlines": [<ESG values per year>],
                "Transportation": [<ESG values per year>]
              },
              "years": ["2015-FY", "2015-Q1", ...]
            }
            Fields:
              - find (bool): whether the sector was found
              - industry (object): map of industry/sector names to arrays of ESG
                values aligned with the "years" axis
              - years (array of str): time axis labels in "YYYY-frequency" format

        Notes:
            - The 'industry' section contains sector/industry names mapped
              to ESG values over the 'years' axis.
            - Rate limits (Marketplace product):
                * 100,000 API calls per 24 hours
                * 1,000 API requests per minute
                * 1 API request = 10 API calls

        Examples:
            "Airlines sector ESG data" → symbol="Airlines"
            "Aerospace & Defense ESG ratings" → symbol="Aerospace & Defense"
get_mp_praams_bank_balance_sheet_by_isintool [PRAAMS] Retrieve bank-specific balance sheet time series by ISIN code.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[PRAAMS] Retrieve bank-specific balance sheet time series by ISIN code.
        Returns annual and quarterly data: loans, cash, deposits, securities REPO, investment portfolio,
        debt, total assets/equity, interest-earning assets, and interest-bearing liabilities.
        Tailored for banking sector analysis. Consumes 10 API calls per request.
        For lookup by ticker, use get_mp_praams_bank_balance_sheet_by_ticker.
        For bank income statement data, use get_mp_praams_bank_income_statement_by_isin.

        Returns:
          JSON object with Praams envelope:
            - success (bool): whether the request succeeded
            - items (array): time-series of balance sheet entries, each containing:
                - period (str): reporting period (e.g. "2023-Q4", "2023-FY")
                - loansGross (float|null): gross loans
                - loansProvisions (float|null): loan loss provisions
                - loansNet (float|null): net loans
                - cashEquivalents (float|null): cash & equivalents
                - depositsWithBanks (float|null): deposits with other banks
                - securitiesRepoAssets (float|null): securities REPO assets
                - securitiesRepoLiabilities (float|null): securities REPO liabilities
                - investmentPortfolio (float|null): investment portfolio
                - totalAssets (float|null): total assets
                - totalEquity (float|null): total equity
                - shortTermDebt (float|null): short-term debt
                - longTermDebt (float|null): long-term debt
                - interestEarningAssets (float|null): interest-earning assets
                - interestBearingLiabilities (float|null): interest-bearing liabilities
                - Additional bank-specific balance sheet line items
            - message (str): status message
            - errors (array): list of error messages, empty on success

        Limits (Marketplace rules):
          - 1 request = 10 API calls
          - 100k calls / 24h, 1k requests / minute
          - Output is JSON only
get_mp_praams_bank_balance_sheet_by_tickertool [PRAAMS] Retrieve bank-specific balance sheet time series by ticker symbol.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[PRAAMS] Retrieve bank-specific balance sheet time series by ticker symbol.
        Returns annual and quarterly data: loans, cash, deposits, securities REPO, investment portfolio,
        debt, total assets/equity, interest-earning assets, and interest-bearing liabilities.
        Tailored for banking sector analysis. Consumes 10 API calls per request.
        For lookup by ISIN, use get_mp_praams_bank_balance_sheet_by_isin.
        For bank income statement data, use get_mp_praams_bank_income_statement_by_ticker.

        Returns:
          JSON object with Praams envelope:
            - success (bool): whether the request succeeded
            - items (array): time-series of balance sheet entries, each containing:
                - period (str): reporting period (e.g. "2023-Q4", "2023-FY")
                - loansGross (float|null): gross loans
                - loansProvisions (float|null): loan loss provisions
                - loansNet (float|null): net loans
                - cashEquivalents (float|null): cash & equivalents
                - depositsWithBanks (float|null): deposits with other banks
                - securitiesRepoAssets (float|null): securities REPO assets
                - securitiesRepoLiabilities (float|null): securities REPO liabilities
                - investmentPortfolio (float|null): investment portfolio
                - totalAssets (float|null): total assets
                - totalEquity (float|null): total equity
                - shortTermDebt (float|null): short-term debt
                - longTermDebt (float|null): long-term debt
                - interestEarningAssets (float|null): interest-earning assets
                - interestBearingLiabilities (float|null): interest-bearing liabilities
                - Additional bank-specific balance sheet line items
            - message (str): status message
            - errors (array): list of error messages, empty on success

        Limits (Marketplace rules):
          - 1 request = 10 API calls
          - 100k calls / 24h, 1k requests / minute
          - Output is JSON only
get_mp_praams_bank_income_statement_by_isintool [PRAAMS] Retrieve bank-specific income statement time series by ISIN code.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[PRAAMS] Retrieve bank-specific income statement time series by ISIN code.
        Returns annual and quarterly data: core revenue, net interest income, fee & commission income,
        RIBPT, non-recurring income, IBPT, and provisioning. Tailored for banking sector analysis.
        Consumes 10 API calls per request.
        For lookup by ticker, use get_mp_praams_bank_income_statement_by_ticker.
        For bank balance sheet data, use get_mp_praams_bank_balance_sheet_by_isin.

        Returns:
          JSON object with Praams envelope:
            - success (bool): whether the request succeeded
            - items (array): time-series of income statement entries, each containing:
                - period (str): reporting period (e.g. "2023-Q4", "2023-FY")
                - coreRevenue (float|null): total core revenue
                - netInterestIncome (float|null): net interest income
                - netFeeCommissionIncome (float|null): net fee & commission income
                - ribpt (float|null): recurring income before provisioning and taxes
                - nonRecurringIncome (float|null): non-recurring income items
                - ibpt (float|null): income before provisioning and taxes
                - provisioning (float|null): loan loss provisions
                - Additional bank-specific income line items
            - message (str): status message
            - errors (array): list of error messages, empty on success

        Limits (Marketplace rules):
          - 1 request = 10 API calls
          - 100k calls / 24h, 1k requests / minute
          - Output is JSON only
get_mp_praams_bank_income_statement_by_tickertool [PRAAMS] Retrieve bank-specific income statement time series by ticker symbol.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[PRAAMS] Retrieve bank-specific income statement time series by ticker symbol.
        Returns annual and quarterly data: core revenue, net interest income, fee & commission income,
        RIBPT, non-recurring income, IBPT, and provisioning. Tailored for banking sector analysis.
        Consumes 10 API calls per request.
        For lookup by ISIN, use get_mp_praams_bank_income_statement_by_isin.
        For bank balance sheet data, use get_mp_praams_bank_balance_sheet_by_ticker.

        Returns:
          JSON object with Praams envelope:
            - success (bool): whether the request succeeded
            - items (array): time-series of income statement entries, each containing:
                - period (str): reporting period (e.g. "2023-Q4", "2023-FY")
                - coreRevenue (float|null): total core revenue
                - netInterestIncome (float|null): net interest income
                - netFeeCommissionIncome (float|null): net fee & commission income
                - ribpt (float|null): recurring income before provisioning and taxes
                - nonRecurringIncome (float|null): non-recurring income items
                - ibpt (float|null): income before provisioning and taxes
                - provisioning (float|null): loan loss provisions
                - Additional bank-specific income line items
            - message (str): status message
            - errors (array): list of error messages, empty on success

        Limits (Marketplace rules):
          - 1 request = 10 API calls
          - 100k calls / 24h, 1k requests / minute
          - Output is JSON only
get_mp_praams_bond_analyze_by_isintool [PRAAMS] Get deep risk-return analysis for a bond identified by ISIN code.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[PRAAMS] Get deep risk-return analysis for a bond identified by ISIN code.
        Returns PRAAMS ratio, coupon profile, credit/solvency assessment, stress-manual results,
        volatility, liquidity, country risk narratives, and issuer-level fundamentals.
        Use for detailed bond-specific due diligence. Consumes 10 API calls per request.
        For bond screening across multiple instruments, use get_mp_praams_smart_screener_bond.
        For a full PDF bond report, use get_mp_praams_report_bond_by_isin.

        Returns:
          JSON object with Praams envelope:
            - success (bool): whether the request succeeded
            - item (object): bond analysis payload containing:
                - praamsRatio (float): overall PRAAMS score
                - totalReturnScore (int): aggregate return score (1-7 scale)
                - totalRiskScore (int): aggregate risk score (1-7 scale)
                - coupon (object): coupon profile (type, rate, frequency, structure notes)
                - valuation (object): yield-to-maturity, spread, price metrics
                - performance (object): price and total return performance
                - profitability (object): issuer-level profitability metrics
                - growthMomentum (object): issuer growth & momentum
                - marketView (object): spread history, yield curve positioning
                - volatility (object): price volatility, duration-adjusted risk
                - stressTest (object): stress-manual scenarios and score
                - liquidity (object): trading volume, bid-ask spread, score
                - countryRisk (object): country-level risk assessment and score
                - solvency (object): issuer creditworthiness, leverage, coverage ratios
                - descriptions (object|null): narrative risk/return explanations
            - errors (array): list of error messages, empty on success
            - message (str): status message

        Limits (Marketplace rules):
          - 1 request = 10 API calls
          - 100k calls / 24h, 1k requests / minute
          - Output is JSON only
get_mp_praams_report_bond_by_isintool [PRAAMS] Generate a comprehensive multi-factor PDF report for a bond by ISIN code.NetworkCredentialsEnv varsSensitive pathsoutside text
[PRAAMS] Generate a comprehensive multi-factor PDF report for a bond by ISIN code.
        Covers 120,000+ global bonds (corporate and sovereign). Report includes valuation,
        performance, coupon analysis, profitability, growth, plus risk factors (volatility,
        stress-manual, liquidity, country, solvency). Requires an email for delivery notification.
        Consumes 10 API calls per request.
        For JSON bond analysis without PDF, use get_mp_praams_bond_analyze_by_isin.
        For equity PDF reports, use get_mp_praams_report_equity_by_ticker or by_isin.

        Args:
            isin (str): ISIN code of the bond (e.g. 'US7593518852', 'US91282CJN20').
            email (str): Email address for report notifications.
            is_full (bool, optional): True for full report, False for partial.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON object with report generation status:
              - success (bool): whether the report request was accepted
              - item (object|null): report metadata if available, including:
                  - reportId (str): unique report identifier
                  - status (str): generation status (e.g. "queued", "processing", "completed")
                  - downloadUrl (str|null): URL to download the PDF when ready
              - message (str): status message (e.g. "Report generation started")
              - errors (array): list of error messages, empty on success
            The actual report is a PDF sent to the provided email address.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Response is a PDF file download (application/pdf).
            - Coverage: 120,000+ global bonds (corporate and sovereign).
            - Return factors: valuation, performance, analyst view, profitability,
              growth, dividends/coupons.
            - Risk factors: default, volatility, stress-manual, selling difficulty,
              country, other risks.
            - Demo ISINs: US7593518852, US91282CJN20.

        Examples:
            "Full bond report for Realty Income" → isin="US7593518852", email="[email protected]", is_full=True
            "US Treasury bond PDF report" → isin="US91282CJN20", email="[email protected]"
get_mp_praams_report_equity_by_isintool [PRAAMS] Generate a comprehensive multi-factor PDF report for an equity by ISIN code.NetworkCredentialsEnv varsSensitive pathsoutside text
[PRAAMS] Generate a comprehensive multi-factor PDF report for an equity by ISIN code.
        Covers 120,000+ global equities. Report includes valuation, performance, profitability,
        growth, dividends, analyst view, plus risk factors (volatility, stress-manual, liquidity,
        country, solvency). Requires an email for delivery notification. Consumes 10 API calls per request.
        For report by ticker, use get_mp_praams_report_equity_by_ticker.
        For JSON risk scoring without PDF, use get_mp_praams_risk_scoring_by_isin.

        Args:
            isin (str): ISIN code (e.g. 'US0378331005' for Apple, 'US88160R1014' for Tesla).
            email (str): Email address for report notifications.
            is_full (bool, optional): True for full report, False for partial.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON object with report generation status:
              - success (bool): whether the report request was accepted
              - item (object|null): report metadata if available, including:
                  - reportId (str): unique report identifier
                  - status (str): generation status (e.g. "queued", "processing", "completed")
                  - downloadUrl (str|null): URL to download the PDF when ready
              - message (str): status message (e.g. "Report generation started")
              - errors (array): list of error messages, empty on success
            The actual report is a PDF sent to the provided email address.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Response is a PDF file download (application/pdf).
            - Coverage: 120,000+ global equities (stocks, ETFs).
            - Return factors: valuation, performance, analyst view, profitability,
              growth, dividends/coupons.
            - Risk factors: default, volatility, stress-manual, selling difficulty,
              country, other risks.
            - Demo ISINs: US0378331005, US88160R1014, US0231351067.

        Examples:
            "Full Apple equity report by ISIN" → isin="US0378331005", email="[email protected]", is_full=True
            "Tesla equity PDF via ISIN" → isin="US88160R1014", email="[email protected]"
get_mp_praams_report_equity_by_tickertool [PRAAMS] Generate a comprehensive multi-factor PDF report for an equity by ticker symbol.NetworkCredentialsEnv varsSensitive pathsoutside text
[PRAAMS] Generate a comprehensive multi-factor PDF report for an equity by ticker symbol.
        Covers 120,000+ global equities. Report includes valuation, performance, profitability,
        growth, dividends, analyst view, plus risk factors (volatility, stress-manual, liquidity,
        country, solvency). Requires an email for delivery notification. Consumes 10 API calls per request.
        For report by ISIN, use get_mp_praams_report_equity_by_isin.
        For JSON risk scoring without PDF, use get_mp_praams_risk_scoring_by_ticker.

        Args:
            ticker (str): Ticker symbol (e.g. 'AAPL', 'TSLA', 'AMZN').
            email (str): Email address for report notifications.
            is_full (bool, optional): True for full report, False for partial.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON object with report generation status:
              - success (bool): whether the report request was accepted
              - item (object|null): report metadata if available, including:
                  - reportId (str): unique report identifier
                  - status (str): generation status (e.g. "queued", "processing", "completed")
                  - downloadUrl (str|null): URL to download the PDF when ready
              - message (str): status message (e.g. "Report generation started")
              - errors (array): list of error messages, empty on success
            The actual report is a PDF sent to the provided email address.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Response is a PDF file download (application/pdf).
            - Coverage: 120,000+ global equities (stocks, ETFs).
            - Return factors: valuation, performance, analyst view, profitability,
              growth, dividends/coupons.
            - Risk factors: default, volatility, stress-manual, selling difficulty,
              country, other risks.
            - Demo tickers: AAPL, TSLA, AMZN.

        Examples:
            "Full Apple equity report" → ticker="AAPL", email="[email protected]", is_full=True
            "Tesla quick equity analysis" → ticker="TSLA", email="[email protected]"
get_mp_praams_risk_scoring_by_isintool [PRAAMS] Get risk scores and risk-return decomposition for an equity identified by ISIN code.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[PRAAMS] Get risk scores and risk-return decomposition for an equity identified by ISIN code.
        Returns overall PRAAMS ratio (1-7), sub-scores for valuation, performance, profitability,
        growth, dividends, volatility, liquidity, stress-manual, country risk, and solvency.
        Use when assessing investment risk and you have the ISIN. Consumes 10 API calls per request.
        For lookup by ticker instead of ISIN, use get_mp_praams_risk_scoring_by_ticker.
        For a full PDF report, use get_mp_praams_report_equity_by_isin.

        Returns:
          JSON object with Praams envelope:
            - success (bool): whether the request succeeded
            - item (object): equity analysis payload containing:
                - praamsRatio (float): overall PRAAMS score
                - totalReturnScore (int): aggregate return score (1-7 scale)
                - totalRiskScore (int): aggregate risk score (1-7 scale)
                - valuation (object): valuation metrics and score
                - performance (object): performance metrics and score
                - profitability (object): profitability metrics and score
                - growthMomentum (object): growth & momentum metrics and score
                - dividends (object): dividend yield, payout ratio, score
                - analystView (object): consensus target price, recommendations, score
                - volatility (object): historical volatility, VaR, score
                - stressTest (object): stress-manual scenarios and score
                - liquidity (object): trading volume, bid-ask spread, score
                - countryRisk (object): country-level risk assessment and score
                - solvency (object): debt ratios, interest coverage, score
                - descriptions (object|null): narrative risk/return explanations
            - errors (array): list of error messages, empty on success
            - message (str): status message

        Limits (Marketplace rules):
          - 1 request = 10 API calls
          - 100k calls / 24h, 1k requests / minute
          - Output is JSON only
get_mp_praams_risk_scoring_by_tickertool [PRAAMS] Get risk scores and risk-return decomposition for an equity identified by ticker symbol.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[PRAAMS] Get risk scores and risk-return decomposition for an equity identified by ticker symbol.
        Returns overall PRAAMS ratio (1-7), sub-scores for valuation, performance, profitability,
        growth, dividends, volatility, liquidity, stress-manual, country risk, and solvency.
        Use when assessing investment risk for a specific stock or ETF. Consumes 10 API calls per request.
        For lookup by ISIN instead of ticker, use get_mp_praams_risk_scoring_by_isin.
        For a full PDF report, use get_mp_praams_report_equity_by_ticker.

        Returns:
          JSON object with Praams envelope:
            - success (bool): whether the request succeeded
            - item (object): equity analysis payload containing:
                - praamsRatio (float): overall PRAAMS score
                - totalReturnScore (int): aggregate return score (1-7 scale)
                - totalRiskScore (int): aggregate risk score (1-7 scale)
                - valuation (object): valuation metrics and score
                - performance (object): performance metrics and score
                - profitability (object): profitability metrics and score
                - growthMomentum (object): growth & momentum metrics and score
                - dividends (object): dividend yield, payout ratio, score
                - analystView (object): consensus target price, recommendations, score
                - volatility (object): historical volatility, VaR, score
                - stressTest (object): stress-manual scenarios and score
                - liquidity (object): trading volume, bid-ask spread, score
                - countryRisk (object): country-level risk assessment and score
                - solvency (object): debt ratios, interest coverage, score
                - descriptions (object|null): narrative risk/return explanations
            - errors (array): list of error messages, empty on success
            - message (str): status message

        Limits (Marketplace rules):
          - 1 request = 10 API calls
          - 100k calls / 24h, 1k requests / minute
          - Output is JSON only
get_mp_praams_smart_screener_bondtool [PRAAMS] Screen and filter bonds using multi-factor risk-return criteria.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[PRAAMS] Screen and filter bonds using multi-factor risk-return criteria.
        Filter by region, country, sector, currency, yield range, duration range, PRAAMS score ranges (1-7),
        and exclude subordinated or perpetual bonds. Returns paginated matching bonds with scores.
        Consumes 10 API calls per request.
        For equity screening, use get_mp_praams_smart_screener_equity.
        For deep analysis of a single bond, use get_mp_praams_bond_analyze_by_isin.


        Returns:
          JSON object with Praams envelope:
            - item (object):
                - peers (array): matching bond instruments, each containing:
                    - isin (str): bond ISIN
                    - name (str): bond/issuer name
                    - praamsRatio (float): overall PRAAMS score
                    - totalReturnScore (int): return score (1-7)
                    - totalRiskScore (int): risk score (1-7)
                    - yield (float|null): current yield
                    - duration (float|null): effective duration
                    - couponRate (float|null): coupon rate
                    - maturityDate (str|null): maturity date
                    - currency (str): bond currency
                    - country (str): issuer country
                    - sector (str): issuer sector
                - totalCount (int): total matching instruments (for pagination)
            - success (bool): whether the request succeeded
            - message (str): status message
            - errors (array): list of error messages, empty on success

        Notes:
          - All *Min/*Max fields are 1..7 scale integers (nullable).
          - Bond-specific: yieldMin/Max, durationMin/Max, excludeSubordinated, excludePerpetuals.
          - Provide at least one filter value in the JSON body.

        Examples:
            "High-yield EUR bonds low risk" → currency=["EUR"], yieldMin=5, countryRiskMax=3
            "US investment-grade bonds short duration" → regions=[1], durationMax=3, solvencyMin=5
get_mp_praams_smart_screener_equitytool [PRAAMS] Screen and filter equities using multi-factor risk-return criteria.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[PRAAMS] Screen and filter equities using multi-factor risk-return criteria.
        Filter by region, country, sector, industry, market cap, currency, and PRAAMS score ranges (1-7)
        for valuation, performance, profitability, growth, dividends, analyst view, and risk factors.
        Returns paginated matching equities with scores. Consumes 10 API calls per request.
        For bond screening, use get_mp_praams_smart_screener_bond.
        For deep analysis of a single equity, use get_mp_praams_risk_scoring_by_ticker.


        Returns:
          JSON object with Praams envelope:
            - item (object):
                - peers (array): matching equity instruments, each containing:
                    - ticker (str): equity ticker symbol
                    - isin (str): ISIN code
                    - name (str): company name
                    - praamsRatio (float): overall PRAAMS score
                    - totalReturnScore (int): return score (1-7)
                    - totalRiskScore (int): risk score (1-7)
                    - valuation (int): valuation score (1-7)
                    - performance (int): performance score (1-7)
                    - profitability (int): profitability score (1-7)
                    - dividends (int): dividends score (1-7)
                    - country (str): company country
                    - sector (str): company sector
                    - capitalisation (int): market cap category (1=small, 2=mid, 3=large)
                    - currency (str): trading currency
                - totalCount (int): total matching instruments (for pagination)
            - success (bool): whether the request succeeded
            - message (str): status message
            - errors (array): list of error messages, empty on success

        Notes:
          - All *Min/*Max fields are 1..7 scale integers (nullable).
          - Provide at least one filter value in the JSON body.

        Examples:
            "Large-cap US tech stocks with high dividends" → capitalisation=[3], regions=[1], dividendsMin=5
            "European equities low volatility risk" → regions=[2], currency=["EUR"], volatilityMax=2
get_mp_tick_datatool [Marketplace] Fetch individual trade ticks (tick-by-tick data) for US stocks. Use whenNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[Marketplace] Fetch individual trade ticks (tick-by-tick data) for US stocks. Use when
        asked about granular trade-level data, tick history, or microstructure analysis.
        Returns timestamp (ms), price, shares, market center, and sequence for each trade.
        Covers US equities only. Time range defaults to yesterday if not specified.
        This is the paid Marketplace tick data provider. For free-tier tick data, use get_us_tick_data.
        Consumes 10 API calls per request.

        Args:
            ticker (str): Ticker symbol, max 30 chars (e.g. 'AAPL', 'MSFT').
            from_timestamp (int, optional): Start UNIX time in seconds. Default: yesterday start.
            to_timestamp (int, optional): End UNIX time in seconds. Default: yesterday end.
            limit (int, optional): Max ticks to return (1-10000). Default: all in range.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON array of tick objects, each with:
            - timestamp (int): Trade timestamp in UNIX seconds.
            - datetime (str): Human-readable UTC datetime.
            - gmtoffset (int): GMT offset in seconds.
            - type (str): Tick type identifier.
            - price (float): Trade price.
            - volume (int): Number of shares traded.
            - conditions (str): Trade condition codes.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Timestamp params in seconds but response timestamps may differ in precision.
            - US stocks only.

        Examples:
            "AAPL tick data for yesterday" → ticker="AAPL"
            "first 500 TSLA ticks from March 3 2026" → ticker="TSLA", from_timestamp=1741003200, to_timestamp=1741089600, limit=500
            "MSFT trade ticks, max 1000" → ticker="MSFT", limit=1000
get_mp_tradinghours_list_marketstool [TradingHours] List all tracked global markets and exchanges. Use as the starting pointNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[TradingHours] List all tracked global markets and exchanges. Use as the starting point
        to browse available markets before looking up details or checking status.
        Returns FinID, exchange name, MIC code, asset type, and group for each market.
        Filter by group: 'core' (24 G20+ markets), 'extended', 'all', or 'allowed' (your tier).
        To search markets by name/country, use get_mp_tradinghours_lookup_markets.
        For detailed info on one market, use get_mp_tradinghours_market_details.
        Consumes 10 API calls per request.

        Args:
            group (str, optional): Filter markets — 'core' (G20+), 'extended' (global equities),
                'all' (equities + derivatives), 'allowed' (your tier). Default: 'all'.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON array of market objects, each with:
            - fin_id (str): Unique market identifier (e.g. 'us.nyse').
            - exchange (str): Exchange name.
            - market (str): Market name.
            - products (str): Traded product types.
            - country (str): Country name.
            - country_code (str): ISO country code.
            - city (str): City where exchange is located.
            - timezone (str): IANA timezone identifier.
            - timezone_abbr (str): Timezone abbreviation.
            - mic (str): Market Identifier Code (ISO 10383).
            - mic_o (str): Operating MIC.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Core tier: 24 G20+ markets.

        Examples:
            "list all tracked markets" → (no params)
            "show only G20 core markets" → group="core"
            "all equity and derivative markets" → group="all"
get_mp_tradinghours_lookup_marketstool [TradingHours] Search for markets by name, MIC code, country, or free-form query.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[TradingHours] Search for markets by name, MIC code, country, or free-form query.
        Use when the user asks to find a specific exchange or market by keyword (e.g. "Tokyo",
        "XNYS", "Germany"). Covers 900+ global trading schedules.
        To list all markets without searching, use get_mp_tradinghours_list_markets.
        For full details on a found market, pass its fin_id to get_mp_tradinghours_market_details.
        Consumes 10 API calls per request.

        Args:
            q (str, optional): Free-form search query (exchange name, market name, MIC,
                country). Omit to return all markets.
            group (str, optional): Filter results — 'core', 'extended', 'all', 'allowed'.
                Default: 'all'.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON array of matching market objects, each with:
            - fin_id (str): Unique market identifier (e.g. 'us.nyse').
            - exchange (str): Exchange name.
            - market (str): Market name.
            - products (str): Traded product types.
            - country (str): Country name.
            - country_code (str): ISO country code.
            - city (str): City where exchange is located.
            - timezone (str): IANA timezone identifier.
            - timezone_abbr (str): Timezone abbreviation.
            - mic (str): Market Identifier Code (ISO 10383).
            - mic_o (str): Operating MIC.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Over 900 different trading schedules tracked.
            - Omitting 'q' returns all markets (like list endpoint).

        Examples:
            "find NASDAQ market" → q="NASDAQ"
            "search for London Stock Exchange" → q="London Stock Exchange"
            "markets in Japan, core tier" → q="Japan", group="core"
get_mp_tradinghours_market_detailstool [TradingHours] Get detailed metadata for a specific market by its FinID. Use when askedNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[TradingHours] Get detailed metadata for a specific market by its FinID. Use when asked
        about an exchange's timezone, MIC codes, asset types, weekend schedule, or holiday date range.
        Returns country, timezone (IANA), products traded, MIC/MIC extended, acronym, and more.
        Find the FinID first via get_mp_tradinghours_list_markets or get_mp_tradinghours_lookup_markets.
        For real-time open/closed status, use get_mp_tradinghours_market_status instead.
        Consumes 10 API calls per request.

        Args:
            fin_id (str): Market FinID, case-insensitive (e.g. 'us.nyse', 'gb.lse').
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON object with:
            - fin_id (str): Unique market identifier (e.g. 'us.nyse').
            - exchange (str): Exchange name.
            - market (str): Market name.
            - products (str): Traded product types.
            - timezone (str): IANA timezone identifier.
            - local_time (str): Current local time at the exchange.
            - regular (object): Regular session hours with open/close times.
            - pre_market (object|null): Pre-market session hours, if applicable.
            - post_market (object|null): Post-market session hours, if applicable.
            - holidays (array): Upcoming holidays with date, name, and schedule impact.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Returns IANA timezone identifiers.

        Examples:
            "NYSE market details" → fin_id="us.nyse"
            "London Stock Exchange info" → fin_id="gb.lse"
            "Tokyo Stock Exchange details" → fin_id="jp.jpx"
get_mp_tradinghours_market_statustool [TradingHours] Check whether a market is currently open or closed. Use when askedNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[TradingHours] Check whether a market is currently open or closed. Use when asked
        "is the NYSE open?", "when does Tokyo close?", or any real-time market status question.
        Returns status (Open/Closed), reason, time until next status change, and next bell time.
        Does not cover circuit breakers or individual stock trading halts.
        Find the FinID first via get_mp_tradinghours_list_markets or get_mp_tradinghours_lookup_markets.
        For static market metadata (timezone, MIC, holidays), use get_mp_tradinghours_market_details.
        Consumes 10 API calls per request.

        Args:
            fin_id (str): Market FinID, case-insensitive (e.g. 'us.nyse').
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON object with:
            - fin_id (str): Unique market identifier.
            - exchange (str): Exchange name.
            - market (str): Market name.
            - status (str): Current status — 'Open' or 'Closed'.
            - reason (str): Reason for current status (e.g. 'Primary Trading Session', 'After-Hours').
            - local_time (str): Current local time at the exchange.
            - next_bell_action (str): Next expected action ('open' or 'close').
            - next_bell_time_utc (str): UTC timestamp of next bell event.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Does NOT include circuit breakers or trading halts.
            - Cache-friendly: use the 'until' field to know when to re-check.

        Examples:
            "is NYSE open right now" → fin_id="us.nyse"
            "check if London Stock Exchange is trading" → fin_id="gb.lse"
            "NASDAQ market status" → fin_id="us.nasdaq"
get_news_word_weightstool Get top weighted keywords from news articles for a given stock ticker over a date range.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get top weighted keywords from news articles for a given stock ticker over a date range.
        Returns word frequency and importance scores, useful for identifying dominant themes and narratives in coverage.
        Use when analyzing what topics or terms dominate news about a company.
        For raw news articles, use get_company_news instead.
        For aggregated sentiment scores, use get_sentiment_data instead.

        Args:
            ticker (str): Symbol to analyze (e.g., 'AAPL.US'); mapped to 's'.
            start_date (str, optional): YYYY-MM-DD; mapped to filter[date_from].
            end_date (str, optional): YYYY-MM-DD; mapped to filter[date_to].
            limit (int, optional): Number of top words; mapped to page[limit].
            fmt (str): 'json' (default). (CSV/XML not documented for this endpoint.)
            api_token (str, optional): Per-call token override.

        Returns:
            Object with:
            - data (object): date-grouped records with word-weight mappings
            - meta (object): pagination metadata
            - links (object): pagination links (self, next, prev)

        Examples:
            "Top news keywords for Apple last month" → ticker="AAPL.US", start_date="2026-02-01", end_date="2026-02-28"
            "Nvidia word weights, top 20" → ticker="NVDA.US", limit=20
            "Amazon news themes in Q1 2026" → ticker="AMZN.US", start_date="2026-01-01", end_date="2026-03-06"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_rates_funding_stresstool Fetch funding-stress spreads. Use when the user asks about money-market funding stress,NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch funding-stress spreads. Use when the user asks about money-market funding stress,
        rate spreads between two legs (e.g. EFFR minus SOFR for code EFFR_SOFR), or funding-stress
        indicators in basis points.

        Returns funding-stress spread time series, including the two component legs and their
        rates. Filterable by code and date range. This endpoint is NOT paginated. If no dates are
        given, the most recent 30 days are returned.

        Args:
            code (str, optional): Spread code — one of 'EFFR_SOFR', 'OBFR_EFFR', 'TGCR_BGCR',
                'SOFR_TARGET_LOWER', 'EFFR_TARGET_MID', 'TARGET_UPPER_SOFR'.
            date_from (str, optional): Start date filter (YYYY-MM-DD).
            date_to (str, optional): End date filter (YYYY-MM-DD).
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - date (str): observation date (YYYY-MM-DD)
            - code (str): spread code
            - value_bps (float): spread value in basis points
            - formula (str): spread formula
            - leg_a (str): first leg code
            - leg_b (str): second leg code
            - leg_a_rate (float): first leg rate
            - leg_b_rate (float): second leg rate

        Examples:
            "EFFR-SOFR funding stress spread" → get_rates_funding_stress(code="EFFR_SOFR")
            "Funding stress for 2025" → get_rates_funding_stress(date_from="2025-01-01", date_to="2025-12-31")
get_rates_policy_ratestool Fetch central bank policy rates. Use when the user asks about policy interest rates set byNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch central bank policy rates. Use when the user asks about policy interest rates set by
        central banks (e.g. Fed funds rate, ECB, Bank of England), or policy rate history by
        country or central bank.

        Returns central bank policy rate time series. Filterable by code, country, central bank,
        and date range. Paginated.

        Args:
            code (str, optional): Rate code — one of 'FED_TARGET_LOWER', 'FED_TARGET_UPPER',
                'ECB_DFR', 'ECB_MRO', 'ECB_MLF', 'BOE_BANK_RATE' (comma-separated list allowed).
            country (str, optional): Country: 'US', 'EU', or 'GB' (comma-separated list allowed).
            central_bank (str, optional): Central bank: 'FED', 'ECB', or 'BOE' (comma-separated list allowed).
            date_from (str, optional): Start date filter (YYYY-MM-DD).
            date_to (str, optional): End date filter (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - date (str): observation date (YYYY-MM-DD)
            - code (str): rate code
            - country (str): country
            - central_bank (str): central bank
            - rate (float): policy rate
            - source (str): data source
            - source_series_id (str): upstream series identifier

        Examples:
            "Fed funds policy rate history" → get_rates_policy_rates(central_bank="FED")
            "ECB policy rate for 2025" → get_rates_policy_rates(country="EU", date_from="2025-01-01")
get_rates_reference_ratestool Fetch benchmark reference interest rates. Use when the user asks about reference rates suchNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch benchmark reference interest rates. Use when the user asks about reference rates such
        as SOFR, EFFR, SONIA, ESTR, SOFR averages/index, or about overnight rate percentiles and
        traded volumes in USD/GBP/EUR money markets.

        Returns reference rate time series by code and currency, including NY Fed percentiles and
        traded volume where the source publishes them. Filterable by code, currency, and date
        range. Paginated.

        Args:
            code (str, optional): Rate code, or a comma-separated list. Supported codes:
                'SOFR', 'EFFR', 'OBFR', 'TGCR', 'BGCR' (USD overnight), 'SOFR30D', 'SOFR90D',
                'SOFR180D', 'SOFRINDEX' (SOFR averages and compounded index), 'SONIA' (GBP),
                'ESTR' (EUR).
            currency (str, optional): Currency 'USD', 'GBP', or 'EUR' (or a comma-separated list).
            date_from (str, optional): Start date filter (YYYY-MM-DD).
            date_to (str, optional): End date filter (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - date (str): observation date (YYYY-MM-DD)
            - code (str): rate code
            - currency (str): currency
            - rate_type (str): 'overnight', 'average', or 'index'
            - rate (float): rate value
            - source (str): data source
            - source_series_id (str): upstream series identifier
            - percentiles (dict|null): {p1, p25, p75, p99} distribution, NY Fed rates only
            - volume_billion_usd (float|null): traded volume in USD billions, NY Fed rates only
            - revision_flag (str|null): upstream revision marker

        Examples:
            "SOFR rate history" → get_rates_reference_rates(code="SOFR")
            "EUR reference rates for 2025" → get_rates_reference_rates(currency="EUR", date_from="2025-01-01")
get_real_estate_countriestool List the countries covered by the EODHD Real Estate Data API (BIS residentialNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
List the countries covered by the EODHD Real Estate Data API (BIS residential
        property prices) and which datasets each country carries.

        Use this to discover available country codes before calling the other real-estate
        tools. Each country flags whether it has Selected Property Prices (SPP, headline
        harmonised series via get_real_estate_selected_prices) and Detailed Property
        Prices (DPP, granular national series via get_real_estate_detailed_prices).
        Consumes 5 API calls per request.

        Args:
            sort (str, optional): 'code', '-code', 'name', or '-name'.
            fmt (str): 'json' or 'csv'. Default 'json'.
            limit (int, optional): Records per page (page[limit]), 1..500. Default 50.
            offset (int, optional): Pagination offset (page[offset]), >= 0. Default 0.
            api_token (str, optional): Per-call token override. If not provided, env token is used.

        Returns:
            Envelope with:
            - data (array): each item with
                - code (str): ISO alpha-2 country code (e.g. 'US')
                - name (str): country name
                - has_spp (bool): Selected Property Prices available
                - has_dpp (bool): Detailed Property Prices available
            - meta (object): { total, offset, limit }
            - links (object): { next } — next page URL or null

        Examples:
            "Which countries have real estate data?" → get_real_estate_countries()
            "Countries sorted by name" → get_real_estate_countries(sort="name")
            "Second page of 100 countries" → get_real_estate_countries(limit=100, offset=100)
get_real_estate_detailed_pricestool Get Detailed Property Prices (DPP) for a country — the granular national residentialNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get Detailed Property Prices (DPP) for a country — the granular national residential
        property price series from the BIS Real Estate Data API, broken down by covered area,
        property type, vintage (new vs existing), and frequency.

        Use this for detailed analysis beyond the headline series returned by
        get_real_estate_selected_prices. Discover the available series combinations for a
        country with get_real_estate_detailed_series, and available country codes with
        get_real_estate_countries. Consumes 5 API calls per request.

        Args:
            code (str): ISO alpha-2 country code, case-insensitive (e.g. 'AE', 'ae').
            area (str, optional): BIS covered-area dimension code (filter[area]).
            property_type (str, optional): Property type code (filter[property_type]).
            vintage (str, optional): Vintage code, e.g. new vs existing dwellings (filter[vintage]).
            freq (str, optional): 'Q', 'A', 'M', or 'H' (filter[freq]).
            from_period (str, optional): Start period following the series frequency,
              e.g. '2020-01' or '2020-Q1' (filter[from]).
            to_period (str, optional): End period (filter[to]).
            sort (str, optional): 'period', '-period', 'value', or '-value'.
            fmt (str): 'json' or 'csv'. Default 'json'.
            limit (int, optional): Records per page (page[limit]). Up to 250 for fmt='json'
                (a larger JSON page exceeds what an MCP client can accept) and up to 500
                for fmt='csv'. Default 50. Use offset to walk further.
            offset (int, optional): Pagination offset (page[offset]), >= 0. Default 0.
            api_token (str, optional): Per-call token override. If not provided, env token is used.

        Returns:
            Envelope with:
            - data (array): each item with
                - period (str): observation period
                - value (float): series value
                - frequency (str): series frequency
                - covered_area (str), covered_area_label (str)
                - property_type (str), property_type_label (str)
                - vintage (str), vintage_label (str)
                - unit_measure (str), unit_measure_label (str | null)
            - meta (object): { country_code, source, dataset, total, offset, limit, filters }
            - links (object): { next } — next page URL or null

        Examples:
            "Detailed UAE house prices for property type 1" → get_real_estate_detailed_prices(code="AE", property_type="1")
            "Quarterly detailed US series" → get_real_estate_detailed_prices(code="US", freq="Q")
get_real_estate_detailed_seriestool List the catalogue of Detailed Property Prices (DPP) series available for a countryNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
List the catalogue of Detailed Property Prices (DPP) series available for a country
        in the BIS Real Estate Data API.

        Use this to discover the exact covered-area, property-type, and vintage combinations
        you can request from get_real_estate_detailed_prices. This is a parameterless
        catalogue endpoint (JSON only — fmt=csv is not honoured). Discover available country
        codes with get_real_estate_countries. Consumes 5 API calls per request.

        The endpoint returns the country's whole series catalogue in one response — it has no
        pagination upstream. The catalogue is small (at most a couple of dozen series per
        country), so the response stays well inside client limits.

        Args:
            code (str): ISO alpha-2 country code, case-insensitive (e.g. 'US', 'us').
            api_token (str, optional): Per-call token override. If not provided, env token is used.

        Returns:
            Envelope with:
            - data (array): each item with
                - covered_area (str), covered_area_label (str)
                - property_type (str), property_type_label (str)
                - vintage (str), vintage_label (str)
                - compiling_org (str)
                - priced_unit (str)
                - seasonal_adj (str)
                - unit_measure (str), unit_measure_label (str)
                - title (str): human-readable series title
            - meta (object): { country_code, total }

        Examples:
            "What detailed real estate series does the US have?" → get_real_estate_detailed_series(code="US")
get_real_estate_selected_pricestool Get Selected Property Prices (SPP) for a country — the headline harmonisedNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get Selected Property Prices (SPP) for a country — the headline harmonised
        residential property price series from the BIS Real Estate Data API.

        This is the top-level national series (nominal or real, as an index or year-on-year
        change). For granular breakdowns by area, property type, vintage, and frequency,
        use get_real_estate_detailed_prices instead. Discover available country codes with
        get_real_estate_countries. Consumes 5 API calls per request.

        Args:
            code (str): ISO alpha-2 country code, case-insensitive (e.g. 'US', 'us').
            type (str, optional): 'nominal' or 'real' (filter[type]).
            metric (str, optional): 'index' or 'yoy' (filter[metric]).
            from_period (str, optional): Start period 'YYYY-Qn', e.g. '2020-Q1' (filter[from]).
            to_period (str, optional): End period 'YYYY-Qn', e.g. '2024-Q4' (filter[to]).
            sort (str, optional): 'period', '-period', 'value', or '-value'.
            fmt (str): 'json' or 'csv'. Default 'json'.
            limit (int, optional): Records per page (page[limit]), 1..500. Default 50.
            offset (int, optional): Pagination offset (page[offset]), >= 0. Default 0.
            api_token (str, optional): Per-call token override. If not provided, env token is used.

        Returns:
            Envelope with:
            - data (array): each item with
                - period (str): observation period (e.g. '2024-Q1')
                - value (float): price index or year-on-year value
                - type (str): 'nominal' or 'real'
                - metric (str): 'index' or 'yoy'
            - meta (object): { country_code, country_name, type, metric, base_year,
              frequency, source, total, from, to, offset, limit }
            - links (object): { next } — next page URL or null

        Examples:
            "US real house price index" → get_real_estate_selected_prices(code="US", type="real", metric="index")
            "UK nominal YoY house prices since 2020" → get_real_estate_selected_prices(code="GB", type="nominal", metric="yoy", from_period="2020-Q1")
get_realtime_minute_barstool Get the recent CLOSED one-minute OHLCV bars held by the real-time service for one symbol.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get the recent CLOSED one-minute OHLCV bars held by the real-time service for one symbol.

        Use when a stream was interrupted and the gap needs filling, or when a short window of
        recent minute bars is wanted without opening a WebSocket. For a live stream use
        capture_realtime_ws; for a single delayed snapshot use get_live_price_data; for deep
        intraday history use get_intraday_historical_data.

        Only minutes in which the symbol actually traded produce a bar, so the result is sparse
        rather than one bar per consecutive minute — a quiet name can return a handful of bars
        spanning several hours.

        Args:
            market (str): 'us' or 'eu'. These are the only markets that keep bars.
            symbol (str): US equities use plain tickers ('AAPL'); European equities use
                TICKER.EXCHANGE ('GSK.LSE'). The native Cboe symbol and the un-hyphenated
                alias of a dual-class ticker ('ERICB.ST' for 'ERIC-B.ST') are both accepted,
                and the reply always reports the canonical EODHD ticker in 's'.
            api_token (str, optional): Per-call token override. If omitted, env token is used.

        Returns:
            Array of bars, oldest first, each with:
            - s (str): canonical EODHD ticker, regardless of the form requested
            - i (str): bar interval, '1m'
            - t (int): bar OPEN time, epoch ms UTC
            - o, h, l, c (float): open, high, low, close
            - v (int): volume in shares accumulated within the bar

            An unknown symbol returns an empty array rather than an error.
get_sanctions_entitiestool Search sanctioned entities (e.g. OFAC). Use when the user asks about sanctionedNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Search sanctioned entities (e.g. OFAC). Use when the user asks about sanctioned
        individuals, companies, vessels, or aircraft, OFAC SDN listings, or entities under a
        specific sanctions program.

        Returns sanctioned entities with aliases, identifiers, programs, and listing status.
        Filterable by source, entity type, program, country, free-text query, and active status.
        Paginated.

        Args:
            source (str, optional): Data source. Currently only 'ofac' is accepted.
            type (str, optional): Entity type: 'individual', 'entity', 'vessel', or 'aircraft'.
            program (str, optional): Sanctions program.
            country (str, optional): Country.
            q (str, optional): Free-text search (minimum 2 characters).
            active (bool, optional): Filter by active listing status. When omitted, only active
                listings are returned; pass False to return ONLY inactive/delisted entries
                (active ones are then excluded). There is no single-call "all" mode.
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - source (str): data source
            - source_uid (str): source unique identifier
            - entity_type (str): entity type
            - name (str): entity name
            - programs (list): sanctions programs
            - country (str|null): country
            - remarks (str|null): remarks
            - listed_date (str|null): date listed
            - is_active (bool): active listing status
            - aliases (list): known aliases
            - identifiers (dict): map of identifier type → list of values

        Examples:
            "OFAC sanctioned individuals in Russia" → get_sanctions_entities(source="ofac", type="individual", country="Russia")
            "Search sanctioned entities for 'Gazprom'" → get_sanctions_entities(q="Gazprom")
get_sanctions_programstool List sanctions programs with entity counts. Use when the user asks which sanctionsNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
List sanctions programs with entity counts. Use when the user asks which sanctions
        programs exist, how many entities are under each program, or wants to browse available
        programs.

        Returns each sanctions program and the number of entities listed under it. This endpoint
        returns the full list and is not paginated.

        Args:
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - program (str): sanctions program
            - count (int): number of entities under the program

        Examples:
            "List sanctions programs" → get_sanctions_programs()
get_sanctions_sourcestool List available sanctions data sources. Use when the user asks which sanctions lists orNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
List available sanctions data sources. Use when the user asks which sanctions lists or
        sources are available (e.g. OFAC), or wants to discover valid values for the 'source'
        parameter on other sanctions tools.

        Returns the available sanctions sources. This endpoint returns the full list and is not
        paginated.

        Args:
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - name (str): source name

        Examples:
            "List sanctions sources" → get_sanctions_sources()
get_sanctions_vesselstool Search sanctioned vessels (e.g. OFAC). Use when the user asks about sanctioned ships,NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Search sanctioned vessels (e.g. OFAC). Use when the user asks about sanctioned ships,
        vessels under sanctions, or vessel details by IMO number, flag, or type.

        Returns sanctioned vessels with identifiers (IMO, MMSI, call sign), flag, tonnage, owner,
        and program context. Filterable by source, IMO, flag, vessel type, free-text query, and
        program. Paginated. Only currently active vessel listings are returned.

        Args:
            source (str, optional): Data source. Currently only 'ofac' is accepted.
            imo (str, optional): IMO number.
            flag (str, optional): Flag state.
            vessel_type (str, optional): Vessel type.
            q (str, optional): Free-text search (minimum 2 characters).
            program (str, optional): Sanctions program.
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - call_sign (str|null): call sign
            - vessel_type (str|null): vessel type
            - flag (str|null): flag state
            - tonnage (int|null): tonnage
            - gross_tonnage (int|null): gross tonnage
            - owner (str|null): owner
            - imo_number (str|null): IMO number
            - mmsi (str|null): MMSI
            - entity_source_uid (str): linked entity source UID
            - entity_name (str): linked entity name
            - source (str): data source
            - programs (list): sanctions programs
            - country (str|null): country
            - is_active (bool): active listing status

        Examples:
            "Sanctioned vessels flagged Panama" → get_sanctions_vessels(flag="Panama")
            "Vessel with IMO 9160670" → get_sanctions_vessels(imo="9160670")
get_sec_filingstool Fetch parsed US SEC filing data for a company: an overview of what has been filed, or theNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch parsed US SEC filing data for a company: an overview of what has been filed, or the
        detailed, structured contents of its annual (10-K), quarterly (10-Q), or material-event
        (8-K) filings. Use when the user asks about a company's SEC filings, its 10-K / 10-Q /
        8-K, annual or quarterly report financials pulled straight from filings, or material events
        disclosed to the SEC.

        Covers US-listed companies. Financial-statement fields in 10-K / 10-Q filings are parsed
        from the filing itself (income statement, balance sheet, cash flow); any individual field
        may be null when the filing does not report it. Requires the All-in-One plan. Costs 10 API
        calls per request.

        This is distinct from the SEC Form 4 insider-transaction feed — for insider buys and sells
        use the insider-transactions tool instead.

        Args:
            symbol (str): US-listed ticker, e.g. "AAPL" or "AAPL.US". The ".US" suffix is optional.
            form (str, optional): Which filing type to return. Omit for the overview (counts and the
                latest filing of each type). Otherwise "10k" (annual), "10q" (quarterly), or "8k"
                (material events). Flexible spellings like "10-K" or "Form 8-K" are accepted.
            limit (int, optional): Records per page for the list endpoints, 1..100 (default 20
                upstream). Ignored for the overview, which is not paginated.
            offset (int, optional): Pagination offset for the list endpoints (default 0). Ignored
                for the overview.
            api_token (str, optional): Per-call token override.

        Returns:
            Overview (form omitted): a data object with ticker, exchange, name, cik, and a filings
            map keyed by "10k", "10q", "8k", "form4", each holding {count, latest, url}.

            10-K / 10-Q (form="10k"/"10q"): an envelope with data (array of filings), meta
            (total, page{offset,limit}), and links (next page URL or null). Each filing carries
            accession_number, filed_at, period_of_report, fiscal_year_end (10-K) or
            fiscal_quarter_end + fiscal_quarter (10-Q), plus parsed income-statement, balance-sheet
            and cash-flow fields (revenue, net_income, ebitda, eps_basic, total_assets,
            stockholders_equity, operating_cash_flow, free_cash_flow, and many more; any may be null).

            8-K (form="8k"): the same envelope; each item carries accession_number, filed_at,
            period_of_report, items (list of item codes), item_sections ({item, title, text}), and
            exhibits ({number, description}).

        Notes:
            - 10 API calls per request.
            - Requires the All-in-One plan.
            - The overview has no pagination; limit/offset apply only to 10k/10q/8k.
            - For Form 4 insider transactions, use the insider-transactions tool, not this one.

        Examples:
            "What has Apple filed with the SEC?" -> get_sec_filings(symbol="AAPL.US")
            "Apple's latest annual report financials" -> get_sec_filings(symbol="AAPL", form="10k", limit=1)
            "Tesla's recent quarterly filings" -> get_sec_filings(symbol="TSLA.US", form="10q")
            "Apple's most recent 8-K material events" -> get_sec_filings(symbol="AAPL", form="8k", limit=5)
get_sentiment_datatool Get aggregated sentiment scores for stocks based on news and social media analysis.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get aggregated sentiment scores for stocks based on news and social media analysis.
        Returns daily sentiment polarity, news buzz, and weighted scores for one or more tickers over a date range.
        Use when analyzing market mood, news impact, or sentiment-driven trading signals.
        For raw news articles, use get_company_news instead.
        For word frequency in news, use get_news_word_weights instead.

        Args:
            symbols (str): One or more comma-separated tickers (e.g., 'AAPL.US,BTC-USD.CC').
            start_date (str, optional): YYYY-MM-DD, maps to 'from'.
            end_date (str, optional): YYYY-MM-DD, maps to 'to'.
            fmt (str): 'json' (default). (XML not documented for this endpoint.)
            api_token (str, optional): Per-call override; env token used if omitted.

        Returns:
            Object keyed by ticker, each value with:
            - date (str): sentiment date
            - count (int): number of articles analyzed
            - normalized (float): normalized sentiment score
            - buzz (object): articlesInLastWeek, weeklyAverage, buzz
            - sentiment (object): bearishPercent, bullishPercent

        Examples:
            "Apple sentiment this month" → symbols="AAPL.US", start_date="2026-03-01", end_date="2026-03-06"
            "Bitcoin and Ethereum sentiment" → symbols="BTC-USD.CC,ETH-USD.CC"
            "Microsoft sentiment in Q4 2025" → symbols="MSFT.US", start_date="2025-10-01", end_date="2025-12-31"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_stock_market_logostool Get a company logo in PNG format (200x200 with transparency). Use when the user needsNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get a company logo in PNG format (200x200 with transparency). Use when the user needs
        a raster logo image for a stock or company for display, reports, or UI.

        Covers 40,000+ logos across 60+ exchanges. Costs 10 API calls per request.
        Symbol must be in TICKER.EXCHANGE format (e.g., 'AAPL.US', 'BMW.XETRA').

        For vector/SVG logos (US and Toronto only), use get_stock_market_logos_svg instead.

        Args:
            symbol (str): Ticker in TICKER.EXCHANGE format (e.g. 'AAPL.US', 'BMW.XETRA').
            api_token (str, optional): Per-call token override.


        Returns:
            Binary PNG image data (200x200 with transparency).
            When returned via JSON wrapper, base64-encoded image string.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Response is a binary PNG image.
            - Supported exchanges include: AS, AT, AU, BA, BK, BR, CO, CSE,
              DU, F, HE, HK, HM, IC, IR, JK, JSE, KLSE, KO, KQ, LS, LSE, MC,
              MU, MX, NEO, OL, PA, SHE, SHG, SN, SA,
              ST, STU, SW, TA, TO, TW, TWO, US, V, VI, VS, VX, XETRA.

        Examples:
            "Apple logo" → get_stock_market_logos(symbol="AAPL.US")
            "BMW logo from XETRA" → get_stock_market_logos(symbol="BMW.XETRA")
get_stock_market_logos_svgtool Get a company logo in SVG vector format. Use when the user needs a scalable vector logoNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get a company logo in SVG vector format. Use when the user needs a scalable vector logo
        for high-quality rendering, web embedding, or print.

        Limited to US and TO (Toronto) exchanges only. Costs 10 API calls per request.
        Symbol must be in TICKER.EXCHANGE format (e.g., 'AAPL.US', 'RY.TO').

        For PNG logos with broader exchange coverage (60+ exchanges), use get_stock_market_logos.

        Args:
            symbol (str): Ticker in TICKER.EXCHANGE format (e.g. 'AAPL.US', 'RY.TO').
            api_token (str, optional): Per-call token override.


        Returns:
            SVG image data as XML string (vector logo, scalable).

        Notes:
            - Marketplace product: 10 API calls per request.
            - Response is SVG image data (XML text).
            - Limited to US and TO exchanges.

        Examples:
            "Apple SVG logo" → get_stock_market_logos_svg(symbol="AAPL.US")
            "Royal Bank of Canada vector logo" → get_stock_market_logos_svg(symbol="RY.TO")
get_stocks_from_searchtool Search for financial instruments by name, ticker, or ISIN. Use when the user wants toNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Search for financial instruments by name, ticker, or ISIN. Use when the user wants to
        find a ticker symbol, look up a company by name, resolve an ISIN, or discover instruments
        matching a keyword.

        Searches across stocks, ETFs, mutual funds, bonds, indices, and crypto. Returns matching
        instruments with their ticker codes, exchange, type, and ISIN. Filterable by exchange
        and instrument type.

        This is the discovery/lookup tool. Once you have a ticker, use other tools (e.g.,
        get_eod_historical_data, get_fundamentals_data) to fetch actual data.

        Args:
            query (str): Ticker, company name, or ISIN to search (e.g., 'AAPL', 'Apple Inc', 'US0378331005').
            limit (int): Number of results (default 15, max 500).
            bonds_only (bool, optional): If True, return only bonds.
            exchange (str, optional): Exchange code filter (e.g., 'US', 'PA', 'FOREX', 'NYSE').
            type (str, optional): One of {'all','stock','etf','fund','bond','index','crypto'}.
            fmt (str): Must be 'json'.
            api_token (str, optional): Per-call API token override (demo token does NOT work for Search).


        Returns:
            Array of matching instruments, each with:
            - Code (str): ticker symbol
            - Exchange (str): exchange code
            - Name (str): instrument name
            - Type (str): instrument type (e.g. "Common Stock", "ETF")
            - Country (str): country of listing
            - Currency (str): trading currency
            - ISIN (str): ISIN code
            - previousClose (float): last closing price
            - previousCloseDate (str): date of last close (YYYY-MM-DD)

        Examples:
            "Find Apple stock" → get_stocks_from_search(query="Apple Inc", type="stock")
            "Search for ISIN US0378331005" → get_stocks_from_search(query="US0378331005")
            "Crypto assets matching ETH" → get_stocks_from_search(query="ETH", type="crypto", limit=10)


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_support_resistance_levelstool Calculate pivot-point-based support and resistance levels for any stock, ETF, index, or crypto.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Calculate pivot-point-based support and resistance levels for any stock, ETF, index, or crypto.
        Fetches historical OHLCV data and computes support/resistance levels using one of five
        standard pivot point methods: Classic (Floor), Fibonacci, Woodie, Camarilla, or DeMark.
        Each record in the result corresponds to one bar from the price history, with the calculated
        levels that traders use to identify potential reversal zones, entry/exit points, and stop-loss placement.

        Formulas:
            Classic:    PP = (H + L + C) / 3;  R1 = 2*PP - L;  S1 = 2*PP - H;  R2 = PP + (H - L);  S2 = PP - (H - L)
            Fibonacci:  PP = (H + L + C) / 3;  R1 = PP + 0.382*(H - L);  S1 = PP - 0.382*(H - L)
            Woodie:     PP = (H + L + 2*C) / 4  (extra weight on close)
            Camarilla:  Uses close +/- range * multipliers (1.1/12, 1.1/6, 1.1/4, 1.1/2)
            DeMark:     X depends on open vs close relationship; PP = X/4

        Args:
            ticker: Symbol in SYMBOL.EXCHANGE format (e.g. 'AAPL.US').
                    If you only have a company name or ISIN, call resolve_ticker first.
            method: Pivot point method — 'classic', 'fibonacci', 'woodie', 'camarilla', or 'demark'. Default 'classic'.
            period: Price bar period — 'd' (daily), 'w' (weekly), 'm' (monthly). Default 'd'.
            start_date: Start date in YYYY-MM-DD format (optional).
            end_date: End date in YYYY-MM-DD format (optional).
            api_token: Override API token for this call (optional).

        Returns:
            Array of objects, each with:
            - date (str): YYYY-MM-DD
            - open, high, low, close (float): OHLC prices for the bar
            - method (str): calculation method used
            - pivot_point (float): the central pivot level
            - resistance_1, resistance_2, resistance_3 (float): resistance levels (count varies by method)
            - support_1, support_2, support_3 (float): support levels (count varies by method)

        Examples:
            "Classic pivot points for Apple last month" → ticker="AAPL.US", method="classic", start_date="2026-02-01"
            "Fibonacci support/resistance for Bitcoin weekly" → ticker="BTC-USD.CC", method="fibonacci", period="w"
            "Camarilla levels for Tesla in 2025" → ticker="TSLA.US", method="camarilla", start_date="2025-01-01", end_date="2025-12-31"
get_symbol_change_historytool Get ticker symbol change history -- tracks when US stocks changed their ticker symbol or company name.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get ticker symbol change history -- tracks when US stocks changed their ticker symbol or company name.
        Returns old symbol, new symbol, company name, exchange, and effective date. Data available from 2022-07-22, US exchanges only.
        Use when the user asks about ticker renames, symbol changes, rebranding events, or needs to map old tickers to new ones.
        This is the only tool for symbol/ticker change tracking.

        Args:
            start_date (str, optional): 'from' in YYYY-MM-DD (e.g., '2022-10-01').
            end_date (str, optional):   'to' in YYYY-MM-DD   (e.g., '2022-11-01').
            fmt (str): 'json' (default).
            api_token (str, optional): Per-call token override; env token used if omitted.

        Returns:
            Array of symbol change records, each with:
            - old_code (str): previous ticker symbol
            - old_exchange (str): previous exchange code
            - old_country (str): previous country code
            - new_code (str): new ticker symbol
            - new_exchange (str): new exchange code
            - new_country (str): new country code
            - date (str): effective date of change

        Examples:
            "Symbol changes this month" → start_date="2026-03-01", end_date="2026-03-06"
            "Ticker renames in 2025" → start_date="2025-01-01", end_date="2025-12-31"
            "Recent symbol changes last 90 days" → start_date="2025-12-06", end_date="2026-03-06"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_technical_indicatorstool Compute technical indicators for any ticker over a date range.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Compute technical indicators for any ticker over a date range.
        Supported indicators: SMA, EMA, WMA, MACD, RSI, Stochastic, StochRSI, DMI/ADX, ATR,
        CCI, Parabolic SAR, Beta, Bollinger Bands, Volatility, Average Volume, and split-adjusted prices.
        Each indicator has configurable periods, and results include a time series of computed values.
        Consumes 5 API calls per request.
        For raw OHLCV price data, use get_historical_stock_prices instead.
        For fundamental analysis, use get_fundamentals_data instead.

        Returns:
            Array of objects, each with 'date' (str, YYYY-MM-DD) plus indicator-specific fields:
            - sma/ema/wma: {sma|ema|wma} (float)
            - rsi: {rsi} (float, 0-100)
            - macd: {macd, macd_signal, macd_hist} (float)
            - stochastic: {slow_k, slow_d} (float)
            - stochrsi: {stochrsi} (float)
            - bbands: {uband, mband, lband} (float — upper/middle/lower)
            - atr: {atr} (float)
            - adx: {adx} (float)
            - dmi: {dmi} (float)
            - cci: {cci} (float)
            - sar: {sar} (float)
            - beta: {beta} (float)
            - volatility: {volatility} (float)
            - avgvol: {avgvol} (int)
            - avgvolccy: {avgvolccy} (float — volume * close)
            - splitadjusted: {open, high, low, close, volume} (split-adjusted OHLCV)
            - stddev: {stddev} (float)
            - slope: {slope} (float)

            If filter is set (e.g. 'last_sma'), returns a single scalar value.

        Examples:
            "50-day SMA for Apple in 2025" → ticker="AAPL.US", function="sma", period=50, start_date="2025-01-01", end_date="2025-12-31"
            "RSI(14) for Bitcoin last 3 months" → ticker="BTC-USD.CC", function="rsi", period=14, start_date="2025-12-06"
            "MACD for Siemens with custom periods" → ticker="SIE.XETRA", function="macd", fast_period=12, slow_period=26, signal_period=9

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_upcoming_dividendstool Get historical and upcoming dividend payments for stocks.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get historical and upcoming dividend payments for stocks.
        Returns ex-dividend dates, payment dates, dividend amounts, and currency for a given symbol or date.
        Requires at least one of 'symbol' or 'date_eq'. Supports date range filtering and pagination.
        Use when the user asks about dividend dates, payout history, yield data, or ex-dividend calendars.
        For IPO calendar, use get_upcoming_ipos. For stock splits calendar, use get_upcoming_splits.


        Returns:
            Array of dividend records, each with:
            - code (str): ticker symbol
            - exchange (str): exchange code
            - date (str): ex-dividend date
            - declarationDate (str): declaration date
            - recordDate (str): record date
            - paymentDate (str): payment date
            - period (str): frequency (e.g. 'Quarterly', 'Annual')
            - value (float): adjusted dividend per share
            - unadjustedValue (float): unadjusted dividend per share
            - currency (str): dividend currency

        Examples:
            "Apple dividends in 2025" → symbol="AAPL.US", date_from="2025-01-01", date_to="2025-12-31"
            "All dividends on March 15" → date_eq="2026-03-15"
            "Microsoft dividends this quarter" → symbol="MSFT.US", date_from="2026-01-01", date_to="2026-03-31"


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_upcoming_earningstool Get upcoming and recent earnings report dates for stocks.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get upcoming and recent earnings report dates for stocks.
        Returns scheduled earnings dates, EPS estimates, and actual results when available.
        Filter by specific symbols or a date range (defaults to next 7 days).
        Use when the user asks "when does X report earnings?" or wants an earnings calendar.
        For EPS/revenue trend analysis and analyst revisions, use get_earnings_trends instead.
        For macroeconomic events (GDP, CPI), use get_economic_events instead.


        Returns:
            Object with:
            - earnings (list): array of earning records, each with:
              - code (str): ticker symbol
              - report_date (str): report filing date
              - date (str): earnings date
              - before_after_market (str|null): 'BeforeMarket' or 'AfterMarket'
              - currency (str): reporting currency
              - actual (float|null): actual EPS
              - estimate (float|null): consensus EPS estimate
              - difference (float|null): actual minus estimate
              - surprise_prc (float|null): surprise percentage

        Examples:
            "Apple earnings schedule" → symbols="AAPL.US"
            "Earnings this week" → start_date="2026-03-02", end_date="2026-03-06"
            "Microsoft and Google earnings" → symbols="MSFT.US,GOOG.US"


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_upcoming_ipostool Get upcoming and recent IPO (Initial Public Offering) listings.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get upcoming and recent IPO (Initial Public Offering) listings.
        Returns IPO dates, company names, exchanges, share prices, and deal details within a date range (defaults to next 7 days).
        Use when the user asks about new stock listings, companies going public, or IPO calendar.
        For stock splits calendar, use get_upcoming_splits. For dividend calendar, use get_upcoming_dividends.


        Returns:
            Object with:
            - ipos (list): array of IPO records, each with:
              - code (str): ticker symbol
              - name (str): company name
              - exchange (str): exchange code
              - currency (str): pricing currency
              - start_date (str): expected IPO date
              - filing_date (str): SEC filing date
              - amended_date (str): last amendment date
              - price_from (float|null): low end of price range
              - price_to (float|null): high end of price range
              - offer_price (float|null): final offer price
              - shares (int|null): shares offered
              - deal_type (str): type of offering (e.g. 'Priced')

        Examples:
            "IPOs this week" → from_date="2026-03-02", to_date="2026-03-06"
            "IPOs in March 2026" → from_date="2026-03-01", to_date="2026-03-31"
            "Upcoming IPOs next 30 days" → from_date="2026-03-06", to_date="2026-04-05"


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_upcoming_splitstool Get upcoming and recent stock split events.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get upcoming and recent stock split events.
        Returns split dates, tickers, and split ratios (e.g., 4:1) within a date range (defaults to next 7 days).
        Use when the user asks about stock splits, share splits, or reverse splits.
        For IPO calendar, use get_upcoming_ipos. For dividend calendar, use get_upcoming_dividends.


        Returns:
            Array of split records, each with:
            - code (str): ticker symbol
            - exchange (str): exchange code
            - optionable (str): whether options exist ('0' or '1')
            - date (str): split effective date
            - split (str): split ratio (e.g. '4/1')
            - oldShares (int): pre-split share count
            - newShares (int): post-split share count

        Examples:
            "Stock splits this week" → from_date="2026-03-02", to_date="2026-03-06"
            "Splits in Q1 2026" → from_date="2026-01-01", to_date="2026-03-31"
            "Any splits next month" → from_date="2026-04-01", to_date="2026-04-30"


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_us_live_extended_quotestool Get extended delayed quotes for US stocks with rich detail beyond basic live prices.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Get extended delayed quotes for US stocks with rich detail beyond basic live prices.
        Returns last trade, bid/ask with sizes and event timestamps, rolling averages (50d/200d),
        52-week high/low, market cap, EPS, PE ratio, dividend yield, and more per symbol.
        Supports batching multiple US tickers in one call. 1 API call per ticker.
        For non-US tickers or basic global live prices, use get_live_price_data instead.
        For historical end-of-day data, use get_historical_stock_prices instead.

        Args:
          symbols: A single comma-separated string or a sequence of tickers (e.g., ["AAPL.US","TSLA.US"]).
          fmt: 'json' (default) or 'csv'.
          page_limit: Optional page size; max 100.
          page_offset: Optional offset for pagination; must be >= 0.
          api_token: Optional token; if omitted, env is used via make_request().

        Returns:
            Array of extended quote snapshots, each with:
            - code (str): ticker symbol
            - timestamp (int): Unix epoch seconds of last trade
            - open, high, low, close (float): session OHLC
            - volume (int): session volume
            - previousClose (float): prior session close
            - change (float): absolute change from previousClose
            - change_p (float): percent change
            - 50day_ma, 200day_ma (float): rolling moving averages
            - yearHigh, yearLow (float): 52-week high/low
            - marketCapitalization (float): market cap in USD
            - epsEstimateCurrentYear (float): consensus EPS estimate
            - eps (float): trailing EPS
            - pe (float): trailing P/E ratio
            - dividend_yield_percent (float): indicated annual dividend yield %
            - bid, ask (float): current bid/ask prices
            - bidSize, askSize (int): bid/ask lot sizes

            Prices are delayed ~15-20 min (exchange-compliant).

        Examples:
            "Extended quote for Apple" → symbols="AAPL.US"
            "Batch quotes for FAANG stocks" → symbols=["META.US", "AAPL.US", "AMZN.US", "NFLX.US", "GOOG.US"]
            "Tesla and Nvidia with pagination" → symbols=["TSLA.US", "NVDA.US"], page_limit=10, page_offset=0


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_us_options_contractstool [Marketplace] Get available US options contracts (calls and puts) for a stock or ETF.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[Marketplace] Get available US options contracts (calls and puts) for a stock or ETF.
        Returns strike prices, expiration dates, and contract symbols for the specified underlying ticker.
        Supports filtering by expiration date range, strike range, trade time, and option type (put/call).
        Use to discover which options exist before fetching pricing with get_us_options_eod.
        For the list of all tickers that have options, use get_us_options_underlyings.
        Consumes 10 API calls per request.


        Returns:
            JSON object with:
            - meta: Pagination metadata.
            - data (array): Options contracts, each with:
              - contractName (str): Full OCC contract name.
              - contractSize (int): Contract size (typically 100).
              - currency (str): Currency code (e.g. 'USD').
              - type (str): 'call' or 'put'.
              - lastTradeDateTime (str): Last trade timestamp.
              - strike (float): Strike price.
              - lastPrice (float): Last traded price.
              - bid (float): Current bid price.
              - ask (float): Current ask price.
              - volume (int): Trading volume.
              - openInterest (int): Open interest.
              - impliedVolatility (float): Implied volatility.
              - delta (float): Option delta.
              - gamma (float): Option gamma.
              - theta (float): Option theta.
              - vega (float): Option vega.
              - expirationDate (str): Expiration date YYYY-MM-DD.
              - daysBeforeExpiration (int): Days until expiration.
              - intrinsicValue (float): Intrinsic value.
            - links.next (str|null): URL for next page, null if last page.

        Examples:
            "AAPL options expiring this month" → underlying_symbol="AAPL", exp_date_from="2026-03-01", exp_date_to="2026-03-31"
            "SPY puts with strike between 400 and 450" → underlying_symbol="SPY", type="put", strike_from=400, strike_to=450
            "TSLA call contracts expiring in June 2026, sorted by strike" → underlying_symbol="TSLA", type="call", exp_date_from="2026-06-01", exp_date_to="2026-06-30", sort="strike"
get_us_options_eodtool [Marketplace] Fetch end-of-day pricing data for US options contracts. Use when asked aboutNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[Marketplace] Fetch end-of-day pricing data for US options contracts. Use when asked about
        options prices, Greeks, open interest, volume, or implied volatility for stock/ETF options.
        Returns OHLC, volume, open interest, and Greeks per contract per trading day.
        Supports filtering by underlying symbol, expiration, strike, type (put/call), and trade date range.
        First find available contracts with get_us_options_contracts, then fetch pricing here.
        For the list of optionable tickers, use get_us_options_underlyings.
        Consumes 10 API calls per request.


        Returns:
            JSON object with:
            - meta: Pagination metadata.
            - data (array): EOD options records per date, each containing:
              - options.CALLS (array): Call contracts with:
                - contractName (str): Full OCC contract name.
                - expirationDate (str): Expiration date YYYY-MM-DD.
                - strike (float): Strike price.
                - lastPrice (float): Last traded price.
                - bid (float): Bid price.
                - ask (float): Ask price.
                - change (float): Price change.
                - changePercent (float): Price change percentage.
                - volume (int): Trading volume.
                - openInterest (int): Open interest.
                - impliedVolatility (float): Implied volatility.
              - options.PUTS (array): Put contracts (same fields as CALLS).
            - links.next (str|null): URL for next page, null if last page.

        Examples:
            "AAPL end-of-day options for March 2026" → underlying_symbol="AAPL", tradetime_from="2026-03-01", tradetime_to="2026-03-31"
            "MSFT puts EOD data, strike 300-400" → underlying_symbol="MSFT", type="put", strike_from=300, strike_to=400
            "NVDA calls expiring 2026-06-20, compact" → underlying_symbol="NVDA", type="call", exp_date_eq="2026-06-20", compact=True
get_us_options_underlyingstool [Marketplace] List all US stock and ETF ticker symbols that have listed options.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[Marketplace] List all US stock and ETF ticker symbols that have listed options.
        Use to check whether a specific ticker has options data or to browse the full universe
        of optionable underlyings before querying contracts or EOD pricing.
        For available contracts on a specific ticker, use get_us_options_contracts.
        For options pricing data, use get_us_options_eod.
        Consumes 10 API calls per request.


        Returns:
            JSON object with:
            - meta (object): Contains total count, fields list, compact flag.
            - data (array of str): Ticker symbols that have options available (e.g. ['AAPL','MSFT',...]).
            - links.next (str|null): URL for next page, null if last page.

        Examples:
            "list all tickers that have options" → (no params)
            "which stocks have options available" → (no params)
get_us_tick_datatool Fetch historical tick-level trade data for US equities. Use when the user needsNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch historical tick-level trade data for US equities. Use when the user needs
        individual trade records with exact timestamps, prices, volumes, and market venue
        identifiers at the finest granularity available.

        Returns individual trades (ticks) across all US venues for a given time range.
        Fields include timestamp (ms), price, shares, market, sub-market, sequence number.
        US stocks only. Costs 10 API calls per request.

        For real-time streaming ticks, use capture_realtime_ws instead.
        For daily/intraday OHLCV bars, use get_intraday_historical_data.

        Args:
            ticker (str): US ticker, e.g., 'AAPL' or 'AAPL.US'.
            from_timestamp (int|str): Start UNIX time in seconds (UTC).
            to_timestamp (int|str): End UNIX time in seconds (UTC).
            limit (int): Max ticks to return (default 1000).
            fmt (str): 'json' (default) or 'csv'.
            api_token (str, optional): Per-call token override.


        Returns:
            Array of tick objects, each with:
            - timestamp (int): UNIX timestamp in milliseconds
            - datetime (str): human-readable datetime
            - volume (int): tick volume (shares)
            - price (float): trade price
            - type (str): tick type (trade/quote)
            - conditions (str): trade condition codes

        Examples:
            "AAPL tick data on 2026-03-05 first 100 ticks" → get_us_tick_data(ticker="AAPL", from_timestamp=1772870400, to_timestamp=1772956800, limit=100)
            "TSLA trades between two timestamps" → get_us_tick_data(ticker="TSLA", from_timestamp=1772870400, to_timestamp=1772874000, limit=500)


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_user_detailstool Retrieve EODHD account details for the current API token. Use when the user asks aboutNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Retrieve EODHD account details for the current API token. Use when the user asks about
        their subscription plan, API usage, rate limits, or account information.

        Returns account holder name, email, subscription type, payment method, API requests
        consumed today, daily rate limit, and invite token. This is account metadata only --
        does not return any financial market data.

        Args:
            api_token (str, optional): Per-call token override. If omitted, the
                                       env var EODHD_API_KEY is used.

        Returns:
            Object with:
            - name (str): account holder name
            - email (str): account email
            - subscriptionType (str): plan name (e.g. "allworld")
            - paymentMethod (str): payment method type
            - apiRequests (int): API calls used in current period
            - apiRequestsDate (str): current billing period date
            - dailyRateLimit (int): daily API call limit
            - extraLimit (int): extra API calls available
            - inviteToken (str): referral invite token
            - inviteTokenClicked (int): invite link click count
            - subscriptionMode (str): subscription billing mode
            - quota (object): derived usage state — used, limit, remaining,
              extraCallsInReserve, percentUsed, resetsAt (next 00:00 UTC),
              and status (ok / near_limit / critical / exhausted)

        Examples:
            "What plan am I on?" → get_user_details()
            "How many API calls have I used today?" → get_user_details()
            "How much of my daily limit is left?" → get_user_details()
get_ust_bill_ratestool Fetch daily US Treasury Bill rates (discount and coupon-equivalent yields). Use when theNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch daily US Treasury Bill rates (discount and coupon-equivalent yields). Use when the
        user asks about T-bill rates, short-term government borrowing costs, or discount rates
        for Treasury bills.

        Returns daily rates for tenors: 4WK, 8WK, 13WK, 17WK, 26WK, 52WK. Fields include
        date, tenor, discount rate, coupon-equivalent yield, averages, maturity date, and CUSIP.
        Filterable by year. Costs 1 API call per request.

        For Treasury par yield curve rates (longer maturities up to 30Y), use get_ust_yield_rates.

        Args:
            year (int, optional): Filter by year (1900+). Defaults to current year.
            api_token (str, optional): Per-call token override.


        Returns:
            An envelope object with:
            - meta (object): { "total": int } — total number of records returned.
            - data (array): daily bill rate objects, each with:
                - date (str): observation date (YYYY-MM-DD)
                - tenor (str): bill tenor (e.g. 4WK, 8WK, 13WK, 17WK, 26WK, 52WK)
                - discount (float): discount rate
                - coupon (float): coupon-equivalent rate
                - avg_discount (float): average discount rate
                - avg_coupon (float): average coupon-equivalent rate
                - maturity_date (str): maturity date (YYYY-MM-DD)
                - cusip (str): CUSIP identifier
            - links (object): { "next": null } — always null; the full dataset for the year is
              returned and the endpoint does not paginate.

        Notes:
            - 1 API call per request.
            - Included in All-In-One, EOD All World, EOD + Intraday All World Extended, Free plans.
            - No pagination or date-range filtering: filter[year] is the only supported filter.

        Examples:
            "Treasury bill rates for 2026" → get_ust_bill_rates(year=2026)
            "Latest T-bill rates" → get_ust_bill_rates()
get_ust_long_term_ratestool Fetch US Treasury long-term rate composites and averages. Use when asked about 20-year bondNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch US Treasury long-term rate composites and averages. Use when asked about 20-year bond
        constant maturity rates, long-term real rate averages, or extrapolation factors.
        Covers rate types: BC_20year, Over_10_Years, Real_Rate — combining daily long-term
        nominal rates with real long-term rate averages.
        For individual tenor yield curves use get_ust_yield_rates. For inflation-adjusted
        real yields use get_ust_real_yield_rates. For T-bill rates use get_ust_bill_rates.
        Consumes 1 API call per request.

        Args:
            year (int, optional): Filter by year (1900 to current+1). Defaults to current year.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            An envelope object with:
            - meta (object): { "total": int } — total number of records returned.
            - data (array): daily long-term rate objects, each with:
                - date (str): observation date (YYYY-MM-DD)
                - rate_type (str): rate series identifier (e.g. BC_20year, Over_10_Years, Real_Rate)
                - rate (float): rate value
                - extrapolation_factor (float or null): extrapolation factor where applicable
            - links (object): { "next": null } — always null; the full dataset for the year is
              returned and the endpoint does not paginate.

        Notes:
            - 1 API call per request.
            - Included in All-In-One, EOD All World, EOD + Intraday All World Extended, Free plans.
            - Combines "Daily Treasury Real Long-Term Rate Averages" and
              "Daily Treasury Long-Term Rates".
            - No pagination or date-range filtering: filter[year] is the only supported filter.

        Examples:
            "long-term treasury rates for 2024" → get_ust_long_term_rates(year=2024)
            "20-year bond rates this year" → get_ust_long_term_rates(year=2026)
            "real long-term rate averages for 2022" → get_ust_long_term_rates(year=2022)
get_ust_real_yield_ratestool Fetch US Treasury inflation-adjusted (real) yield curve rates. Use when asked about TIPS yields,NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch US Treasury inflation-adjusted (real) yield curve rates. Use when asked about TIPS yields,
        real interest rates, or inflation-adjusted Treasury returns.
        Covers 5Y, 7Y, 10Y, 20Y, 30Y tenors from the Daily Par Real Yield Curve.
        For nominal Treasury yields use get_ust_yield_rates. For T-bill discount rates use get_ust_bill_rates.
        For long-term rate averages (20Y+ composites) use get_ust_long_term_rates.
        Consumes 1 API call per request.

        Args:
            year (int, optional): Filter by year (1900 to current+1). Defaults to current year.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            An envelope object with:
            - meta (object): { "total": int } — total number of records returned.
            - data (array): daily real yield objects, each with:
                - date (str): observation date (YYYY-MM-DD)
                - tenor (str): maturity (e.g. 5Y, 7Y, 10Y, 20Y, 30Y)
                - rate (float): real (inflation-adjusted) yield for the given tenor
            - links (object): { "next": null } — always null; the full dataset for the year is
              returned and the endpoint does not paginate.

        Notes:
            - 1 API call per request.
            - Included in All-In-One, EOD All World, EOD + Intraday All World Extended, Free plans.
            - Compare with nominal yields for implied inflation expectations.
            - No pagination or date-range filtering: filter[year] is the only supported filter.

        Examples:
            "real yield rates for 2025" → get_ust_real_yield_rates(year=2025)
            "current real yield curve" → get_ust_real_yield_rates()
get_ust_yield_ratestool Fetch daily US Treasury par yield curve rates. Use when the user asks about TreasuryNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Fetch daily US Treasury par yield curve rates. Use when the user asks about Treasury
        yields, the yield curve, government bond rates, or interest rates across maturities.

        Returns nominal par yield curve rates for tenors: 1M, 1.5M, 2M, 3M, 4M, 6M, 1Y, 2Y,
        3Y, 5Y, 7Y, 10Y, 20Y, 30Y. Fields include date, tenor, and rate. Filterable by year.
        Costs 1 API call per request.

        For short-term T-bill discount/coupon rates (4WK-52WK), use get_ust_bill_rates instead.

        Args:
            year (int, optional): Filter by year (1900+). Defaults to current year.
            api_token (str, optional): Per-call token override.


        Returns:
            An envelope object with:
            - meta (object): { "total": int } — total number of records returned.
            - data (array): daily yield rate objects, each with:
                - date (str): observation date (YYYY-MM-DD)
                - tenor (str): maturity (e.g. 1M, 1.5M, 2M, 3M, 4M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y)
                - rate (float): par yield for the given tenor
            - links (object): { "next": null } — always null; the full dataset for the year is
              returned and the endpoint does not paginate.

        Notes:
            - 1 API call per request.
            - Included in All-In-One, EOD All World, EOD + Intraday All World Extended, Free plans.
            - Full yield curve across multiple maturities.
            - No pagination or date-range filtering: filter[year] is the only supported filter.

        Examples:
            "US Treasury yield curve for 2026" → get_ust_yield_rates(year=2026)
            "Current yield rates" → get_ust_yield_rates()
mp_index_componentstool [Marketplace] Get constituent stocks of a specific S&P or Dow Jones index, includingNetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[Marketplace] Get constituent stocks of a specific S&P or Dow Jones index, including
        historical component changes for major indices. Use when asked which stocks are in an
        index, or to track index rebalancing history.
        Requires the index symbol from mp_indices_list (e.g. GSPC.INDX for S&P 500).
        To browse available indices first, use mp_indices_list.
        Consumes 10 API calls per request.

        Args:
          - symbol: index ID from the list endpoint (e.g., GSPC.INDX)
          - fmt: 'json' (only)
          - api_token: optional override API token


        Returns:
            JSON object with:
            - Components (array): Current index constituents, each with:
              - Code (str): Ticker symbol.
              - Exchange (str): Exchange code.
              - Name (str): Company name.
              - Sector (str): GICS sector.
              - Industry (str): GICS industry.
              - Weight (float): Index weight.
            - Historical changes (for major indices): additions/removals over time.

        Examples:
            "what are the S&P 500 components" → symbol="GSPC.INDX"
            "Dow Jones Industrial Average constituents" → symbol="DJI.INDX"
            "S&P 400 MidCap index members" → symbol="SP400.INDX"
mp_indices_listtool [Marketplace] List all available S&P and Dow Jones indices with end-of-day details.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
[Marketplace] List all available S&P and Dow Jones indices with end-of-day details.
        Use when asked to browse or enumerate major stock market indices, or to find an index
        symbol before fetching its components with mp_index_components.
        Covers 100+ indices including S&P 500, Dow Jones, and sector indices.
        For components/constituents of a specific index, use mp_index_components.
        Consumes 10 API calls per request.

        Args:
          - fmt: 'json' (default). (CSV is not documented; keep JSON only.)
          - api_token: optional override API token


        Returns:
            JSON array of objects, each with:
            - code (str): Index ticker code (e.g. 'GSPC.INDX').
            - name (str): Index name (e.g. 'S&P 500').
            - exchange (str): Exchange identifier.
            - currency (str): Currency code (e.g. 'USD').

        Examples:
            "show all S&P and Dow Jones indices" → (no params)
            "list available market indices with details" → (no params)
resolve_tickertool Resolve a company name, partial ticker, or ISIN to SYMBOL.EXCHANGE format (and ISIN).NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Resolve a company name, partial ticker, or ISIN to SYMBOL.EXCHANGE format (and ISIN).

        USE THIS FIRST when a user mentions a company by name instead of a ticker symbol,
        or when you need to obtain the ISIN for a company/ticker.
        Calls the EODHD Search API and returns the best match as SYMBOL.EXCHANGE plus ISIN.
        If ambiguous (multiple exchanges), returns top 10 matches for user selection.

        Examples:
            "Apple" → query="Apple"
            "Tesla on NASDAQ" → query="Tesla", preferred_exchange="US"
            "ISIN US0378331005" → query="US0378331005"
            "Deutsche Bank on XETRA" → query="Deutsche Bank", preferred_exchange="XETRA"

        Args:
            query (str): Company name, partial ticker, or ISIN to resolve.
            preferred_exchange (str, optional): Exchange code to prefer (e.g. "US", "XETRA", "LSE").
            asset_type (str, optional): Filter by type: "stock", "etf", "fund", "bond", "index", "crypto".
            api_token (str, optional): Per-call API token override.

        Returns:
            JSON object with:
            - resolved (str): best-match ticker in SYMBOL.EXCHANGE format (e.g. "AAPL.US")
            - name (str): full company/instrument name
            - isin (str): ISIN code (e.g. "US0378331005")
            - type (str): asset type (Common Stock, ETF, etc.)
            - exchange (str): exchange code
            - alternatives (list): if ambiguous, top 10 matches each with ticker, name, isin, type, exchange

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
retrieve_description_by_idtool Retrieve built-in EODHD API documentation by numeric type and id. Use whenFilesoutside textread-only (declared)
Retrieve built-in EODHD API documentation by numeric type and id. Use when
        the user asks about API usage, endpoint specs, subscription plans, or reference guides.
        Returns structured Markdown content for subscriptions (type=1), endpoint docs (type=2),
        or general reference (type=3). Call with type=0 or no args for the global README index.
        This is a local lookup — not an API data call. No API calls consumed.

        Types:
          0 — Global README / help
          1 — Subscription plans (ids 1-7; id 0 = subscriptions README)
          2 — Endpoint documentation (ids 1-84; id 0 = endpoints README)
          3 — General reference (ids 1-28; id 0 = general README)

        Subscription plan pages (type=1):
          1 — Free, 2 — EOD Historical Data All World,
          3 — EOD Intraday All World Extended, 4 — Fundamentals Data Feed,
          5 — All-In-One, 6 — All-In-One Extended Fundamentals,
          7 — Calendar Feed

        Endpoint documentation pages (type=2):
          The id → endpoint mapping changes as endpoints are added, so it is not duplicated
          here: call ``type=2, id=0`` to get the current index, then request the id you need.

        General reference pages (type=3):
          1 — API Authentication Demo Access, 2 — Authentication,
          3 — Crypto Data Notes, 4 — Data Adjustment Guide,
          5 — Delisted Tickers Guide, 6 — Exchanges,
          7 — Financial Ratios Calculation Guide, 8 — Forex Data Notes,
          9-16 — Fundamentals guides, 17 — General Data FAQ,
          18 — Glossary, 19 — Indices Data Notes,
          20 — Pricing And Plans, 21 — Primary Tickers Guide,
          22 — Rate Limits, 23 — SDKs And Integrations,
          24 — Special Exchanges Guide,
          25 — Stock Types Ticker Suffixes Guide,
          26 — Symbol Format, 27 — Update Times, 28 — Versioning

        Args:
            type: Page category (0 = global README, 1 = subscriptions,
                  2 = endpoints, 3 = general). Default 0.
            id: Numeric page ID within the type. Optional; defaults to 0
                (README for the given type).
            api_token: Ignored (accepted for interface uniformity).

        Returns:
            JSON object with:
            - type (int): Page category number (0-3).
            - id (int): Page ID within the category.
            - title (str): Human-readable page title derived from filename.
            - content (dict): Structured parsed markdown (headings as nested dicts,
              tables as list-of-dicts, lists as arrays, key-value pairs as dict entries).
            - raw (str): Original markdown source text.
            - fallback (bool, optional): Present and true when invalid/missing params
              caused a fallback to the global README.

        Examples:
            "show me the global help page" → type=0
            "docs for the All-In-One subscription plan" → type=1, id=5
            "how does the historical stock prices endpoint work" → type=2, id=12
            "explain rate limits" → type=3, id=22
stock_screenertool Screen and filter stocks by fundamental and technical criteria.NetworkCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Screen and filter stocks by fundamental and technical criteria.
        Build custom queries using filters (e.g., market_cap > 1B, sector = Technology, P/E < 20)
        and signals (e.g., 200d_new_hi, 50d_new_lo, bookvalue_neg, wallstreetbull).
        Returns matching tickers with key metrics. Supports sorting, pagination (limit up to 100).
        Consumes 5 API calls per request.
        Use this tool for stock discovery, screening by fundamentals/technicals, and building watchlists.
        For detailed data on a specific ticker, use get_fundamentals_data instead.

        Args:
          - filters: list-of-lists or JSON string
          - signals: list[str] or comma-separated string
          - sort: "field.asc" | "field.desc"
          - limit: 1..100
          - offset: 0..999
          - fmt: optional; Screener is JSON-only. If provided, must be "json".
          - api_token: optional override


        Returns:
            Array of matching stocks, each with:
            - code (str): ticker symbol
            - name (str): company name
            - exchange (str): exchange code (e.g. 'US')
            - sector (str): GICS sector
            - industry (str): GICS industry
            - market_capitalization (float): market cap in USD
            Plus any fields relevant to applied filters/signals, e.g.:
            - earnings_share, dividend_yield, price, change, volume, etc.

            Max 100 results per page; use offset for pagination.

        Examples:
            "Large-cap tech stocks" → filters=[["market_capitalization",">",10000000000],["sector","=","Technology"]], sort="market_capitalization.desc", limit=20
            "Stocks hitting new 52-week highs" → signals=["52weekhigh"], limit=50
            "Undervalued healthcare with high volume" → filters=[["sector","=","Healthcare"],["pe_ratio","<",15],["avgvol_200d",">",1000000]], sort="pe_ratio.asc"


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.

Text the model reads (98)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

get_sanctions_vessels tool
Search sanctioned vessels (e.g. OFAC). Use when the user asks about sanctioned ships,
        vessels under sanctions, or vessel details by IMO number, flag, or type.

        Returns sanctioned vessels with identifiers (IMO, MMSI, call sign), flag, tonnage, owner,
        and program context. Filterable by source, IMO, flag, vessel type, free-text query, and
        program. Paginated. Only currently active vessel listings are returned.

        Args:
            source (str, optional): Data source. Currently only 'ofac' is accepted.
            imo (str, optional): IMO number.
            flag (str, optional): Flag state.
            vessel_type (str, optional): Vessel type.
            q (str, optional): Free-text search (minimum 2 characters).
            program (str, optional): Sanctions program.
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - call_sign (str|null): call sign
            - vessel_type (str|null): vessel type
            - flag (str|null): flag state
            - tonnage (int|null): tonnage
            - gross_tonnage (int|null): gross tonnage
            - owner (str|null): owner
            - imo_number (str|null): IMO number
            - mmsi (str|null): MMSI
            - entity_source_uid (str): linked entity source UID
            - entity_name (str): linked entity name
            - source (str): data source
            - programs (list): sanctions programs
            - country (str|null): country
            - is_active (bool): active listing status

        Examples:
            "Sanctioned vessels flagged Panama" → get_sanctions_vessels(flag="Panama")
            "Vessel with IMO 9160670" → get_sanctions_vessels(imo="9160670")
capture_realtime_ws tool
Capture real-time streaming market data via WebSocket for a fixed time window. Use when
        the user needs live tick-by-tick prices, real-time trades, bid/ask quotes, or streaming
        forex/crypto rates.

        Connects to EODHD WebSocket feeds, subscribes to
        specified symbols, collects messages for the given duration, then returns all captured
        data at once. Unlike get_live_price_data (REST snapshot), this streams continuous updates.

        For a single REST-based price snapshot, use get_live_price_data instead.
        For historical tick-level trade data (not real-time), use get_us_tick_data.

        Args:
            feed (str): One of {'us_trades','us_quotes','us_candles','us_status',
                'eu_trades','eu_quotes','eu_candles','eu_status','forex','crypto'}.
            symbols (str | list[str]): Single or comma-separated symbols, or a list.
                US equities use plain tickers ('AAPL'); European equities use
                TICKER.EXCHANGE ('GSK.LSE'). For a European dual-class ticker the
                un-hyphenated alias is accepted too, and the reply always reports the
                canonical hyphenated form in 's'.
                Returns:
            Object with:
            - feed (str): feed name used
            - endpoint (str): WS endpoint path
            - symbols (array[str]): subscribed symbols
            - duration_seconds (int): capture window length
            - started_at (int): start epoch in ms
            - ended_at (int): end epoch in ms
            - message_count (int): total messages captured
            - messages (array): captured messages, each varies by feed:
              - us_trades / eu_trades: s (str, symbol), p (float, price), v (int, size),
                dp (bool, dark pool - always false on this feed), ms (str, one of open |
                closed | extended-hours), t (int, timestamp ms), c (array, trade conditions -
                ALWAYS EMPTY on this feed, the exchange top-of-book source carries none)
              - us_quotes / eu_quotes: s (str, symbol), ap (float, ask price), as (int, ask size), bp (float, bid price), bs (int, bid size), t (int, timestamp ms)
              - us_candles / eu_candles: s (str, symbol), i (str, interval, '1m'), t (int, bar
                OPEN timestamp ms), o/h/l/c (float, open/high/low/CLOSE - note c is the close
                price here, not the conditions array), v (int, size in the bar). The current
                bar is re-sent on every update, so the same t recurs with a growing v: take
                the newest message per t rather than summing them.
              - us_status / eu_status: s (str, symbol), h (str, venue trading-status code,
                'T' while trading normally), r (str, reason code), t (int, timestamp ms)
              - forex: s (str, symbol), a (float, ask), b (float, bid), dc (STRING, daily
                change percent), dd (STRING, daily change absolute), ppms (bool), t (int, timestamp ms)
              - crypto: s (str, symbol), p (STRING, price), q (STRING, quantity - may use
                exponent notation such as '1.9e-7'), dc (STRING), dd (STRING), t (int, timestamp ms)

        Examples: 'AAPL,MSFT,TSLA' (US), 'EURUSD' (forex), 'ETH-USD,BTC-USD' (crypto).
            duration_seconds (int): How long to capture messages (1..600). Default 5.
            api_token (str, optional): WebSocket token; 'demo' supports limited symbols.
            max_messages (int, optional): Stop early after N messages.
            ping_interval (float): WebSocket ping interval in seconds.
            ping_timeout (float): WebSocket ping timeout in seconds.
            connect_timeout (float): Overall connection timeout in seconds.
            max_data_bytes (int): Maximum total captured data size in bytes (default 50 MB).
                Capture stops early if this limit is reached to prevent unbounded memory use.

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL, MSFT, TSLA (stocks), EURUSD, and BTC-USD in Websocket API.
get_asx_corporate_actions tool
Get structured corporate action data for ASX (Australian Securities Exchange) listed
        securities: dividends, splits, bonus issues, rights issues, buybacks, capital returns,
        and share purchase plans. Data is sourced from the official ASX ReferencePoint (E34)
        feed and refreshed daily. Coverage is limited to ASX-listed tickers (all use the .AU
        suffix). Costs 1 API call per request.

        Use when the user asks about Australian dividends and franking credits, ASX splits,
        bonus/rights issues, buybacks, capital returns, or share purchase plans. For corporate
        actions on other exchanges use get_historical_dividends / get_historical_splits.

        Args:
            action_type (str, optional): Corporate action category. One of: 'dividends',
                'splits', 'bonus-issues', 'rights-issues', 'buybacks', 'capital-returns',
                'spp', 'other'. Omit to return all types.
            symbol (str, optional): Ticker with .AU suffix (e.g. 'PMV.AU'). Filters to a
                single security.
            start_date (str, optional): 'date_from' in YYYY-MM-DD (inclusive, on event date).
            end_date (str, optional): 'date_to' in YYYY-MM-DD (inclusive, on event date).
            limit (int): Page size, 1..1000. Default 100.
            offset (int): Zero-based pagination offset. Default 0.
            fmt (str): 'json' only.
            api_token (str, optional): Per-call token override.

        Returns:
            Object with:
            - data (array): type-specific corporate-action records. Common fields include
              code, date, currency, exchange, recordDate, paymentDate/despatchDate. Dividend
              records add value/unadjustedValue/period plus an '_asx_extra' object carrying
              AU-specific fields (franked_amount_aud, franked_percent, drp_indicator,
              withholding_tax_rate, etc.). Splits add 'split', bonus/rights issues add 'ratio'.
            - meta (object): total (int) and page {offset, limit}.
            - links (object): next (str|null) — URL for the next page, null on the last page.

        Notes:
            - Pagination: when 'links.next' is not null, increment 'offset' (or follow that URL)
              to fetch the next page.
            - ASX only. Buybacks and 'other' categories are sparse — ASX publishes them less
              frequently than dividends or rights issues.
            - 1 API call per request.

        Examples:
            "Premier Investments ASX dividends" → symbol="PMV.AU", action_type="dividends"
            "All ASX splits in 2026" → action_type="splits", start_date="2026-01-01", end_date="2026-12-31"
            "Recent ASX corporate actions" → get_asx_corporate_actions()

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_bulk_fundamentals tool
Fetch fundamental data for all stocks on an exchange in bulk. Use when the user needs
        financials, valuation, or earnings data for many companies at once -- screening,
        comparing sectors, or building dashboards across an entire exchange.

        Returns General, Highlights, Valuation, Technicals, SplitsDividends, Earnings (last 4
        quarters + 4 years), and Financials for up to 500 stocks per call. Stocks only (no ETFs
        or mutual funds). Costs 100 API calls per request. Requires Extended Fundamentals plan.

        For a single ticker's full fundamentals, use get_fundamentals_data instead.
        For macro country-level economic data, use get_macro_indicator.

        Args:
            exchange (str): Exchange code (e.g., 'NASDAQ', 'NYSE', 'US', 'LSE').
            symbols (str, optional): Comma-separated list of specific symbols to filter.
            offset (int, optional): Pagination start (default 0).
            limit (int, optional): Max symbols to return (default 500, max 500).
            version (str, optional): '1.2' for single-symbol-like output format.
            fmt (str): 'json' (default) or 'csv'.
            api_token (str, optional): Per-call token override.


        Returns:
            Dict of ticker -> fundamentals object, each with:
            - General (object): Code, Type, Name, Exchange, CurrencyCode, CurrencyName, CountryName, ISIN, Sector, Industry
            - Highlights (object): MarketCapitalization, EBITDA, PERatio, WallStreetTargetPrice, BookValue, EarningsShare, DividendYield
            - Valuation (object): TrailingPE, ForwardPE, PriceSalesTTM, PriceBookMRQ, EnterpriseValue
            - SharesStats (object): SharesOutstanding, SharesFloat, PercentInsiders, PercentInstitutions
            - Technicals (object): Beta, 52WeekHigh, 52WeekLow, 50DayMA, 200DayMA
            - SplitsDividends (object): ForwardAnnualDividendRate, ForwardAnnualDividendYield, ExDividendDate, LastSplitDate, LastSplitFactor
            - Earnings (object): Last_4_Quarters (array), Annual_Earnings (array)
            - Financials (object): Income_Statement, Balance_Sheet, Cash_Flow (quarterly + yearly)

        Notes:
            - Requires Extended Fundamentals subscription plan.
            - API cost: 100 calls per request (or 100 + number of symbols if using symbols param).
            - Stocks only (no ETFs or Mutual Funds).
            - Max pagination limit: 500.
            - Historical data limited to 4 quarters and 4 years.

        Examples:
            "Fundamentals for all NASDAQ stocks" → get_bulk_fundamentals(exchange="NASDAQ")
            "AAPL and MSFT fundamentals from NYSE" → get_bulk_fundamentals(exchange="US", symbols="AAPL,MSFT")
            "LSE fundamentals, second page" → get_bulk_fundamentals(exchange="LSE", offset=500, limit=500)


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_cboe_index_data tool
Fetch detailed data for a specific CBOE index on a given date, including all constituent
        components. Use when the user needs index close value, divisor, and full component
        breakdown (symbols, weights, market caps, sectors) for a CBOE index.

        Requires index_code, feed_type, and date. Returns index-level attributes plus an array
        of components with ISIN, closing price, currency, shares, market cap, weighting, and
        sector. Costs 10 API calls per request.

        For listing all available CBOE indices, use get_cboe_indices_list first.

        Args:
            index_code (str): CBOE index code (e.g., 'BDE30P', 'BAT20N').
            feed_type (str): Feed type (e.g., 'snapshot_official_closing').
            date (str): Trading date in YYYY-MM-DD format.
            fmt (str): 'json' only (default).
            api_token (str, optional): Per-call token override.


        Returns:
            Object with:
            - meta (object): total (int) — number of results
            - data (array): index feed objects, each with:
              - id (str): composite key (index_code-date-feed_type)
              - type (str): "cboe-index"
              - attributes (object):
                - region (str): geographic region
                - index_code (str): CBOE index code
                - feed_type (str): feed type
                - date (str): trading date (YYYY-MM-DD)
                - index_close (float): index closing value
                - index_divisor (float): index divisor
                - effective_date (str|null): effective date
                - review_date (str|null): review date
              - components (array): index constituents, each with:
                - id (str): component identifier
                - type (str): "cboe-index-component"
                - attributes (object):
                  - symbol (str): ticker symbol
                  - isin (str): ISIN code
                  - name (str): company name
                  - closing_price (float): component closing price
                  - currency (str): trading currency
                  - total_shares (int): total shares outstanding
                  - market_cap (float): market capitalization
                  - index_weighting (float): weight in index (%)
                  - index_value (float): contributed index value
                  - sector (str): industry sector

        Notes:
            - If required filters are missing, the API returns a JSON error
              under the "errors" key.
            - Rate limits: 10 API calls per request (dataset-specific rule of thumb).

        Examples:
            - /api/cboe/index?filter[index_code]=BDE30P
              &filter[feed_type]=snapshot_official_closing
              &filter[date]=2017-02-01
get_cboe_indices_list tool
List all available CBOE indices with their latest values. Use when the user wants to
        browse CBOE European and regional index families, check which CBOE indices are available,
        or find a CBOE index code.

        Returns index codes, regions, latest close values, index divisors, and feed metadata
        for ~38 CBOE indices. Paginated via 'links.next'. Costs 10 API calls per request.

        For detailed component-level data on a specific CBOE index, use get_cboe_index_data.

        Returns:
            Object with:
            - meta (object): total (int) — total number of indices
            - data (array): index objects, each with:
              - id (str): CBOE index identifier
              - type (str): always "cboe-index"
              - attributes (object):
                - region (str): geographic region (e.g. "Eurozone", "Germany")
                - index_code (str): CBOE index code
                - feed_type (str): feed type (e.g. "snapshot_official_closing")
                - date (str): latest date (YYYY-MM-DD)
                - index_close (float): latest closing value
                - index_divisor (float): index divisor
            - links (object): next (str|null) — URL for next page, null if last

        Notes:
            - Pagination:
              If 'links.next' is not null, call that URL to get the next page.
            - Rate limits:
                * 10 API calls per request (CBOE dataset rule of thumb).

        Examples:
            "List all CBOE indices" → get_cboe_indices_list()
            "What CBOE European indices are available?" → get_cboe_indices_list()
get_company_news tool
Fetch financial news articles for a stock ticker or topic tag within a date range.
        Returns full article objects with title, content, URL, date, and related tickers.
        Use when the user asks for news headlines, recent articles, or press coverage about a company or sector.
        For aggregated sentiment scores derived from news, use get_sentiment_data instead.
        For keyword frequency analysis in news, use get_news_word_weights instead.

        Args:
            ticker (str, optional): SYMBOL.EXCHANGE_ID (e.g., 'AAPL.US'). Mapped to 's'.
            tag (str, optional): Topic tag (e.g., 'technology'). Mapped to 't'.
            start_date (str, optional): YYYY-MM-DD. Mapped to 'from'.
            end_date (str, optional): YYYY-MM-DD. Mapped to 'to'.
            limit (int): 1..1000 (default 50).
            offset (int): 0..9000 (default 0). To reach older articles, narrow the period with start_date/end_date.
            fmt (str): 'json' or 'xml' (default 'json').
            api_token (str, optional): Per-call token override; env token used if omitted.

        Returns:
            Array of articles, each with:
            - date (str): publication datetime ISO 8601
            - title (str): headline
            - content (str): full article text
            - link (str): source URL
            - symbols (list[str]): related ticker symbols
            - tags (list[str]): topic tags
            - sentiment (object): title/content/ner polarity and neg/neu/pos scores

        Examples:
            "Apple news last week" → ticker="AAPL.US", start_date="2026-02-27", end_date="2026-03-06"
            "Crypto news, 50 results" → tag="crypto", limit=50
            "Tesla news in February 2026, first 10" → ticker="TSLA.US", start_date="2026-02-01", end_date="2026-02-28", limit=10

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_congressional_trades tool
Fetch US Congress securities transaction disclosures filed under the STOCK Act (stocks,
        options, funds and bonds). Use when the user asks
        about congressional trading, which stocks a senator or representative bought or sold, politician
        trades, or Senate/House financial disclosures.

        Covers both chambers in one feed, sourced from the official Senate EFD and House Clerk portals.
        Beta API, ordered by transaction_date descending; sources are polled several times a day, so
        a trade shows up only once its filing is published.
        Filter by ticker, chamber, member (Bioguide ID), transaction type, and transaction or disclosure
        date range. Requires the All-in-One plan. Costs 10 API calls per request.

        Args:
            symbol (str, optional): Ticker as the filing lists it, e.g. "AAPL" or "BRK.B" for a
                class share. A trailing ".US" is accepted and stripped ("AAPL.US" → "AAPL");
                class-share dots are preserved.
            chamber (str, optional): "senate" or "house".
            bioguide_id (str, optional): Member Bioguide ID — one letter plus six digits,
                e.g. "S000250" (case-insensitive).
            transaction_type (str, optional): One or more of "purchase", "sale", "exchange"
                (comma-separated for multiple).
            transaction_date_from (str, optional): Earliest transaction date, YYYY-MM-DD.
            transaction_date_to (str, optional): Latest transaction date, YYYY-MM-DD.
            disclosure_date_from (str, optional): Earliest disclosure date, YYYY-MM-DD.
            disclosure_date_to (str, optional): Latest disclosure date, YYYY-MM-DD.
            limit (int, optional): Records per page, 1..100 (default 20 upstream).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.

        Returns:
            Envelope with data, meta (total, page), and links (next). Each record has:
            - chamber (str): senate or house
            - member (obj): bioguide_id, first_name, last_name, full_name, office, state, party, district
            - asset (obj): symbol, description, asset_type
            - transaction (obj): type, transaction_date, disclosure_date, owner, amount_range,
              amount_low, amount_high, days_to_disclose, is_late, comment
            - source (obj): filing_url, source_system, filing_identifier

        Notes:
            - 10 API calls per request.
            - Requires the All-in-One plan.
            - Filters are flat query keys; only pagination uses page[limit] / page[offset].

        Examples:
            "Recent congressional trades" → get_congressional_trades()  # newest transaction_date first
            "Senate purchases and sales in 2026" → get_congressional_trades(chamber="senate", transaction_type="purchase,sale", transaction_date_from="2026-01-01")
            "Which trades did member S000250 make in Apple" → get_congressional_trades(bioguide_id="S000250", symbol="AAPL")
get_credit_cds_market_aggregates tool
Fetch aggregated CDS market statistics. Use when the user asks about CDS market gross
        notional, CDS activity broken down by grade or cleared status, or CDS market size over time.

        Returns aggregated CDS market metrics (e.g. gross notional) broken down by a chosen
        dimension (grade or cleared status). Filterable by metric, dimension, and date range.
        Paginated.

        Args:
            metric (str, optional): Metric to aggregate. Currently 'gross_notional'.
            dimension (str, optional): Breakdown dimension: 'grade' or 'cleared_status'.
            value (str, optional): Filter by a specific breakdown value within the dimension.
            region (str, optional): Filter by region.
            date_from (str, optional): Start date filter (YYYY-MM-DD).
            date_to (str, optional): End date filter (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - as_of_date (str): observation date (ISO 8601 timestamp, e.g. 2026-07-03T00:00:00+00:00)
            - release_date (str|null): data release date (ISO 8601 timestamp)
            - metric (str): metric name
            - breakdown_dimension (str): breakdown dimension
            - breakdown_value (str): breakdown value
            - region (str): region
            - usd_notional_mn (float): notional in USD millions
            - source (str): data source

        Examples:
            "CDS gross notional by grade" → get_credit_cds_market_aggregates(metric="gross_notional", dimension="grade")
            "CDS notional by cleared status" → get_credit_cds_market_aggregates(dimension="cleared_status")
get_credit_corporate_cmdi tool
Fetch the Corporate Market-based Default Indicator (CMDI) time series. Use when the user asks
        about corporate credit stress, the CMDI index, or investment-grade vs high-yield market
        default indicators.

        Returns the market CMDI along with investment-grade (IG) and high-yield (HY) sub-indices
        over time. Filterable by date range. Paginated.

        Args:
            date_from (str, optional): Start date filter (YYYY-MM-DD).
            date_to (str, optional): End date filter (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - as_of_date (str): observation date (ISO 8601 timestamp, e.g. 2026-06-19T00:00:00+00:00)
            - market_cmdi (float|null): overall market CMDI
            - ig_cmdi (float|null): investment-grade CMDI
            - hy_cmdi (float|null): high-yield CMDI
            - source (str): data source

        Examples:
            "Corporate CMDI for 2025" → get_credit_corporate_cmdi(date_from="2025-01-01", date_to="2025-12-31")
            "Latest CMDI" → get_credit_corporate_cmdi()
get_credit_corporate_hqm_yields tool
Fetch HQM (High Quality Market) corporate bond yield curves. Use when the user asks about
        HQM corporate yields, high-quality corporate bond spot or par yields, or yields by tenor.

        Returns HQM corporate bond yields by tenor (in years) and yield type (par or spot) over
        time. Filterable by tenor, type, and date range. Paginated.

        Args:
            tenor (int, optional): Tenor in years — one of 1, 2, 3, 5, 7, 10, 15, 20, 25, 30
                (or a comma-separated list, e.g. "5,10").
            type (str, optional): Yield type 'par' or 'spot' (or a comma-separated list).
            date_from (str, optional): Start date filter (YYYY-MM-DD).
            date_to (str, optional): End date filter (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - series_id (str): HQM series identifier
            - tenor_years (int): tenor in years
            - yield_type (str): 'par' or 'spot'
            - as_of_date (str): observation date (ISO 8601 timestamp, e.g. 2026-06-01T00:00:00+00:00)
            - yield_value (float): yield value
            - source (str): data source

        Examples:
            "10-year HQM spot yield" → get_credit_corporate_hqm_yields(tenor=10, type="spot")
            "HQM par yields for 2025" → get_credit_corporate_hqm_yields(type="par", date_from="2025-01-01")
get_credit_sovereign_cds_spreads tool
Fetch sovereign CDS (credit default swap) spreads by country. Use when the user asks about
        sovereign CDS spreads, default insurance costs for government debt, or CDS net of the
        Switzerland benchmark.

        Returns sovereign CDS spreads (raw and net of Switzerland) with Moody's rating context.
        Filterable by country and as-of date. Paginated.

        Args:
            country (str, optional): Country ISO-3 code, or a comma-separated list of ISO-3 codes.
                Country names are NOT matched (upstream filters on ISO-3 only).
            as_of (str, optional): Filter by as-of date (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - country_iso3 (str): ISO-3 country code
            - country_name (str): country name
            - as_of_date (str): as-of date (ISO 8601 timestamp, e.g. 2026-01-01T00:00:00+00:00)
            - moodys_rating (str|null): Moody's rating
            - cds_spread (float|null): sovereign CDS spread
            - cds_spread_net_of_switzerland (float|null): CDS spread net of Switzerland benchmark
            - source (str): data source

        Examples:
            "Italy sovereign CDS spread" → get_credit_sovereign_cds_spreads(country="ITA")
            "CDS spreads as of 2025-06-30" → get_credit_sovereign_cds_spreads(as_of="2025-06-30")
get_credit_sovereign_credit_ratings tool
Fetch sovereign credit ratings from the three major agencies. Use when the user asks about
        a country's credit rating, Moody's / S&P / Fitch sovereign ratings, or ratings comparisons
        across countries.

        Returns Moody's, S&P, and Fitch sovereign ratings by country. Filterable by country and
        as-of date. Paginated.

        Args:
            country (str, optional): Country ISO-3 code, or a comma-separated list of ISO-3 codes.
                Country names are NOT matched (upstream filters on ISO-3 only).
            as_of (str, optional): Filter by as-of date (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - country_iso3 (str): ISO-3 country code
            - country_name (str): country name
            - as_of_date (str): as-of date (ISO 8601 timestamp, e.g. 2026-01-01T00:00:00+00:00)
            - moodys_rating (str|null): Moody's rating
            - sp_rating (str|null): S&P rating
            - fitch_rating (str|null): Fitch rating
            - source (str): data source

        Examples:
            "Germany credit rating" → get_credit_sovereign_credit_ratings(country="DEU")
            "Sovereign ratings as of 2025-01-01" → get_credit_sovereign_credit_ratings(as_of="2025-01-01")
get_credit_sovereign_default_spreads tool
Fetch default spreads by credit rating. Use when the user asks about the default spread
        associated with a given rating (e.g. Aaa, Baa2), or the rating-to-spread mapping used to
        derive country risk premiums.

        Returns the default spread for each rating bucket. Filterable by rating and as-of date.
        Paginated.

        Args:
            rating (str, optional): Filter by rating (e.g. 'Aaa', 'Baa2').
            as_of (str, optional): Filter by as-of date (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - rating (str): credit rating bucket
            - as_of_date (str): as-of date (ISO 8601 timestamp, e.g. 2026-01-01T00:00:00+00:00)
            - default_spread (float): default spread for the rating
            - source (str): data source

        Examples:
            "Default spread for Baa2" → get_credit_sovereign_default_spreads(rating="Baa2")
            "Rating default spreads as of 2025-01-01" → get_credit_sovereign_default_spreads(as_of="2025-01-01")
get_credit_sovereign_risk_premium tool
Fetch sovereign country risk premiums. Use when the user asks about country risk premium,
        equity risk premium, adjusted default spreads, or Moody's sovereign ratings by country.

        Returns country-level risk premium data (Damodaran-style): adjusted default spread,
        country risk premium, equity risk premium, corporate tax rate, and sovereign CDS where
        available. Filterable by country, region, and as-of date. Paginated.

        Args:
            country (str, optional): Country ISO-3 code, or a comma-separated list of ISO-3 codes.
                Country names are NOT matched (upstream filters on ISO-3 only).
            region (str, optional): Filter by region.
            as_of (str, optional): Filter by as-of date (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - country_iso3 (str): ISO-3 country code
            - country_name (str): country name
            - region (str|null): region
            - as_of_date (str): as-of date (ISO 8601 timestamp, e.g. 2026-01-01T00:00:00+00:00)
            - moodys_rating (str|null): Moody's sovereign rating
            - adj_default_spread (float|null): adjusted default spread
            - country_risk_premium (float|null): country risk premium
            - equity_risk_premium (float|null): equity risk premium
            - corporate_tax_rate (float|null): corporate tax rate
            - sovereign_cds (float|null): sovereign CDS spread
            - source (str): data source

        Examples:
            "US country risk premium" → get_credit_sovereign_risk_premium(country="USA")
            "Latin America risk premiums" → get_credit_sovereign_risk_premium(region="Latin America")
get_earnings_trends tool
Get earnings trend data including EPS/revenue estimates, analyst revisions, and growth projections for specific stocks.
        Returns quarterly and annual consensus estimates, number of analysts, and revision history.
        Requires explicit symbol(s). Each request consumes ~10 API calls.
        Use when the user asks about earnings expectations, analyst estimate changes, or EPS growth trends.
        For earnings report dates and calendar, use get_upcoming_earnings instead.

        Returns:
            Array of trend records, each with:
            - code (str): ticker symbol
            - date (str): report date
            - period (str): fiscal period (e.g. '+1y', '0q')
            - growth (float|null): expected growth rate
            - earningsEstimate (object): avg, low, high, yearAgoEps, numberOfAnalysts, growth
            - revenueEstimate (object): avg, low, high, yearAgoRevenue, numberOfAnalysts, growth
            - epsTrend (object): current, 7daysAgo, 30daysAgo, 60daysAgo, 90daysAgo
            - epsRevisions (object): upLast7days, upLast30days, downLast7days, downLast30days

        Examples:
            "Apple earnings trend" → symbols="AAPL.US"
            "Compare Tesla and Nvidia earnings trends" → symbols="TSLA.US,NVDA.US"


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_economic_events tool
Fetch macroeconomic calendar events such as GDP, CPI, employment, and interest rate releases.
        Returns scheduled and past economic indicators with actual, estimate, and previous values.
        Covers global economies; filter by country (ISO-2), date range, comparison period (mom/qoq/yoy), and event type.
        Use when the user asks about economic calendar, macro releases, or upcoming government data publications.
        This tool covers macro events only -- for company-level earnings dates, use get_upcoming_earnings.

        Returns:
            Array of events, each with:
            - type (str): event category
            - country (str): ISO-3166 alpha-2 country code
            - date (str): event datetime
            - actual (float|null): actual value
            - previous (float|null): previous period value
            - estimate (float|null): consensus estimate
            - change (float|null): absolute change
            - changePercentage (float|null): percentage change
            - event (str): event name/description

        Examples:
            "US economic events this week" → country="US", start_date="2026-03-02", end_date="2026-03-06"
            "German GDP year-over-year" → country="DE", comparison="yoy", type="GDP"
            "All events in March 2026, first 200" → start_date="2026-03-01", end_date="2026-03-31", limit=200


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_exchange_details tool
Retrieve detailed metadata for a single exchange: trading hours, timezone, open/closed
        status, holidays, and ticker counts. Use when the user asks about exchange schedules,
        market holidays, or whether an exchange is currently open.

        Returns timezone, isOpen flag, trading hours (open/close with UTC equivalents, working
        days, lunch breaks), exchange holidays (bank and official, ~6 months window), and
        ticker statistics (active, updated today, previous day).

        For the list of all exchanges, use get_exchanges_list.
        For tickers on an exchange, use get_exchange_tickers.

        Args:
            exchange_code (str): Exchange code (e.g., 'US', 'LSE', 'XETRA').
            start_date (str, optional): YYYY-MM-DD; filter holidays from this date.
            end_date (str, optional): YYYY-MM-DD; filter holidays up to this date.
            fmt (str): 'json' only (default).
            api_token (str, optional): Per-call token override (env token otherwise).

        Returns:
            Object with:
            - Name (str): exchange full name
            - Code (str): exchange code
            - OperatingMIC (str): ISO 10383 operating MIC
            - Country (str): country name
            - Currency (str): primary currency code
            - CountryISO2 (str): alpha-2 country code
            - CountryISO3 (str): alpha-3 country code
            - Timezone (str): IANA timezone (e.g. "America/New_York")
            - isOpen (bool): whether the exchange is currently open
            - tradingHours (object): open, close, UTC equivalents, working days, lunch hours
            - ExchangeHolidays (array): holiday objects with Name, Date, Type (bank/official)
            - ActiveTickers (int): tickers active in last 2 months
            - UpdatedTickers (int): tickers updated today
            - PreviousDayUpdatedTickers (int): tickers updated previous day

        Examples:
            "Is the US market open right now?" → get_exchange_details(exchange_code="US")
            "LSE trading hours and timezone" → get_exchange_details(exchange_code="LSE")
            "XETRA holidays in Q1 2026" → get_exchange_details(exchange_code="XETRA", start_date="2026-01-01", end_date="2026-03-31")
get_exchange_tickers tool
List all tickers (symbols) available on a given exchange. Use when the user needs to
        enumerate stocks, ETFs, or funds on an exchange, or check if a specific instrument
        is listed there.

        Covers common stocks, preferred stocks, ETFs, and funds. By default returns tickers
        active in the last month. Supports delisted tickers via the delisted flag. For US
        markets, use 'US' (unified) or specific venues like NYSE, NASDAQ.

        For the list of all exchanges, use get_exchanges_list.
        For exchange metadata and trading hours, use get_exchange_details.

        Returns:
            Array of ticker objects, each with:
            - Code (str): ticker symbol
            - Name (str): instrument name
            - Country (str): country of listing
            - Exchange (str): exchange code
            - Currency (str): trading currency
            - Type (str): instrument type (e.g. "Common Stock", "ETF")
            - Isin (str|null): ISIN code, if available

        Examples:
            "All tickers on London Stock Exchange" → get_exchange_tickers(exchange_code="LSE")
            "Show me delisted US stocks" → get_exchange_tickers(exchange_code="US", delisted=True)
            "ETFs trading on XETRA" → get_exchange_tickers(exchange_code="XETRA", type="etf")
get_exchanges_list tool
List all available stock exchanges worldwide. Use when the user asks which exchanges
        are supported, needs exchange codes, or wants to browse markets by country.

        Covers 60+ global exchanges. Returns Name, Code, OperatingMIC, Country, Currency,
        and ISO country codes for each exchange.

        For tickers listed on a specific exchange, use get_exchange_tickers.
        For trading hours, holidays, and metadata of one exchange, use get_exchange_details.

        Returns:
            Array of exchange objects, each with:
            - Name (str): exchange full name
            - Code (str): exchange code (e.g. "US", "LSE")
            - OperatingMIC (str): ISO 10383 operating MIC
            - Country (str): country name
            - Currency (str): primary currency code
            - CountryISO2 (str): ISO 3166-1 alpha-2 country code
            - CountryISO3 (str): ISO 3166-1 alpha-3 country code

        Examples:
            "List all available exchanges" → get_exchanges_list()
            "What stock exchanges does EODHD support?" → get_exchanges_list()
get_fundamentals_data tool
Retrieve fundamental data for a single stock, ETF, mutual fund, index, or crypto.
        Auto-detects asset type. For stocks: returns financials (income statement, balance sheet, cash flow),
        earnings, valuation, analyst ratings, holders, insider transactions, and outstanding shares.
        For ETFs: returns holdings, asset allocation, sector/country weights. For mutual funds: fund-specific data.
        Supports date-range pruning to limit financials and earnings to a specific window.
        For bulk fundamentals across many tickers at once, use get_bulk_fundamentals instead.
        For price data, use get_historical_stock_prices or get_live_price_data instead.

        Returns:
            Nested object; structure depends on asset Type:

            Common Stock — top-level keys:
            - General: name, exchange, currency, sector, industry, description, etc.
            - Highlights: marketCap, EBITDA, PE, EPS, dividendYield, etc.
            - Valuation: trailing/forward PE, PEG, price-to-sales/book, EV ratios
            - SharesStats: shares outstanding, float, percent insiders/institutions
            - Technicals: beta, 52wHigh/Low, moving averages, short ratio
            - SplitsDividends: forward/trailing dividend rate & yield, payout ratio, split history
            - AnalystRatings: target price, strong buy/buy/hold/sell/strong sell counts
            - Holders: top institutional & fund holders with shares/weight
            - InsiderTransactions: array of insider trades (date, name, shares, value)
            - outstandingShares: quarterly & annual share counts by date
            - Earnings: History (actual/estimate EPS), Trend, Annual
            - Financials: Balance_Sheet, Cash_Flow, Income_Statement (quarterly & yearly)

            ETF — top-level keys:
            - General, Technicals
            - ETF_Data: Holdings (top N positions), Sector_Weights, World_Regions,
              Top_10_Holdings, Asset_Allocation, performance, fees

            Mutual Fund — top-level keys:
            - General
            - MutualFund_Data: fund family, category, NAV, yield, holdings, sector weights

            Index — General only (pass extra_params={'historical': 1} for components).

        Examples:
            "Apple fundamentals" → ticker="AAPL.US"
            "Tesla earnings and valuation for 2025" → ticker="TSLA.US", sections=["Earnings", "Valuation"], from_date="2025-01-01", to_date="2025-12-31"
            "Vanguard Total Stock Market ETF info" → ticker="VTI.US", sections=["General", "ETF_Data"]


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_historical_commodity_prices tool
Get historical price data for a commodity series (energy, metals, agriculturals, and
        commodity indices) sourced from FRED (Federal Reserve Economic Data). Series go back
        decades for major energy commodities. Costs 5 API calls per request.

        Use when the user asks for the price history of oil, gas, metals, or agricultural
        commodities, or a broad commodity index — e.g. WTI/Brent crude, natural gas, gasoline,
        diesel, copper, aluminum, wheat, corn, sugar, coffee, uranium, coal, or ALL_COMMODITIES.

        Available codes:
            Energy: WTI, BRENT, NATURAL_GAS, GASOLINE_US, DIESEL_USGULF, HEATING_OIL_NYH,
                JET_FUEL_USGULF, PROPANE_MBTX, COAL_AU, URANIUM
            Metals: ALUMINUM, COPPER
            Agricultural: WHEAT, CORN, SUGAR, COTTON, COFFEE_MILD_ARABICA, COFFEE_ROBUSTAS
            Indices: ALL_COMMODITIES, ALL_COMMODITIES_PRODUCER, ENERGY_INDEX, NATGAS_EU, LNG_ASIA

        Args:
            code (str): Commodity code (e.g. 'WTI', 'BRENT', 'URANIUM') or 'ALL_COMMODITIES'.
                Case-insensitive; normalized to upper case.
            interval (str): Data frequency — 'daily', 'weekly', 'monthly' (default),
                'quarterly', or 'annual'. Daily data is only available for energy commodities.
            api_token (str, optional): Per-call token override.

        Returns:
            Object with:
            - meta (object):
                - name (str): full commodity name from FRED
                - interval (str): data frequency
                - unit (str): measurement unit (e.g. 'Dollars per Barrel', 'Index 2016 = 100')
                - total (int): total number of data points available
            - data (array): records ordered newest-first, each with:
                - date (str): YYYY-MM-DD
                - value (float): price or index value

        Notes:
            - 5 API calls per request.
            - The 'demo' API key only returns WTI; other codes return 403 with that key.
            - Monthly metals/agriculturals/indices lag 2–3 weeks after month end; daily energy
              series are published by the EIA in weekly batches (up to ~1 week lag).

        Examples:
            "WTI crude oil price history" → code="WTI"
            "Daily Brent prices" → code="BRENT", interval="daily"
            "Annual copper prices" → code="COPPER", interval="annual"
            "Global all-commodities index" → code="ALL_COMMODITIES"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key only provides access to WTI in the Commodities API.
get_historical_dividends tool
Get historical dividend records for a stock, ETF, or fund ticker.
        Returns ex-dividend dates, dividend amounts, and for many major tickers also declaration,
        record, and payment dates. Free access may be limited to roughly 1 year of history,
        while paid plans can return deeper history.
        Use when the user asks about dividend history, ex-dividend dates, payout trends,
        or dividend event details for a specific ticker.
        For upcoming dividend calendar events across symbols or dates, use get_upcoming_dividends.

        Args:
            ticker (str): Symbol in SYMBOL.EXCHANGE format, e.g. 'AAPL.US'.
            start_date (str, optional): 'from' date in YYYY-MM-DD.
            end_date (str, optional): 'to' date in YYYY-MM-DD.
            fmt (str): 'json' only.
            api_token (str, optional): Per-call token override.

        Returns:
            Array of dividend records, each with fields such as:
            - date (str): ex-dividend date
            - declarationDate (str | null): declaration date when available
            - recordDate (str | null): record date when available
            - paymentDate (str | null): payment date when available
            - period (str | null): payout frequency such as 'Quarterly'
            - value (float): adjusted dividend value
            - unadjustedValue (float): unadjusted dividend value
            - currency (str): dividend currency

        Examples:
            "Apple dividend history since 2024" → ticker="AAPL.US", start_date="2024-01-01"
            "Microsoft dividends in 2025" → ticker="MSFT.US", start_date="2025-01-01", end_date="2025-12-31"
            "Latest dividend history for VTI" → ticker="VTI.US"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_historical_market_cap tool
Get historical market capitalization data for a US stock over time.
        Returns weekly market cap data points (from 2020 onward) for NYSE/NASDAQ tickers.
        Filter by date range. Each request consumes 10 API calls.
        Use when the user asks about market cap history, company valuation over time, or market cap trends.
        This is the only tool for historical market cap -- do not confuse with fundamental data or price history.

        Returns:
            Array of weekly data points, each with:
            - date (str): observation date YYYY-MM-DD
            - value (float): market capitalization in USD

        Examples:
            "Apple market cap history in 2025" → ticker="AAPL.US", start_date="2025-01-01", end_date="2025-12-31"
            "Microsoft market cap last 6 months" → ticker="MSFT.US", start_date="2025-09-06", end_date="2026-03-06"
            "Google market cap since 2023" → ticker="GOOG.US", start_date="2023-01-01"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_historical_splits tool
Get historical stock split events for a specific ticker.
        Returns split dates and split ratios such as 2-for-1, 4-for-1, or reverse split ratios.
        Use when the user asks about historical splits, reverse splits, or corporate action history
        for a specific stock.
        For upcoming split calendar events across symbols or dates, use get_upcoming_splits.

        Args:
            ticker (str): Symbol in SYMBOL.EXCHANGE format, e.g. 'AAPL.US'.
            start_date (str, optional): 'from' date in YYYY-MM-DD.
            end_date (str, optional): 'to' date in YYYY-MM-DD.
            fmt (str): 'json' only.
            api_token (str, optional): Per-call token override.

        Returns:
            Array of split records, each with:
            - date (str): split effective date
            - split (str): split ratio string such as '4.000000/1.000000'

        Examples:
            "Apple split history since 2000" → ticker="AAPL.US", start_date="2000-01-01"
            "Tesla split history" → ticker="TSLA.US"
            "NVIDIA splits between 2010 and 2025" → ticker="NVDA.US", start_date="2010-01-01", end_date="2025-12-31"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_historical_stock_prices tool
Get historical daily, weekly, or monthly OHLCV price data for any stock, ETF, index, or crypto.
        Covers open, high, low, close, adjusted close, and volume for a date range.
        Use for price history, charting, backtesting, and performance analysis.
        For intraday candles (1min-1h), use get_intraday_historical_data instead.
        For current/live prices, use get_live_price_data instead.

        Args:
            ticker (str): Symbol in SYMBOL.EXCHANGE format, e.g. 'AAPL.US'.
            start_date (str, optional): 'from' date in YYYY-MM-DD. If omitted, API returns full history (plan limits apply).
            end_date (str, optional): 'to' date in YYYY-MM-DD. If omitted, API returns up to most recent.
            period (str): 'd' (daily), 'w' (weekly), 'm' (monthly). Default 'd'.
            order (str): 'a' (ascending) or 'd' (descending). Default 'a'.
            fmt (str): 'json' or 'csv'. Default 'json'. (API default is csv.)
            filter (str, optional): e.g., 'last_close', 'last_volume' (works with fmt=json; returns a single value).
            api_token (str, optional): Override API token for this call. If not provided, env token is used.

        Returns:
            Array of daily/weekly/monthly records, each with:
            - date (str): YYYY-MM-DD
            - open, high, low, close (float): OHLC prices (unadjusted)
            - adjusted_close (float): split- and dividend-adjusted close
            - volume (int): shares traded

            Use adjusted_close for return calculations; close is raw exchange price.
            If filter is set (e.g. 'last_close'), returns a single scalar value.

        Examples:
            "Apple stock price last month" → ticker="AAPL.US", start_date="2026-02-01", end_date="2026-02-28"
            "Weekly Tesla for 2025" → ticker="TSLA.US", period="w", start_date="2025-01-01", end_date="2025-12-31"
            "Monthly S&P 500 since 2020" → ticker="GSPC.INDX", period="m", start_date="2020-01-01"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_insider_transactions tool
Fetch SEC Form 4 insider trading transactions -- purchases and sales by company officers, directors, and major shareholders.
        Returns transaction date, insider name, title, transaction type (P=Purchase, S=Sale), shares, and value.
        Filter by ticker symbol and/or date range. Each request consumes 10 API calls.
        Use when the user asks about insider buying/selling activity, executive stock transactions, or Form 4 filings.

        Args:
            start_date (str, optional): 'from' in YYYY-MM-DD. Defaults to ~1 year ago by API if omitted.
            end_date (str, optional):   'to'   in YYYY-MM-DD. Defaults to today by API if omitted.
            limit (int): Number of entries to return, 1..1000. Default 100.
            symbol (str, optional): Filter by ticker (API param 'code'), e.g. 'AAPL' or 'AAPL.US'.
            fmt (str): Only 'json' is supported by this tool.
            api_token (str, optional): Per-call token; env token used if omitted.

        Returns:
            Object with:
            - code (str): ticker symbol
            - transactions (list): array of transactions, each with:
              - date (str): transaction date
              - ownerName (str): insider name
              - transactionType (str): 'P' (Purchase) or 'S' (Sale)
              - sharesTraded (int): number of shares traded
              - pricePerShare (float|null): price per share
              - sharesOwned (int): total shares owned after transaction

        Notes:
            • Each request consumes 10 API calls (per docs).
            • Transaction codes in results include 'P' (Purchase) and 'S' (Sale).

        Examples:
            "Apple insider trades this year" → symbol="AAPL.US", start_date="2026-01-01", end_date="2026-03-06"
            "Recent insider transactions, top 50" → limit=50
            "Tesla insider buys and sells in Feb 2026" → symbol="TSLA.US", start_date="2026-02-01", end_date="2026-02-28"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_insider_transactions_form4 tool
Get SEC Form 4 insider-trading filings for a US-listed issuer, sourced directly from
        SEC EDGAR. This is the richer V2 ("SEC Form 4") endpoint: each filing exposes
        non-derivative transactions (common stock), derivative transactions (options, RSUs,
        warrants), and the footnotes referenced from each row, with the full SEC transaction
        code set and reporting-owner relationship flags. Costs 10 API calls per request.

        Use when the user asks about insider buying/selling, executive stock transactions, or
        Form 4 filings for a US company and wants full per-filing detail. For a flat, simpler
        list across symbols/dates use the legacy get_insider_transactions tool instead.

        Args:
            symbol (str): US ticker, e.g. 'AAPL' or 'AAPL.US'. Case-insensitive; the .US suffix
                is optional. Form 4 is filed by US-listed issuers only — non-US symbols 404.
            limit (int): Page size, 1..100. Default 20.
            offset (int): Zero-based pagination offset. Default 0.
            api_token (str, optional): Per-call token override.

        Returns:
            Object with:
            - data (array): Form 4 filings (newest filed_at first), each with:
                - accession_number (str): unique SEC filing identifier
                - filed_at (str): submission date (YYYY-MM-DD)
                - period_of_report (str): reporting period (YYYY-MM-DD)
                - non_derivative (array): direct stock transactions, each with reporting_owner_cik,
                  reporting_owner_name, is_director/is_officer/is_ten_percent_owner/is_other,
                  officer_title, security_title, transaction_date, transaction_code,
                  acquired_or_disposed (A/D), shares_amount, price_per_share, shares_owned_after,
                  total_value
                - derivative (array): option/RSU/warrant transactions, adding
                  conversion_or_exercise_price, underlying_security_title, underlying_shares,
                  exercise_date, expiration_date
                - footnotes (array): {footnote_id, text} referenced from transaction rows
            - meta (object): total (int) and page {offset, limit}.
            - links (object): next (str|null) — URL for the next page, null on the last page.

        Notes:
            - 10 API calls per request.
            - Transaction codes follow the SEC Section 16 set (P=purchase, S=sale, A=grant,
              M=exercise/conversion, F=tax withholding, G=gift, etc.).
            - Forward-only pagination: only 'links.next' is exposed. Increment 'offset' (up to
              'meta.total') to reach a specific page.
            - History depth varies by ticker — large caps (AAPL, MSFT, NVDA) reach back many
              years; recently onboarded issuers may expose ~12 months.

        Examples:
            "Apple insider Form 4 filings" → symbol="AAPL.US"
            "Tesla insider transactions, 50 per page" → symbol="TSLA", limit=50
            "Next page of NVDA insider filings" → symbol="NVDA.US", offset=20

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_intraday_historical_data tool
Get historical intraday OHLCV candles at 1-minute, 5-minute, or 1-hour intervals.
        Use for intraday price analysis, short-term patterns, and high-resolution charting.
        Accepts date strings or Unix timestamps for the time range.
        Max range depends on interval: 1m=120 days, 5m=600 days, 1h=7200 days.
        For daily/weekly/monthly end-of-day bars, use get_historical_stock_prices instead.
        For current live price, use get_live_price_data instead.

        Args:
            ticker (str): SYMBOL.EXCHANGE_ID, e.g. 'AAPL.US'.
            interval (str): One of {'1m','5m','1h'}. Default '5m'.
            from_timestamp (int|str, optional): Start as Unix seconds OR a date string
                (auto-detected). Examples: 1704067200, '2024-01-01', '01-01-24', '01/01/2024',
                '2024-01-01T15:30:00Z', 'Jan 1, 2024'.
            to_timestamp (int|str, optional): End as Unix seconds OR a date string (auto-detected).
            fmt (str): 'json' or 'csv'. Default 'json'.
            split_dt (bool, optional): If True, adds 'split-dt=1' to split date/time fields.
            api_token (str, optional): Per-call token override; env token used if omitted.

        Returns:
            Array of intraday bar records, each with:
            - timestamp (int): Unix epoch seconds
            - gmtoffset (int): GMT offset in seconds for the exchange
            - datetime (str): human-readable datetime (YYYY-MM-DD HH:MM:SS)
            - open, high, low, close (float): bar OHLC
            - volume (int): shares traded in this bar

        Notes:
            - If no 'from'/'to' provided, API returns last 120 days by default (per docs).
            - Max span depends on interval:
                1m -> 120 days, 5m -> 600 days, 1h -> 7200 days.

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_live_price_data tool
Get the current (delayed ~15-20 min) price snapshot for one or more tickers.
        Returns last trade price, change, change percent, volume, high, low, open, previous close, and timestamp.
        Supports stocks, ETFs, indices, forex, and crypto. Batch up to 20 symbols in one call.
        For US stocks with bid/ask, 52w range, and market cap, use get_us_live_extended_quotes instead.
        For historical daily/weekly/monthly OHLCV, use get_historical_stock_prices instead.

        Args:
            ticker (str): Primary symbol in SYMBOL.EXCHANGE format (e.g., 'AAPL.US').
                          Required and placed in the path, per API spec.
            additional_symbols (Sequence[str], optional): Extra symbols for 's=' query param,
                          comma-separated by the tool (e.g., ['VTI', 'EUR.FOREX']).
                          Docs recommend <= 15–20 total.
            fmt (str): 'json' or 'csv'. Defaults to 'json' for easier client handling.
            api_token (str, optional): Per-call token override. If omitted, env token is used.

        Returns:
            Single object (one ticker) or array (multiple tickers), each with:
            - code (str): ticker symbol
            - timestamp (int): Unix epoch seconds of last trade
            - open, high, low, close (float): session OHLC
            - volume (int): session volume
            - previousClose (float): prior session close
            - change (float): absolute change from previousClose
            - change_p (float): percent change from previousClose

            Prices are delayed ~15-20 min depending on exchange.

        Examples:
            "Current Apple price" → ticker="AAPL.US"
            "Live quotes for Tesla, Google, and Amazon" → ticker="TSLA.US", additional_symbols=["GOOG.US", "AMZN.US"]
            "Bitcoin and Ethereum prices right now" → ticker="BTC-USD.CC", additional_symbols=["ETH-USD.CC"]


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_macro_indicator tool
Fetch macroeconomic indicators for a country over time. Use when the user asks about
        country-level economic data: GDP, inflation, CPI, unemployment, population, trade
        balance, debt-to-GDP, life expectancy, and 30+ other World Bank-style indicators.

        Returns a historical time series for one indicator in one country. Country is specified
        by ISO-3 alpha code (e.g., USA, DEU, FRA). Defaults to GDP if no indicator specified.

        This is for country-level macro data only. For company fundamentals, use
        get_fundamentals_data (single ticker) or get_bulk_fundamentals (entire exchange).

        Args:
            country (str): Alpha-3 ISO country code (e.g., 'USA', 'FRA', 'DEU').
            indicator (str, optional): One of documented indicators. Defaults to 'gdp_current_usd'.
            fmt (str): 'json' or 'csv'. Default 'json'.
            api_token (str, optional): Per-call token override.


        Returns:
            Array of indicator data points, each with:
            - CountryCode (str): ISO-3 country code (e.g. "USA")
            - Indicator (str): indicator key (e.g. "gdp_current_usd")
            - Date (str): observation date (YYYY-MM-DD)
            - Period (str): reporting period
            - Value (float): indicator value
            - Frequency (str): data frequency (e.g. "Annual")
            - Unit (str): measurement unit

        Examples:
            "US GDP over time" → get_macro_indicator(country="USA", indicator="gdp_current_usd")
            "Germany unemployment rate" → get_macro_indicator(country="DEU", indicator="unemployment_total_percent")
            "France inflation (CPI)" → get_macro_indicator(country="FRA", indicator="inflation_consumer_prices_annual")
mp_index_components tool
[Marketplace] Get constituent stocks of a specific S&P or Dow Jones index, including
        historical component changes for major indices. Use when asked which stocks are in an
        index, or to track index rebalancing history.
        Requires the index symbol from mp_indices_list (e.g. GSPC.INDX for S&P 500).
        To browse available indices first, use mp_indices_list.
        Consumes 10 API calls per request.

        Args:
          - symbol: index ID from the list endpoint (e.g., GSPC.INDX)
          - fmt: 'json' (only)
          - api_token: optional override API token


        Returns:
            JSON object with:
            - Components (array): Current index constituents, each with:
              - Code (str): Ticker symbol.
              - Exchange (str): Exchange code.
              - Name (str): Company name.
              - Sector (str): GICS sector.
              - Industry (str): GICS industry.
              - Weight (float): Index weight.
            - Historical changes (for major indices): additions/removals over time.

        Examples:
            "what are the S&P 500 components" → symbol="GSPC.INDX"
            "Dow Jones Industrial Average constituents" → symbol="DJI.INDX"
            "S&P 400 MidCap index members" → symbol="SP400.INDX"
mp_indices_list tool
[Marketplace] List all available S&P and Dow Jones indices with end-of-day details.
        Use when asked to browse or enumerate major stock market indices, or to find an index
        symbol before fetching its components with mp_index_components.
        Covers 100+ indices including S&P 500, Dow Jones, and sector indices.
        For components/constituents of a specific index, use mp_index_components.
        Consumes 10 API calls per request.

        Args:
          - fmt: 'json' (default). (CSV is not documented; keep JSON only.)
          - api_token: optional override API token


        Returns:
            JSON array of objects, each with:
            - code (str): Index ticker code (e.g. 'GSPC.INDX').
            - name (str): Index name (e.g. 'S&P 500').
            - exchange (str): Exchange identifier.
            - currency (str): Currency code (e.g. 'USD').

        Examples:
            "show all S&P and Dow Jones indices" → (no params)
            "list available market indices with details" → (no params)
get_mp_investverte_esg_list_companies tool
[InvestVerte] List all companies available in the ESG dataset.
        Returns an array of symbol/name pairs for every company with ESG coverage.
        Use as a reference lookup before calling get_mp_investverte_esg_view_company for detailed ESG scores.
        Consumes 10 API calls per request.
        For country or sector reference lists, use get_mp_investverte_esg_list_countries or list_sectors.


        Returns:
            A JSON-formatted string containing an array of objects:
            [
              {"symbol": "000001.SZ", "name": "Ping An Bank Co., Ltd."},
              {"symbol": "000002.SZ", "name": "China Vanke Co., Ltd."},
              ...
            ]

        Notes:
            - This endpoint lists all companies covered by the Investverte ESG dataset.
            - Rate limits (Marketplace product):
                * 100,000 API calls per 24 hours
                * 1,000 API requests per minute
                * 1 API request = 10 API calls

        Examples:
            "List all ESG companies" → (no params needed)
            "Which companies have ESG data?" → (no params needed)
get_mp_investverte_esg_list_countries tool
[InvestVerte] List all countries available in the ESG dataset.
        Returns an array of country_code/country_descr pairs for every country with ESG coverage.
        Use as a reference lookup before calling get_mp_investverte_esg_view_country for detailed ESG scores.
        Consumes 10 API calls per request.
        For company or sector reference lists, use get_mp_investverte_esg_list_companies or list_sectors.


        Returns:
            A JSON-formatted string containing an array of objects:
            [
              {"country_code": "AD", "country_descr": "Andorra"},
              {"country_code": "AE", "country_descr": "United Arab Emirates"},
              ...
            ]

        Notes:
            - This endpoint lists all countries covered by the Investverte ESG dataset.
            - Rate limits (Marketplace product):
                * 100,000 API calls per 24 hours
                * 1,000 API requests per minute
                * 1 API request = 10 API calls

        Examples:
            "List all ESG countries" → (no params needed)
            "Which countries have ESG ratings?" → (no params needed)
get_mp_investverte_esg_list_sectors tool
[InvestVerte] List all sectors available in the ESG dataset.
        Returns an array of sector names with ESG coverage (e.g., "Airlines", "Aerospace & Defense").
        Use as a reference lookup before calling get_mp_investverte_esg_view_sector for detailed ESG data.
        Consumes 10 API calls per request.
        For company or country reference lists, use get_mp_investverte_esg_list_companies or list_countries.


        Returns:
            A JSON-formatted string containing an array of objects:
            [
              {"sector": "Aerospace & Defense"},
              {"sector": "Airlines"},
              ...
            ]

        Notes:
            - This endpoint lists all sectors covered by the Investverte ESG dataset.
            - Rate limits (Marketplace product):
                * 100,000 API calls per 24 hours
                * 1,000 API requests per minute
                * 1 API request = 10 API calls

        Examples:
            "List all ESG sectors" → (no params needed)
            "What sectors have ESG coverage?" → (no params needed)
get_mp_investverte_esg_view_company tool
[InvestVerte] Get detailed ESG scores (E, S, G, and composite) for a specific company by symbol.
        Returns Environmental, Social, Governance, and combined ESG scores broken down by year and
        frequency (FY, Q1-Q4). Optionally filter by year and frequency. Consumes 10 API calls per request.
        Use get_mp_investverte_esg_list_companies first to discover available symbols.
        For country-level ESG, use get_mp_investverte_esg_view_country.
        For sector-level ESG, use get_mp_investverte_esg_view_sector.


        Returns:
            A JSON-formatted string with an array of objects, e.g.:

            [
              {
                "e": 58.97,
                "s": 68.66,
                "g": 65.21,
                "esg": 64.09,
                "year": 2021,
                "frequency": "FY"
              },
              ...
            ]

        Notes:
            - Year and frequency are optional; when omitted, all available
              years/frequencies for the symbol are returned.
            - Rate limits (Marketplace product):
                * 100,000 API calls per 24 hours
                * 1,000 API requests per minute
                * 1 API request = 10 API calls

        Examples:
            - /api/mp/investverte/esg/AAPL?year=2021&frequency=FY
            - /api/mp/investverte/esg/000039.SZ
get_mp_investverte_esg_view_country tool
[InvestVerte] Get detailed ESG ratings for a specific country by country code.
        Returns mean and median ESG scores broken down by year and frequency (FY, Q1-Q4).
        Optionally filter by year and frequency. Consumes 10 API calls per request.
        Use get_mp_investverte_esg_list_countries first to discover available country codes.
        For company-level ESG, use get_mp_investverte_esg_view_company.
        For sector-level ESG, use get_mp_investverte_esg_view_sector.


        Returns:
            A JSON-formatted string with an array of objects, e.g.:

            [
              {
                "symbol": "US",
                "name": "United States of America",
                "mean": 63.2928294103373,
                "median": 63.32,
                "year": 2021,
                "frequency": "FY"
              },
              ...
            ]

        Notes:
            - Year and frequency are optional; when omitted, all available
              years/frequencies for the country are returned.
            - Rate limits (Marketplace product):
                * 100,000 API calls per 24 hours
                * 1,000 API requests per minute
                * 1 API request = 10 API calls

        Examples:
            - /api/mp/investverte/country/US?year=2021&frequency=FY
            - /api/mp/investverte/country/US
get_mp_investverte_esg_view_sector tool
[InvestVerte] Get detailed ESG time-series data for a specific sector by name.
        Returns ESG values mapped by industry/sub-sector across all available year-frequency
        combinations (e.g., "2015-FY", "2021-Q3"). Consumes 10 API calls per request.
        Use get_mp_investverte_esg_list_sectors first to discover available sector names.
        For company-level ESG, use get_mp_investverte_esg_view_company.
        For country-level ESG, use get_mp_investverte_esg_view_country.


        Returns:
            A JSON-formatted string with a sector ESG object:
            {
              "find": true,
              "industry": {
                "Airlines": [<ESG values per year>],
                "Transportation": [<ESG values per year>]
              },
              "years": ["2015-FY", "2015-Q1", ...]
            }
            Fields:
              - find (bool): whether the sector was found
              - industry (object): map of industry/sector names to arrays of ESG
                values aligned with the "years" axis
              - years (array of str): time axis labels in "YYYY-frequency" format

        Notes:
            - The 'industry' section contains sector/industry names mapped
              to ESG values over the 'years' axis.
            - Rate limits (Marketplace product):
                * 100,000 API calls per 24 hours
                * 1,000 API requests per minute
                * 1 API request = 10 API calls

        Examples:
            "Airlines sector ESG data" → symbol="Airlines"
            "Aerospace & Defense ESG ratings" → symbol="Aerospace & Defense"
get_mp_praams_bank_balance_sheet_by_isin tool
[PRAAMS] Retrieve bank-specific balance sheet time series by ISIN code.
        Returns annual and quarterly data: loans, cash, deposits, securities REPO, investment portfolio,
        debt, total assets/equity, interest-earning assets, and interest-bearing liabilities.
        Tailored for banking sector analysis. Consumes 10 API calls per request.
        For lookup by ticker, use get_mp_praams_bank_balance_sheet_by_ticker.
        For bank income statement data, use get_mp_praams_bank_income_statement_by_isin.

        Returns:
          JSON object with Praams envelope:
            - success (bool): whether the request succeeded
            - items (array): time-series of balance sheet entries, each containing:
                - period (str): reporting period (e.g. "2023-Q4", "2023-FY")
                - loansGross (float|null): gross loans
                - loansProvisions (float|null): loan loss provisions
                - loansNet (float|null): net loans
                - cashEquivalents (float|null): cash & equivalents
                - depositsWithBanks (float|null): deposits with other banks
                - securitiesRepoAssets (float|null): securities REPO assets
                - securitiesRepoLiabilities (float|null): securities REPO liabilities
                - investmentPortfolio (float|null): investment portfolio
                - totalAssets (float|null): total assets
                - totalEquity (float|null): total equity
                - shortTermDebt (float|null): short-term debt
                - longTermDebt (float|null): long-term debt
                - interestEarningAssets (float|null): interest-earning assets
                - interestBearingLiabilities (float|null): interest-bearing liabilities
                - Additional bank-specific balance sheet line items
            - message (str): status message
            - errors (array): list of error messages, empty on success

        Limits (Marketplace rules):
          - 1 request = 10 API calls
          - 100k calls / 24h, 1k requests / minute
          - Output is JSON only
get_mp_praams_bank_balance_sheet_by_ticker tool
[PRAAMS] Retrieve bank-specific balance sheet time series by ticker symbol.
        Returns annual and quarterly data: loans, cash, deposits, securities REPO, investment portfolio,
        debt, total assets/equity, interest-earning assets, and interest-bearing liabilities.
        Tailored for banking sector analysis. Consumes 10 API calls per request.
        For lookup by ISIN, use get_mp_praams_bank_balance_sheet_by_isin.
        For bank income statement data, use get_mp_praams_bank_income_statement_by_ticker.

        Returns:
          JSON object with Praams envelope:
            - success (bool): whether the request succeeded
            - items (array): time-series of balance sheet entries, each containing:
                - period (str): reporting period (e.g. "2023-Q4", "2023-FY")
                - loansGross (float|null): gross loans
                - loansProvisions (float|null): loan loss provisions
                - loansNet (float|null): net loans
                - cashEquivalents (float|null): cash & equivalents
                - depositsWithBanks (float|null): deposits with other banks
                - securitiesRepoAssets (float|null): securities REPO assets
                - securitiesRepoLiabilities (float|null): securities REPO liabilities
                - investmentPortfolio (float|null): investment portfolio
                - totalAssets (float|null): total assets
                - totalEquity (float|null): total equity
                - shortTermDebt (float|null): short-term debt
                - longTermDebt (float|null): long-term debt
                - interestEarningAssets (float|null): interest-earning assets
                - interestBearingLiabilities (float|null): interest-bearing liabilities
                - Additional bank-specific balance sheet line items
            - message (str): status message
            - errors (array): list of error messages, empty on success

        Limits (Marketplace rules):
          - 1 request = 10 API calls
          - 100k calls / 24h, 1k requests / minute
          - Output is JSON only
get_mp_praams_bank_income_statement_by_isin tool
[PRAAMS] Retrieve bank-specific income statement time series by ISIN code.
        Returns annual and quarterly data: core revenue, net interest income, fee & commission income,
        RIBPT, non-recurring income, IBPT, and provisioning. Tailored for banking sector analysis.
        Consumes 10 API calls per request.
        For lookup by ticker, use get_mp_praams_bank_income_statement_by_ticker.
        For bank balance sheet data, use get_mp_praams_bank_balance_sheet_by_isin.

        Returns:
          JSON object with Praams envelope:
            - success (bool): whether the request succeeded
            - items (array): time-series of income statement entries, each containing:
                - period (str): reporting period (e.g. "2023-Q4", "2023-FY")
                - coreRevenue (float|null): total core revenue
                - netInterestIncome (float|null): net interest income
                - netFeeCommissionIncome (float|null): net fee & commission income
                - ribpt (float|null): recurring income before provisioning and taxes
                - nonRecurringIncome (float|null): non-recurring income items
                - ibpt (float|null): income before provisioning and taxes
                - provisioning (float|null): loan loss provisions
                - Additional bank-specific income line items
            - message (str): status message
            - errors (array): list of error messages, empty on success

        Limits (Marketplace rules):
          - 1 request = 10 API calls
          - 100k calls / 24h, 1k requests / minute
          - Output is JSON only
get_mp_praams_bank_income_statement_by_ticker tool
[PRAAMS] Retrieve bank-specific income statement time series by ticker symbol.
        Returns annual and quarterly data: core revenue, net interest income, fee & commission income,
        RIBPT, non-recurring income, IBPT, and provisioning. Tailored for banking sector analysis.
        Consumes 10 API calls per request.
        For lookup by ISIN, use get_mp_praams_bank_income_statement_by_isin.
        For bank balance sheet data, use get_mp_praams_bank_balance_sheet_by_ticker.

        Returns:
          JSON object with Praams envelope:
            - success (bool): whether the request succeeded
            - items (array): time-series of income statement entries, each containing:
                - period (str): reporting period (e.g. "2023-Q4", "2023-FY")
                - coreRevenue (float|null): total core revenue
                - netInterestIncome (float|null): net interest income
                - netFeeCommissionIncome (float|null): net fee & commission income
                - ribpt (float|null): recurring income before provisioning and taxes
                - nonRecurringIncome (float|null): non-recurring income items
                - ibpt (float|null): income before provisioning and taxes
                - provisioning (float|null): loan loss provisions
                - Additional bank-specific income line items
            - message (str): status message
            - errors (array): list of error messages, empty on success

        Limits (Marketplace rules):
          - 1 request = 10 API calls
          - 100k calls / 24h, 1k requests / minute
          - Output is JSON only
get_mp_praams_bond_analyze_by_isin tool
[PRAAMS] Get deep risk-return analysis for a bond identified by ISIN code.
        Returns PRAAMS ratio, coupon profile, credit/solvency assessment, stress-manual results,
        volatility, liquidity, country risk narratives, and issuer-level fundamentals.
        Use for detailed bond-specific due diligence. Consumes 10 API calls per request.
        For bond screening across multiple instruments, use get_mp_praams_smart_screener_bond.
        For a full PDF bond report, use get_mp_praams_report_bond_by_isin.

        Returns:
          JSON object with Praams envelope:
            - success (bool): whether the request succeeded
            - item (object): bond analysis payload containing:
                - praamsRatio (float): overall PRAAMS score
                - totalReturnScore (int): aggregate return score (1-7 scale)
                - totalRiskScore (int): aggregate risk score (1-7 scale)
                - coupon (object): coupon profile (type, rate, frequency, structure notes)
                - valuation (object): yield-to-maturity, spread, price metrics
                - performance (object): price and total return performance
                - profitability (object): issuer-level profitability metrics
                - growthMomentum (object): issuer growth & momentum
                - marketView (object): spread history, yield curve positioning
                - volatility (object): price volatility, duration-adjusted risk
                - stressTest (object): stress-manual scenarios and score
                - liquidity (object): trading volume, bid-ask spread, score
                - countryRisk (object): country-level risk assessment and score
                - solvency (object): issuer creditworthiness, leverage, coverage ratios
                - descriptions (object|null): narrative risk/return explanations
            - errors (array): list of error messages, empty on success
            - message (str): status message

        Limits (Marketplace rules):
          - 1 request = 10 API calls
          - 100k calls / 24h, 1k requests / minute
          - Output is JSON only
get_mp_praams_report_bond_by_isin tool
[PRAAMS] Generate a comprehensive multi-factor PDF report for a bond by ISIN code.
        Covers 120,000+ global bonds (corporate and sovereign). Report includes valuation,
        performance, coupon analysis, profitability, growth, plus risk factors (volatility,
        stress-manual, liquidity, country, solvency). Requires an email for delivery notification.
        Consumes 10 API calls per request.
        For JSON bond analysis without PDF, use get_mp_praams_bond_analyze_by_isin.
        For equity PDF reports, use get_mp_praams_report_equity_by_ticker or by_isin.

        Args:
            isin (str): ISIN code of the bond (e.g. 'US7593518852', 'US91282CJN20').
            email (str): Email address for report notifications.
            is_full (bool, optional): True for full report, False for partial.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON object with report generation status:
              - success (bool): whether the report request was accepted
              - item (object|null): report metadata if available, including:
                  - reportId (str): unique report identifier
                  - status (str): generation status (e.g. "queued", "processing", "completed")
                  - downloadUrl (str|null): URL to download the PDF when ready
              - message (str): status message (e.g. "Report generation started")
              - errors (array): list of error messages, empty on success
            The actual report is a PDF sent to the provided email address.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Response is a PDF file download (application/pdf).
            - Coverage: 120,000+ global bonds (corporate and sovereign).
            - Return factors: valuation, performance, analyst view, profitability,
              growth, dividends/coupons.
            - Risk factors: default, volatility, stress-manual, selling difficulty,
              country, other risks.
            - Demo ISINs: US7593518852, US91282CJN20.

        Examples:
            "Full bond report for Realty Income" → isin="US7593518852", email="[email protected]", is_full=True
            "US Treasury bond PDF report" → isin="US91282CJN20", email="[email protected]"
get_mp_praams_report_equity_by_isin tool
[PRAAMS] Generate a comprehensive multi-factor PDF report for an equity by ISIN code.
        Covers 120,000+ global equities. Report includes valuation, performance, profitability,
        growth, dividends, analyst view, plus risk factors (volatility, stress-manual, liquidity,
        country, solvency). Requires an email for delivery notification. Consumes 10 API calls per request.
        For report by ticker, use get_mp_praams_report_equity_by_ticker.
        For JSON risk scoring without PDF, use get_mp_praams_risk_scoring_by_isin.

        Args:
            isin (str): ISIN code (e.g. 'US0378331005' for Apple, 'US88160R1014' for Tesla).
            email (str): Email address for report notifications.
            is_full (bool, optional): True for full report, False for partial.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON object with report generation status:
              - success (bool): whether the report request was accepted
              - item (object|null): report metadata if available, including:
                  - reportId (str): unique report identifier
                  - status (str): generation status (e.g. "queued", "processing", "completed")
                  - downloadUrl (str|null): URL to download the PDF when ready
              - message (str): status message (e.g. "Report generation started")
              - errors (array): list of error messages, empty on success
            The actual report is a PDF sent to the provided email address.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Response is a PDF file download (application/pdf).
            - Coverage: 120,000+ global equities (stocks, ETFs).
            - Return factors: valuation, performance, analyst view, profitability,
              growth, dividends/coupons.
            - Risk factors: default, volatility, stress-manual, selling difficulty,
              country, other risks.
            - Demo ISINs: US0378331005, US88160R1014, US0231351067.

        Examples:
            "Full Apple equity report by ISIN" → isin="US0378331005", email="[email protected]", is_full=True
            "Tesla equity PDF via ISIN" → isin="US88160R1014", email="[email protected]"
get_mp_praams_report_equity_by_ticker tool
[PRAAMS] Generate a comprehensive multi-factor PDF report for an equity by ticker symbol.
        Covers 120,000+ global equities. Report includes valuation, performance, profitability,
        growth, dividends, analyst view, plus risk factors (volatility, stress-manual, liquidity,
        country, solvency). Requires an email for delivery notification. Consumes 10 API calls per request.
        For report by ISIN, use get_mp_praams_report_equity_by_isin.
        For JSON risk scoring without PDF, use get_mp_praams_risk_scoring_by_ticker.

        Args:
            ticker (str): Ticker symbol (e.g. 'AAPL', 'TSLA', 'AMZN').
            email (str): Email address for report notifications.
            is_full (bool, optional): True for full report, False for partial.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON object with report generation status:
              - success (bool): whether the report request was accepted
              - item (object|null): report metadata if available, including:
                  - reportId (str): unique report identifier
                  - status (str): generation status (e.g. "queued", "processing", "completed")
                  - downloadUrl (str|null): URL to download the PDF when ready
              - message (str): status message (e.g. "Report generation started")
              - errors (array): list of error messages, empty on success
            The actual report is a PDF sent to the provided email address.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Response is a PDF file download (application/pdf).
            - Coverage: 120,000+ global equities (stocks, ETFs).
            - Return factors: valuation, performance, analyst view, profitability,
              growth, dividends/coupons.
            - Risk factors: default, volatility, stress-manual, selling difficulty,
              country, other risks.
            - Demo tickers: AAPL, TSLA, AMZN.

        Examples:
            "Full Apple equity report" → ticker="AAPL", email="[email protected]", is_full=True
            "Tesla quick equity analysis" → ticker="TSLA", email="[email protected]"
get_mp_praams_risk_scoring_by_isin tool
[PRAAMS] Get risk scores and risk-return decomposition for an equity identified by ISIN code.
        Returns overall PRAAMS ratio (1-7), sub-scores for valuation, performance, profitability,
        growth, dividends, volatility, liquidity, stress-manual, country risk, and solvency.
        Use when assessing investment risk and you have the ISIN. Consumes 10 API calls per request.
        For lookup by ticker instead of ISIN, use get_mp_praams_risk_scoring_by_ticker.
        For a full PDF report, use get_mp_praams_report_equity_by_isin.

        Returns:
          JSON object with Praams envelope:
            - success (bool): whether the request succeeded
            - item (object): equity analysis payload containing:
                - praamsRatio (float): overall PRAAMS score
                - totalReturnScore (int): aggregate return score (1-7 scale)
                - totalRiskScore (int): aggregate risk score (1-7 scale)
                - valuation (object): valuation metrics and score
                - performance (object): performance metrics and score
                - profitability (object): profitability metrics and score
                - growthMomentum (object): growth & momentum metrics and score
                - dividends (object): dividend yield, payout ratio, score
                - analystView (object): consensus target price, recommendations, score
                - volatility (object): historical volatility, VaR, score
                - stressTest (object): stress-manual scenarios and score
                - liquidity (object): trading volume, bid-ask spread, score
                - countryRisk (object): country-level risk assessment and score
                - solvency (object): debt ratios, interest coverage, score
                - descriptions (object|null): narrative risk/return explanations
            - errors (array): list of error messages, empty on success
            - message (str): status message

        Limits (Marketplace rules):
          - 1 request = 10 API calls
          - 100k calls / 24h, 1k requests / minute
          - Output is JSON only
get_mp_praams_risk_scoring_by_ticker tool
[PRAAMS] Get risk scores and risk-return decomposition for an equity identified by ticker symbol.
        Returns overall PRAAMS ratio (1-7), sub-scores for valuation, performance, profitability,
        growth, dividends, volatility, liquidity, stress-manual, country risk, and solvency.
        Use when assessing investment risk for a specific stock or ETF. Consumes 10 API calls per request.
        For lookup by ISIN instead of ticker, use get_mp_praams_risk_scoring_by_isin.
        For a full PDF report, use get_mp_praams_report_equity_by_ticker.

        Returns:
          JSON object with Praams envelope:
            - success (bool): whether the request succeeded
            - item (object): equity analysis payload containing:
                - praamsRatio (float): overall PRAAMS score
                - totalReturnScore (int): aggregate return score (1-7 scale)
                - totalRiskScore (int): aggregate risk score (1-7 scale)
                - valuation (object): valuation metrics and score
                - performance (object): performance metrics and score
                - profitability (object): profitability metrics and score
                - growthMomentum (object): growth & momentum metrics and score
                - dividends (object): dividend yield, payout ratio, score
                - analystView (object): consensus target price, recommendations, score
                - volatility (object): historical volatility, VaR, score
                - stressTest (object): stress-manual scenarios and score
                - liquidity (object): trading volume, bid-ask spread, score
                - countryRisk (object): country-level risk assessment and score
                - solvency (object): debt ratios, interest coverage, score
                - descriptions (object|null): narrative risk/return explanations
            - errors (array): list of error messages, empty on success
            - message (str): status message

        Limits (Marketplace rules):
          - 1 request = 10 API calls
          - 100k calls / 24h, 1k requests / minute
          - Output is JSON only
get_mp_praams_smart_screener_bond tool
[PRAAMS] Screen and filter bonds using multi-factor risk-return criteria.
        Filter by region, country, sector, currency, yield range, duration range, PRAAMS score ranges (1-7),
        and exclude subordinated or perpetual bonds. Returns paginated matching bonds with scores.
        Consumes 10 API calls per request.
        For equity screening, use get_mp_praams_smart_screener_equity.
        For deep analysis of a single bond, use get_mp_praams_bond_analyze_by_isin.


        Returns:
          JSON object with Praams envelope:
            - item (object):
                - peers (array): matching bond instruments, each containing:
                    - isin (str): bond ISIN
                    - name (str): bond/issuer name
                    - praamsRatio (float): overall PRAAMS score
                    - totalReturnScore (int): return score (1-7)
                    - totalRiskScore (int): risk score (1-7)
                    - yield (float|null): current yield
                    - duration (float|null): effective duration
                    - couponRate (float|null): coupon rate
                    - maturityDate (str|null): maturity date
                    - currency (str): bond currency
                    - country (str): issuer country
                    - sector (str): issuer sector
                - totalCount (int): total matching instruments (for pagination)
            - success (bool): whether the request succeeded
            - message (str): status message
            - errors (array): list of error messages, empty on success

        Notes:
          - All *Min/*Max fields are 1..7 scale integers (nullable).
          - Bond-specific: yieldMin/Max, durationMin/Max, excludeSubordinated, excludePerpetuals.
          - Provide at least one filter value in the JSON body.

        Examples:
            "High-yield EUR bonds low risk" → currency=["EUR"], yieldMin=5, countryRiskMax=3
            "US investment-grade bonds short duration" → regions=[1], durationMax=3, solvencyMin=5
get_mp_praams_smart_screener_equity tool
[PRAAMS] Screen and filter equities using multi-factor risk-return criteria.
        Filter by region, country, sector, industry, market cap, currency, and PRAAMS score ranges (1-7)
        for valuation, performance, profitability, growth, dividends, analyst view, and risk factors.
        Returns paginated matching equities with scores. Consumes 10 API calls per request.
        For bond screening, use get_mp_praams_smart_screener_bond.
        For deep analysis of a single equity, use get_mp_praams_risk_scoring_by_ticker.


        Returns:
          JSON object with Praams envelope:
            - item (object):
                - peers (array): matching equity instruments, each containing:
                    - ticker (str): equity ticker symbol
                    - isin (str): ISIN code
                    - name (str): company name
                    - praamsRatio (float): overall PRAAMS score
                    - totalReturnScore (int): return score (1-7)
                    - totalRiskScore (int): risk score (1-7)
                    - valuation (int): valuation score (1-7)
                    - performance (int): performance score (1-7)
                    - profitability (int): profitability score (1-7)
                    - dividends (int): dividends score (1-7)
                    - country (str): company country
                    - sector (str): company sector
                    - capitalisation (int): market cap category (1=small, 2=mid, 3=large)
                    - currency (str): trading currency
                - totalCount (int): total matching instruments (for pagination)
            - success (bool): whether the request succeeded
            - message (str): status message
            - errors (array): list of error messages, empty on success

        Notes:
          - All *Min/*Max fields are 1..7 scale integers (nullable).
          - Provide at least one filter value in the JSON body.

        Examples:
            "Large-cap US tech stocks with high dividends" → capitalisation=[3], regions=[1], dividendsMin=5
            "European equities low volatility risk" → regions=[2], currency=["EUR"], volatilityMax=2
get_mp_tick_data tool
[Marketplace] Fetch individual trade ticks (tick-by-tick data) for US stocks. Use when
        asked about granular trade-level data, tick history, or microstructure analysis.
        Returns timestamp (ms), price, shares, market center, and sequence for each trade.
        Covers US equities only. Time range defaults to yesterday if not specified.
        This is the paid Marketplace tick data provider. For free-tier tick data, use get_us_tick_data.
        Consumes 10 API calls per request.

        Args:
            ticker (str): Ticker symbol, max 30 chars (e.g. 'AAPL', 'MSFT').
            from_timestamp (int, optional): Start UNIX time in seconds. Default: yesterday start.
            to_timestamp (int, optional): End UNIX time in seconds. Default: yesterday end.
            limit (int, optional): Max ticks to return (1-10000). Default: all in range.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON array of tick objects, each with:
            - timestamp (int): Trade timestamp in UNIX seconds.
            - datetime (str): Human-readable UTC datetime.
            - gmtoffset (int): GMT offset in seconds.
            - type (str): Tick type identifier.
            - price (float): Trade price.
            - volume (int): Number of shares traded.
            - conditions (str): Trade condition codes.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Timestamp params in seconds but response timestamps may differ in precision.
            - US stocks only.

        Examples:
            "AAPL tick data for yesterday" → ticker="AAPL"
            "first 500 TSLA ticks from March 3 2026" → ticker="TSLA", from_timestamp=1741003200, to_timestamp=1741089600, limit=500
            "MSFT trade ticks, max 1000" → ticker="MSFT", limit=1000
get_mp_tradinghours_list_markets tool
[TradingHours] List all tracked global markets and exchanges. Use as the starting point
        to browse available markets before looking up details or checking status.
        Returns FinID, exchange name, MIC code, asset type, and group for each market.
        Filter by group: 'core' (24 G20+ markets), 'extended', 'all', or 'allowed' (your tier).
        To search markets by name/country, use get_mp_tradinghours_lookup_markets.
        For detailed info on one market, use get_mp_tradinghours_market_details.
        Consumes 10 API calls per request.

        Args:
            group (str, optional): Filter markets — 'core' (G20+), 'extended' (global equities),
                'all' (equities + derivatives), 'allowed' (your tier). Default: 'all'.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON array of market objects, each with:
            - fin_id (str): Unique market identifier (e.g. 'us.nyse').
            - exchange (str): Exchange name.
            - market (str): Market name.
            - products (str): Traded product types.
            - country (str): Country name.
            - country_code (str): ISO country code.
            - city (str): City where exchange is located.
            - timezone (str): IANA timezone identifier.
            - timezone_abbr (str): Timezone abbreviation.
            - mic (str): Market Identifier Code (ISO 10383).
            - mic_o (str): Operating MIC.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Core tier: 24 G20+ markets.

        Examples:
            "list all tracked markets" → (no params)
            "show only G20 core markets" → group="core"
            "all equity and derivative markets" → group="all"
get_mp_tradinghours_lookup_markets tool
[TradingHours] Search for markets by name, MIC code, country, or free-form query.
        Use when the user asks to find a specific exchange or market by keyword (e.g. "Tokyo",
        "XNYS", "Germany"). Covers 900+ global trading schedules.
        To list all markets without searching, use get_mp_tradinghours_list_markets.
        For full details on a found market, pass its fin_id to get_mp_tradinghours_market_details.
        Consumes 10 API calls per request.

        Args:
            q (str, optional): Free-form search query (exchange name, market name, MIC,
                country). Omit to return all markets.
            group (str, optional): Filter results — 'core', 'extended', 'all', 'allowed'.
                Default: 'all'.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON array of matching market objects, each with:
            - fin_id (str): Unique market identifier (e.g. 'us.nyse').
            - exchange (str): Exchange name.
            - market (str): Market name.
            - products (str): Traded product types.
            - country (str): Country name.
            - country_code (str): ISO country code.
            - city (str): City where exchange is located.
            - timezone (str): IANA timezone identifier.
            - timezone_abbr (str): Timezone abbreviation.
            - mic (str): Market Identifier Code (ISO 10383).
            - mic_o (str): Operating MIC.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Over 900 different trading schedules tracked.
            - Omitting 'q' returns all markets (like list endpoint).

        Examples:
            "find NASDAQ market" → q="NASDAQ"
            "search for London Stock Exchange" → q="London Stock Exchange"
            "markets in Japan, core tier" → q="Japan", group="core"
get_mp_tradinghours_market_details tool
[TradingHours] Get detailed metadata for a specific market by its FinID. Use when asked
        about an exchange's timezone, MIC codes, asset types, weekend schedule, or holiday date range.
        Returns country, timezone (IANA), products traded, MIC/MIC extended, acronym, and more.
        Find the FinID first via get_mp_tradinghours_list_markets or get_mp_tradinghours_lookup_markets.
        For real-time open/closed status, use get_mp_tradinghours_market_status instead.
        Consumes 10 API calls per request.

        Args:
            fin_id (str): Market FinID, case-insensitive (e.g. 'us.nyse', 'gb.lse').
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON object with:
            - fin_id (str): Unique market identifier (e.g. 'us.nyse').
            - exchange (str): Exchange name.
            - market (str): Market name.
            - products (str): Traded product types.
            - timezone (str): IANA timezone identifier.
            - local_time (str): Current local time at the exchange.
            - regular (object): Regular session hours with open/close times.
            - pre_market (object|null): Pre-market session hours, if applicable.
            - post_market (object|null): Post-market session hours, if applicable.
            - holidays (array): Upcoming holidays with date, name, and schedule impact.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Returns IANA timezone identifiers.

        Examples:
            "NYSE market details" → fin_id="us.nyse"
            "London Stock Exchange info" → fin_id="gb.lse"
            "Tokyo Stock Exchange details" → fin_id="jp.jpx"
get_mp_tradinghours_market_status tool
[TradingHours] Check whether a market is currently open or closed. Use when asked
        "is the NYSE open?", "when does Tokyo close?", or any real-time market status question.
        Returns status (Open/Closed), reason, time until next status change, and next bell time.
        Does not cover circuit breakers or individual stock trading halts.
        Find the FinID first via get_mp_tradinghours_list_markets or get_mp_tradinghours_lookup_markets.
        For static market metadata (timezone, MIC, holidays), use get_mp_tradinghours_market_details.
        Consumes 10 API calls per request.

        Args:
            fin_id (str): Market FinID, case-insensitive (e.g. 'us.nyse').
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            JSON object with:
            - fin_id (str): Unique market identifier.
            - exchange (str): Exchange name.
            - market (str): Market name.
            - status (str): Current status — 'Open' or 'Closed'.
            - reason (str): Reason for current status (e.g. 'Primary Trading Session', 'After-Hours').
            - local_time (str): Current local time at the exchange.
            - next_bell_action (str): Next expected action ('open' or 'close').
            - next_bell_time_utc (str): UTC timestamp of next bell event.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Does NOT include circuit breakers or trading halts.
            - Cache-friendly: use the 'until' field to know when to re-check.

        Examples:
            "is NYSE open right now" → fin_id="us.nyse"
            "check if London Stock Exchange is trading" → fin_id="gb.lse"
            "NASDAQ market status" → fin_id="us.nasdaq"
get_us_options_contracts tool
[Marketplace] Get available US options contracts (calls and puts) for a stock or ETF.
        Returns strike prices, expiration dates, and contract symbols for the specified underlying ticker.
        Supports filtering by expiration date range, strike range, trade time, and option type (put/call).
        Use to discover which options exist before fetching pricing with get_us_options_eod.
        For the list of all tickers that have options, use get_us_options_underlyings.
        Consumes 10 API calls per request.


        Returns:
            JSON object with:
            - meta: Pagination metadata.
            - data (array): Options contracts, each with:
              - contractName (str): Full OCC contract name.
              - contractSize (int): Contract size (typically 100).
              - currency (str): Currency code (e.g. 'USD').
              - type (str): 'call' or 'put'.
              - lastTradeDateTime (str): Last trade timestamp.
              - strike (float): Strike price.
              - lastPrice (float): Last traded price.
              - bid (float): Current bid price.
              - ask (float): Current ask price.
              - volume (int): Trading volume.
              - openInterest (int): Open interest.
              - impliedVolatility (float): Implied volatility.
              - delta (float): Option delta.
              - gamma (float): Option gamma.
              - theta (float): Option theta.
              - vega (float): Option vega.
              - expirationDate (str): Expiration date YYYY-MM-DD.
              - daysBeforeExpiration (int): Days until expiration.
              - intrinsicValue (float): Intrinsic value.
            - links.next (str|null): URL for next page, null if last page.

        Examples:
            "AAPL options expiring this month" → underlying_symbol="AAPL", exp_date_from="2026-03-01", exp_date_to="2026-03-31"
            "SPY puts with strike between 400 and 450" → underlying_symbol="SPY", type="put", strike_from=400, strike_to=450
            "TSLA call contracts expiring in June 2026, sorted by strike" → underlying_symbol="TSLA", type="call", exp_date_from="2026-06-01", exp_date_to="2026-06-30", sort="strike"
get_us_options_eod tool
[Marketplace] Fetch end-of-day pricing data for US options contracts. Use when asked about
        options prices, Greeks, open interest, volume, or implied volatility for stock/ETF options.
        Returns OHLC, volume, open interest, and Greeks per contract per trading day.
        Supports filtering by underlying symbol, expiration, strike, type (put/call), and trade date range.
        First find available contracts with get_us_options_contracts, then fetch pricing here.
        For the list of optionable tickers, use get_us_options_underlyings.
        Consumes 10 API calls per request.


        Returns:
            JSON object with:
            - meta: Pagination metadata.
            - data (array): EOD options records per date, each containing:
              - options.CALLS (array): Call contracts with:
                - contractName (str): Full OCC contract name.
                - expirationDate (str): Expiration date YYYY-MM-DD.
                - strike (float): Strike price.
                - lastPrice (float): Last traded price.
                - bid (float): Bid price.
                - ask (float): Ask price.
                - change (float): Price change.
                - changePercent (float): Price change percentage.
                - volume (int): Trading volume.
                - openInterest (int): Open interest.
                - impliedVolatility (float): Implied volatility.
              - options.PUTS (array): Put contracts (same fields as CALLS).
            - links.next (str|null): URL for next page, null if last page.

        Examples:
            "AAPL end-of-day options for March 2026" → underlying_symbol="AAPL", tradetime_from="2026-03-01", tradetime_to="2026-03-31"
            "MSFT puts EOD data, strike 300-400" → underlying_symbol="MSFT", type="put", strike_from=300, strike_to=400
            "NVDA calls expiring 2026-06-20, compact" → underlying_symbol="NVDA", type="call", exp_date_eq="2026-06-20", compact=True
get_us_options_underlyings tool
[Marketplace] List all US stock and ETF ticker symbols that have listed options.
        Use to check whether a specific ticker has options data or to browse the full universe
        of optionable underlyings before querying contracts or EOD pricing.
        For available contracts on a specific ticker, use get_us_options_contracts.
        For options pricing data, use get_us_options_eod.
        Consumes 10 API calls per request.


        Returns:
            JSON object with:
            - meta (object): Contains total count, fields list, compact flag.
            - data (array of str): Ticker symbols that have options available (e.g. ['AAPL','MSFT',...]).
            - links.next (str|null): URL for next page, null if last page.

        Examples:
            "list all tickers that have options" → (no params)
            "which stocks have options available" → (no params)
get_news_word_weights tool
Get top weighted keywords from news articles for a given stock ticker over a date range.
        Returns word frequency and importance scores, useful for identifying dominant themes and narratives in coverage.
        Use when analyzing what topics or terms dominate news about a company.
        For raw news articles, use get_company_news instead.
        For aggregated sentiment scores, use get_sentiment_data instead.

        Args:
            ticker (str): Symbol to analyze (e.g., 'AAPL.US'); mapped to 's'.
            start_date (str, optional): YYYY-MM-DD; mapped to filter[date_from].
            end_date (str, optional): YYYY-MM-DD; mapped to filter[date_to].
            limit (int, optional): Number of top words; mapped to page[limit].
            fmt (str): 'json' (default). (CSV/XML not documented for this endpoint.)
            api_token (str, optional): Per-call token override.

        Returns:
            Object with:
            - data (object): date-grouped records with word-weight mappings
            - meta (object): pagination metadata
            - links (object): pagination links (self, next, prev)

        Examples:
            "Top news keywords for Apple last month" → ticker="AAPL.US", start_date="2026-02-01", end_date="2026-02-28"
            "Nvidia word weights, top 20" → ticker="NVDA.US", limit=20
            "Amazon news themes in Q1 2026" → ticker="AMZN.US", start_date="2026-01-01", end_date="2026-03-06"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_rates_funding_stress tool
Fetch funding-stress spreads. Use when the user asks about money-market funding stress,
        rate spreads between two legs (e.g. EFFR minus SOFR for code EFFR_SOFR), or funding-stress
        indicators in basis points.

        Returns funding-stress spread time series, including the two component legs and their
        rates. Filterable by code and date range. This endpoint is NOT paginated. If no dates are
        given, the most recent 30 days are returned.

        Args:
            code (str, optional): Spread code — one of 'EFFR_SOFR', 'OBFR_EFFR', 'TGCR_BGCR',
                'SOFR_TARGET_LOWER', 'EFFR_TARGET_MID', 'TARGET_UPPER_SOFR'.
            date_from (str, optional): Start date filter (YYYY-MM-DD).
            date_to (str, optional): End date filter (YYYY-MM-DD).
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - date (str): observation date (YYYY-MM-DD)
            - code (str): spread code
            - value_bps (float): spread value in basis points
            - formula (str): spread formula
            - leg_a (str): first leg code
            - leg_b (str): second leg code
            - leg_a_rate (float): first leg rate
            - leg_b_rate (float): second leg rate

        Examples:
            "EFFR-SOFR funding stress spread" → get_rates_funding_stress(code="EFFR_SOFR")
            "Funding stress for 2025" → get_rates_funding_stress(date_from="2025-01-01", date_to="2025-12-31")
get_rates_policy_rates tool
Fetch central bank policy rates. Use when the user asks about policy interest rates set by
        central banks (e.g. Fed funds rate, ECB, Bank of England), or policy rate history by
        country or central bank.

        Returns central bank policy rate time series. Filterable by code, country, central bank,
        and date range. Paginated.

        Args:
            code (str, optional): Rate code — one of 'FED_TARGET_LOWER', 'FED_TARGET_UPPER',
                'ECB_DFR', 'ECB_MRO', 'ECB_MLF', 'BOE_BANK_RATE' (comma-separated list allowed).
            country (str, optional): Country: 'US', 'EU', or 'GB' (comma-separated list allowed).
            central_bank (str, optional): Central bank: 'FED', 'ECB', or 'BOE' (comma-separated list allowed).
            date_from (str, optional): Start date filter (YYYY-MM-DD).
            date_to (str, optional): End date filter (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - date (str): observation date (YYYY-MM-DD)
            - code (str): rate code
            - country (str): country
            - central_bank (str): central bank
            - rate (float): policy rate
            - source (str): data source
            - source_series_id (str): upstream series identifier

        Examples:
            "Fed funds policy rate history" → get_rates_policy_rates(central_bank="FED")
            "ECB policy rate for 2025" → get_rates_policy_rates(country="EU", date_from="2025-01-01")
get_rates_reference_rates tool
Fetch benchmark reference interest rates. Use when the user asks about reference rates such
        as SOFR, EFFR, SONIA, ESTR, SOFR averages/index, or about overnight rate percentiles and
        traded volumes in USD/GBP/EUR money markets.

        Returns reference rate time series by code and currency, including NY Fed percentiles and
        traded volume where the source publishes them. Filterable by code, currency, and date
        range. Paginated.

        Args:
            code (str, optional): Rate code, or a comma-separated list. Supported codes:
                'SOFR', 'EFFR', 'OBFR', 'TGCR', 'BGCR' (USD overnight), 'SOFR30D', 'SOFR90D',
                'SOFR180D', 'SOFRINDEX' (SOFR averages and compounded index), 'SONIA' (GBP),
                'ESTR' (EUR).
            currency (str, optional): Currency 'USD', 'GBP', or 'EUR' (or a comma-separated list).
            date_from (str, optional): Start date filter (YYYY-MM-DD).
            date_to (str, optional): End date filter (YYYY-MM-DD).
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - date (str): observation date (YYYY-MM-DD)
            - code (str): rate code
            - currency (str): currency
            - rate_type (str): 'overnight', 'average', or 'index'
            - rate (float): rate value
            - source (str): data source
            - source_series_id (str): upstream series identifier
            - percentiles (dict|null): {p1, p25, p75, p99} distribution, NY Fed rates only
            - volume_billion_usd (float|null): traded volume in USD billions, NY Fed rates only
            - revision_flag (str|null): upstream revision marker

        Examples:
            "SOFR rate history" → get_rates_reference_rates(code="SOFR")
            "EUR reference rates for 2025" → get_rates_reference_rates(currency="EUR", date_from="2025-01-01")
get_real_estate_countries tool
List the countries covered by the EODHD Real Estate Data API (BIS residential
        property prices) and which datasets each country carries.

        Use this to discover available country codes before calling the other real-estate
        tools. Each country flags whether it has Selected Property Prices (SPP, headline
        harmonised series via get_real_estate_selected_prices) and Detailed Property
        Prices (DPP, granular national series via get_real_estate_detailed_prices).
        Consumes 5 API calls per request.

        Args:
            sort (str, optional): 'code', '-code', 'name', or '-name'.
            fmt (str): 'json' or 'csv'. Default 'json'.
            limit (int, optional): Records per page (page[limit]), 1..500. Default 50.
            offset (int, optional): Pagination offset (page[offset]), >= 0. Default 0.
            api_token (str, optional): Per-call token override. If not provided, env token is used.

        Returns:
            Envelope with:
            - data (array): each item with
                - code (str): ISO alpha-2 country code (e.g. 'US')
                - name (str): country name
                - has_spp (bool): Selected Property Prices available
                - has_dpp (bool): Detailed Property Prices available
            - meta (object): { total, offset, limit }
            - links (object): { next } — next page URL or null

        Examples:
            "Which countries have real estate data?" → get_real_estate_countries()
            "Countries sorted by name" → get_real_estate_countries(sort="name")
            "Second page of 100 countries" → get_real_estate_countries(limit=100, offset=100)
get_real_estate_detailed_prices tool
Get Detailed Property Prices (DPP) for a country — the granular national residential
        property price series from the BIS Real Estate Data API, broken down by covered area,
        property type, vintage (new vs existing), and frequency.

        Use this for detailed analysis beyond the headline series returned by
        get_real_estate_selected_prices. Discover the available series combinations for a
        country with get_real_estate_detailed_series, and available country codes with
        get_real_estate_countries. Consumes 5 API calls per request.

        Args:
            code (str): ISO alpha-2 country code, case-insensitive (e.g. 'AE', 'ae').
            area (str, optional): BIS covered-area dimension code (filter[area]).
            property_type (str, optional): Property type code (filter[property_type]).
            vintage (str, optional): Vintage code, e.g. new vs existing dwellings (filter[vintage]).
            freq (str, optional): 'Q', 'A', 'M', or 'H' (filter[freq]).
            from_period (str, optional): Start period following the series frequency,
              e.g. '2020-01' or '2020-Q1' (filter[from]).
            to_period (str, optional): End period (filter[to]).
            sort (str, optional): 'period', '-period', 'value', or '-value'.
            fmt (str): 'json' or 'csv'. Default 'json'.
            limit (int, optional): Records per page (page[limit]). Up to 250 for fmt='json'
                (a larger JSON page exceeds what an MCP client can accept) and up to 500
                for fmt='csv'. Default 50. Use offset to walk further.
            offset (int, optional): Pagination offset (page[offset]), >= 0. Default 0.
            api_token (str, optional): Per-call token override. If not provided, env token is used.

        Returns:
            Envelope with:
            - data (array): each item with
                - period (str): observation period
                - value (float): series value
                - frequency (str): series frequency
                - covered_area (str), covered_area_label (str)
                - property_type (str), property_type_label (str)
                - vintage (str), vintage_label (str)
                - unit_measure (str), unit_measure_label (str | null)
            - meta (object): { country_code, source, dataset, total, offset, limit, filters }
            - links (object): { next } — next page URL or null

        Examples:
            "Detailed UAE house prices for property type 1" → get_real_estate_detailed_prices(code="AE", property_type="1")
            "Quarterly detailed US series" → get_real_estate_detailed_prices(code="US", freq="Q")
get_real_estate_detailed_series tool
List the catalogue of Detailed Property Prices (DPP) series available for a country
        in the BIS Real Estate Data API.

        Use this to discover the exact covered-area, property-type, and vintage combinations
        you can request from get_real_estate_detailed_prices. This is a parameterless
        catalogue endpoint (JSON only — fmt=csv is not honoured). Discover available country
        codes with get_real_estate_countries. Consumes 5 API calls per request.

        The endpoint returns the country's whole series catalogue in one response — it has no
        pagination upstream. The catalogue is small (at most a couple of dozen series per
        country), so the response stays well inside client limits.

        Args:
            code (str): ISO alpha-2 country code, case-insensitive (e.g. 'US', 'us').
            api_token (str, optional): Per-call token override. If not provided, env token is used.

        Returns:
            Envelope with:
            - data (array): each item with
                - covered_area (str), covered_area_label (str)
                - property_type (str), property_type_label (str)
                - vintage (str), vintage_label (str)
                - compiling_org (str)
                - priced_unit (str)
                - seasonal_adj (str)
                - unit_measure (str), unit_measure_label (str)
                - title (str): human-readable series title
            - meta (object): { country_code, total }

        Examples:
            "What detailed real estate series does the US have?" → get_real_estate_detailed_series(code="US")
get_real_estate_selected_prices tool
Get Selected Property Prices (SPP) for a country — the headline harmonised
        residential property price series from the BIS Real Estate Data API.

        This is the top-level national series (nominal or real, as an index or year-on-year
        change). For granular breakdowns by area, property type, vintage, and frequency,
        use get_real_estate_detailed_prices instead. Discover available country codes with
        get_real_estate_countries. Consumes 5 API calls per request.

        Args:
            code (str): ISO alpha-2 country code, case-insensitive (e.g. 'US', 'us').
            type (str, optional): 'nominal' or 'real' (filter[type]).
            metric (str, optional): 'index' or 'yoy' (filter[metric]).
            from_period (str, optional): Start period 'YYYY-Qn', e.g. '2020-Q1' (filter[from]).
            to_period (str, optional): End period 'YYYY-Qn', e.g. '2024-Q4' (filter[to]).
            sort (str, optional): 'period', '-period', 'value', or '-value'.
            fmt (str): 'json' or 'csv'. Default 'json'.
            limit (int, optional): Records per page (page[limit]), 1..500. Default 50.
            offset (int, optional): Pagination offset (page[offset]), >= 0. Default 0.
            api_token (str, optional): Per-call token override. If not provided, env token is used.

        Returns:
            Envelope with:
            - data (array): each item with
                - period (str): observation period (e.g. '2024-Q1')
                - value (float): price index or year-on-year value
                - type (str): 'nominal' or 'real'
                - metric (str): 'index' or 'yoy'
            - meta (object): { country_code, country_name, type, metric, base_year,
              frequency, source, total, from, to, offset, limit }
            - links (object): { next } — next page URL or null

        Examples:
            "US real house price index" → get_real_estate_selected_prices(code="US", type="real", metric="index")
            "UK nominal YoY house prices since 2020" → get_real_estate_selected_prices(code="GB", type="nominal", metric="yoy", from_period="2020-Q1")
get_realtime_minute_bars tool
Get the recent CLOSED one-minute OHLCV bars held by the real-time service for one symbol.

        Use when a stream was interrupted and the gap needs filling, or when a short window of
        recent minute bars is wanted without opening a WebSocket. For a live stream use
        capture_realtime_ws; for a single delayed snapshot use get_live_price_data; for deep
        intraday history use get_intraday_historical_data.

        Only minutes in which the symbol actually traded produce a bar, so the result is sparse
        rather than one bar per consecutive minute — a quiet name can return a handful of bars
        spanning several hours.

        Args:
            market (str): 'us' or 'eu'. These are the only markets that keep bars.
            symbol (str): US equities use plain tickers ('AAPL'); European equities use
                TICKER.EXCHANGE ('GSK.LSE'). The native Cboe symbol and the un-hyphenated
                alias of a dual-class ticker ('ERICB.ST' for 'ERIC-B.ST') are both accepted,
                and the reply always reports the canonical EODHD ticker in 's'.
            api_token (str, optional): Per-call token override. If omitted, env token is used.

        Returns:
            Array of bars, oldest first, each with:
            - s (str): canonical EODHD ticker, regardless of the form requested
            - i (str): bar interval, '1m'
            - t (int): bar OPEN time, epoch ms UTC
            - o, h, l, c (float): open, high, low, close
            - v (int): volume in shares accumulated within the bar

            An unknown symbol returns an empty array rather than an error.
get_sanctions_entities tool
Search sanctioned entities (e.g. OFAC). Use when the user asks about sanctioned
        individuals, companies, vessels, or aircraft, OFAC SDN listings, or entities under a
        specific sanctions program.

        Returns sanctioned entities with aliases, identifiers, programs, and listing status.
        Filterable by source, entity type, program, country, free-text query, and active status.
        Paginated.

        Args:
            source (str, optional): Data source. Currently only 'ofac' is accepted.
            type (str, optional): Entity type: 'individual', 'entity', 'vessel', or 'aircraft'.
            program (str, optional): Sanctions program.
            country (str, optional): Country.
            q (str, optional): Free-text search (minimum 2 characters).
            active (bool, optional): Filter by active listing status. When omitted, only active
                listings are returned; pass False to return ONLY inactive/delisted entries
                (active ones are then excluded). There is no single-call "all" mode.
            limit (int, optional): Records per page (default 20, max 100).
            offset (int, optional): Pagination offset.
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - source (str): data source
            - source_uid (str): source unique identifier
            - entity_type (str): entity type
            - name (str): entity name
            - programs (list): sanctions programs
            - country (str|null): country
            - remarks (str|null): remarks
            - listed_date (str|null): date listed
            - is_active (bool): active listing status
            - aliases (list): known aliases
            - identifiers (dict): map of identifier type → list of values

        Examples:
            "OFAC sanctioned individuals in Russia" → get_sanctions_entities(source="ofac", type="individual", country="Russia")
            "Search sanctioned entities for 'Gazprom'" → get_sanctions_entities(q="Gazprom")
get_sanctions_programs tool
List sanctions programs with entity counts. Use when the user asks which sanctions
        programs exist, how many entities are under each program, or wants to browse available
        programs.

        Returns each sanctions program and the number of entities listed under it. This endpoint
        returns the full list and is not paginated.

        Args:
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - program (str): sanctions program
            - count (int): number of entities under the program

        Examples:
            "List sanctions programs" → get_sanctions_programs()
get_sanctions_sources tool
List available sanctions data sources. Use when the user asks which sanctions lists or
        sources are available (e.g. OFAC), or wants to discover valid values for the 'source'
        parameter on other sanctions tools.

        Returns the available sanctions sources. This endpoint returns the full list and is not
        paginated.

        Args:
            api_token (str, optional): Per-call token override.


        Returns:
            JSON envelope {data, meta, links}. Each data item:
            - name (str): source name

        Examples:
            "List sanctions sources" → get_sanctions_sources()
get_sentiment_data tool
Get aggregated sentiment scores for stocks based on news and social media analysis.
        Returns daily sentiment polarity, news buzz, and weighted scores for one or more tickers over a date range.
        Use when analyzing market mood, news impact, or sentiment-driven trading signals.
        For raw news articles, use get_company_news instead.
        For word frequency in news, use get_news_word_weights instead.

        Args:
            symbols (str): One or more comma-separated tickers (e.g., 'AAPL.US,BTC-USD.CC').
            start_date (str, optional): YYYY-MM-DD, maps to 'from'.
            end_date (str, optional): YYYY-MM-DD, maps to 'to'.
            fmt (str): 'json' (default). (XML not documented for this endpoint.)
            api_token (str, optional): Per-call override; env token used if omitted.

        Returns:
            Object keyed by ticker, each value with:
            - date (str): sentiment date
            - count (int): number of articles analyzed
            - normalized (float): normalized sentiment score
            - buzz (object): articlesInLastWeek, weeklyAverage, buzz
            - sentiment (object): bearishPercent, bullishPercent

        Examples:
            "Apple sentiment this month" → symbols="AAPL.US", start_date="2026-03-01", end_date="2026-03-06"
            "Bitcoin and Ethereum sentiment" → symbols="BTC-USD.CC,ETH-USD.CC"
            "Microsoft sentiment in Q4 2025" → symbols="MSFT.US", start_date="2025-10-01", end_date="2025-12-31"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_stock_market_logos tool
Get a company logo in PNG format (200x200 with transparency). Use when the user needs
        a raster logo image for a stock or company for display, reports, or UI.

        Covers 40,000+ logos across 60+ exchanges. Costs 10 API calls per request.
        Symbol must be in TICKER.EXCHANGE format (e.g., 'AAPL.US', 'BMW.XETRA').

        For vector/SVG logos (US and Toronto only), use get_stock_market_logos_svg instead.

        Args:
            symbol (str): Ticker in TICKER.EXCHANGE format (e.g. 'AAPL.US', 'BMW.XETRA').
            api_token (str, optional): Per-call token override.


        Returns:
            Binary PNG image data (200x200 with transparency).
            When returned via JSON wrapper, base64-encoded image string.

        Notes:
            - Marketplace product: 10 API calls per request.
            - Response is a binary PNG image.
            - Supported exchanges include: AS, AT, AU, BA, BK, BR, CO, CSE,
              DU, F, HE, HK, HM, IC, IR, JK, JSE, KLSE, KO, KQ, LS, LSE, MC,
              MU, MX, NEO, OL, PA, SHE, SHG, SN, SA,
              ST, STU, SW, TA, TO, TW, TWO, US, V, VI, VS, VX, XETRA.

        Examples:
            "Apple logo" → get_stock_market_logos(symbol="AAPL.US")
            "BMW logo from XETRA" → get_stock_market_logos(symbol="BMW.XETRA")
get_stock_market_logos_svg tool
Get a company logo in SVG vector format. Use when the user needs a scalable vector logo
        for high-quality rendering, web embedding, or print.

        Limited to US and TO (Toronto) exchanges only. Costs 10 API calls per request.
        Symbol must be in TICKER.EXCHANGE format (e.g., 'AAPL.US', 'RY.TO').

        For PNG logos with broader exchange coverage (60+ exchanges), use get_stock_market_logos.

        Args:
            symbol (str): Ticker in TICKER.EXCHANGE format (e.g. 'AAPL.US', 'RY.TO').
            api_token (str, optional): Per-call token override.


        Returns:
            SVG image data as XML string (vector logo, scalable).

        Notes:
            - Marketplace product: 10 API calls per request.
            - Response is SVG image data (XML text).
            - Limited to US and TO exchanges.

        Examples:
            "Apple SVG logo" → get_stock_market_logos_svg(symbol="AAPL.US")
            "Royal Bank of Canada vector logo" → get_stock_market_logos_svg(symbol="RY.TO")
stock_screener tool
Screen and filter stocks by fundamental and technical criteria.
        Build custom queries using filters (e.g., market_cap > 1B, sector = Technology, P/E < 20)
        and signals (e.g., 200d_new_hi, 50d_new_lo, bookvalue_neg, wallstreetbull).
        Returns matching tickers with key metrics. Supports sorting, pagination (limit up to 100).
        Consumes 5 API calls per request.
        Use this tool for stock discovery, screening by fundamentals/technicals, and building watchlists.
        For detailed data on a specific ticker, use get_fundamentals_data instead.

        Args:
          - filters: list-of-lists or JSON string
          - signals: list[str] or comma-separated string
          - sort: "field.asc" | "field.desc"
          - limit: 1..100
          - offset: 0..999
          - fmt: optional; Screener is JSON-only. If provided, must be "json".
          - api_token: optional override


        Returns:
            Array of matching stocks, each with:
            - code (str): ticker symbol
            - name (str): company name
            - exchange (str): exchange code (e.g. 'US')
            - sector (str): GICS sector
            - industry (str): GICS industry
            - market_capitalization (float): market cap in USD
            Plus any fields relevant to applied filters/signals, e.g.:
            - earnings_share, dividend_yield, price, change, volume, etc.

            Max 100 results per page; use offset for pagination.

        Examples:
            "Large-cap tech stocks" → filters=[["market_capitalization",">",10000000000],["sector","=","Technology"]], sort="market_capitalization.desc", limit=20
            "Stocks hitting new 52-week highs" → signals=["52weekhigh"], limit=50
            "Undervalued healthcare with high volume" → filters=[["sector","=","Healthcare"],["pe_ratio","<",15],["avgvol_200d",">",1000000]], sort="pe_ratio.asc"


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_stocks_from_search tool
Search for financial instruments by name, ticker, or ISIN. Use when the user wants to
        find a ticker symbol, look up a company by name, resolve an ISIN, or discover instruments
        matching a keyword.

        Searches across stocks, ETFs, mutual funds, bonds, indices, and crypto. Returns matching
        instruments with their ticker codes, exchange, type, and ISIN. Filterable by exchange
        and instrument type.

        This is the discovery/lookup tool. Once you have a ticker, use other tools (e.g.,
        get_eod_historical_data, get_fundamentals_data) to fetch actual data.

        Args:
            query (str): Ticker, company name, or ISIN to search (e.g., 'AAPL', 'Apple Inc', 'US0378331005').
            limit (int): Number of results (default 15, max 500).
            bonds_only (bool, optional): If True, return only bonds.
            exchange (str, optional): Exchange code filter (e.g., 'US', 'PA', 'FOREX', 'NYSE').
            type (str, optional): One of {'all','stock','etf','fund','bond','index','crypto'}.
            fmt (str): Must be 'json'.
            api_token (str, optional): Per-call API token override (demo token does NOT work for Search).


        Returns:
            Array of matching instruments, each with:
            - Code (str): ticker symbol
            - Exchange (str): exchange code
            - Name (str): instrument name
            - Type (str): instrument type (e.g. "Common Stock", "ETF")
            - Country (str): country of listing
            - Currency (str): trading currency
            - ISIN (str): ISIN code
            - previousClose (float): last closing price
            - previousCloseDate (str): date of last close (YYYY-MM-DD)

        Examples:
            "Find Apple stock" → get_stocks_from_search(query="Apple Inc", type="stock")
            "Search for ISIN US0378331005" → get_stocks_from_search(query="US0378331005")
            "Crypto assets matching ETH" → get_stocks_from_search(query="ETH", type="crypto", limit=10)


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_support_resistance_levels tool
Calculate pivot-point-based support and resistance levels for any stock, ETF, index, or crypto.
        Fetches historical OHLCV data and computes support/resistance levels using one of five
        standard pivot point methods: Classic (Floor), Fibonacci, Woodie, Camarilla, or DeMark.
        Each record in the result corresponds to one bar from the price history, with the calculated
        levels that traders use to identify potential reversal zones, entry/exit points, and stop-loss placement.

        Formulas:
            Classic:    PP = (H + L + C) / 3;  R1 = 2*PP - L;  S1 = 2*PP - H;  R2 = PP + (H - L);  S2 = PP - (H - L)
            Fibonacci:  PP = (H + L + C) / 3;  R1 = PP + 0.382*(H - L);  S1 = PP - 0.382*(H - L)
            Woodie:     PP = (H + L + 2*C) / 4  (extra weight on close)
            Camarilla:  Uses close +/- range * multipliers (1.1/12, 1.1/6, 1.1/4, 1.1/2)
            DeMark:     X depends on open vs close relationship; PP = X/4

        Args:
            ticker: Symbol in SYMBOL.EXCHANGE format (e.g. 'AAPL.US').
                    If you only have a company name or ISIN, call resolve_ticker first.
            method: Pivot point method — 'classic', 'fibonacci', 'woodie', 'camarilla', or 'demark'. Default 'classic'.
            period: Price bar period — 'd' (daily), 'w' (weekly), 'm' (monthly). Default 'd'.
            start_date: Start date in YYYY-MM-DD format (optional).
            end_date: End date in YYYY-MM-DD format (optional).
            api_token: Override API token for this call (optional).

        Returns:
            Array of objects, each with:
            - date (str): YYYY-MM-DD
            - open, high, low, close (float): OHLC prices for the bar
            - method (str): calculation method used
            - pivot_point (float): the central pivot level
            - resistance_1, resistance_2, resistance_3 (float): resistance levels (count varies by method)
            - support_1, support_2, support_3 (float): support levels (count varies by method)

        Examples:
            "Classic pivot points for Apple last month" → ticker="AAPL.US", method="classic", start_date="2026-02-01"
            "Fibonacci support/resistance for Bitcoin weekly" → ticker="BTC-USD.CC", method="fibonacci", period="w"
            "Camarilla levels for Tesla in 2025" → ticker="TSLA.US", method="camarilla", start_date="2025-01-01", end_date="2025-12-31"
get_symbol_change_history tool
Get ticker symbol change history -- tracks when US stocks changed their ticker symbol or company name.
        Returns old symbol, new symbol, company name, exchange, and effective date. Data available from 2022-07-22, US exchanges only.
        Use when the user asks about ticker renames, symbol changes, rebranding events, or needs to map old tickers to new ones.
        This is the only tool for symbol/ticker change tracking.

        Args:
            start_date (str, optional): 'from' in YYYY-MM-DD (e.g., '2022-10-01').
            end_date (str, optional):   'to' in YYYY-MM-DD   (e.g., '2022-11-01').
            fmt (str): 'json' (default).
            api_token (str, optional): Per-call token override; env token used if omitted.

        Returns:
            Array of symbol change records, each with:
            - old_code (str): previous ticker symbol
            - old_exchange (str): previous exchange code
            - old_country (str): previous country code
            - new_code (str): new ticker symbol
            - new_exchange (str): new exchange code
            - new_country (str): new country code
            - date (str): effective date of change

        Examples:
            "Symbol changes this month" → start_date="2026-03-01", end_date="2026-03-06"
            "Ticker renames in 2025" → start_date="2025-01-01", end_date="2025-12-31"
            "Recent symbol changes last 90 days" → start_date="2025-12-06", end_date="2026-03-06"

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_technical_indicators tool
Compute technical indicators for any ticker over a date range.
        Supported indicators: SMA, EMA, WMA, MACD, RSI, Stochastic, StochRSI, DMI/ADX, ATR,
        CCI, Parabolic SAR, Beta, Bollinger Bands, Volatility, Average Volume, and split-adjusted prices.
        Each indicator has configurable periods, and results include a time series of computed values.
        Consumes 5 API calls per request.
        For raw OHLCV price data, use get_historical_stock_prices instead.
        For fundamental analysis, use get_fundamentals_data instead.

        Returns:
            Array of objects, each with 'date' (str, YYYY-MM-DD) plus indicator-specific fields:
            - sma/ema/wma: {sma|ema|wma} (float)
            - rsi: {rsi} (float, 0-100)
            - macd: {macd, macd_signal, macd_hist} (float)
            - stochastic: {slow_k, slow_d} (float)
            - stochrsi: {stochrsi} (float)
            - bbands: {uband, mband, lband} (float — upper/middle/lower)
            - atr: {atr} (float)
            - adx: {adx} (float)
            - dmi: {dmi} (float)
            - cci: {cci} (float)
            - sar: {sar} (float)
            - beta: {beta} (float)
            - volatility: {volatility} (float)
            - avgvol: {avgvol} (int)
            - avgvolccy: {avgvolccy} (float — volume * close)
            - splitadjusted: {open, high, low, close, volume} (split-adjusted OHLCV)
            - stddev: {stddev} (float)
            - slope: {slope} (float)

            If filter is set (e.g. 'last_sma'), returns a single scalar value.

        Examples:
            "50-day SMA for Apple in 2025" → ticker="AAPL.US", function="sma", period=50, start_date="2025-01-01", end_date="2025-12-31"
            "RSI(14) for Bitcoin last 3 months" → ticker="BTC-USD.CC", function="rsi", period=14, start_date="2025-12-06"
            "MACD for Siemens with custom periods" → ticker="SIE.XETRA", function="macd", fast_period=12, slow_period=26, signal_period=9

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_upcoming_dividends tool
Get historical and upcoming dividend payments for stocks.
        Returns ex-dividend dates, payment dates, dividend amounts, and currency for a given symbol or date.
        Requires at least one of 'symbol' or 'date_eq'. Supports date range filtering and pagination.
        Use when the user asks about dividend dates, payout history, yield data, or ex-dividend calendars.
        For IPO calendar, use get_upcoming_ipos. For stock splits calendar, use get_upcoming_splits.


        Returns:
            Array of dividend records, each with:
            - code (str): ticker symbol
            - exchange (str): exchange code
            - date (str): ex-dividend date
            - declarationDate (str): declaration date
            - recordDate (str): record date
            - paymentDate (str): payment date
            - period (str): frequency (e.g. 'Quarterly', 'Annual')
            - value (float): adjusted dividend per share
            - unadjustedValue (float): unadjusted dividend per share
            - currency (str): dividend currency

        Examples:
            "Apple dividends in 2025" → symbol="AAPL.US", date_from="2025-01-01", date_to="2025-12-31"
            "All dividends on March 15" → date_eq="2026-03-15"
            "Microsoft dividends this quarter" → symbol="MSFT.US", date_from="2026-01-01", date_to="2026-03-31"


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_upcoming_earnings tool
Get upcoming and recent earnings report dates for stocks.
        Returns scheduled earnings dates, EPS estimates, and actual results when available.
        Filter by specific symbols or a date range (defaults to next 7 days).
        Use when the user asks "when does X report earnings?" or wants an earnings calendar.
        For EPS/revenue trend analysis and analyst revisions, use get_earnings_trends instead.
        For macroeconomic events (GDP, CPI), use get_economic_events instead.


        Returns:
            Object with:
            - earnings (list): array of earning records, each with:
              - code (str): ticker symbol
              - report_date (str): report filing date
              - date (str): earnings date
              - before_after_market (str|null): 'BeforeMarket' or 'AfterMarket'
              - currency (str): reporting currency
              - actual (float|null): actual EPS
              - estimate (float|null): consensus EPS estimate
              - difference (float|null): actual minus estimate
              - surprise_prc (float|null): surprise percentage

        Examples:
            "Apple earnings schedule" → symbols="AAPL.US"
            "Earnings this week" → start_date="2026-03-02", end_date="2026-03-06"
            "Microsoft and Google earnings" → symbols="MSFT.US,GOOG.US"


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_upcoming_ipos tool
Get upcoming and recent IPO (Initial Public Offering) listings.
        Returns IPO dates, company names, exchanges, share prices, and deal details within a date range (defaults to next 7 days).
        Use when the user asks about new stock listings, companies going public, or IPO calendar.
        For stock splits calendar, use get_upcoming_splits. For dividend calendar, use get_upcoming_dividends.


        Returns:
            Object with:
            - ipos (list): array of IPO records, each with:
              - code (str): ticker symbol
              - name (str): company name
              - exchange (str): exchange code
              - currency (str): pricing currency
              - start_date (str): expected IPO date
              - filing_date (str): SEC filing date
              - amended_date (str): last amendment date
              - price_from (float|null): low end of price range
              - price_to (float|null): high end of price range
              - offer_price (float|null): final offer price
              - shares (int|null): shares offered
              - deal_type (str): type of offering (e.g. 'Priced')

        Examples:
            "IPOs this week" → from_date="2026-03-02", to_date="2026-03-06"
            "IPOs in March 2026" → from_date="2026-03-01", to_date="2026-03-31"
            "Upcoming IPOs next 30 days" → from_date="2026-03-06", to_date="2026-04-05"


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_upcoming_splits tool
Get upcoming and recent stock split events.
        Returns split dates, tickers, and split ratios (e.g., 4:1) within a date range (defaults to next 7 days).
        Use when the user asks about stock splits, share splits, or reverse splits.
        For IPO calendar, use get_upcoming_ipos. For dividend calendar, use get_upcoming_dividends.


        Returns:
            Array of split records, each with:
            - code (str): ticker symbol
            - exchange (str): exchange code
            - optionable (str): whether options exist ('0' or '1')
            - date (str): split effective date
            - split (str): split ratio (e.g. '4/1')
            - oldShares (int): pre-split share count
            - newShares (int): post-split share count

        Examples:
            "Stock splits this week" → from_date="2026-03-02", to_date="2026-03-06"
            "Splits in Q1 2026" → from_date="2026-01-01", to_date="2026-03-31"
            "Any splits next month" → from_date="2026-04-01", to_date="2026-04-30"


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_us_live_extended_quotes tool
Get extended delayed quotes for US stocks with rich detail beyond basic live prices.
        Returns last trade, bid/ask with sizes and event timestamps, rolling averages (50d/200d),
        52-week high/low, market cap, EPS, PE ratio, dividend yield, and more per symbol.
        Supports batching multiple US tickers in one call. 1 API call per ticker.
        For non-US tickers or basic global live prices, use get_live_price_data instead.
        For historical end-of-day data, use get_historical_stock_prices instead.

        Args:
          symbols: A single comma-separated string or a sequence of tickers (e.g., ["AAPL.US","TSLA.US"]).
          fmt: 'json' (default) or 'csv'.
          page_limit: Optional page size; max 100.
          page_offset: Optional offset for pagination; must be >= 0.
          api_token: Optional token; if omitted, env is used via make_request().

        Returns:
            Array of extended quote snapshots, each with:
            - code (str): ticker symbol
            - timestamp (int): Unix epoch seconds of last trade
            - open, high, low, close (float): session OHLC
            - volume (int): session volume
            - previousClose (float): prior session close
            - change (float): absolute change from previousClose
            - change_p (float): percent change
            - 50day_ma, 200day_ma (float): rolling moving averages
            - yearHigh, yearLow (float): 52-week high/low
            - marketCapitalization (float): market cap in USD
            - epsEstimateCurrentYear (float): consensus EPS estimate
            - eps (float): trailing EPS
            - pe (float): trailing P/E ratio
            - dividend_yield_percent (float): indicated annual dividend yield %
            - bid, ask (float): current bid/ask prices
            - bidSize, askSize (int): bid/ask lot sizes

            Prices are delayed ~15-20 min (exchange-compliant).

        Examples:
            "Extended quote for Apple" → symbols="AAPL.US"
            "Batch quotes for FAANG stocks" → symbols=["META.US", "AAPL.US", "AMZN.US", "NFLX.US", "GOOG.US"]
            "Tesla and Nvidia with pagination" → symbols=["TSLA.US", "NVDA.US"], page_limit=10, page_offset=0


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_us_tick_data tool
Fetch historical tick-level trade data for US equities. Use when the user needs
        individual trade records with exact timestamps, prices, volumes, and market venue
        identifiers at the finest granularity available.

        Returns individual trades (ticks) across all US venues for a given time range.
        Fields include timestamp (ms), price, shares, market, sub-market, sequence number.
        US stocks only. Costs 10 API calls per request.

        For real-time streaming ticks, use capture_realtime_ws instead.
        For daily/intraday OHLCV bars, use get_intraday_historical_data.

        Args:
            ticker (str): US ticker, e.g., 'AAPL' or 'AAPL.US'.
            from_timestamp (int|str): Start UNIX time in seconds (UTC).
            to_timestamp (int|str): End UNIX time in seconds (UTC).
            limit (int): Max ticks to return (default 1000).
            fmt (str): 'json' (default) or 'csv'.
            api_token (str, optional): Per-call token override.


        Returns:
            Array of tick objects, each with:
            - timestamp (int): UNIX timestamp in milliseconds
            - datetime (str): human-readable datetime
            - volume (int): tick volume (shares)
            - price (float): trade price
            - type (str): tick type (trade/quote)
            - conditions (str): trade condition codes

        Examples:
            "AAPL tick data on 2026-03-05 first 100 ticks" → get_us_tick_data(ticker="AAPL", from_timestamp=1772870400, to_timestamp=1772956800, limit=100)
            "TSLA trades between two timestamps" → get_us_tick_data(ticker="TSLA", from_timestamp=1772870400, to_timestamp=1772874000, limit=500)


        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
get_user_details tool
Retrieve EODHD account details for the current API token. Use when the user asks about
        their subscription plan, API usage, rate limits, or account information.

        Returns account holder name, email, subscription type, payment method, API requests
        consumed today, daily rate limit, and invite token. This is account metadata only --
        does not return any financial market data.

        Args:
            api_token (str, optional): Per-call token override. If omitted, the
                                       env var EODHD_API_KEY is used.

        Returns:
            Object with:
            - name (str): account holder name
            - email (str): account email
            - subscriptionType (str): plan name (e.g. "allworld")
            - paymentMethod (str): payment method type
            - apiRequests (int): API calls used in current period
            - apiRequestsDate (str): current billing period date
            - dailyRateLimit (int): daily API call limit
            - extraLimit (int): extra API calls available
            - inviteToken (str): referral invite token
            - inviteTokenClicked (int): invite link click count
            - subscriptionMode (str): subscription billing mode
            - quota (object): derived usage state — used, limit, remaining,
              extraCallsInReserve, percentUsed, resetsAt (next 00:00 UTC),
              and status (ok / near_limit / critical / exhausted)

        Examples:
            "What plan am I on?" → get_user_details()
            "How many API calls have I used today?" → get_user_details()
            "How much of my daily limit is left?" → get_user_details()
get_ust_bill_rates tool
Fetch daily US Treasury Bill rates (discount and coupon-equivalent yields). Use when the
        user asks about T-bill rates, short-term government borrowing costs, or discount rates
        for Treasury bills.

        Returns daily rates for tenors: 4WK, 8WK, 13WK, 17WK, 26WK, 52WK. Fields include
        date, tenor, discount rate, coupon-equivalent yield, averages, maturity date, and CUSIP.
        Filterable by year. Costs 1 API call per request.

        For Treasury par yield curve rates (longer maturities up to 30Y), use get_ust_yield_rates.

        Args:
            year (int, optional): Filter by year (1900+). Defaults to current year.
            api_token (str, optional): Per-call token override.


        Returns:
            An envelope object with:
            - meta (object): { "total": int } — total number of records returned.
            - data (array): daily bill rate objects, each with:
                - date (str): observation date (YYYY-MM-DD)
                - tenor (str): bill tenor (e.g. 4WK, 8WK, 13WK, 17WK, 26WK, 52WK)
                - discount (float): discount rate
                - coupon (float): coupon-equivalent rate
                - avg_discount (float): average discount rate
                - avg_coupon (float): average coupon-equivalent rate
                - maturity_date (str): maturity date (YYYY-MM-DD)
                - cusip (str): CUSIP identifier
            - links (object): { "next": null } — always null; the full dataset for the year is
              returned and the endpoint does not paginate.

        Notes:
            - 1 API call per request.
            - Included in All-In-One, EOD All World, EOD + Intraday All World Extended, Free plans.
            - No pagination or date-range filtering: filter[year] is the only supported filter.

        Examples:
            "Treasury bill rates for 2026" → get_ust_bill_rates(year=2026)
            "Latest T-bill rates" → get_ust_bill_rates()
get_ust_long_term_rates tool
Fetch US Treasury long-term rate composites and averages. Use when asked about 20-year bond
        constant maturity rates, long-term real rate averages, or extrapolation factors.
        Covers rate types: BC_20year, Over_10_Years, Real_Rate — combining daily long-term
        nominal rates with real long-term rate averages.
        For individual tenor yield curves use get_ust_yield_rates. For inflation-adjusted
        real yields use get_ust_real_yield_rates. For T-bill rates use get_ust_bill_rates.
        Consumes 1 API call per request.

        Args:
            year (int, optional): Filter by year (1900 to current+1). Defaults to current year.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            An envelope object with:
            - meta (object): { "total": int } — total number of records returned.
            - data (array): daily long-term rate objects, each with:
                - date (str): observation date (YYYY-MM-DD)
                - rate_type (str): rate series identifier (e.g. BC_20year, Over_10_Years, Real_Rate)
                - rate (float): rate value
                - extrapolation_factor (float or null): extrapolation factor where applicable
            - links (object): { "next": null } — always null; the full dataset for the year is
              returned and the endpoint does not paginate.

        Notes:
            - 1 API call per request.
            - Included in All-In-One, EOD All World, EOD + Intraday All World Extended, Free plans.
            - Combines "Daily Treasury Real Long-Term Rate Averages" and
              "Daily Treasury Long-Term Rates".
            - No pagination or date-range filtering: filter[year] is the only supported filter.

        Examples:
            "long-term treasury rates for 2024" → get_ust_long_term_rates(year=2024)
            "20-year bond rates this year" → get_ust_long_term_rates(year=2026)
            "real long-term rate averages for 2022" → get_ust_long_term_rates(year=2022)
get_ust_real_yield_rates tool
Fetch US Treasury inflation-adjusted (real) yield curve rates. Use when asked about TIPS yields,
        real interest rates, or inflation-adjusted Treasury returns.
        Covers 5Y, 7Y, 10Y, 20Y, 30Y tenors from the Daily Par Real Yield Curve.
        For nominal Treasury yields use get_ust_yield_rates. For T-bill discount rates use get_ust_bill_rates.
        For long-term rate averages (20Y+ composites) use get_ust_long_term_rates.
        Consumes 1 API call per request.

        Args:
            year (int, optional): Filter by year (1900 to current+1). Defaults to current year.
            api_token (str, optional): Per-call token override; env token used otherwise.


        Returns:
            An envelope object with:
            - meta (object): { "total": int } — total number of records returned.
            - data (array): daily real yield objects, each with:
                - date (str): observation date (YYYY-MM-DD)
                - tenor (str): maturity (e.g. 5Y, 7Y, 10Y, 20Y, 30Y)
                - rate (float): real (inflation-adjusted) yield for the given tenor
            - links (object): { "next": null } — always null; the full dataset for the year is
              returned and the endpoint does not paginate.

        Notes:
            - 1 API call per request.
            - Included in All-In-One, EOD All World, EOD + Intraday All World Extended, Free plans.
            - Compare with nominal yields for implied inflation expectations.
            - No pagination or date-range filtering: filter[year] is the only supported filter.

        Examples:
            "real yield rates for 2025" → get_ust_real_yield_rates(year=2025)
            "current real yield curve" → get_ust_real_yield_rates()
get_ust_yield_rates tool
Fetch daily US Treasury par yield curve rates. Use when the user asks about Treasury
        yields, the yield curve, government bond rates, or interest rates across maturities.

        Returns nominal par yield curve rates for tenors: 1M, 1.5M, 2M, 3M, 4M, 6M, 1Y, 2Y,
        3Y, 5Y, 7Y, 10Y, 20Y, 30Y. Fields include date, tenor, and rate. Filterable by year.
        Costs 1 API call per request.

        For short-term T-bill discount/coupon rates (4WK-52WK), use get_ust_bill_rates instead.

        Args:
            year (int, optional): Filter by year (1900+). Defaults to current year.
            api_token (str, optional): Per-call token override.


        Returns:
            An envelope object with:
            - meta (object): { "total": int } — total number of records returned.
            - data (array): daily yield rate objects, each with:
                - date (str): observation date (YYYY-MM-DD)
                - tenor (str): maturity (e.g. 1M, 1.5M, 2M, 3M, 4M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y)
                - rate (float): par yield for the given tenor
            - links (object): { "next": null } — always null; the full dataset for the year is
              returned and the endpoint does not paginate.

        Notes:
            - 1 API call per request.
            - Included in All-In-One, EOD All World, EOD + Intraday All World Extended, Free plans.
            - Full yield curve across multiple maturities.
            - No pagination or date-range filtering: filter[year] is the only supported filter.

        Examples:
            "US Treasury yield curve for 2026" → get_ust_yield_rates(year=2026)
            "Current yield rates" → get_ust_yield_rates()
resolve_ticker tool
Resolve a company name, partial ticker, or ISIN to SYMBOL.EXCHANGE format (and ISIN).

        USE THIS FIRST when a user mentions a company by name instead of a ticker symbol,
        or when you need to obtain the ISIN for a company/ticker.
        Calls the EODHD Search API and returns the best match as SYMBOL.EXCHANGE plus ISIN.
        If ambiguous (multiple exchanges), returns top 10 matches for user selection.

        Examples:
            "Apple" → query="Apple"
            "Tesla on NASDAQ" → query="Tesla", preferred_exchange="US"
            "ISIN US0378331005" → query="US0378331005"
            "Deutsche Bank on XETRA" → query="Deutsche Bank", preferred_exchange="XETRA"

        Args:
            query (str): Company name, partial ticker, or ISIN to resolve.
            preferred_exchange (str, optional): Exchange code to prefer (e.g. "US", "XETRA", "LSE").
            asset_type (str, optional): Filter by type: "stock", "etf", "fund", "bond", "index", "crypto".
            api_token (str, optional): Per-call API token override.

        Returns:
            JSON object with:
            - resolved (str): best-match ticker in SYMBOL.EXCHANGE format (e.g. "AAPL.US")
            - name (str): full company/instrument name
            - isin (str): ISIN code (e.g. "US0378331005")
            - type (str): asset type (Common Stock, ETF, etc.)
            - exchange (str): exchange code
            - alternatives (list): if ambiguous, top 10 matches each with ticker, name, isin, type, exchange

        Demo:
            To manual data structure, use the manual API key "demo" (documentation: https://eodhd.com/financial-apis/).
            The "demo" key works for AAPL.US, MSFT.US, TSLA.US (stocks), VTI.US (ETF), SWPPX.US (mutual funds),
            EURUSD.FOREX, and BTC-USD.CC in all relevant APIs.
retrieve_description_by_id tool
Retrieve built-in EODHD API documentation by numeric type and id. Use when
        the user asks about API usage, endpoint specs, subscription plans, or reference guides.
        Returns structured Markdown content for subscriptions (type=1), endpoint docs (type=2),
        or general reference (type=3). Call with type=0 or no args for the global README index.
        This is a local lookup — not an API data call. No API calls consumed.

        Types:
          0 — Global README / help
          1 — Subscription plans (ids 1-7; id 0 = subscriptions README)
          2 — Endpoint documentation (ids 1-84; id 0 = endpoints README)
          3 — General reference (ids 1-28; id 0 = general README)

        Subscription plan pages (type=1):
          1 — Free, 2 — EOD Historical Data All World,
          3 — EOD Intraday All World Extended, 4 — Fundamentals Data Feed,
          5 — All-In-One, 6 — All-In-One Extended Fundamentals,
          7 — Calendar Feed

        Endpoint documentation pages (type=2):
          The id → endpoint mapping changes as endpoints are added, so it is not duplicated
          here: call ``type=2, id=0`` to get the current index, then request the id you need.

        General reference pages (type=3):
          1 — API Authentication Demo Access, 2 — Authentication,
          3 — Crypto Data Notes, 4 — Data Adjustment Guide,
          5 — Delisted Tickers Guide, 6 — Exchanges,
          7 — Financial Ratios Calculation Guide, 8 — Forex Data Notes,
          9-16 — Fundamentals guides, 17 — General Data FAQ,
          18 — Glossary, 19 — Indices Data Notes,
          20 — Pricing And Plans, 21 — Primary Tickers Guide,
          22 — Rate Limits, 23 — SDKs And Integrations,
          24 — Special Exchanges Guide,
          25 — Stock Types Ticker Suffixes Guide,
          26 — Symbol Format, 27 — Update Times, 28 — Versioning

        Args:
            type: Page category (0 = global README, 1 = subscriptions,
                  2 = endpoints, 3 = general). Default 0.
            id: Numeric page ID within the type. Optional; defaults to 0
                (README for the given type).
            api_token: Ignored (accepted for interface uniformity).

        Returns:
            JSON object with:
            - type (int): Page category number (0-3).
            - id (int): Page ID within the category.
            - title (str): Human-readable page title derived from filename.
            - content (dict): Structured parsed markdown (headings as nested dicts,
              tables as list-of-dicts, lists as arrays, key-value pairs as dict entries).
            - raw (str): Original markdown source text.
            - fallback (bool, optional): Present and true when invalid/missing params
              caused a fallback to the global README.

        Examples:
            "show me the global help page" → type=0
            "docs for the All-In-One subscription plan" → type=1, id=5
            "how does the historical stock prices endpoint work" → type=2, id=12
            "explain rate limits" → type=3, id=22
get_sec_filings tool
Fetch parsed US SEC filing data for a company: an overview of what has been filed, or the
        detailed, structured contents of its annual (10-K), quarterly (10-Q), or material-event
        (8-K) filings. Use when the user asks about a company's SEC filings, its 10-K / 10-Q /
        8-K, annual or quarterly report financials pulled straight from filings, or material events
        disclosed to the SEC.

        Covers US-listed companies. Financial-statement fields in 10-K / 10-Q filings are parsed
        from the filing itself (income statement, balance sheet, cash flow); any individual field
        may be null when the filing does not report it. Requires the All-in-One plan. Costs 10 API
        calls per request.

        This is distinct from the SEC Form 4 insider-transaction feed — for insider buys and sells
        use the insider-transactions tool instead.

        Args:
            symbol (str): US-listed ticker, e.g. "AAPL" or "AAPL.US". The ".US" suffix is optional.
            form (str, optional): Which filing type to return. Omit for the overview (counts and the
                latest filing of each type). Otherwise "10k" (annual), "10q" (quarterly), or "8k"
                (material events). Flexible spellings like "10-K" or "Form 8-K" are accepted.
            limit (int, optional): Records per page for the list endpoints, 1..100 (default 20
                upstream). Ignored for the overview, which is not paginated.
            offset (int, optional): Pagination offset for the list endpoints (default 0). Ignored
                for the overview.
            api_token (str, optional): Per-call token override.

        Returns:
            Overview (form omitted): a data object with ticker, exchange, name, cik, and a filings
            map keyed by "10k", "10q", "8k", "form4", each holding {count, latest, url}.

            10-K / 10-Q (form="10k"/"10q"): an envelope with data (array of filings), meta
            (total, page{offset,limit}), and links (next page URL or null). Each filing carries
            accession_number, filed_at, period_of_report, fiscal_year_end (10-K) or
            fiscal_quarter_end + fiscal_quarter (10-Q), plus parsed income-statement, balance-sheet
            and cash-flow fields (revenue, net_income, ebitda, eps_basic, total_assets,
            stockholders_equity, operating_cash_flow, free_cash_flow, and many more; any may be null).

            8-K (form="8k"): the same envelope; each item carries accession_number, filed_at,
            period_of_report, items (list of item codes), item_sections ({item, title, text}), and
            exhibits ({number, description}).

        Notes:
            - 10 API calls per request.
            - Requires the All-in-One plan.
            - The overview has no pagination; limit/offset apply only to 10k/10q/8k.
            - For Form 4 insider transactions, use the insider-transactions tool, not this one.

        Examples:
            "What has Apple filed with the SEC?" -> get_sec_filings(symbol="AAPL.US")
            "Apple's latest annual report financials" -> get_sec_filings(symbol="AAPL", form="10k", limit=1)
            "Tesla's recent quarterly filings" -> get_sec_filings(symbol="TSLA.US", form="10q")
            "Apple's most recent 8-K material events" -> get_sec_filings(symbol="AAPL", form="8k", limit=5)
analyze_stock prompt
Analyze a stock by chaining fundamental, technical, and news data.

        Args:
            ticker: Stock symbol in SYMBOL.EXCHANGE format (e.g. 'AAPL.US').
compare_stocks prompt
Compare two stocks side by side using fundamental and price data.

        Args:
            ticker1: First stock symbol in SYMBOL.EXCHANGE format (e.g. 'AAPL.US').
            ticker2: Second stock symbol in SYMBOL.EXCHANGE format (e.g. 'MSFT.US').
market_overview prompt
Get a broad market overview using screener, economic events, and earnings data.

        Args:
            exchange: Exchange code (e.g. 'US', 'LSE', 'NSE'). Defaults to 'US'.
analyze_stock prompt
A prompt template.
(name computed at run time) resource

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure6.1
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 97 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 97 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path
    No tool works on a file path the caller supplies without a root check — 97 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Requests any address
    No tool sends a request to an address the caller supplies — 97 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 97 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    Not seen in the traced code of 97 capabilities; 93 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    1 of 97 capabilities touch files; 92 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    91 of 97 capabilities call the network; 2 more call code the scanner could not follow, where it may happen
Where the code is: 97 handlers in 97 files at commit 60faa78c5970
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain7.0
  • Dependency manifests
    2 manifests: pyproject.toml, requirements.txt
  • Lockfiles checked against OSV
    1 file resolved and checked against the OSV database; 2 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked; requirements.txt: 8 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile
  • Known vulnerabilities in production dependencies
    No production dependency with a known advisory
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    fastmcp >=3.4.4,<3.5
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    92 of 97 capabilities read credentials; 1 more call code the scanner could not follow, where it may happen
  • Environment variables
    92 capabilities read environment variables (often API keys)
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (0 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

No known vulnerabilities in the production dependencies that could be checked.

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
TransportStreamable HTTP, SSE, stdio
Sign-innot checked needs the live server
MCP SDKfastmcp >=3.4.4,<3.5
Servers in the code20 (eodhd-datasets, manual, test, telemetry-test)

The project's own security

Security policynone no SECURITY.md in the repository: report issues privately through GitHub if it is enabled
Past advisoriesnone in the GitHub Advisory Database
Last push2026-10-22
Signed releasesnot checked yet

Where it is published

Listed in4 catalogs (github_search, glama, mcp_toplist, mcpservers_org)
LicenseMIT
Created2026-02-27

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.