<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rajesh Ranjan on Medium]]></title>
        <description><![CDATA[Stories by Rajesh Ranjan on Medium]]></description>
        <link>https://medium.com/@rajeshranjancs?source=rss-923ceea63159------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XtlehUiFveuZBGzwR6Jd1g@2x.jpeg</url>
            <title>Stories by Rajesh Ranjan on Medium</title>
            <link>https://medium.com/@rajeshranjancs?source=rss-923ceea63159------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 16:54:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rajeshranjancs/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ Building a Banking-Grade Payments & Rewards AI using Citi Sandbox + MCP + Claude]]></title>
            <link>https://pub.towardsai.net/building-a-banking-grade-payments-rewards-ai-using-citi-sandbox-mcp-claude-9786f29950b3?source=rss-923ceea63159------2</link>
            <guid isPermaLink="false">https://medium.com/p/9786f29950b3</guid>
            <category><![CDATA[llm-applications]]></category>
            <category><![CDATA[payments]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[claude]]></category>
            <dc:creator><![CDATA[Rajesh Ranjan]]></dc:creator>
            <pubDate>Fri, 19 Dec 2025 05:25:39 GMT</pubDate>
            <atom:updated>2025-12-24T02:14:53.716Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>🚀Building a Banking-Grade Payments &amp; Rewards AI using Citi Sandbox + MCP + Claude</strong></h3><p>This story is available for free at the <a href="https://rajeshranjancs.medium.com/9786f29950b3?source=friends_link&amp;sk=599fcce7b20a85fa0be15b53e9ba7b5e">link</a></p><h4><em>Designing real payments, cross-border transfers, and rewards redemption using Citi APIs, FastMCP, and Model Context Protocol.</em></h4><p>This article demonstrates how banking-grade AI using Model Context Protocol (MCP) can safely orchestrate real payments, cross-border transfers, and rewards flows using Citi Sandbox APIs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sFMtbKooT5Ly3Wx0calgbw.png" /></figure><p>What if an AI assistant could safely execute <strong>real banking operations</strong> — not mock APIs or simulations, but actual payments, rewards redemption, and cross-border transfers within a regulated banking environment?</p><p>As banks accelerate their adoption of generative AI, most experiments stop well before production reality. They avoid real authentication flows, real limits, and real regulatory constraints.</p><p>In this project, I wanted to test a harder question:</p><blockquote><strong>Can modern LLMs orchestrate real, regulated banking workflows end-to-end — with proper authentication, limits, auditability, and human-in-the-loop controls?</strong></blockquote><p>To answer that, I connected <a href="https://claude.com/download"><strong>Claude Desktop</strong></a><strong> </strong>to <a href="https://partner.citi.com/home"><strong>Citi’s Sandbox APIs</strong></a>, built a <a href="https://www.anthropic.com/news/model-context-protocol"><strong>Model Context Protocol (MCP)</strong></a><strong> server using </strong><a href="https://gofastmcp.com/getting-started/welcome"><strong>FastMCP</strong></a><strong> </strong>, and implemented fully functional banking flows covering:</p><ul><li>Domestic &amp; cross-border payments</li><li>Transaction history &amp; filtering</li><li>Rewards point balance, redemption, and reversal</li><li>MFA-based card authorization</li></ul><p>This was not a demo environment or mocked logic.These were <strong>real banking constraints, real authentication flows</strong>, and <strong>real API contract</strong>s — executed step by step through an AI assistant.</p><p>That raised a harder architectural question:</p><blockquote><strong>Can a modern LLM like Claude safely orchestrate using production-grade bank APIs — without simplifying or bypassing core controls?</strong></blockquote><p>Using <strong>Citi’s Sandbox APIs, FastMCP</strong>, and <strong>Claude Desktop</strong>, the answer turned out to be <strong>yes</strong> — and the resulting architecture is <strong>cleaner, safer, and more auditable </strong>than many traditional integrations.</p><p>This architecture mirrors how real banks structure <strong>payment, rewards, and risk workflows</strong> — but exposes them safely to AI through<strong> typed, auditable tools</strong>.</p><h4>Why This Architecture Matters for Banks and AI Teams</h4><p>As banks experiment with generative AI, most architectures struggle with <strong>safety, auditability, and regulatory control.</strong> This implementation shows how LLMs can be <strong>constrained and orchestrated</strong>, not blindly empowered, using MCP as a formal control layer.</p><p>Citi’s sandbox platform enables this experimentation using <strong>real banking contracts</strong> <strong>and flows</strong>, without exposing customer data or violating regulatory boundaries.</p><p>With <strong>Model Context Protocol (MCP)</strong> gaining traction across enterprise AI systems in 2025, this pattern offers a realistic blueprint for how banks can adopt AI <strong>without rewriting their risk frameworks</strong></p><h4>Who This Article Is For</h4><ul><li>Banking architects &amp; payments engineers</li><li>AI engineers working with regulated systems</li><li>FinTech leaders exploring MCP or agent frameworks</li><li>Anyone designing <strong>AI + compliance-sensitive workflows</strong></li></ul><h4>What I Built (End-to-End)</h4><p>I built a <strong>local MCP server</strong> that exposes <strong>real Citi Sandbox capabilities</strong> to Claude:</p><p><strong>💳 Payments</strong></p><ul><li>Internal domestic transfers</li><li>Cross-border wire transfers (SWIFT)</li><li>Pre-process → confirm → execute flows</li></ul><p><strong>🎁 Rewards</strong></p><ul><li>Card-based rewards authentication (OTP / MFA)</li><li>Point balance lookup</li><li>Shop-With-Points redemption</li><li>Redemption reversal</li><li>Banking-grade pre-redeem confirmation</li></ul><p><strong>🤖 AI Integration</strong></p><ul><li><strong>STDIO MCP server</strong> → Claude Desktop</li><li><strong>HTTP MCP server</strong> → MCP Inspector &amp; debugging</li><li>Claude acts as a <strong>conversation-aware banking orchestrator</strong></li></ul><p><strong>Demo with Claude for shop with points / rewards redeemption:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FT28226B7ajA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DT28226B7ajA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FT28226B7ajA%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/67c8cdd4fb704015375fc9f41b70793c/href">https://medium.com/media/67c8cdd4fb704015375fc9f41b70793c/href</a></iframe><p><strong>Demo with Claude for Payments :</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F0U2hmzQ6W_Q%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D0U2hmzQ6W_Q&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F0U2hmzQ6W_Q%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/68a5df5ce6730fd82e04f15d7b7e6cb6/href">https://medium.com/media/68a5df5ce6730fd82e04f15d7b7e6cb6/href</a></iframe><h4>High-Level Architecture</h4><p>🧠 Architecture Overview</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-sWmsiupdlnu9Q6NFR75uA.png" /><figcaption>Architecture of Payments &amp; Rewards AI Agent</figcaption></figure><p>So below is how you relate this architecture with basic comcepts of MCP -</p><p>Claude Desktop acts as the <strong>MCP Host</strong> and it internally spins up STDIO based <strong>MCP Client</strong> that connects to a local FastMCP server (<strong>MCP Server</strong>), which exposes typed banking tools backed by Citi Sandbox APIs.</p><p>MCP Inspector acts as HTTP client connects to MCP Server over Streambale HTTP.</p><p>MCP Host = Claude Desktop</p><p>MCP Client = Claude’s built-in MCP connector which supports only STDIO transport as of Today. It’s one to one mapping between MCP Client and MCP Server.</p><p>MCP Server = fastMCP server exposing MCP Tools</p><p>MCP Tools = Implementation of Citi Sandbox API and more.</p><p><strong>This architecture is intentionally split across two transports.</strong></p><p>A previous blog post covers <a href="https://generativeai.pub/langgraph-react-agents-unlocked-fastmcp-custom-tool-integration-guide-6f082558cd0b"><strong>Building an MCP Server over STDIO</strong></a>, focusing on securely exposing banking-grade MCP tools to Claude Desktop without opening network ports.</p><p>A separate blog post covers <a href="https://generativeai.pub/deepresearch-react-agent-building-a-streamable-http-mcp-server-for-the-ai-investment-5818573e3e4f"><strong>Building a Streamable HTTP MCP Server</strong></a>, focused on exposing the same MCP tools over HTTP for inspection and debugging.</p><h4>Banking-Grade AI with MCP: What This Architecture Enables</h4><ul><li>Secure AI-driven payments and rewards orchestration</li><li>Deterministic pre-process → confirm → execute flows</li><li>Policy-aware AI using typed MCP tools instead of prompts</li></ul><h4>🧠 Why MCP Changes Everything for Banking AI</h4><p>Most traditional LLM integrations fail in banking for structural reasons:</p><ul><li>No deterministic control over API execution</li><li>No native support for multi-step financial workflows</li><li>No enforcement of regulatory or business boundaries</li><li>No reliable audit trail for decisions and actions</li></ul><p>In regulated environments, these gaps are not “limitations” — they are <strong>deal-breakers</strong>.</p><p><strong>Model Context Protocol (MCP)</strong> addresses this by introducing a formal orchestration layer between AI and enterprise systems:</p><ul><li>APIs are exposed as <strong>typed, explicit tools</strong>, not free-form calls</li><li>Execution is <strong>step-by-step</strong>, with state carried across decisions</li><li>The AI is forced to <strong>ask before acting</strong>, mirroring real banking flows</li><li>Business rules live in code and tools — <strong>not buried inside prompts</strong></li></ul><p>The result is a fundamental shift in how AI behaves.</p><blockquote><strong>Claude stops being a rogue API caller and becomes a policy-aware workflow orchestrator.</strong></blockquote><p>This is the difference between <em>AI demos</em> and <strong>AI systems that banks can actually deploy</strong>.</p><h4>Dual MCP Exposure: STDIO + HTTP</h4><p>One deliberate architectural choice made this system both <strong>secure enough for banking</strong> and <strong>practical enough for development</strong>:</p><p><strong>Expose the same MCP tools over two transports — without duplicating logic.</strong></p><p><strong>🖥️ STDIO MCP (Claude Desktop)</strong></p><p>This mode is optimized for sensitive, user-facing banking workflows:</p><ul><li>Runs <strong>locally</strong> with no network exposure</li><li>Requires <strong>zero open ports</strong></li><li>Keeps credentials, tokens, and state confined to the device</li><li>Ideal for payments, rewards, and MFA-driven flows</li></ul><p>This mirrors how banks treat privileged execution paths: <strong>tight, local, and controlled</strong>.</p><p><strong>🌐 HTTP MCP (Inspector &amp; Debugging)</strong></p><p>The same tools are also exposed over HTTP — purely for engineering visibility and iteration:</p><ul><li>OpenAPI-style introspection of MCP tools</li><li>Direct testing via curl and Postman</li><li>Full request / response logging</li><li>Faster debugging and validation during development</li></ul><p><strong>One Tooling Layer. Two Transports. No Duplication.</strong></p><p>Both modes are backed by the <strong>same FastMCP server and tool definitions</strong>.</p><p>There are:</p><ul><li>No parallel implementations</li><li>No environment-specific hacks</li><li>No divergence between “demo” and “real” logic</li></ul><p>Claude simply consumes the same banking-grade tools via <strong>STDIO for secure execution</strong> or MCP Inspector via <strong>Streamble</strong> <strong>HTTP for inspection and debugging</strong>.</p><p>This separation of <strong>execution surface</strong> from <strong>tool logic</strong> is what makes MCP viable for regulated systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qxd23zyQF30BaH4QwWxMOw.png" /></figure><p>Below is how MCP tools are available in Claude as connector when you configure MCP server in JSON configuration file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TTbfFYqIY8BBeZA_feqk8A.png" /></figure><h4>Payments Flow (Real Banking Style):</h4><p>🏦 Cross-Border Wire Transfer (SWIFT)</p><p>Cross-border wire transfers executed exactly like real banking systems — eligibility checks, pre-processing, explicit confirmation, and final execution — all orchestrated by Claude through typed MCP tools without skipping a single control.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mNWbPHXribZ4cycuDGd3Bg.png" /><figcaption>Cross broder payments flow</figcaption></figure><p>🏦 Local Payments:</p><p>A real internal domestic payment flow executed exactly like a core banking system — account resolution, payee matching, eligibility validation, pre-processing, explicit confirmation, and post-transaction inquiry — all orchestrated by Claude through typed MCP tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UkqYyf7Aczn5OMqIuAC2KQ.png" /><figcaption>Local Payments flow</figcaption></figure><h4>Rewards: Where It Gets Interesting</h4><p>🎁 Card Rewards Auth (OTP-Based) redemption flow</p><p>A real card-based rewards redemption flow with MFA, minimum redemption enforcement, explicit user confirmation, and reversible execution — orchestrated step-by-step by Claude through MCP tools backed by Citi Sandbox APIs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DR957yMMzRfaVE6j2zUfzA.png" /><figcaption>Shop with points flow</figcaption></figure><p>This is <strong>real MFA</strong>, handled safely via MCP. For Citi Sandbox, OTP 987654 is used.</p><p><strong>What makes this different:</strong></p><ul><li>Claude never guesses</li><li>Claude never auto-adjusts silently</li><li>Minimum / maximum redemption enforced</li><li>Conversion uses programConversionRate</li><li>User confirms before execution</li><li>Reversals supported (real banking need)</li></ul><p>This is <strong>AI behaving like a banker</strong>, not a chatbot.</p><h4>Preventing Bad AI Decisions (Critical)</h4><p>One hard lesson:</p><blockquote>AI must NEVER silently “fix” banking constraints.</blockquote><p>Example:</p><ul><li>User asks: <em>“Redeem 50 SGD”</em></li><li>Minimum redemption = <strong>1000 points (~252 SGD)</strong></li></ul><p>Claude must <strong>stop</strong>, not auto-redeem more.</p><p><strong>Solution: Pre-Redeem Confirmation Tool</strong></p><p>I added a <strong>bank-grade pre-redeem MCP tool</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lH-t4Uef7vD2Z_T7pN5JqA.png" /><figcaption>Pre-redemption flow</figcaption></figure><p>Claude is <em>forced</em> to ask:</p><blockquote>“Minimum redeemable amount is 252 SGD (1000 points).<br> Do you want to proceed?”</blockquote><p>This is how real banks protect customers — and AI should too.</p><h4>Technical Implementation (What Engineers Care About)</h4><p>This system was built using production-grade components — no wrappers, no abstractions that hide complexity.</p><h4>⚙️ Stack Used</h4><p><strong>🏦 Citi Sandbox APIs</strong></p><ul><li>Accounts &amp; transaction history</li><li>Internal domestic payments</li><li>Cross-border wire transfers (SWIFT)</li><li>Rewards &amp; Shop-With-Points flows</li><li>Card-based OAuth + MFA (OTP)</li></ul><p><strong>🧩 FastMCP (Model Context Protocol Server)</strong></p><ul><li>Python-native MCP implementation</li><li>Strongly typed tools with validation</li><li>Deterministic, step-by-step execution</li><li>Business rules enforced outside prompts</li></ul><p><strong>🤖 Claude Integration</strong></p><ul><li>Claude Desktop via <strong>STDIO MCP</strong> (secure, local)</li><li>MCP Inspector via <strong>HTTP MCP</strong> (OpenAPI, curl, tracing)</li></ul><h4>Why Citi Sandbox Was the Right Foundation</h4><p>Citi’s Sandbox platform offers something rare in enterprise banking innovation: the ability to experiment with <strong>realistic, regulated banking workflows</strong> without exposing customer data or compromising compliance.</p><p>Unlike typical “API demo” environments, Citi Sandbox APIs are:</p><ul><li><strong>Production-grade in structure</strong> (not toy endpoints)</li><li><strong>Multi-step by design</strong> (pre-process → confirm → execute)</li><li><strong>Security-aware</strong> (MFA, card-based auth, controlFlowIds)</li><li><strong>Unified across domains</strong> (payments <em>and</em> rewards in one platform)</li></ul><p>This made it possible to model <strong>real banking use cases</strong>, including:</p><ul><li>Retail banking transactions</li><li>Wealth and cross-border payments</li><li>Card rewards, redemption, and reversals</li></ul><p>In short, this is <strong>enterprise-grade API design</strong>, not a demo playground.</p><p>More importantly, this architecture demonstrates how banks can:</p><ul><li>Safely integrate LLMs with regulated systems</li><li>Keep <strong>business logic out of prompts</strong> and inside APIs</li><li>Preserve <strong>human-in-the-loop and compliance controls</strong></li><li>Still deliver a natural, conversational customer experience</li></ul><p>This is the bridge between <strong>AI experimentation</strong> and <strong>banking-grade production systems</strong>.</p><h4>Why This Matters</h4><p>This matters because realistic APIs are the difference between AI demos and production-ready banking systems.</p><h4>Key Takeaways</h4><ul><li><strong>LLMs should orchestrate workflows — not execute APIs blindly.</strong><br> Banking-grade systems require structured decision-making, not free-form tool calls.</li><li><strong>Model Context Protocol (MCP) provides the missing control layer</strong> between generative AI and enterprise APIs, enabling typed tools, deterministic execution, and auditability.</li><li><strong>Real banking flows demand explicit confirmation layers.</strong><br> Payments, FX, rewards, and redemptions must stop, explain, and ask before executing — exactly as human bankers do.</li><li><strong>Citi Sandbox enables realistic, production-grade experimentation.</strong><br> Multi-step flows, MFA, limits, reversals, and rewards logic make it uniquely suited for serious AI architecture work.</li><li><strong>AI-powered payments and rewards are viable today — </strong><br> but only with disciplined APIs, strong orchestration, and clear separation of policy, logic, and execution.</li></ul><h4>Final Thought</h4><p>AI doesn’t replace banking architecture — <strong>it amplifies it</strong>.</p><p>When large language models are combined with well-designed APIs, formal orchestration layers, and real safeguards, they unlock an entirely new class of customer experience — conversational, contextual, and safe by design.</p><blockquote>The real breakthrough isn’t <em>“ChatGPT for banking.”</em><br> It’s <strong>LLMs acting as policy-aware workflow engines</strong>, executing regulated banking APIs with discipline, transparency, and human-in-the-loop control.</blockquote><blockquote><strong>MCP makes this possible.</strong><br><strong>Citi Sandbox makes it real.</strong></blockquote><h4>A Question for Architects &amp; AI Builders</h4><p>If you’re experimenting with MCP or agent frameworks in production:</p><blockquote><strong>Would you trust LLMs calling bank APIs directly — <br> or do you believe typed, auditable tool layers like MCP are mandatory?</strong></blockquote><p>What trade-offs have you seen in real systems?</p><p>Last updated: December 2025 — tested against Citi Sandbox APIs and Claude Desktop.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9786f29950b3" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/building-a-banking-grade-payments-rewards-ai-using-citi-sandbox-mcp-claude-9786f29950b3">🚀 Building a Banking-Grade Payments &amp; Rewards AI using Citi Sandbox + MCP + Claude</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ DeepResearch & React-Agent: Building a Streamable HTTP MCP Server for the AI Investment…]]></title>
            <link>https://generativeai.pub/deepresearch-react-agent-building-a-streamable-http-mcp-server-for-the-ai-investment-5818573e3e4f?source=rss-923ceea63159------2</link>
            <guid isPermaLink="false">https://medium.com/p/5818573e3e4f</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[mcp-server]]></category>
            <dc:creator><![CDATA[Rajesh Ranjan]]></dc:creator>
            <pubDate>Fri, 21 Nov 2025 05:43:37 GMT</pubDate>
            <atom:updated>2025-11-24T15:37:17.692Z</atom:updated>
            <content:encoded><![CDATA[<h3>DeepResearch &amp; React-Agent: Building a Streamable HTTP MCP Server for the AI Investment Co-Pilot (with Code)</h3><blockquote>You can read this story for free at <a href="https://generativeai.pub/deepresearch-react-agent-building-a-streamable-http-mcp-server-for-the-ai-investment-5818573e3e4f?source=friends_link">link</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7c8jfdrQg7s8Fpi9sS7koA.png" /></figure><blockquote>Meet DeepAgent — an AI investment co-pilot that thinks like a team of analysts, researches like a quant desk, and reacts like a live market terminal. Powered by a streamable HTTP MCP server, multi-agent reasoning, RAG intelligence, and real-time financial data, it’s your always-on research partner built on LangGraph and deployed serverlessly on AWS.</blockquote><p>Modern AI systems are rapidly shifting from single-model prompts to <strong>agentic, multi-agent architectures</strong> — and the evolution is happening faster than most developers realize. In this project, I built an <strong>AI Investment Co-Pilot</strong> that brings together DeepAgent-style reasoning, LangGraph-powered orchestration, <strong>RAG</strong>, <strong>ReAct Agents</strong>, <strong>ARIMA forecasting</strong>, and a fully <strong>streamable HTTP MCP server</strong>. The goal was simple: explore how real multi-agent systems behave when combined with live financial data, tool calling, and cloud-native deployment patterns.</p><p>This article walks through how I designed and deployed a <strong>multi-agent research engine</strong> capable of executing complex financial analysis using <strong>MCP tools</strong>, <strong>vector-based RAG</strong>, and <strong>stateful LangGraph workflows</strong>. Whether you’re exploring Agentic AI, building LLM-based FinTech tooling, or experimenting with MCP servers that support real-time streaming via SSE, this end-to-end breakdown will help you understand the architecture, reasoning loops, caching strategy, and orchestration stack behind a production-grade AI research system.</p><h4>🔥 What if you could combine:</h4><ul><li>A real multi-agent research system</li><li>Live financial data</li><li>RAG-augmented intelligence</li><li>Observability</li><li>And a fully streamable HTTP MCP server…<br> into a <strong>production-grade AI investment co-pilot?</strong></li></ul><p>That’s exactly what I built.</p><blockquote>This new installment in my Agentic AI series shows how to create a <strong>Streamable HTTP MCP Server </strong>and test everything locally using MCP Inspector, Decoding MCP server logs, building docker container with MCP server and push image to AWS ECR.</blockquote><h4>💡 Powered Entirely by GPT-4o Mini (Yes, the cheap one)</h4><p>To keep the experiment affordable and accessible, the entire application runs on <strong>OpenAI GPT-4o mini</strong> — yet still delivers full-stack analysis including:</p><ul><li>Live stock data</li><li>Quant metrics</li><li>Earnings &amp; fundamentals</li><li>Technical indicators</li><li>News search</li><li>Global macro dat</li><li>Time-series forecasting</li><li>Multi-agent research reasoning</li></ul><p>All of that, running on a <strong>custom Streamable HTTP MCP Server</strong> with financial APIs.</p><h4>🏗️ Fully Deployed as a Two-Container Architecture on AWS</h4><p>To make it real, not theoretical, I deployed the full system using:</p><ul><li>⚙️ <strong>AWS ECS Fargate Spot</strong></li><li>🌀 <strong>AWS Cloud Map</strong> for service discovery</li><li>🌐 <strong>Route 53 + ALB</strong></li><li>🛢️ <strong>ECR</strong> for container images</li><li>🔒 Public + Private Subnet Architecture</li><li>📉 Cost: <strong>~USD $60/month</strong> (now decommissioned)</li></ul><p>It’s lightweight, serverless, and production-ready.</p><h4>🎥 Before We Dive In… Watch It in Action</h4><p>Here’s a preview of the AI Investment Co-pilot doing real financial research, forecasting markets, and orchestrating multi-agent analysis — all using HTTP-streamed MCP tools:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F-T_E-I8gLEc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-T_E-I8gLEc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F-T_E-I8gLEc%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3423ad5946695a03faca6e4f2d6c13ab/href">https://medium.com/media/3423ad5946695a03faca6e4f2d6c13ab/href</a></iframe><p>See the DeepResearch agent in action in this 7-minute demo ( due to slow response as running on local) of the AI Investment Co-pilot !</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FzGw27GTFhtg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DzGw27GTFhtg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FzGw27GTFhtg%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1370bb3d6aaf0df0fc0230a7829a834b/href">https://medium.com/media/1370bb3d6aaf0df0fc0230a7829a834b/href</a></iframe><p>Watch the video below to see the Express Analysis feature in action, delivering instant insights in the AI Investment Co-pilot with human-in-loop(HIL)</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DnWlLomn56mA&amp;type=text%2Fhtml&amp;schema=google&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FnWlLomn56mA" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ac87337e4f35b9db2a159a391a964a04/href">https://medium.com/media/ac87337e4f35b9db2a159a391a964a04/href</a></iframe><p>Glimps of how Out Of the Box Deepagent is breaking user query into multiple tasks and tracking its status until its completion and then return response to user’s research query-</p><pre>================================ Human Message =================================<br><br>I have 425 stocks of RGTI with average price of 39.57, can you generate buy/sell/hold recommendation based upon current market situation<br>================================== Ai Message ==================================<br>Tool Calls:<br>write_todos (call_1LG1Xx6EOp9ZDIItixiWpUzT)<br>Call ID: call_1LG1Xx6EOp9ZDIItixiWpUzT<br>Args:<br>todos: [{&#39;content&#39;: &#39;Fetch stock basics for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}, {&#39;content&#39;: &#39;Fetch 6-month price history and technical indicators for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}, {&#39;content&#39;: &#39;Fetch latest quarterly financials for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}, {&#39;content&#39;: &#39;Synthesize analysis and produce recommendation for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}]<br>================================= Tool Message =================================<br>Name: write_todos<br><br>Updated todo list to [{&#39;content&#39;: &#39;Fetch stock basics for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}, {&#39;content&#39;: &#39;Fetch 6-month price history and technical indicators for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}, {&#39;content&#39;: &#39;Fetch latest quarterly financials for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}, {&#39;content&#39;: &#39;Synthesize analysis and produce recommendation for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}]<br>================================== Ai Message ==================================<br>Tool Calls:<br>write_todos (call_vCp3XZM3N67w9YHnjYOnssjA)<br>Call ID: call_vCp3XZM3N67w9YHnjYOnssjA<br>Args:<br>todos: [{&#39;content&#39;: &#39;Fetch stock basics for RGTI&#39;, &#39;status&#39;: &#39;in_progress&#39;}, {&#39;content&#39;: &#39;Fetch 6-month price history and technical indicators for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}, {&#39;content&#39;: &#39;Fetch latest quarterly financials for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}, {&#39;content&#39;: &#39;Synthesize analysis and produce recommendation for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}]<br>================================= Tool Message =================================<br>Name: write_todos<br><br>Updated todo list to [{&#39;content&#39;: &#39;Fetch stock basics for RGTI&#39;, &#39;status&#39;: &#39;in_progress&#39;}, {&#39;content&#39;: &#39;Fetch 6-month price history and technical indicators for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}, {&#39;content&#39;: &#39;Fetch latest quarterly financials for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}, {&#39;content&#39;: &#39;Synthesize analysis and produce recommendation for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}]<br>================================== Ai Message ==================================<br>Tool Calls:<br>fetch_stock_info (call_CNlIEQWjzMg4JNe4FoqlNyFe)<br>Call ID: call_CNlIEQWjzMg4JNe4FoqlNyFe<br>Args:<br>symbol: RGTI<br>================================= Tool Message =================================<br>Name: fetch_stock_info<br><br>{&quot;symbol&quot;:&quot;RGTI&quot;,&quot;company_name&quot;:&quot;Rigetti Computing, Inc.&quot;,&quot;market_cap&quot;:8148344320,&quot;pe_ratio&quot;:null,&quot;52_week_high&quot;:58.15,&quot;52_week_low&quot;:1.29,&quot;long_name&quot;:&quot;Rigetti Computing, Inc.&quot;,&quot;exchange&quot;:&quot;NCM&quot;,&quot;sector&quot;:&quot;Technology&quot;,&quot;industry&quot;:&quot;Computer Hardware&quot;,&quot;enterprise_value&quot;:7708957696,&quot;shares_outstanding&quot;:330026078,&quot;pe_ratio_trailing&quot;:null,&quot;pe_ratio_forward&quot;:-74.818184,&quot;peg_ratio&quot;:null,&quot;dividend_rate&quot;:null,&quot;dividend_yield&quot;:null,&quot;ex_dividend_date&quot;:null,&quot;payout_ratio&quot;:0.0,&quot;five_year_avg_dividend_yield&quot;:null,&quot;fifty_two_week_high&quot;:58.15,&quot;fifty_two_week_low&quot;:1.29,&quot;regular_market_price&quot;:24.69,&quot;beta&quot;:1.647,&quot;profit_margins&quot;:0.0,&quot;gross_margins&quot;:0.32226002,&quot;ebitda_margins&quot;:0.0,&quot;revenue&quot;:null,&quot;gross_profits&quot;:2415000,&quot;total_cash&quot;:446983008,&quot;total_debt&quot;:7597000,&quot;debt_to_equity&quot;:2.043,&quot;website&quot;:&quot;https://www.rigetti.com&quot;,&quot;address&quot;:&quot;775 Heinz Avenue&quot;,&quot;city&quot;:&quot;Berkeley&quot;,&quot;state&quot;:&quot;CA&quot;,&quot;country&quot;:&quot;United States&quot;,&quot;full_time_employees&quot;:137,&quot;earnings_growth&quot;:null,&quot;revenue_growth&quot;:-0.181,&quot;operating_margins&quot;:-10.55419,&quot;recommendation_mean&quot;:1.42857,&quot;recommendation_key&quot;:&quot;strong_buy&quot;,&quot;logo_url&quot;:null,&quot;phone&quot;:&quot;510 210 5550&quot;,&quot;summary&quot;:null,&quot;general_info&quot;:{&quot;currency&quot;:&quot;USD&quot;,&quot;dayHigh&quot;:25.98,&quot;dayLow&quot;:24.19,&quot;exchange&quot;:&quot;NCM&quot;,&quot;fiftyDayAverage&quot;:34.4735,&quot;lastPrice&quot;:24.690000534057617,&quot;lastVolume&quot;:42986900,&quot;marketCap&quot;:8148344320,&quot;open&quot;:24.892,&quot;previousClose&quot;:25.48,&quot;quoteType&quot;:&quot;EQUITY&quot;,&quot;regularMarketPreviousClose&quot;:25.48,&quot;shares&quot;:330026078,&quot;tenDayAverageVolume&quot;:51859900,&quot;threeMonthAverageVolume&quot;:80562880,&quot;timezone&quot;:&quot;America/New_York&quot;,&quot;twoHundredDayAverage&quot;:17.523575,&quot;yearChange&quot;:17.847329475198826,&quot;yearHigh&quot;:58.150001525878906,&quot;yearLow&quot;:1.2899999618530273,&quot;address1&quot;:&quot;775 Heinz Avenue&quot;,&quot;city&quot;:&quot;Berkeley&quot;,&quot;state&quot;:&quot;CA&quot;,&quot;zip&quot;:&quot;94710&quot;,&quot;country&quot;:&quot;United States&quot;,&quot;phone&quot;:&quot;510 210 5550&quot;,&quot;website&quot;:&quot;https://www.rigetti.com&quot;,&quot;industry&quot;:&quot;Computer Hardware&quot;,&quot;industryKey&quot;:&quot;computer-hardware&quot;,&quot;industryDisp&quot;:&quot;Computer Hardware&quot;,&quot;sector&quot;:&quot;Technology&quot;,&quot;sectorKey&quot;:&quot;technology&quot;,&quot;sectorDisp&quot;:&quot;Technology&quot;,&quot;longBusinessSummary&quot;:&quot;Rigetti Computing, Inc., through its subsidiaries, builds quantum computers and the superconducting quantum processors the United States, the United Kingdom, rest of Europe, Asia, and internationally. The company offers quantum processing units (QPUs) and quantum computing systems through the cloud in the form of quantum computing as a service (QCaaS) products. It also provides 9- ubit quantum processing unit under the Novera QPU trade name; 84-qubit Ankaa-3 system under the name Novera QPU; and sells access to its quantum computers through QCaaS. In addition, the company offers quantum cloud services that provides support for various range of programming capabilities, public or private clouds integration, and connectivity, as well as quantum operating system software that supports public and private cloud architectures. Further, it offers professional services, such as algorithm development, benchmarking, quantum application programming, and software development. The company serves commercial enterprises, government organizations, and international government entities. Rigetti Computing, Inc. was founded in 2013 and is headquartered in Berkeley, California.&quot;,&quot;fullTimeEmployees&quot;:137,&quot;companyOfficers&quot;:[{&quot;maxAge&quot;:1,&quot;name&quot;:&quot;Dr. Subodh K. Kulkarni Ph.D.&quot;,&quot;age&quot;:59,&quot;title&quot;:&quot;CEO, President &amp; Director&quot;,&quot;yearBorn&quot;:1965,&quot;fiscalYear&quot;:2024,&quot;totalPay&quot;:1074411,&quot;exercisedValue&quot;:0,&quot;unexercisedValue&quot;:17399648},{&quot;maxAge&quot;:1,&quot;name&quot;:&quot;Mr. Jeffrey A. Bertelsen&quot;,&quot;age&quot;:61,&quot;title&quot;:&quot;Chief Financial Officer&quot;,&quot;yearBorn&quot;:1963,&quot;fiscalYear&quot;:2024,&quot;totalPay&quot;:433386,&quot;exercisedValue&quot;:0,&quot;unexercisedValue&quot;:4599873},{&quot;maxAge&quot;:1,&quot;name&quot;:&quot;Mr. David Rivas&quot;,&quot;age&quot;:62,&quot;title&quot;:&quot;Chief Technology Officer&quot;,&quot;yearBorn&quot;:1962,&quot;fiscalYear&quot;:2024,&quot;totalPay&quot;:498355,&quot;exercisedValue&quot;:0,&quot;unexercisedValue&quot;:5745710},{&quot;maxAge&quot;:1,&quot;name&quot;:&quot;Ms. Jackie Kaweck&quot;,&quot;title&quot;:&quot;Senior Vice President of Human Resources&quot;,&quot;fiscalYear&quot;:2024,&quot;exercisedValue&quot;:0,&quot;unexercisedValue&quot;:0},{&quot;maxAge&quot;:1,&quot;name&quot;:&quot;Mr. Mike Pelstring&quot;,&quot;title&quot;:&quot;Senior Vice President of Engineering&quot;,&quot;fiscalYear&quot;:2024,&quot;exercisedValue&quot;:0,&quot;unexercisedValue&quot;:0},{&quot;maxAge&quot;:1,&quot;name&quot;:&quot;Dr. Andrew Bestwick&quot;,&quot;title&quot;:&quot;Senior Vice President of Quantum Systems&quot;,&quot;fiscalYear&quot;:2024,&quot;exercisedValue&quot;:0,&quot;unexercisedValue&quot;:0},{&quot;maxAge&quot;:1,&quot;name&quot;:&quot;Luke Kuipers&quot;,&quot;title&quot;:&quot;Corporate Secretary&quot;,&quot;fiscalYear&quot;:2024,&quot;exercisedValue&quot;:0,&quot;unexercisedValue&quot;:0}],&quot;auditRisk&quot;:8,&quot;boardRisk&quot;:6,&quot;compensationRisk&quot;:9,&quot;shareHolderRightsRisk&quot;:8,&quot;overallRisk&quot;:8,&quot;governanceEpochDate&quot;:1761955200,&quot;compensationAsOfEpochDate&quot;:1735603200,&quot;executiveTeam&quot;:[],&quot;maxAge&quot;:86400,&quot;priceHint&quot;:2,&quot;regularMarketOpen&quot;:24.892,&quot;regularMarketDayLow&quot;:24.19,&quot;regularMarketDayHigh&quot;:25.98,&quot;payoutRatio&quot;:0.0,&quot;beta&quot;:1.647,&quot;forwardPE&quot;:-74.818184,&quot;volume&quot;:42925205,&quot;regularMarketVolume&quot;:42925205,&quot;averageVolume&quot;:82008357,&quot;averageVolume10days&quot;:53470110,&quot;averageDailyVolume10Day&quot;:53470110,&quot;bid&quot;:24.58,&quot;ask&quot;:24.77,&quot;bidSize&quot;:53,&quot;askSize&quot;:52,&quot;fiftyTwoWeekLow&quot;:1.29,&quot;fiftyTwoWeekHigh&quot;:58.15,&quot;allTimeHigh&quot;:58.15,&quot;allTimeLow&quot;:0.36,&quot;priceToSalesTrailing12Months&quot;:1087.3158,&quot;trailingAnnualDividendRate&quot;:0.0,&quot;trailingAnnualDividendYield&quot;:0.0,&quot;tradeable&quot;:false,&quot;enterpriseValue&quot;:7708957696,&quot;profitMargins&quot;:0.0,&quot;floatShares&quot;:324616951,&quot;sharesOutstanding&quot;:330026078,&quot;sharesShort&quot;:39726621,&quot;sharesShortPriorMonth&quot;:47162916,&quot;sharesShortPreviousMonthDate&quot;:1759190400,&quot;dateShortInterest&quot;:1761868800,&quot;sharesPercentSharesOut&quot;:0.1221,&quot;heldPercentInsiders&quot;:0.016649999,&quot;heldPercentInstitutions&quot;:0.48969,&quot;shortRatio&quot;:0.34,&quot;shortPercentOfFloat&quot;:0.122700006,&quot;impliedSharesOutstanding&quot;:330026078,&quot;bookValue&quot;:1.143,&quot;priceToBook&quot;:21.60105,&quot;lastFiscalYearEnd&quot;:1735603200,&quot;nextFiscalYearEnd&quot;:1767139200,&quot;mostRecentQuarter&quot;:1759190400,&quot;netIncomeToCommon&quot;:-350964000,&quot;trailingEps&quot;:-1.46,&quot;forwardEps&quot;:-0.33,&quot;enterpriseToRevenue&quot;:1028.684,&quot;enterpriseToEbitda&quot;:-105.589,&quot;52WeekChange&quot;:18.450382,&quot;SandP52WeekChange&quot;:0.1380992,&quot;currentPrice&quot;:24.69,&quot;targetHighPrice&quot;:51.0,&quot;targetLowPrice&quot;:35.0,&quot;targetMeanPrice&quot;:40.5,&quot;targetMedianPrice&quot;:40.0,&quot;recommendationMean&quot;:1.42857,&quot;recommendationKey&quot;:&quot;strong_buy&quot;,&quot;numberOfAnalystOpinions&quot;:6,&quot;totalCash&quot;:446983008,&quot;totalCashPerShare&quot;:1.354,&quot;ebitda&quot;:-73009000,&quot;totalDebt&quot;:7597000,&quot;quickRatio&quot;:38.616,&quot;currentRatio&quot;:39.221,&quot;totalRevenue&quot;:7494000,&quot;debtToEquity&quot;:2.043,&quot;revenuePerShare&quot;:0.026,&quot;returnOnAssets&quot;:-0.12786001,&quot;returnOnEquity&quot;:-1.4189999,&quot;grossProfits&quot;:2415000,&quot;freeCashflow&quot;:-39649876,&quot;operatingCashflow&quot;:-52186000,&quot;revenueGrowth&quot;:-0.181,&quot;grossMargins&quot;:0.32226002,&quot;ebitdaMargins&quot;:0.0,&quot;operatingMargins&quot;:-10.55419,&quot;financialCurrency&quot;:&quot;USD&quot;,&quot;symbol&quot;:&quot;RGTI&quot;,&quot;language&quot;:&quot;en-US&quot;,&quot;region&quot;:&quot;US&quot;,&quot;typeDisp&quot;:&quot;Equity&quot;,&quot;quoteSourceName&quot;:&quot;Nasdaq Real Time Price&quot;,&quot;triggerable&quot;:true,&quot;customPriceAlertConfidence&quot;:&quot;HIGH&quot;,&quot;shortName&quot;:&quot;Rigetti Computing, Inc.&quot;,&quot;hasPrePostMarketData&quot;:true,&quot;firstTradeDateMilliseconds&quot;:1619098200000,&quot;preMarketChange&quot;:-0.1800003,&quot;preMarketChangePercent&quot;:-0.72904134,&quot;preMarketPrice&quot;:24.51,&quot;regularMarketChange&quot;:-0.789999,&quot;regularMarketDayRange&quot;:&quot;24.19 - 25.98&quot;,&quot;fullExchangeName&quot;:&quot;NasdaqCM&quot;,&quot;averageDailyVolume3Month&quot;:82008357,&quot;fiftyTwoWeekLowChange&quot;:23.400002,&quot;fiftyTwoWeekLowChangePercent&quot;:18.139536,&quot;fiftyTwoWeekRange&quot;:&quot;1.29 - 58.15&quot;,&quot;fiftyTwoWeekHighChange&quot;:-33.46,&quot;fiftyTwoWeekHighChangePercent&quot;:-0.5754084,&quot;fiftyTwoWeekChangePercent&quot;:1845.0382,&quot;earningsTimestamp&quot;:1762808400,&quot;earningsTimestampStart&quot;:1762808400,&quot;earningsTimestampEnd&quot;:1762808400,&quot;earningsCallTimestampStart&quot;:1762867800,&quot;earningsCallTimestampEnd&quot;:1762867800,&quot;isEarningsDateEstimate&quot;:false,&quot;epsTrailingTwelveMonths&quot;:-1.46,&quot;epsForward&quot;:-0.33,&quot;epsCurrentYear&quot;:-0.16333,&quot;priceEpsCurrentYear&quot;:-151.16635,&quot;fiftyDayAverageChange&quot;:-9.783499,&quot;fiftyDayAverageChangePercent&quot;:-0.28379768,&quot;twoHundredDayAverageChange&quot;:7.1664257,&quot;twoHundredDayAverageChangePercent&quot;:0.40895912,&quot;sourceInterval&quot;:15,&quot;exchangeDataDelayedBy&quot;:0,&quot;ipoExpectedDate&quot;:&quot;2022-03-02&quot;,&quot;averageAnalystRating&quot;:&quot;1.4 - Strong Buy&quot;,&quot;cryptoTradeable&quot;:false,&quot;longName&quot;:&quot;Rigetti Computing, Inc.&quot;,&quot;corporateActions&quot;:[],&quot;preMarketTime&quot;:1763458153,&quot;regularMarketTime&quot;:1763413200,&quot;messageBoardId&quot;:&quot;finmb_270093415&quot;,&quot;exchangeTimezoneName&quot;:&quot;America/New_York&quot;,&quot;exchangeTimezoneShortName&quot;:&quot;EST&quot;,&quot;gmtOffSetMilliseconds&quot;:-18000000,&quot;market&quot;:&quot;us_market&quot;,&quot;esgPopulated&quot;:false,&quot;marketState&quot;:&quot;PRE&quot;,&quot;regularMarketChangePercent&quot;:-3.10047,&quot;regularMarketPrice&quot;:24.69,&quot;displayName&quot;:&quot;Rigetti Computing&quot;,&quot;trailingPegRatio&quot;:null},&quot;last_updated&quot;:&quot;2025-11-18 17:29:32&quot;}<br>================================== Ai Message ==================================<br>Tool Calls:<br>write_todos (call_YSItfGzLgODs0OuMYSVqMfQu)<br>Call ID: call_YSItfGzLgODs0OuMYSVqMfQu<br>Args:<br>todos: [{&#39;content&#39;: &#39;Fetch stock basics for RGTI&#39;, &#39;status&#39;: &#39;completed&#39;}, {&#39;content&#39;: &#39;Fetch 6-month price history and technical indicators for RGTI&#39;, &#39;status&#39;: &#39;in_progress&#39;}, {&#39;content&#39;: &#39;Fetch latest quarterly financials for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}, {&#39;content&#39;: &#39;Synthesize analysis and produce recommendation for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}]<br>================================= Tool Message =================================<br>Name: write_todos<br><br>Updated todo list to [{&#39;content&#39;: &#39;Fetch stock basics for RGTI&#39;, &#39;status&#39;: &#39;completed&#39;}, {&#39;content&#39;: &#39;Fetch 6-month price history and technical indicators for RGTI&#39;, &#39;status&#39;: &#39;in_progress&#39;}, {&#39;content&#39;: &#39;Fetch latest quarterly financials for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}, {&#39;content&#39;: &#39;Synthesize analysis and produce recommendation for RGTI&#39;, &#39;status&#39;: &#39;pending&#39;}]<br>================================== Ai Message ==================================<br>Tool Calls:<br>get_stock_history (call_NG9ku7BU0EhAQamMFcvtESvd)<br>Call ID: call_NG9ku7BU0EhAQamMFcvtESvd<br>Args:<br>symbol: RGTI<br>period: 6mo<br>================================= Tool Message =================================<br>Name: get_stock_history<br><br>&quot; Open High Low Close Volume Dividends Stock Splits Daily_Return MA5 MA20 Daily_Range Volume_MA5\nDate \n2025-05-19 00:00:00-04:00 11.490000 12.225 11.150000 12.050000 60550800 0.0 0.0 NaN NaN NaN 1.075 NaN\n2025-05-20 00:00:00-04:00 12.530000 12.690 11.510000 11.920000 92681100 0.0 0.0 -0.0108 NaN NaN 1.180 NaN\n2025-05-21 00:00:00-04:00 11.845000 12.070 10.775000 10.960000 66748600 0.0 0.0 -0.0805 NaN NaN 1.295 NaN\n2025-05-22 00:00:00-04:00 11.032000 14.440 10.940000 13.860000 165197100 0.0 0.0 0.2646 NaN NaN 3.500 NaN\n2025-05-23 00:00:00-04:00 13.040000 14.690 12.770000 14.020000 107968800 0.0 0.0 0.0115 12.562 NaN 1.920 98629280.0\n... ... ... ... ... ... ... ... ... ... ... ... ...\n2025-11-11 00:00:00-05:00 31.080000 32.180 30.240000 31.400000 51004200 0.0 0.0 -0.0508 33.980 39.8103 1.940 47143400.0\n2025-11-12 00:00:00-05:00 31.120001 31.650 28.049999 28.299999 50651600 0.0 0.0 -0.0987 32.182 38.4083 3.600 48997060.0\n2025-11-13 00:00:00-05:00 26.990000 27.410 24.750000 25.200001 65493200 0.0 0.0 -0.1095 30.350 37.2698 2.660 52762300.0\n2025-11-14 00:00:00-05:00 23.600000 26.830 23.370001 25.480000 68287500 0.0 0.0 0.0111 28.692 36.2248 3.460 54860500.0\n2025-11-17 00:00:00-05:00 24.980000 25.990 24.190001 24.690001 42986900 0.0 0.0 -0.0310 27.014 35.2938 1.800 55684680.0\n\n[127 rows x 12 columns]&quot;<br>================================== Ai Message ==================================<br>Tool Calls:<br>fetch_technical_indicators (call_jCda6wcdNuTov950KZ0cLCYz)<br>Call ID: call_jCda6wcdNuTov950KZ0cLCYz<br>Args:<br>symbol: RGTI<br>period: 6mo<br>================================= Tool Message =================================<br>Name: fetch_technical_indicators<br><br>{&quot;symbol&quot;:&quot;RGTI&quot;,&quot;period&quot;:&quot;6mo&quot;,&quot;indicators&quot;:[{&quot;Date&quot;:&quot;2025-05-19&quot;,&quot;Open&quot;:11.489999771118164,&quot;High&quot;:12.225000381469727,&quot;Low&quot;:11.149999618530273,&quot;Close&quot;:12.050000190734863,&quot;Volume&quot;:60550800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:null,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.05,&quot;EMA26&quot;:12.05,&quot;RSI14&quot;:null,&quot;MACD&quot;:0.0,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:1.075,&quot;Volume_MA5&quot;:null,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:0},{&quot;Date&quot;:&quot;2025-05-20&quot;,&quot;Open&quot;:12.529999732971191,&quot;High&quot;:12.6899995803833,&quot;Low&quot;:11.510000228881836,&quot;Close&quot;:11.920000076293945,&quot;Volume&quot;:92681100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:null,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.03,&quot;EMA26&quot;:12.0404,&quot;RSI14&quot;:null,&quot;MACD&quot;:-0.0104,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:1.18,&quot;Volume_MA5&quot;:null,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-92681100},{&quot;Date&quot;:&quot;2025-05-21&quot;,&quot;Open&quot;:11.845000267028809,&quot;High&quot;:12.069999694824219,&quot;Low&quot;:10.774999618530273,&quot;Close&quot;:10.960000038146973,&quot;Volume&quot;:66748600,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:null,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.8654,&quot;EMA26&quot;:11.9603,&quot;RSI14&quot;:null,&quot;MACD&quot;:-0.095,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:1.295,&quot;Volume_MA5&quot;:null,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-159429700},{&quot;Date&quot;:&quot;2025-05-22&quot;,&quot;Open&quot;:11.031999588012695,&quot;High&quot;:14.4399995803833,&quot;Low&quot;:10.9399995803833,&quot;Close&quot;:13.859999656677246,&quot;Volume&quot;:165197100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:null,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.1722,&quot;EMA26&quot;:12.1011,&quot;RSI14&quot;:null,&quot;MACD&quot;:0.0712,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:3.5,&quot;Volume_MA5&quot;:null,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:5767400},{&quot;Date&quot;:&quot;2025-05-23&quot;,&quot;Open&quot;:13.039999961853027,&quot;High&quot;:14.6899995803833,&quot;Low&quot;:12.770000457763672,&quot;Close&quot;:14.020000457763672,&quot;Volume&quot;:107968800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:12.562,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.4565,&quot;EMA26&quot;:12.2432,&quot;RSI14&quot;:null,&quot;MACD&quot;:0.2133,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:1.92,&quot;Volume_MA5&quot;:98629280.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:113736200},{&quot;Date&quot;:&quot;2025-05-27&quot;,&quot;Open&quot;:14.970000267028809,&quot;High&quot;:15.300000190734863,&quot;Low&quot;:13.75,&quot;Close&quot;:14.1899995803833,&quot;Volume&quot;:77321600,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:12.99,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.7232,&quot;EMA26&quot;:12.3874,&quot;RSI14&quot;:null,&quot;MACD&quot;:0.3358,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:1.55,&quot;Volume_MA5&quot;:101983440.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:191057800},{&quot;Date&quot;:&quot;2025-05-28&quot;,&quot;Open&quot;:13.854999542236328,&quot;High&quot;:14.489999771118164,&quot;Low&quot;:13.800000190734863,&quot;Close&quot;:14.15999984741211,&quot;Volume&quot;:52811600,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:13.438,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.9443,&quot;EMA26&quot;:12.5187,&quot;RSI14&quot;:null,&quot;MACD&quot;:0.4255,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:0.69,&quot;Volume_MA5&quot;:94009540.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:138246200},{&quot;Date&quot;:&quot;2025-05-29&quot;,&quot;Open&quot;:14.40999984741211,&quot;High&quot;:14.75,&quot;Low&quot;:13.050000190734863,&quot;Close&quot;:13.149999618530273,&quot;Volume&quot;:47543200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:13.876,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.9759,&quot;EMA26&quot;:12.5655,&quot;RSI14&quot;:null,&quot;MACD&quot;:0.4104,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:1.7,&quot;Volume_MA5&quot;:90168460.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:90703000},{&quot;Date&quot;:&quot;2025-05-30&quot;,&quot;Open&quot;:12.5,&quot;High&quot;:12.75,&quot;Low&quot;:11.751999855041504,&quot;Close&quot;:12.109999656677246,&quot;Volume&quot;:53928500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:13.526,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.8427,&quot;EMA26&quot;:12.5317,&quot;RSI14&quot;:null,&quot;MACD&quot;:0.311,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:0.998,&quot;Volume_MA5&quot;:67914740.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:36774500},{&quot;Date&quot;:&quot;2025-06-02&quot;,&quot;Open&quot;:12.265000343322754,&quot;High&quot;:12.5,&quot;Low&quot;:11.822999954223633,&quot;Close&quot;:12.260000228881836,&quot;Volume&quot;:29878800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:13.174,&quot;SMA10&quot;:12.868,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.753,&quot;EMA26&quot;:12.5116,&quot;RSI14&quot;:null,&quot;MACD&quot;:0.2414,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:0.677,&quot;Volume_MA5&quot;:52296740.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:66653300},{&quot;Date&quot;:&quot;2025-06-03&quot;,&quot;Open&quot;:12.569999694824219,&quot;High&quot;:12.829999923706055,&quot;Low&quot;:11.819999694824219,&quot;Close&quot;:12.039999961853027,&quot;Volume&quot;:42259500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:12.744,&quot;SMA10&quot;:12.867,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.6433,&quot;EMA26&quot;:12.4767,&quot;RSI14&quot;:null,&quot;MACD&quot;:0.1667,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:1.01,&quot;Volume_MA5&quot;:45284320.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:24393800},{&quot;Date&quot;:&quot;2025-06-04&quot;,&quot;Open&quot;:12.119999885559082,&quot;High&quot;:12.175000190734863,&quot;Low&quot;:11.649999618530273,&quot;Close&quot;:11.819999694824219,&quot;Volume&quot;:29530600,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:12.276,&quot;SMA10&quot;:12.857,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.5167,&quot;EMA26&quot;:12.428,&quot;RSI14&quot;:null,&quot;MACD&quot;:0.0886,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:0.525,&quot;Volume_MA5&quot;:40628120.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-5136800},{&quot;Date&quot;:&quot;2025-06-05&quot;,&quot;Open&quot;:11.8100004196167,&quot;High&quot;:11.819999694824219,&quot;Low&quot;:10.710000038146973,&quot;Close&quot;:10.890000343322754,&quot;Volume&quot;:35304700,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.824,&quot;SMA10&quot;:12.85,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.2664,&quot;EMA26&quot;:12.3141,&quot;RSI14&quot;:null,&quot;MACD&quot;:-0.0477,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:1.11,&quot;Volume_MA5&quot;:38180420.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-40441500},{&quot;Date&quot;:&quot;2025-06-06&quot;,&quot;Open&quot;:11.220000267028809,&quot;High&quot;:11.755000114440918,&quot;Low&quot;:10.979999542236328,&quot;Close&quot;:11.279999732971191,&quot;Volume&quot;:38279600,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.658,&quot;SMA10&quot;:12.592,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.1147,&quot;EMA26&quot;:12.2375,&quot;RSI14&quot;:null,&quot;MACD&quot;:-0.1228,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:0.775,&quot;Volume_MA5&quot;:35050640.0,&quot;ATR14&quot;:1.3211,&quot;ADX14&quot;:null,&quot;OBV&quot;:-2161900},{&quot;Date&quot;:&quot;2025-06-09&quot;,&quot;Open&quot;:11.829999923706055,&quot;High&quot;:11.829999923706055,&quot;Low&quot;:11.100000381469727,&quot;Close&quot;:11.319999694824219,&quot;Volume&quot;:43412700,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.47,&quot;SMA10&quot;:12.322,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.9924,&quot;EMA26&quot;:12.1695,&quot;RSI14&quot;:-1.5779,&quot;MACD&quot;:-0.1771,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:0.73,&quot;Volume_MA5&quot;:37757420.0,&quot;ATR14&quot;:1.2964,&quot;ADX14&quot;:null,&quot;OBV&quot;:41250800},{&quot;Date&quot;:&quot;2025-06-10&quot;,&quot;Open&quot;:11.529999732971191,&quot;High&quot;:12.119999885559082,&quot;Low&quot;:11.079999923706055,&quot;Close&quot;:11.239999771118164,&quot;Volume&quot;:61400200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.31,&quot;SMA10&quot;:12.027,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.8767,&quot;EMA26&quot;:12.1007,&quot;RSI14&quot;:-1.261,&quot;MACD&quot;:-0.224,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:1.04,&quot;Volume_MA5&quot;:41585560.0,&quot;ATR14&quot;:1.2864,&quot;ADX14&quot;:null,&quot;OBV&quot;:-20149400},{&quot;Date&quot;:&quot;2025-06-11&quot;,&quot;Open&quot;:12.1899995803833,&quot;High&quot;:13.5600004196167,&quot;Low&quot;:11.859999656677246,&quot;Close&quot;:12.520000457763672,&quot;Volume&quot;:178367000,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.45,&quot;SMA10&quot;:11.863,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.9756,&quot;EMA26&quot;:12.1317,&quot;RSI14&quot;:12.7117,&quot;MACD&quot;:-0.1561,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:1.7,&quot;Volume_MA5&quot;:71352840.0,&quot;ATR14&quot;:1.3596,&quot;ADX14&quot;:null,&quot;OBV&quot;:158217600},{&quot;Date&quot;:&quot;2025-06-12&quot;,&quot;Open&quot;:12.609999656677246,&quot;High&quot;:13.385000228881836,&quot;Low&quot;:12.100000381469727,&quot;Close&quot;:12.100000381469727,&quot;Volume&quot;:93622200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.692,&quot;SMA10&quot;:11.758,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.9948,&quot;EMA26&quot;:12.1294,&quot;RSI14&quot;:-20.2208,&quot;MACD&quot;:-0.1346,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:1.285,&quot;Volume_MA5&quot;:83016340.0,&quot;ATR14&quot;:1.2014,&quot;ADX14&quot;:null,&quot;OBV&quot;:64595400},{&quot;Date&quot;:&quot;2025-06-13&quot;,&quot;Open&quot;:11.649999618530273,&quot;High&quot;:11.920000076293945,&quot;Low&quot;:11.3100004196167,&quot;Close&quot;:11.399999618530273,&quot;Volume&quot;:45368100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.716,&quot;SMA10&quot;:11.687,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.9033,&quot;EMA26&quot;:12.0754,&quot;RSI14&quot;:-35.121,&quot;MACD&quot;:-0.1721,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:0.61,&quot;Volume_MA5&quot;:84434040.0,&quot;ATR14&quot;:1.1207,&quot;ADX14&quot;:null,&quot;OBV&quot;:19227300},{&quot;Date&quot;:&quot;2025-06-16&quot;,&quot;Open&quot;:11.640000343322754,&quot;High&quot;:12.279999732971191,&quot;Low&quot;:11.5,&quot;Close&quot;:12.15999984741211,&quot;Volume&quot;:47085400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.884,&quot;SMA10&quot;:11.677,&quot;SMA20&quot;:12.2725,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.9428,&quot;EMA26&quot;:12.0816,&quot;RSI14&quot;:-20.6842,&quot;MACD&quot;:-0.1389,&quot;Bollinger_Upper&quot;:14.4,&quot;Bollinger_Lower&quot;:10.145,&quot;Daily_Range&quot;:0.78,&quot;Volume_MA5&quot;:85168580.0,&quot;ATR14&quot;:1.0729,&quot;ADX14&quot;:null,&quot;OBV&quot;:66312700},{&quot;Date&quot;:&quot;2025-06-17&quot;,&quot;Open&quot;:12.010000228881836,&quot;High&quot;:12.220000267028809,&quot;Low&quot;:11.380000114440918,&quot;Close&quot;:11.479999542236328,&quot;Volume&quot;:33958800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.932,&quot;SMA10&quot;:11.621,&quot;SMA20&quot;:12.244,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.8716,&quot;EMA26&quot;:12.0371,&quot;RSI14&quot;:-30.7146,&quot;MACD&quot;:-0.1655,&quot;Bollinger_Upper&quot;:14.3991,&quot;Bollinger_Lower&quot;:10.0889,&quot;Daily_Range&quot;:0.84,&quot;Volume_MA5&quot;:79680300.0,&quot;ATR14&quot;:1.0836,&quot;ADX14&quot;:null,&quot;OBV&quot;:32353900},{&quot;Date&quot;:&quot;2025-06-18&quot;,&quot;Open&quot;:11.619999885559082,&quot;High&quot;:11.770000457763672,&quot;Low&quot;:11.140000343322754,&quot;Close&quot;:11.350000381469727,&quot;Volume&quot;:30230000,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.698,&quot;SMA10&quot;:11.574,&quot;SMA20&quot;:12.2155,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.7913,&quot;EMA26&quot;:11.9862,&quot;RSI14&quot;:-20.0548,&quot;MACD&quot;:-0.1948,&quot;Bollinger_Upper&quot;:14.4035,&quot;Bollinger_Lower&quot;:10.0275,&quot;Daily_Range&quot;:0.63,&quot;Volume_MA5&quot;:50052900.0,&quot;ATR14&quot;:1.0071,&quot;ADX14&quot;:null,&quot;OBV&quot;:2123900},{&quot;Date&quot;:&quot;2025-06-20&quot;,&quot;Open&quot;:11.510000228881836,&quot;High&quot;:11.579999923706055,&quot;Low&quot;:11.010000228881836,&quot;Close&quot;:11.0600004196167,&quot;Volume&quot;:27759500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.49,&quot;SMA10&quot;:11.591,&quot;SMA20&quot;:12.2205,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.6788,&quot;EMA26&quot;:11.9176,&quot;RSI14&quot;:-11.5516,&quot;MACD&quot;:-0.2388,&quot;Bollinger_Upper&quot;:14.3969,&quot;Bollinger_Lower&quot;:10.0441,&quot;Daily_Range&quot;:0.57,&quot;Volume_MA5&quot;:36880360.0,&quot;ATR14&quot;:0.948,&quot;ADX14&quot;:null,&quot;OBV&quot;:-25635600},{&quot;Date&quot;:&quot;2025-06-23&quot;,&quot;Open&quot;:10.800000190734863,&quot;High&quot;:11.0,&quot;Low&quot;:10.300000190734863,&quot;Close&quot;:10.789999961853027,&quot;Volume&quot;:33264900,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.368,&quot;SMA10&quot;:11.542,&quot;SMA20&quot;:12.067,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.5421,&quot;EMA26&quot;:11.834,&quot;RSI14&quot;:-18.3768,&quot;MACD&quot;:-0.292,&quot;Bollinger_Upper&quot;:14.1888,&quot;Bollinger_Lower&quot;:9.9452,&quot;Daily_Range&quot;:0.7,&quot;Volume_MA5&quot;:34459720.0,&quot;ATR14&quot;:0.9539,&quot;ADX14&quot;:null,&quot;OBV&quot;:-58900500},{&quot;Date&quot;:&quot;2025-06-24&quot;,&quot;Open&quot;:11.300000190734863,&quot;High&quot;:11.619999885559082,&quot;Low&quot;:11.164999961853027,&quot;Close&quot;:11.5,&quot;Volume&quot;:30463000,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.236,&quot;SMA10&quot;:11.56,&quot;SMA20&quot;:11.941,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.5356,&quot;EMA26&quot;:11.8093,&quot;RSI14&quot;:-3.6609,&quot;MACD&quot;:-0.2737,&quot;Bollinger_Upper&quot;:13.8646,&quot;Bollinger_Lower&quot;:10.0174,&quot;Daily_Range&quot;:0.455,&quot;Volume_MA5&quot;:31135240.0,&quot;ATR14&quot;:0.9411,&quot;ADX14&quot;:null,&quot;OBV&quot;:-28437500},{&quot;Date&quot;:&quot;2025-06-25&quot;,&quot;Open&quot;:11.789999961853027,&quot;High&quot;:12.029999732971191,&quot;Low&quot;:11.029999732971191,&quot;Close&quot;:11.09000015258789,&quot;Volume&quot;:29108700,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.158,&quot;SMA10&quot;:11.545,&quot;SMA20&quot;:11.786,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.467,&quot;EMA26&quot;:11.756,&quot;RSI14&quot;:-6.0993,&quot;MACD&quot;:-0.289,&quot;Bollinger_Upper&quot;:13.4251,&quot;Bollinger_Lower&quot;:10.1469,&quot;Daily_Range&quot;:1.0,&quot;Volume_MA5&quot;:30165220.0,&quot;ATR14&quot;:0.975,&quot;ADX14&quot;:null,&quot;OBV&quot;:-57546200},{&quot;Date&quot;:&quot;2025-06-26&quot;,&quot;Open&quot;:11.239999771118164,&quot;High&quot;:11.520000457763672,&quot;Low&quot;:11.069999694824219,&quot;Close&quot;:11.109999656677246,&quot;Volume&quot;:27523000,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.11,&quot;SMA10&quot;:11.404,&quot;SMA20&quot;:11.6335,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.4121,&quot;EMA26&quot;:11.7082,&quot;RSI14&quot;:4.8625,&quot;MACD&quot;:-0.2961,&quot;Bollinger_Upper&quot;:12.8576,&quot;Bollinger_Lower&quot;:10.4094,&quot;Daily_Range&quot;:0.45,&quot;Volume_MA5&quot;:29623820.0,&quot;ATR14&quot;:0.9279,&quot;ADX14&quot;:11.5105,&quot;OBV&quot;:-30023200},{&quot;Date&quot;:&quot;2025-06-27&quot;,&quot;Open&quot;:11.319999694824219,&quot;High&quot;:11.40999984741211,&quot;Low&quot;:10.800000190734863,&quot;Close&quot;:11.069999694824219,&quot;Volume&quot;:52444700,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.112,&quot;SMA10&quot;:11.301,&quot;SMA20&quot;:11.5295,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.3595,&quot;EMA26&quot;:11.6609,&quot;RSI14&quot;:-0.4665,&quot;MACD&quot;:-0.3014,&quot;Bollinger_Upper&quot;:12.5471,&quot;Bollinger_Lower&quot;:10.5119,&quot;Daily_Range&quot;:0.61,&quot;Volume_MA5&quot;:34560860.0,&quot;ATR14&quot;:0.9096,&quot;ADX14&quot;:12.6157,&quot;OBV&quot;:-82467900},{&quot;Date&quot;:&quot;2025-06-30&quot;,&quot;Open&quot;:11.1899995803833,&quot;High&quot;:12.09000015258789,&quot;Low&quot;:11.140000343322754,&quot;Close&quot;:11.859999656677246,&quot;Volume&quot;:48094800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.326,&quot;SMA10&quot;:11.347,&quot;SMA20&quot;:11.517,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.4365,&quot;EMA26&quot;:11.6756,&quot;RSI14&quot;:7.9742,&quot;MACD&quot;:-0.2392,&quot;Bollinger_Upper&quot;:12.5104,&quot;Bollinger_Lower&quot;:10.5236,&quot;Daily_Range&quot;:0.95,&quot;Volume_MA5&quot;:37526840.0,&quot;ATR14&quot;:0.9304,&quot;ADX14&quot;:14.2459,&quot;OBV&quot;:-34373100},{&quot;Date&quot;:&quot;2025-07-01&quot;,&quot;Open&quot;:11.635000228881836,&quot;High&quot;:11.75,&quot;Low&quot;:11.229999542236328,&quot;Close&quot;:11.329999923706055,&quot;Volume&quot;:28156600,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.292,&quot;SMA10&quot;:11.264,&quot;SMA20&quot;:11.4705,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.4201,&quot;EMA26&quot;:11.65,&quot;RSI14&quot;:3.3956,&quot;MACD&quot;:-0.2299,&quot;Bollinger_Upper&quot;:12.4027,&quot;Bollinger_Lower&quot;:10.5383,&quot;Daily_Range&quot;:0.52,&quot;Volume_MA5&quot;:37065560.0,&quot;ATR14&quot;:0.9011,&quot;ADX14&quot;:15.7641,&quot;OBV&quot;:-62529700},{&quot;Date&quot;:&quot;2025-07-02&quot;,&quot;Open&quot;:11.510000228881836,&quot;High&quot;:13.100000381469727,&quot;Low&quot;:11.430000305175781,&quot;Close&quot;:13.079999923706055,&quot;Volume&quot;:65581800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:11.69,&quot;SMA10&quot;:11.424,&quot;SMA20&quot;:11.5225,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.6755,&quot;EMA26&quot;:11.756,&quot;RSI14&quot;:7.2411,&quot;MACD&quot;:-0.0805,&quot;Bollinger_Upper&quot;:12.6778,&quot;Bollinger_Lower&quot;:10.3672,&quot;Daily_Range&quot;:1.67,&quot;Volume_MA5&quot;:44360180.0,&quot;ATR14&quot;:0.8618,&quot;ADX14&quot;:15.3732,&quot;OBV&quot;:3052100},{&quot;Date&quot;:&quot;2025-07-03&quot;,&quot;Open&quot;:12.914999961853027,&quot;High&quot;:13.470000267028809,&quot;Low&quot;:12.859999656677246,&quot;Close&quot;:13.449999809265137,&quot;Volume&quot;:35342500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:12.158,&quot;SMA10&quot;:11.634,&quot;SMA20&quot;:11.604,&quot;SMA50&quot;:null,&quot;EMA12&quot;:11.9485,&quot;EMA26&quot;:11.8814,&quot;RSI14&quot;:13.146,&quot;MACD&quot;:0.067,&quot;Bollinger_Upper&quot;:13.0428,&quot;Bollinger_Lower&quot;:10.1652,&quot;Daily_Range&quot;:0.61,&quot;Volume_MA5&quot;:45924080.0,&quot;ATR14&quot;:0.8136,&quot;ADX14&quot;:16.9904,&quot;OBV&quot;:38394600},{&quot;Date&quot;:&quot;2025-07-07&quot;,&quot;Open&quot;:13.21500015258789,&quot;High&quot;:13.845000267028809,&quot;Low&quot;:12.420000076293945,&quot;Close&quot;:13.75,&quot;Volume&quot;:50496100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:12.694,&quot;SMA10&quot;:11.903,&quot;SMA20&quot;:11.747,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.2256,&quot;EMA26&quot;:12.0199,&quot;RSI14&quot;:20.5227,&quot;MACD&quot;:0.2058,&quot;Bollinger_Upper&quot;:13.4341,&quot;Bollinger_Lower&quot;:10.0599,&quot;Daily_Range&quot;:1.425,&quot;Volume_MA5&quot;:45534360.0,&quot;ATR14&quot;:0.8589,&quot;ADX14&quot;:18.0624,&quot;OBV&quot;:88890700},{&quot;Date&quot;:&quot;2025-07-08&quot;,&quot;Open&quot;:13.84000015258789,&quot;High&quot;:14.239999771118164,&quot;Low&quot;:13.25,&quot;Close&quot;:13.380000114440918,&quot;Volume&quot;:37275400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:12.998,&quot;SMA10&quot;:12.162,&quot;SMA20&quot;:11.852,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.4032,&quot;EMA26&quot;:12.1206,&quot;RSI14&quot;:12.7019,&quot;MACD&quot;:0.2826,&quot;Bollinger_Upper&quot;:13.6728,&quot;Bollinger_Lower&quot;:10.0312,&quot;Daily_Range&quot;:0.99,&quot;Volume_MA5&quot;:43370480.0,&quot;ATR14&quot;:0.8668,&quot;ADX14&quot;:18.8367,&quot;OBV&quot;:51615300},{&quot;Date&quot;:&quot;2025-07-09&quot;,&quot;Open&quot;:13.635000228881836,&quot;High&quot;:13.890000343322754,&quot;Low&quot;:12.829999923706055,&quot;Close&quot;:13.510000228881836,&quot;Volume&quot;:31627700,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:13.434,&quot;SMA10&quot;:12.363,&quot;SMA20&quot;:11.9615,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.5735,&quot;EMA26&quot;:12.2235,&quot;RSI14&quot;:19.4111,&quot;MACD&quot;:0.35,&quot;Bollinger_Upper&quot;:13.9068,&quot;Bollinger_Lower&quot;:10.0162,&quot;Daily_Range&quot;:1.06,&quot;Volume_MA5&quot;:44064700.0,&quot;ATR14&quot;:0.8825,&quot;ADX14&quot;:19.0362,&quot;OBV&quot;:83243000},{&quot;Date&quot;:&quot;2025-07-10&quot;,&quot;Open&quot;:13.489999771118164,&quot;High&quot;:13.6850004196167,&quot;Low&quot;:13.029999732971191,&quot;Close&quot;:13.029999732971191,&quot;Volume&quot;:25768100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:13.424,&quot;SMA10&quot;:12.557,&quot;SMA20&quot;:12.051,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.6437,&quot;EMA26&quot;:12.2833,&quot;RSI14&quot;:16.9542,&quot;MACD&quot;:0.3605,&quot;Bollinger_Upper&quot;:14.021,&quot;Bollinger_Lower&quot;:10.081,&quot;Daily_Range&quot;:0.655,&quot;Volume_MA5&quot;:36101960.0,&quot;ATR14&quot;:0.8843,&quot;ADX14&quot;:20.0682,&quot;OBV&quot;:57474900},{&quot;Date&quot;:&quot;2025-07-11&quot;,&quot;Open&quot;:12.949999809265137,&quot;High&quot;:13.074999809265137,&quot;Low&quot;:12.079999923706055,&quot;Close&quot;:12.180000305175781,&quot;Volume&quot;:30496900,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:13.17,&quot;SMA10&quot;:12.664,&quot;SMA20&quot;:12.034,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.5724,&quot;EMA26&quot;:12.2756,&quot;RSI14&quot;:12.6517,&quot;MACD&quot;:0.2968,&quot;Bollinger_Upper&quot;:13.9928,&quot;Bollinger_Lower&quot;:10.0752,&quot;Daily_Range&quot;:0.995,&quot;Volume_MA5&quot;:35132840.0,&quot;ATR14&quot;:0.9146,&quot;ADX14&quot;:21.0323,&quot;OBV&quot;:26978000},{&quot;Date&quot;:&quot;2025-07-14&quot;,&quot;Open&quot;:12.300000190734863,&quot;High&quot;:12.899999618530273,&quot;Low&quot;:12.164999961853027,&quot;Close&quot;:12.770000457763672,&quot;Volume&quot;:26361100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:12.974,&quot;SMA10&quot;:12.834,&quot;SMA20&quot;:12.0675,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.6028,&quot;EMA26&quot;:12.3122,&quot;RSI14&quot;:18.9691,&quot;MACD&quot;:0.2906,&quot;Bollinger_Upper&quot;:14.0538,&quot;Bollinger_Lower&quot;:10.0812,&quot;Daily_Range&quot;:0.735,&quot;Volume_MA5&quot;:30305840.0,&quot;ATR14&quot;:0.9129,&quot;ADX14&quot;:22.3707,&quot;OBV&quot;:53339100},{&quot;Date&quot;:&quot;2025-07-15&quot;,&quot;Open&quot;:12.989999771118164,&quot;High&quot;:13.020000457763672,&quot;Low&quot;:12.479999542236328,&quot;Close&quot;:12.720000267028809,&quot;Volume&quot;:22620300,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:12.842,&quot;SMA10&quot;:12.92,&quot;SMA20&quot;:12.1335,&quot;SMA50&quot;:null,&quot;EMA12&quot;:12.6208,&quot;EMA26&quot;:12.3424,&quot;RSI14&quot;:13.2963,&quot;MACD&quot;:0.2784,&quot;Bollinger_Upper&quot;:14.1141,&quot;Bollinger_Lower&quot;:10.1529,&quot;Daily_Range&quot;:0.54,&quot;Volume_MA5&quot;:27374820.0,&quot;ATR14&quot;:0.8921,&quot;ADX14&quot;:23.6337,&quot;OBV&quot;:30718800},{&quot;Date&quot;:&quot;2025-07-16&quot;,&quot;Open&quot;:13.800000190734863,&quot;High&quot;:16.84000015258789,&quot;Low&quot;:13.779999732971191,&quot;Close&quot;:16.559999465942383,&quot;Volume&quot;:192877500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:13.452,&quot;SMA10&quot;:13.443,&quot;SMA20&quot;:12.3535,&quot;SMA50&quot;:null,&quot;EMA12&quot;:13.2268,&quot;EMA26&quot;:12.6549,&quot;RSI14&quot;:25.6506,&quot;MACD&quot;:0.572,&quot;Bollinger_Upper&quot;:15.1542,&quot;Bollinger_Lower&quot;:9.5528,&quot;Daily_Range&quot;:3.06,&quot;Volume_MA5&quot;:59624780.0,&quot;ATR14&quot;:1.115,&quot;ADX14&quot;:27.0966,&quot;OBV&quot;:223596300},{&quot;Date&quot;:&quot;2025-07-17&quot;,&quot;Open&quot;:16.100000381469727,&quot;High&quot;:17.170000076293945,&quot;Low&quot;:15.729999542236328,&quot;Close&quot;:17.139999389648438,&quot;Volume&quot;:83133000,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:14.274,&quot;SMA10&quot;:13.849,&quot;SMA20&quot;:12.6365,&quot;SMA50&quot;:null,&quot;EMA12&quot;:13.8289,&quot;EMA26&quot;:12.9871,&quot;RSI14&quot;:27.0948,&quot;MACD&quot;:0.8418,&quot;Bollinger_Upper&quot;:16.125,&quot;Bollinger_Lower&quot;:9.148,&quot;Daily_Range&quot;:1.44,&quot;Volume_MA5&quot;:71097760.0,&quot;ATR14&quot;:1.1857,&quot;ADX14&quot;:29.3303,&quot;OBV&quot;:306729300},{&quot;Date&quot;:&quot;2025-07-18&quot;,&quot;Open&quot;:16.709999084472656,&quot;High&quot;:17.389999389648438,&quot;Low&quot;:15.960000038146973,&quot;Close&quot;:17.15999984741211,&quot;Volume&quot;:56511300,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.27,&quot;SMA10&quot;:14.22,&quot;SMA20&quot;:12.927,&quot;SMA50&quot;:null,&quot;EMA12&quot;:14.3414,&quot;EMA26&quot;:13.2962,&quot;RSI14&quot;:27.3156,&quot;MACD&quot;:1.0452,&quot;Bollinger_Upper&quot;:16.8986,&quot;Bollinger_Lower&quot;:8.9554,&quot;Daily_Range&quot;:1.43,&quot;Volume_MA5&quot;:76300640.0,&quot;ATR14&quot;:1.2443,&quot;ADX14&quot;:32.4058,&quot;OBV&quot;:363240600},{&quot;Date&quot;:&quot;2025-07-21&quot;,&quot;Open&quot;:17.149999618530273,&quot;High&quot;:17.385000228881836,&quot;Low&quot;:16.030000686645508,&quot;Close&quot;:16.079999923706055,&quot;Volume&quot;:44336600,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.932,&quot;SMA10&quot;:14.453,&quot;SMA20&quot;:13.178,&quot;SMA50&quot;:null,&quot;EMA12&quot;:14.6088,&quot;EMA26&quot;:13.5024,&quot;RSI14&quot;:21.0163,&quot;MACD&quot;:1.1064,&quot;Bollinger_Upper&quot;:17.285,&quot;Bollinger_Lower&quot;:9.071,&quot;Daily_Range&quot;:1.355,&quot;Volume_MA5&quot;:79895740.0,&quot;ATR14&quot;:1.2682,&quot;ADX14&quot;:34.6607,&quot;OBV&quot;:318904000},{&quot;Date&quot;:&quot;2025-07-22&quot;,&quot;Open&quot;:16.100000381469727,&quot;High&quot;:16.136999130249023,&quot;Low&quot;:14.75,&quot;Close&quot;:15.430000305175781,&quot;Volume&quot;:40588200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:16.474,&quot;SMA10&quot;:14.658,&quot;SMA20&quot;:13.41,&quot;SMA50&quot;:null,&quot;EMA12&quot;:14.7352,&quot;EMA26&quot;:13.6452,&quot;RSI14&quot;:21.2513,&quot;MACD&quot;:1.09,&quot;Bollinger_Upper&quot;:17.473,&quot;Bollinger_Lower&quot;:9.347,&quot;Daily_Range&quot;:1.387,&quot;Volume_MA5&quot;:83489320.0,&quot;ATR14&quot;:1.3223,&quot;ADX14&quot;:35.703,&quot;OBV&quot;:278315800},{&quot;Date&quot;:&quot;2025-07-23&quot;,&quot;Open&quot;:15.5600004196167,&quot;High&quot;:16.30500030517578,&quot;Low&quot;:15.350000381469727,&quot;Close&quot;:16.139999389648438,&quot;Volume&quot;:32975100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:16.39,&quot;SMA10&quot;:14.921,&quot;SMA20&quot;:13.642,&quot;SMA50&quot;:null,&quot;EMA12&quot;:14.9513,&quot;EMA26&quot;:13.83,&quot;RSI14&quot;:16.9888,&quot;MACD&quot;:1.1213,&quot;Bollinger_Upper&quot;:17.7751,&quot;Bollinger_Lower&quot;:9.5089,&quot;Daily_Range&quot;:0.955,&quot;Volume_MA5&quot;:51508840.0,&quot;ATR14&quot;:1.2641,&quot;ADX14&quot;:36.2018,&quot;OBV&quot;:311290900},{&quot;Date&quot;:&quot;2025-07-24&quot;,&quot;Open&quot;:16.149999618530273,&quot;High&quot;:16.3700008392334,&quot;Low&quot;:15.869999885559082,&quot;Close&quot;:15.949999809265137,&quot;Volume&quot;:34835400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:16.152,&quot;SMA10&quot;:15.213,&quot;SMA20&quot;:13.885,&quot;SMA50&quot;:null,&quot;EMA12&quot;:15.1049,&quot;EMA26&quot;:13.987,&quot;RSI14&quot;:14.6972,&quot;MACD&quot;:1.1179,&quot;Bollinger_Upper&quot;:17.9573,&quot;Bollinger_Lower&quot;:9.8127,&quot;Daily_Range&quot;:0.5,&quot;Volume_MA5&quot;:41849320.0,&quot;ATR14&quot;:1.2562,&quot;ADX14&quot;:36.1602,&quot;OBV&quot;:276455500},{&quot;Date&quot;:&quot;2025-07-25&quot;,&quot;Open&quot;:15.9399995803833,&quot;High&quot;:15.9399995803833,&quot;Low&quot;:15.270000457763672,&quot;Close&quot;:15.4399995803833,&quot;Volume&quot;:21368400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.808,&quot;SMA10&quot;:15.539,&quot;SMA20&quot;:14.1015,&quot;SMA50&quot;:null,&quot;EMA12&quot;:15.1565,&quot;EMA26&quot;:14.0947,&quot;RSI14&quot;:11.3599,&quot;MACD&quot;:1.0618,&quot;Bollinger_Upper&quot;:18.0098,&quot;Bollinger_Lower&quot;:10.1932,&quot;Daily_Range&quot;:0.67,&quot;Volume_MA5&quot;:34820740.0,&quot;ATR14&quot;:1.203,&quot;ADX14&quot;:35.3988,&quot;OBV&quot;:255087100},{&quot;Date&quot;:&quot;2025-07-28&quot;,&quot;Open&quot;:15.859999656677246,&quot;High&quot;:16.316999435424805,&quot;Low&quot;:15.210000038146973,&quot;Close&quot;:15.569999694824219,&quot;Volume&quot;:33355400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.706,&quot;SMA10&quot;:15.819,&quot;SMA20&quot;:14.3265,&quot;SMA50&quot;:null,&quot;EMA12&quot;:15.2201,&quot;EMA26&quot;:14.2039,&quot;RSI14&quot;:13.5683,&quot;MACD&quot;:1.0162,&quot;Bollinger_Upper&quot;:18.0117,&quot;Bollinger_Lower&quot;:10.6413,&quot;Daily_Range&quot;:1.107,&quot;Volume_MA5&quot;:32624500.0,&quot;ATR14&quot;:1.2114,&quot;ADX14&quot;:34.5963,&quot;OBV&quot;:288442500},{&quot;Date&quot;:&quot;2025-07-29&quot;,&quot;Open&quot;:15.460000038146973,&quot;High&quot;:16.06999969482422,&quot;Low&quot;:14.359999656677246,&quot;Close&quot;:14.470000267028809,&quot;Volume&quot;:31378200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.514,&quot;SMA10&quot;:15.994,&quot;SMA20&quot;:14.457,&quot;SMA50&quot;:null,&quot;EMA12&quot;:15.1047,&quot;EMA26&quot;:14.2236,&quot;RSI14&quot;:8.3183,&quot;MACD&quot;:0.8811,&quot;Bollinger_Upper&quot;:17.9545,&quot;Bollinger_Lower&quot;:10.9595,&quot;Daily_Range&quot;:1.71,&quot;Volume_MA5&quot;:30782500.0,&quot;ATR14&quot;:1.2578,&quot;ADX14&quot;:33.84,&quot;OBV&quot;:257064300},{&quot;Date&quot;:&quot;2025-07-30&quot;,&quot;Open&quot;:14.649999618530273,&quot;High&quot;:14.930000305175781,&quot;Low&quot;:14.020000457763672,&quot;Close&quot;:14.170000076293945,&quot;Volume&quot;:24466200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.12,&quot;SMA10&quot;:15.755,&quot;SMA20&quot;:14.599,&quot;SMA50&quot;:13.0014,&quot;EMA12&quot;:14.9609,&quot;EMA26&quot;:14.2197,&quot;RSI14&quot;:9.3017,&quot;MACD&quot;:0.7412,&quot;Bollinger_Upper&quot;:17.778,&quot;Bollinger_Lower&quot;:11.42,&quot;Daily_Range&quot;:0.91,&quot;Volume_MA5&quot;:29080720.0,&quot;ATR14&quot;:1.276,&quot;ADX14&quot;:32.3995,&quot;OBV&quot;:232598100},{&quot;Date&quot;:&quot;2025-07-31&quot;,&quot;Open&quot;:14.680000305175781,&quot;High&quot;:15.949999809265137,&quot;Low&quot;:14.470000267028809,&quot;Close&quot;:14.5,&quot;Volume&quot;:50653500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:14.83,&quot;SMA10&quot;:15.491,&quot;SMA20&quot;:14.67,&quot;SMA50&quot;:13.0504,&quot;EMA12&quot;:14.89,&quot;EMA26&quot;:14.2404,&quot;RSI14&quot;:14.9212,&quot;MACD&quot;:0.6496,&quot;Bollinger_Upper&quot;:17.7686,&quot;Bollinger_Lower&quot;:11.5714,&quot;Daily_Range&quot;:1.48,&quot;Volume_MA5&quot;:32244340.0,&quot;ATR14&quot;:1.3321,&quot;ADX14&quot;:33.6525,&quot;OBV&quot;:283251600},{&quot;Date&quot;:&quot;2025-08-01&quot;,&quot;Open&quot;:14.039999961853027,&quot;High&quot;:14.369999885559082,&quot;Low&quot;:13.609999656677246,&quot;Close&quot;:14.119999885559082,&quot;Volume&quot;:31989500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:14.566,&quot;SMA10&quot;:15.187,&quot;SMA20&quot;:14.7035,&quot;SMA50&quot;:13.0944,&quot;EMA12&quot;:14.7715,&quot;EMA26&quot;:14.2315,&quot;RSI14&quot;:10.4101,&quot;MACD&quot;:0.54,&quot;Bollinger_Upper&quot;:17.7608,&quot;Bollinger_Lower&quot;:11.6462,&quot;Daily_Range&quot;:0.76,&quot;Volume_MA5&quot;:34368560.0,&quot;ATR14&quot;:1.3431,&quot;ADX14&quot;:33.0982,&quot;OBV&quot;:251262100},{&quot;Date&quot;:&quot;2025-08-04&quot;,&quot;Open&quot;:14.479999542236328,&quot;High&quot;:15.880000114440918,&quot;Low&quot;:14.300000190734863,&quot;Close&quot;:15.760000228881836,&quot;Volume&quot;:50062600,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:14.604,&quot;SMA10&quot;:15.155,&quot;SMA20&quot;:14.804,&quot;SMA50&quot;:13.1904,&quot;EMA12&quot;:14.9236,&quot;EMA26&quot;:14.3447,&quot;RSI14&quot;:16.7904,&quot;MACD&quot;:0.5789,&quot;Bollinger_Upper&quot;:17.8615,&quot;Bollinger_Lower&quot;:11.7465,&quot;Daily_Range&quot;:1.58,&quot;Volume_MA5&quot;:37710000.0,&quot;ATR14&quot;:1.4303,&quot;ADX14&quot;:33.6881,&quot;OBV&quot;:301324700},{&quot;Date&quot;:&quot;2025-08-05&quot;,&quot;Open&quot;:15.739999771118164,&quot;High&quot;:16.854999542236328,&quot;Low&quot;:15.59000015258789,&quot;Close&quot;:16.469999313354492,&quot;Volume&quot;:45290400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.004,&quot;SMA10&quot;:15.259,&quot;SMA20&quot;:14.9585,&quot;SMA50&quot;:13.2426,&quot;EMA12&quot;:15.1615,&quot;EMA26&quot;:14.5022,&quot;RSI14&quot;:1.47,&quot;MACD&quot;:0.6594,&quot;Bollinger_Upper&quot;:18.0253,&quot;Bollinger_Lower&quot;:11.8917,&quot;Daily_Range&quot;:1.265,&quot;Volume_MA5&quot;:40492440.0,&quot;ATR14&quot;:1.2264,&quot;ADX14&quot;:30.527,&quot;OBV&quot;:346615100},{&quot;Date&quot;:&quot;2025-08-06&quot;,&quot;Open&quot;:16.302000045776367,&quot;High&quot;:16.34000015258789,&quot;Low&quot;:15.699999809265137,&quot;Close&quot;:15.989999771118164,&quot;Volume&quot;:24349400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.368,&quot;SMA10&quot;:15.244,&quot;SMA20&quot;:15.0825,&quot;SMA50&quot;:13.282,&quot;EMA12&quot;:15.289,&quot;EMA26&quot;:14.6124,&quot;RSI14&quot;:-8.4221,&quot;MACD&quot;:0.6766,&quot;Bollinger_Upper&quot;:18.1029,&quot;Bollinger_Lower&quot;:12.0621,&quot;Daily_Range&quot;:0.64,&quot;Volume_MA5&quot;:40469080.0,&quot;ATR14&quot;:1.1785,&quot;ADX14&quot;:26.9833,&quot;OBV&quot;:322265700},{&quot;Date&quot;:&quot;2025-08-07&quot;,&quot;Open&quot;:15.640000343322754,&quot;High&quot;:16.05500030517578,&quot;Low&quot;:15.255000114440918,&quot;Close&quot;:15.65999984741211,&quot;Volume&quot;:27526400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.6,&quot;SMA10&quot;:15.215,&quot;SMA20&quot;:15.214,&quot;SMA50&quot;:13.3114,&quot;EMA12&quot;:15.3461,&quot;EMA26&quot;:14.69,&quot;RSI14&quot;:-12.2093,&quot;MACD&quot;:0.6561,&quot;Bollinger_Upper&quot;:18.0833,&quot;Bollinger_Lower&quot;:12.3447,&quot;Daily_Range&quot;:0.8,&quot;Volume_MA5&quot;:35843660.0,&quot;ATR14&quot;:1.1335,&quot;ADX14&quot;:22.9022,&quot;OBV&quot;:294739300},{&quot;Date&quot;:&quot;2025-08-08&quot;,&quot;Open&quot;:15.8100004196167,&quot;High&quot;:16.15999984741211,&quot;Low&quot;:15.180000305175781,&quot;Close&quot;:15.4399995803833,&quot;Volume&quot;:20793300,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.864,&quot;SMA10&quot;:15.215,&quot;SMA20&quot;:15.377,&quot;SMA50&quot;:13.337,&quot;EMA12&quot;:15.3605,&quot;EMA26&quot;:14.7455,&quot;RSI14&quot;:-4.2349,&quot;MACD&quot;:0.615,&quot;Bollinger_Upper&quot;:17.8658,&quot;Bollinger_Lower&quot;:12.8882,&quot;Daily_Range&quot;:0.98,&quot;Volume_MA5&quot;:33604420.0,&quot;ATR14&quot;:1.1067,&quot;ADX14&quot;:18.9609,&quot;OBV&quot;:273946000},{&quot;Date&quot;:&quot;2025-08-11&quot;,&quot;Open&quot;:15.420000076293945,&quot;High&quot;:16.170000076293945,&quot;Low&quot;:15.21500015258789,&quot;Close&quot;:15.979999542236328,&quot;Volume&quot;:28439100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.908,&quot;SMA10&quot;:15.256,&quot;SMA20&quot;:15.5375,&quot;SMA50&quot;:13.3936,&quot;EMA12&quot;:15.4558,&quot;EMA26&quot;:14.837,&quot;RSI14&quot;:6.9714,&quot;MACD&quot;:0.6188,&quot;Bollinger_Upper&quot;:17.7126,&quot;Bollinger_Lower&quot;:13.3624,&quot;Daily_Range&quot;:0.955,&quot;Volume_MA5&quot;:29279720.0,&quot;ATR14&quot;:1.0759,&quot;ADX14&quot;:17.478,&quot;OBV&quot;:302385100},{&quot;Date&quot;:&quot;2025-08-12&quot;,&quot;Open&quot;:15.649999618530273,&quot;High&quot;:16.3700008392334,&quot;Low&quot;:15.479999542236328,&quot;Close&quot;:16.200000762939453,&quot;Volume&quot;:35648500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.854,&quot;SMA10&quot;:15.429,&quot;SMA20&quot;:15.7115,&quot;SMA50&quot;:13.4754,&quot;EMA12&quot;:15.5703,&quot;EMA26&quot;:14.9379,&quot;RSI14&quot;:2.5523,&quot;MACD&quot;:0.6324,&quot;Bollinger_Upper&quot;:17.4507,&quot;Bollinger_Lower&quot;:13.9723,&quot;Daily_Range&quot;:0.89,&quot;Volume_MA5&quot;:27351340.0,&quot;ATR14&quot;:1.0712,&quot;ADX14&quot;:16.6535,&quot;OBV&quot;:338033600},{&quot;Date&quot;:&quot;2025-08-13&quot;,&quot;Open&quot;:16.219999313354492,&quot;High&quot;:18.155000686645508,&quot;Low&quot;:15.65999984741211,&quot;Close&quot;:17.239999771118164,&quot;Volume&quot;:92447800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:16.104,&quot;SMA10&quot;:15.736,&quot;SMA20&quot;:15.7455,&quot;SMA50&quot;:13.575,&quot;EMA12&quot;:15.8272,&quot;EMA26&quot;:15.1085,&quot;RSI14&quot;:12.1461,&quot;MACD&quot;:0.7187,&quot;Bollinger_Upper&quot;:17.5786,&quot;Bollinger_Lower&quot;:13.9124,&quot;Daily_Range&quot;:2.495,&quot;Volume_MA5&quot;:40971020.0,&quot;ATR14&quot;:1.2137,&quot;ADX14&quot;:17.1605,&quot;OBV&quot;:430481400},{&quot;Date&quot;:&quot;2025-08-14&quot;,&quot;Open&quot;:16.75,&quot;High&quot;:18.100000381469727,&quot;Low&quot;:16.100000381469727,&quot;Close&quot;:17.979999542236328,&quot;Volume&quot;:63512100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:16.568,&quot;SMA10&quot;:16.084,&quot;SMA20&quot;:15.7875,&quot;SMA50&quot;:13.6938,&quot;EMA12&quot;:16.1584,&quot;EMA26&quot;:15.3212,&quot;RSI14&quot;:20.1723,&quot;MACD&quot;:0.8372,&quot;Bollinger_Upper&quot;:17.7862,&quot;Bollinger_Lower&quot;:13.7888,&quot;Daily_Range&quot;:2.0,&quot;Volume_MA5&quot;:48168160.0,&quot;ATR14&quot;:1.308,&quot;ADX14&quot;:18.5042,&quot;OBV&quot;:493993500},{&quot;Date&quot;:&quot;2025-08-15&quot;,&quot;Open&quot;:17.795000076293945,&quot;High&quot;:17.829999923706055,&quot;Low&quot;:16.15999984741211,&quot;Close&quot;:16.649999618530273,&quot;Volume&quot;:48381500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:16.81,&quot;SMA10&quot;:16.337,&quot;SMA20&quot;:15.762,&quot;SMA50&quot;:13.7904,&quot;EMA12&quot;:16.234,&quot;EMA26&quot;:15.4196,&quot;RSI14&quot;:10.3428,&quot;MACD&quot;:0.8144,&quot;Bollinger_Upper&quot;:17.699,&quot;Bollinger_Lower&quot;:13.825,&quot;Daily_Range&quot;:1.67,&quot;Volume_MA5&quot;:53685800.0,&quot;ATR14&quot;:1.3589,&quot;ADX14&quot;:19.6642,&quot;OBV&quot;:445612000},{&quot;Date&quot;:&quot;2025-08-18&quot;,&quot;Open&quot;:16.56999969482422,&quot;High&quot;:17.040000915527344,&quot;Low&quot;:16.110000610351562,&quot;Close&quot;:16.6299991607666,&quot;Volume&quot;:26820400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:16.94,&quot;SMA10&quot;:16.424,&quot;SMA20&quot;:15.7895,&quot;SMA50&quot;:13.9052,&quot;EMA12&quot;:16.2949,&quot;EMA26&quot;:15.5093,&quot;RSI14&quot;:18.7233,&quot;MACD&quot;:0.7857,&quot;Bollinger_Upper&quot;:17.7608,&quot;Bollinger_Lower&quot;:13.8182,&quot;Daily_Range&quot;:0.93,&quot;Volume_MA5&quot;:53362060.0,&quot;ATR14&quot;:1.3032,&quot;ADX14&quot;:22.3348,&quot;OBV&quot;:418791600},{&quot;Date&quot;:&quot;2025-08-19&quot;,&quot;Open&quot;:16.46500015258789,&quot;High&quot;:16.905000686645508,&quot;Low&quot;:14.949999809265137,&quot;Close&quot;:15.15999984741211,&quot;Volume&quot;:37661200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:16.732,&quot;SMA10&quot;:16.293,&quot;SMA20&quot;:15.776,&quot;SMA50&quot;:13.9828,&quot;EMA12&quot;:16.1203,&quot;EMA26&quot;:15.4834,&quot;RSI14&quot;:10.2401,&quot;MACD&quot;:0.6369,&quot;Bollinger_Upper&quot;:17.7613,&quot;Bollinger_Lower&quot;:13.7907,&quot;Daily_Range&quot;:1.955,&quot;Volume_MA5&quot;:53764600.0,&quot;ATR14&quot;:1.3779,&quot;ADX14&quot;:24.2071,&quot;OBV&quot;:381130400},{&quot;Date&quot;:&quot;2025-08-20&quot;,&quot;Open&quot;:14.899999618530273,&quot;High&quot;:15.029999732971191,&quot;Low&quot;:13.970000267028809,&quot;Close&quot;:14.760000228881836,&quot;Volume&quot;:26581600,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:16.236,&quot;SMA10&quot;:16.17,&quot;SMA20&quot;:15.707,&quot;SMA50&quot;:14.0516,&quot;EMA12&quot;:15.911,&quot;EMA26&quot;:15.4298,&quot;RSI14&quot;:4.6149,&quot;MACD&quot;:0.4812,&quot;Bollinger_Upper&quot;:17.7345,&quot;Bollinger_Lower&quot;:13.6795,&quot;Daily_Range&quot;:1.06,&quot;Volume_MA5&quot;:40591360.0,&quot;ATR14&quot;:1.3357,&quot;ADX14&quot;:22.8001,&quot;OBV&quot;:354548800},{&quot;Date&quot;:&quot;2025-08-21&quot;,&quot;Open&quot;:14.640000343322754,&quot;High&quot;:14.850000381469727,&quot;Low&quot;:14.175000190734863,&quot;Close&quot;:14.270000457763672,&quot;Volume&quot;:22675600,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.494,&quot;SMA10&quot;:16.031,&quot;SMA20&quot;:15.623,&quot;SMA50&quot;:14.1122,&quot;EMA12&quot;:15.6586,&quot;EMA26&quot;:15.3439,&quot;RSI14&quot;:3.7567,&quot;MACD&quot;:0.3147,&quot;Bollinger_Upper&quot;:17.7452,&quot;Bollinger_Lower&quot;:13.5008,&quot;Daily_Range&quot;:0.675,&quot;Volume_MA5&quot;:32424060.0,&quot;ATR14&quot;:1.3204,&quot;ADX14&quot;:23.1727,&quot;OBV&quot;:331873200},{&quot;Date&quot;:&quot;2025-08-22&quot;,&quot;Open&quot;:14.1850004196167,&quot;High&quot;:14.970000267028809,&quot;Low&quot;:13.819999694824219,&quot;Close&quot;:14.819999694824219,&quot;Volume&quot;:29793400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.128,&quot;SMA10&quot;:15.969,&quot;SMA20&quot;:15.592,&quot;SMA50&quot;:14.1582,&quot;EMA12&quot;:15.5296,&quot;EMA26&quot;:15.3051,&quot;RSI14&quot;:-8.0022,&quot;MACD&quot;:0.2245,&quot;Bollinger_Upper&quot;:17.7433,&quot;Bollinger_Lower&quot;:13.4407,&quot;Daily_Range&quot;:1.15,&quot;Volume_MA5&quot;:28706440.0,&quot;ATR14&quot;:1.2768,&quot;ADX14&quot;:21.0376,&quot;OBV&quot;:361666600},{&quot;Date&quot;:&quot;2025-08-25&quot;,&quot;Open&quot;:14.819999694824219,&quot;High&quot;:14.899999618530273,&quot;Low&quot;:14.119999885559082,&quot;Close&quot;:14.470000267028809,&quot;Volume&quot;:23401600,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:14.696,&quot;SMA10&quot;:15.818,&quot;SMA20&quot;:15.537,&quot;SMA50&quot;:14.2056,&quot;EMA12&quot;:15.3666,&quot;EMA26&quot;:15.2432,&quot;RSI14&quot;:-23.336,&quot;MACD&quot;:0.1233,&quot;Bollinger_Upper&quot;:17.7462,&quot;Bollinger_Lower&quot;:13.3278,&quot;Daily_Range&quot;:0.78,&quot;Volume_MA5&quot;:28022680.0,&quot;ATR14&quot;:1.2421,&quot;ADX14&quot;:21.6757,&quot;OBV&quot;:338265000},{&quot;Date&quot;:&quot;2025-08-26&quot;,&quot;Open&quot;:14.399999618530273,&quot;High&quot;:15.350000381469727,&quot;Low&quot;:14.369999885559082,&quot;Close&quot;:15.300000190734863,&quot;Volume&quot;:39223700,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:14.724,&quot;SMA10&quot;:15.728,&quot;SMA20&quot;:15.5785,&quot;SMA50&quot;:14.2836,&quot;EMA12&quot;:15.3563,&quot;EMA26&quot;:15.2474,&quot;RSI14&quot;:-4.7566,&quot;MACD&quot;:0.1089,&quot;Bollinger_Upper&quot;:17.7338,&quot;Bollinger_Lower&quot;:13.4232,&quot;Daily_Range&quot;:0.98,&quot;Volume_MA5&quot;:28335180.0,&quot;ATR14&quot;:1.2571,&quot;ADX14&quot;:21.893,&quot;OBV&quot;:377488700},{&quot;Date&quot;:&quot;2025-08-27&quot;,&quot;Open&quot;:15.289999961853027,&quot;High&quot;:16.09000015258789,&quot;Low&quot;:15.069999694824219,&quot;Close&quot;:15.390000343322754,&quot;Volume&quot;:43923400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:14.85,&quot;SMA10&quot;:15.543,&quot;SMA20&quot;:15.6395,&quot;SMA50&quot;:14.3482,&quot;EMA12&quot;:15.3615,&quot;EMA26&quot;:15.258,&quot;RSI14&quot;:-0.4897,&quot;MACD&quot;:0.1035,&quot;Bollinger_Upper&quot;:17.6936,&quot;Bollinger_Lower&quot;:13.5854,&quot;Daily_Range&quot;:1.02,&quot;Volume_MA5&quot;:31803540.0,&quot;ATR14&quot;:1.2729,&quot;ADX14&quot;:22.5862,&quot;OBV&quot;:421412100},{&quot;Date&quot;:&quot;2025-08-28&quot;,&quot;Open&quot;:15.71500015258789,&quot;High&quot;:17.26799964904785,&quot;Low&quot;:15.680000305175781,&quot;Close&quot;:16.579999923706055,&quot;Volume&quot;:75480500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.312,&quot;SMA10&quot;:15.403,&quot;SMA20&quot;:15.7435,&quot;SMA50&quot;:14.4502,&quot;EMA12&quot;:15.549,&quot;EMA26&quot;:15.3559,&quot;RSI14&quot;:11.0772,&quot;MACD&quot;:0.193,&quot;Bollinger_Upper&quot;:17.7651,&quot;Bollinger_Lower&quot;:13.7219,&quot;Daily_Range&quot;:1.588,&quot;Volume_MA5&quot;:42364520.0,&quot;ATR14&quot;:1.337,&quot;ADX14&quot;:24.3372,&quot;OBV&quot;:496892600},{&quot;Date&quot;:&quot;2025-08-29&quot;,&quot;Open&quot;:16.600000381469727,&quot;High&quot;:16.790000915527344,&quot;Low&quot;:16.1200008392334,&quot;Close&quot;:16.229999542236328,&quot;Volume&quot;:42451100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.594,&quot;SMA10&quot;:15.361,&quot;SMA20&quot;:15.849,&quot;SMA50&quot;:14.5478,&quot;EMA12&quot;:15.6537,&quot;EMA26&quot;:15.4207,&quot;RSI14&quot;:4.358,&quot;MACD&quot;:0.2331,&quot;Bollinger_Upper&quot;:17.7291,&quot;Bollinger_Lower&quot;:13.9689,&quot;Daily_Range&quot;:0.67,&quot;Volume_MA5&quot;:44896060.0,&quot;ATR14&quot;:1.3166,&quot;ADX14&quot;:25.1026,&quot;OBV&quot;:454441500},{&quot;Date&quot;:&quot;2025-09-02&quot;,&quot;Open&quot;:15.835000038146973,&quot;High&quot;:16.030000686645508,&quot;Low&quot;:14.765000343322754,&quot;Close&quot;:15.520000457763672,&quot;Volume&quot;:64148900,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.804,&quot;SMA10&quot;:15.25,&quot;SMA20&quot;:15.837,&quot;SMA50&quot;:14.637,&quot;EMA12&quot;:15.6332,&quot;EMA26&quot;:15.428,&quot;RSI14&quot;:-3.6381,&quot;MACD&quot;:0.2051,&quot;Bollinger_Upper&quot;:17.7226,&quot;Bollinger_Lower&quot;:13.9514,&quot;Daily_Range&quot;:1.265,&quot;Volume_MA5&quot;:53045520.0,&quot;ATR14&quot;:1.3577,&quot;ADX14&quot;:24.194,&quot;OBV&quot;:390292600},{&quot;Date&quot;:&quot;2025-09-03&quot;,&quot;Open&quot;:15.595000267028809,&quot;High&quot;:15.8100004196167,&quot;Low&quot;:14.9350004196167,&quot;Close&quot;:15.039999961853027,&quot;Volume&quot;:27360100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.752,&quot;SMA10&quot;:15.238,&quot;SMA20&quot;:15.7655,&quot;SMA50&quot;:14.722,&quot;EMA12&quot;:15.5419,&quot;EMA26&quot;:15.3993,&quot;RSI14&quot;:-21.5912,&quot;MACD&quot;:0.1426,&quot;Bollinger_Upper&quot;:17.6584,&quot;Bollinger_Lower&quot;:13.8726,&quot;Daily_Range&quot;:0.875,&quot;Volume_MA5&quot;:50672800.0,&quot;ATR14&quot;:1.242,&quot;ADX14&quot;:23.668,&quot;OBV&quot;:362932500},{&quot;Date&quot;:&quot;2025-09-04&quot;,&quot;Open&quot;:15.229999542236328,&quot;High&quot;:15.670000076293945,&quot;Low&quot;:14.890000343322754,&quot;Close&quot;:15.119999885559082,&quot;Volume&quot;:29216800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.698,&quot;SMA10&quot;:15.274,&quot;SMA20&quot;:15.722,&quot;SMA50&quot;:14.7944,&quot;EMA12&quot;:15.477,&quot;EMA26&quot;:15.3786,&quot;RSI14&quot;:-32.1719,&quot;MACD&quot;:0.0984,&quot;Bollinger_Upper&quot;:17.6331,&quot;Bollinger_Lower&quot;:13.8109,&quot;Daily_Range&quot;:0.78,&quot;Volume_MA5&quot;:47731480.0,&quot;ATR14&quot;:1.1549,&quot;ADX14&quot;:22.5141,&quot;OBV&quot;:392149300},{&quot;Date&quot;:&quot;2025-09-05&quot;,&quot;Open&quot;:15.390000343322754,&quot;High&quot;:15.654999732971191,&quot;Low&quot;:14.470000267028809,&quot;Close&quot;:15.100000381469727,&quot;Volume&quot;:33450100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.402,&quot;SMA10&quot;:15.357,&quot;SMA20&quot;:15.694,&quot;SMA50&quot;:14.8746,&quot;EMA12&quot;:15.419,&quot;EMA26&quot;:15.358,&quot;RSI14&quot;:-16.6504,&quot;MACD&quot;:0.061,&quot;Bollinger_Upper&quot;:17.6252,&quot;Bollinger_Lower&quot;:13.7628,&quot;Daily_Range&quot;:1.185,&quot;Volume_MA5&quot;:39325400.0,&quot;ATR14&quot;:1.1095,&quot;ADX14&quot;:21.8902,&quot;OBV&quot;:358699200},{&quot;Date&quot;:&quot;2025-09-08&quot;,&quot;Open&quot;:15.210000038146973,&quot;High&quot;:15.489999771118164,&quot;Low&quot;:14.979999542236328,&quot;Close&quot;:15.149999618530273,&quot;Volume&quot;:24957100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.186,&quot;SMA10&quot;:15.39,&quot;SMA20&quot;:15.6795,&quot;SMA50&quot;:14.9554,&quot;EMA12&quot;:15.3776,&quot;EMA26&quot;:15.3426,&quot;RSI14&quot;:-15.61,&quot;MACD&quot;:0.0351,&quot;Bollinger_Upper&quot;:17.6231,&quot;Bollinger_Lower&quot;:13.7359,&quot;Daily_Range&quot;:0.51,&quot;Volume_MA5&quot;:35826600.0,&quot;ATR14&quot;:1.0795,&quot;ADX14&quot;:20.1453,&quot;OBV&quot;:383656300},{&quot;Date&quot;:&quot;2025-09-09&quot;,&quot;Open&quot;:15.25,&quot;High&quot;:16.690000534057617,&quot;Low&quot;:15.09000015258789,&quot;Close&quot;:16.5,&quot;Volume&quot;:45080700,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.382,&quot;SMA10&quot;:15.593,&quot;SMA20&quot;:15.7055,&quot;SMA50&quot;:15.064,&quot;EMA12&quot;:15.5503,&quot;EMA26&quot;:15.4283,&quot;RSI14&quot;:13.8853,&quot;MACD&quot;:0.122,&quot;Bollinger_Upper&quot;:17.6797,&quot;Bollinger_Lower&quot;:13.7313,&quot;Daily_Range&quot;:1.6,&quot;Volume_MA5&quot;:32012960.0,&quot;ATR14&quot;:1.0541,&quot;ADX14&quot;:17.8659,&quot;OBV&quot;:428737000},{&quot;Date&quot;:&quot;2025-09-10&quot;,&quot;Open&quot;:16.385000228881836,&quot;High&quot;:16.6200008392334,&quot;Low&quot;:16.100000381469727,&quot;Close&quot;:16.190000534057617,&quot;Volume&quot;:32877300,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.612,&quot;SMA10&quot;:15.682,&quot;SMA20&quot;:15.705,&quot;SMA50&quot;:15.1506,&quot;EMA12&quot;:15.6487,&quot;EMA26&quot;:15.4847,&quot;RSI14&quot;:14.9377,&quot;MACD&quot;:0.164,&quot;Bollinger_Upper&quot;:17.6787,&quot;Bollinger_Lower&quot;:13.7313,&quot;Daily_Range&quot;:0.52,&quot;Volume_MA5&quot;:33116400.0,&quot;ATR14&quot;:1.0063,&quot;ADX14&quot;:18.6349,&quot;OBV&quot;:395859700},{&quot;Date&quot;:&quot;2025-09-11&quot;,&quot;Open&quot;:16.149999618530273,&quot;High&quot;:17.0,&quot;Low&quot;:16.040000915527344,&quot;Close&quot;:16.690000534057617,&quot;Volume&quot;:38165200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:15.926,&quot;SMA10&quot;:15.812,&quot;SMA20&quot;:15.6775,&quot;SMA50&quot;:15.2578,&quot;EMA12&quot;:15.8089,&quot;EMA26&quot;:15.574,&quot;RSI14&quot;:22.6337,&quot;MACD&quot;:0.2349,&quot;Bollinger_Upper&quot;:17.575,&quot;Bollinger_Lower&quot;:13.78,&quot;Daily_Range&quot;:0.96,&quot;Volume_MA5&quot;:34906080.0,&quot;ATR14&quot;:1.0266,&quot;ADX14&quot;:18.774,&quot;OBV&quot;:434024900},{&quot;Date&quot;:&quot;2025-09-12&quot;,&quot;Open&quot;:16.780000686645508,&quot;High&quot;:20.125,&quot;Low&quot;:16.65999984741211,&quot;Close&quot;:19.09000015258789,&quot;Volume&quot;:112179000,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:16.724,&quot;SMA10&quot;:16.063,&quot;SMA20&quot;:15.733,&quot;SMA50&quot;:15.378,&quot;EMA12&quot;:16.3137,&quot;EMA26&quot;:15.8344,&quot;RSI14&quot;:26.592,&quot;MACD&quot;:0.4792,&quot;Bollinger_Upper&quot;:17.9518,&quot;Bollinger_Lower&quot;:13.5142,&quot;Daily_Range&quot;:3.465,&quot;Volume_MA5&quot;:50651860.0,&quot;ATR14&quot;:1.192,&quot;ADX14&quot;:22.8931,&quot;OBV&quot;:546203900},{&quot;Date&quot;:&quot;2025-09-15&quot;,&quot;Open&quot;:19.075000762939453,&quot;High&quot;:19.719999313354492,&quot;Low&quot;:18.665000915527344,&quot;Close&quot;:19.209999084472656,&quot;Volume&quot;:43217000,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:17.536,&quot;SMA10&quot;:16.361,&quot;SMA20&quot;:15.861,&quot;SMA50&quot;:15.4932,&quot;EMA12&quot;:16.7593,&quot;EMA26&quot;:16.0845,&quot;RSI14&quot;:29.1533,&quot;MACD&quot;:0.6748,&quot;Bollinger_Upper&quot;:18.5484,&quot;Bollinger_Lower&quot;:13.1736,&quot;Daily_Range&quot;:1.055,&quot;Volume_MA5&quot;:54303840.0,&quot;ATR14&quot;:1.2116,&quot;ADX14&quot;:25.8634,&quot;OBV&quot;:589420900},{&quot;Date&quot;:&quot;2025-09-16&quot;,&quot;Open&quot;:19.399999618530273,&quot;High&quot;:20.299999237060547,&quot;Low&quot;:18.920000076293945,&quot;Close&quot;:20.0,&quot;Volume&quot;:43946800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:18.236,&quot;SMA10&quot;:16.809,&quot;SMA20&quot;:16.0295,&quot;SMA50&quot;:15.6182,&quot;EMA12&quot;:17.2578,&quot;EMA26&quot;:16.3745,&quot;RSI14&quot;:28.2903,&quot;MACD&quot;:0.8833,&quot;Bollinger_Upper&quot;:19.2829,&quot;Bollinger_Lower&quot;:12.7761,&quot;Daily_Range&quot;:1.38,&quot;Volume_MA5&quot;:54077060.0,&quot;ATR14&quot;:1.2402,&quot;ADX14&quot;:29.5574,&quot;OBV&quot;:633367700},{&quot;Date&quot;:&quot;2025-09-17&quot;,&quot;Open&quot;:20.06999969482422,&quot;High&quot;:22.1299991607666,&quot;Low&quot;:19.81999969482422,&quot;Close&quot;:21.989999771118164,&quot;Volume&quot;:77851300,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:19.396,&quot;SMA10&quot;:17.504,&quot;SMA20&quot;:16.371,&quot;SMA50&quot;:15.7904,&quot;EMA12&quot;:17.9859,&quot;EMA26&quot;:16.7905,&quot;RSI14&quot;:32.7527,&quot;MACD&quot;:1.1954,&quot;Bollinger_Upper&quot;:20.544,&quot;Bollinger_Lower&quot;:12.198,&quot;Daily_Range&quot;:2.31,&quot;Volume_MA5&quot;:63071860.0,&quot;ATR14&quot;:1.3324,&quot;ADX14&quot;:33.2174,&quot;OBV&quot;:711219000},{&quot;Date&quot;:&quot;2025-09-18&quot;,&quot;Open&quot;:22.875,&quot;High&quot;:26.209999084472656,&quot;Low&quot;:22.399999618530273,&quot;Close&quot;:24.739999771118164,&quot;Volume&quot;:113908000,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:21.006,&quot;SMA10&quot;:18.466,&quot;SMA20&quot;:16.87,&quot;SMA50&quot;:16.015,&quot;EMA12&quot;:19.025,&quot;EMA26&quot;:17.3793,&quot;RSI14&quot;:33.6286,&quot;MACD&quot;:1.6456,&quot;Bollinger_Upper&quot;:22.3985,&quot;Bollinger_Lower&quot;:11.3415,&quot;Daily_Range&quot;:3.81,&quot;Volume_MA5&quot;:78220420.0,&quot;ATR14&quot;:1.4996,&quot;ADX14&quot;:36.4827,&quot;OBV&quot;:825127000},{&quot;Date&quot;:&quot;2025-09-19&quot;,&quot;Open&quot;:24.780000686645508,&quot;High&quot;:29.09000015258789,&quot;Low&quot;:24.725000381469727,&quot;Close&quot;:28.520000457763672,&quot;Volume&quot;:127847900,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:22.892,&quot;SMA10&quot;:19.808,&quot;SMA20&quot;:17.5825,&quot;SMA50&quot;:16.3248,&quot;EMA12&quot;:20.4857,&quot;EMA26&quot;:18.2046,&quot;RSI14&quot;:39.2762,&quot;MACD&quot;:2.2812,&quot;Bollinger_Upper&quot;:25.0375,&quot;Bollinger_Lower&quot;:10.1275,&quot;Daily_Range&quot;:4.365,&quot;Volume_MA5&quot;:81354200.0,&quot;ATR14&quot;:1.7636,&quot;ADX14&quot;:40.1177,&quot;OBV&quot;:952974900},{&quot;Date&quot;:&quot;2025-09-22&quot;,&quot;Open&quot;:26.329999923706055,&quot;High&quot;:29.59000015258789,&quot;Low&quot;:25.5,&quot;Close&quot;:28.3700008392334,&quot;Volume&quot;:87217900,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:24.724,&quot;SMA10&quot;:21.13,&quot;SMA20&quot;:18.26,&quot;SMA50&quot;:16.6486,&quot;EMA12&quot;:21.6987,&quot;EMA26&quot;:18.9576,&quot;RSI14&quot;:41.9355,&quot;MACD&quot;:2.7411,&quot;Bollinger_Upper&quot;:27.0085,&quot;Bollinger_Lower&quot;:9.5115,&quot;Daily_Range&quot;:4.09,&quot;Volume_MA5&quot;:90154380.0,&quot;ATR14&quot;:1.9511,&quot;ADX14&quot;:46.5944,&quot;OBV&quot;:865757000},{&quot;Date&quot;:&quot;2025-09-23&quot;,&quot;Open&quot;:29.389999389648438,&quot;High&quot;:32.400001525878906,&quot;Low&quot;:28.840999603271484,&quot;Close&quot;:31.459999084472656,&quot;Volume&quot;:103564700,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:27.016,&quot;SMA10&quot;:22.626,&quot;SMA20&quot;:19.1095,&quot;SMA50&quot;:17.0224,&quot;EMA12&quot;:23.2004,&quot;EMA26&quot;:19.8837,&quot;RSI14&quot;:47.6151,&quot;MACD&quot;:3.3168,&quot;Bollinger_Upper&quot;:29.4611,&quot;Bollinger_Lower&quot;:8.7579,&quot;Daily_Range&quot;:3.559,&quot;Volume_MA5&quot;:102077960.0,&quot;ATR14&quot;:2.1764,&quot;ADX14&quot;:51.6193,&quot;OBV&quot;:969321700},{&quot;Date&quot;:&quot;2025-09-24&quot;,&quot;Open&quot;:32.68000030517578,&quot;High&quot;:34.400001525878906,&quot;Low&quot;:29.709999084472656,&quot;Close&quot;:31.639999389648438,&quot;Volume&quot;:141839200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:28.946,&quot;SMA10&quot;:24.171,&quot;SMA20&quot;:19.9265,&quot;SMA50&quot;:17.4008,&quot;EMA12&quot;:24.4988,&quot;EMA26&quot;:20.7545,&quot;RSI14&quot;:47.6382,&quot;MACD&quot;:3.7443,&quot;Bollinger_Upper&quot;:31.5173,&quot;Bollinger_Lower&quot;:8.3357,&quot;Daily_Range&quot;:4.69,&quot;Volume_MA5&quot;:114875540.0,&quot;ATR14&quot;:2.4557,&quot;ADX14&quot;:56.6749,&quot;OBV&quot;:1111160900},{&quot;Date&quot;:&quot;2025-09-25&quot;,&quot;Open&quot;:29.815000534057617,&quot;High&quot;:32.83000183105469,&quot;Low&quot;:28.780000686645508,&quot;Close&quot;:32.099998474121094,&quot;Volume&quot;:129306900,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:30.418,&quot;SMA10&quot;:25.712,&quot;SMA20&quot;:20.762,&quot;SMA50&quot;:17.7116,&quot;EMA12&quot;:25.6682,&quot;EMA26&quot;:21.5949,&quot;RSI14&quot;:48.5496,&quot;MACD&quot;:4.0733,&quot;Bollinger_Upper&quot;:33.3427,&quot;Bollinger_Lower&quot;:8.1813,&quot;Daily_Range&quot;:4.05,&quot;Volume_MA5&quot;:117955320.0,&quot;ATR14&quot;:2.6604,&quot;ADX14&quot;:61.0452,&quot;OBV&quot;:1240467800},{&quot;Date&quot;:&quot;2025-09-26&quot;,&quot;Open&quot;:32.154998779296875,&quot;High&quot;:33.97999954223633,&quot;Low&quot;:30.739999771118164,&quot;Close&quot;:31.18000030517578,&quot;Volume&quot;:100109900,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:30.95,&quot;SMA10&quot;:26.921,&quot;SMA20&quot;:21.492,&quot;SMA50&quot;:17.9924,&quot;EMA12&quot;:26.5162,&quot;EMA26&quot;:22.3049,&quot;RSI14&quot;:46.4257,&quot;MACD&quot;:4.2113,&quot;Bollinger_Upper&quot;:34.7282,&quot;Bollinger_Lower&quot;:8.2558,&quot;Daily_Range&quot;:3.24,&quot;Volume_MA5&quot;:112407720.0,&quot;ATR14&quot;:2.8554,&quot;ADX14&quot;:65.4882,&quot;OBV&quot;:1140357900},{&quot;Date&quot;:&quot;2025-09-29&quot;,&quot;Open&quot;:31.829999923706055,&quot;High&quot;:32.53499984741211,&quot;Low&quot;:28.450000762939453,&quot;Close&quot;:29.649999618530273,&quot;Volume&quot;:95487600,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:31.206,&quot;SMA10&quot;:27.965,&quot;SMA20&quot;:22.163,&quot;SMA50&quot;:18.2422,&quot;EMA12&quot;:26.9983,&quot;EMA26&quot;:22.849,&quot;RSI14&quot;:39.7453,&quot;MACD&quot;:4.1493,&quot;Bollinger_Upper&quot;:35.6346,&quot;Bollinger_Lower&quot;:8.6914,&quot;Daily_Range&quot;:4.085,&quot;Volume_MA5&quot;:114061660.0,&quot;ATR14&quot;:3.0329,&quot;ADX14&quot;:70.1528,&quot;OBV&quot;:1044870300},{&quot;Date&quot;:&quot;2025-09-30&quot;,&quot;Open&quot;:29.219999313354492,&quot;High&quot;:30.624000549316406,&quot;Low&quot;:28.969999313354492,&quot;Close&quot;:29.790000915527344,&quot;Volume&quot;:72038300,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:30.872,&quot;SMA10&quot;:28.944,&quot;SMA20&quot;:22.8765,&quot;SMA50&quot;:18.5164,&quot;EMA12&quot;:27.4278,&quot;EMA26&quot;:23.3631,&quot;RSI14&quot;:41.1403,&quot;MACD&quot;:4.0647,&quot;Bollinger_Upper&quot;:36.3782,&quot;Bollinger_Lower&quot;:9.3748,&quot;Daily_Range&quot;:1.654,&quot;Volume_MA5&quot;:107756380.0,&quot;ATR14&quot;:3.1139,&quot;ADX14&quot;:73.5236,&quot;OBV&quot;:1116908600},{&quot;Date&quot;:&quot;2025-10-01&quot;,&quot;Open&quot;:29.100000381469727,&quot;High&quot;:31.389999389648438,&quot;Low&quot;:28.649999618530273,&quot;Close&quot;:29.850000381469727,&quot;Volume&quot;:84797300,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:30.514,&quot;SMA10&quot;:29.73,&quot;SMA20&quot;:23.617,&quot;SMA50&quot;:18.8048,&quot;EMA12&quot;:27.8005,&quot;EMA26&quot;:23.8437,&quot;RSI14&quot;:39.7012,&quot;MACD&quot;:3.9568,&quot;Bollinger_Upper&quot;:36.9322,&quot;Bollinger_Lower&quot;:10.3018,&quot;Daily_Range&quot;:2.74,&quot;Volume_MA5&quot;:96348000.0,&quot;ATR14&quot;:3.241,&quot;ADX14&quot;:76.593,&quot;OBV&quot;:1201705900},{&quot;Date&quot;:&quot;2025-10-02&quot;,&quot;Open&quot;:30.670000076293945,&quot;High&quot;:35.810001373291016,&quot;Low&quot;:30.459999084472656,&quot;Close&quot;:35.400001525878906,&quot;Volume&quot;:146006200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:31.174,&quot;SMA10&quot;:30.796,&quot;SMA20&quot;:24.631,&quot;SMA50&quot;:19.19,&quot;EMA12&quot;:28.9696,&quot;EMA26&quot;:24.6997,&quot;RSI14&quot;:39.3963,&quot;MACD&quot;:4.2699,&quot;Bollinger_Upper&quot;:38.3057,&quot;Bollinger_Lower&quot;:10.9563,&quot;Daily_Range&quot;:5.35,&quot;Volume_MA5&quot;:99687860.0,&quot;ATR14&quot;:3.4192,&quot;ADX14&quot;:77.6187,&quot;OBV&quot;:1347712100},{&quot;Date&quot;:&quot;2025-10-03&quot;,&quot;Open&quot;:36.9900016784668,&quot;High&quot;:40.630001068115234,&quot;Low&quot;:35.75,&quot;Close&quot;:40.060001373291016,&quot;Volume&quot;:155531200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:32.95,&quot;SMA10&quot;:31.95,&quot;SMA20&quot;:25.879,&quot;SMA50&quot;:19.6722,&quot;EMA12&quot;:30.6758,&quot;EMA26&quot;:25.8375,&quot;RSI14&quot;:42.8562,&quot;MACD&quot;:4.8383,&quot;Bollinger_Upper&quot;:40.4197,&quot;Bollinger_Lower&quot;:11.3383,&quot;Daily_Range&quot;:4.88,&quot;Volume_MA5&quot;:110772120.0,&quot;ATR14&quot;:3.7174,&quot;ADX14&quot;:78.9592,&quot;OBV&quot;:1503243300},{&quot;Date&quot;:&quot;2025-10-06&quot;,&quot;Open&quot;:38.80500030517578,&quot;High&quot;:43.11000061035156,&quot;Low&quot;:38.367000579833984,&quot;Close&quot;:41.709999084472656,&quot;Volume&quot;:110767900,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:35.362,&quot;SMA10&quot;:33.284,&quot;SMA20&quot;:27.207,&quot;SMA50&quot;:20.1976,&quot;EMA12&quot;:32.3734,&quot;EMA26&quot;:27.0132,&quot;RSI14&quot;:42.8585,&quot;MACD&quot;:5.3602,&quot;Bollinger_Upper&quot;:42.456,&quot;Bollinger_Lower&quot;:11.958,&quot;Daily_Range&quot;:4.743,&quot;Volume_MA5&quot;:113828180.0,&quot;ATR14&quot;:3.9576,&quot;ADX14&quot;:80.3547,&quot;OBV&quot;:1614011200},{&quot;Date&quot;:&quot;2025-10-07&quot;,&quot;Open&quot;:43.650001525878906,&quot;High&quot;:46.18000030517578,&quot;Low&quot;:40.709999084472656,&quot;Close&quot;:43.90999984741211,&quot;Volume&quot;:174843700,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:38.186,&quot;SMA10&quot;:34.529,&quot;SMA20&quot;:28.5775,&quot;SMA50&quot;:20.7644,&quot;EMA12&quot;:34.1483,&quot;EMA26&quot;:28.2648,&quot;RSI14&quot;:41.7056,&quot;MACD&quot;:5.8834,&quot;Bollinger_Upper&quot;:44.678,&quot;Bollinger_Lower&quot;:12.477,&quot;Daily_Range&quot;:5.47,&quot;Volume_MA5&quot;:134389260.0,&quot;ATR14&quot;:4.1834,&quot;ADX14&quot;:81.4969,&quot;OBV&quot;:1788854900},{&quot;Date&quot;:&quot;2025-10-08&quot;,&quot;Open&quot;:44.2599983215332,&quot;High&quot;:48.22999954223633,&quot;Low&quot;:41.459999084472656,&quot;Close&quot;:43.22999954223633,&quot;Volume&quot;:166627500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:40.862,&quot;SMA10&quot;:35.688,&quot;SMA20&quot;:29.9295,&quot;SMA50&quot;:21.3396,&quot;EMA12&quot;:35.5455,&quot;EMA26&quot;:29.3734,&quot;RSI14&quot;:37.0228,&quot;MACD&quot;:6.1721,&quot;Bollinger_Upper&quot;:46.1906,&quot;Bollinger_Lower&quot;:13.6684,&quot;Daily_Range&quot;:6.77,&quot;Volume_MA5&quot;:150755300.0,&quot;ATR14&quot;:4.3655,&quot;ADX14&quot;:81.9697,&quot;OBV&quot;:1622227400},{&quot;Date&quot;:&quot;2025-10-09&quot;,&quot;Open&quot;:43.34000015258789,&quot;High&quot;:48.220001220703125,&quot;Low&quot;:42.88999938964844,&quot;Close&quot;:47.11000061035156,&quot;Volume&quot;:155458400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:43.204,&quot;SMA10&quot;:37.189,&quot;SMA20&quot;:31.4505,&quot;SMA50&quot;:21.9984,&quot;EMA12&quot;:37.3246,&quot;EMA26&quot;:30.6872,&quot;RSI14&quot;:36.2873,&quot;MACD&quot;:6.6374,&quot;Bollinger_Upper&quot;:48.1813,&quot;Bollinger_Lower&quot;:14.7197,&quot;Daily_Range&quot;:5.33,&quot;Volume_MA5&quot;:152645740.0,&quot;ATR14&quot;:4.4344,&quot;ADX14&quot;:81.9196,&quot;OBV&quot;:1777685800},{&quot;Date&quot;:&quot;2025-10-10&quot;,&quot;Open&quot;:47.83000183105469,&quot;High&quot;:49.130001068115234,&quot;Low&quot;:43.88999938964844,&quot;Close&quot;:43.91999816894531,&quot;Volume&quot;:138979700,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:43.976,&quot;SMA10&quot;:38.463,&quot;SMA20&quot;:32.692,&quot;SMA50&quot;:22.5868,&quot;EMA12&quot;:38.3393,&quot;EMA26&quot;:31.6674,&quot;RSI14&quot;:31.9216,&quot;MACD&quot;:6.6719,&quot;Bollinger_Upper&quot;:49.245,&quot;Bollinger_Lower&quot;:16.139,&quot;Daily_Range&quot;:5.24,&quot;Volume_MA5&quot;:149335440.0,&quot;ATR14&quot;:4.5166,&quot;ADX14&quot;:80.7004,&quot;OBV&quot;:1638706100},{&quot;Date&quot;:&quot;2025-10-13&quot;,&quot;Open&quot;:46.459999084472656,&quot;High&quot;:55.22999954223633,&quot;Low&quot;:46.369998931884766,&quot;Close&quot;:54.90999984741211,&quot;Volume&quot;:181160700,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:46.616,&quot;SMA10&quot;:40.989,&quot;SMA20&quot;:34.477,&quot;SMA50&quot;:23.4026,&quot;EMA12&quot;:40.8886,&quot;EMA26&quot;:33.3891,&quot;RSI14&quot;:32.599,&quot;MACD&quot;:7.4996,&quot;Bollinger_Upper&quot;:52.5392,&quot;Bollinger_Lower&quot;:16.4148,&quot;Daily_Range&quot;:8.86,&quot;Volume_MA5&quot;:163414000.0,&quot;ATR14&quot;:5.0366,&quot;ADX14&quot;:79.588,&quot;OBV&quot;:1819866800},{&quot;Date&quot;:&quot;2025-10-14&quot;,&quot;Open&quot;:54.845001220703125,&quot;High&quot;:58.150001525878906,&quot;Low&quot;:50.0,&quot;Close&quot;:56.119998931884766,&quot;Volume&quot;:148012800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:49.058,&quot;SMA10&quot;:43.622,&quot;SMA20&quot;:36.283,&quot;SMA50&quot;:24.2098,&quot;EMA12&quot;:43.2319,&quot;EMA26&quot;:35.0728,&quot;RSI14&quot;:33.2782,&quot;MACD&quot;:8.1591,&quot;Bollinger_Upper&quot;:55.4403,&quot;Bollinger_Lower&quot;:17.1257,&quot;Daily_Range&quot;:8.15,&quot;Volume_MA5&quot;:158047820.0,&quot;ATR14&quot;:5.2837,&quot;ADX14&quot;:78.4492,&quot;OBV&quot;:1967879600},{&quot;Date&quot;:&quot;2025-10-15&quot;,&quot;Open&quot;:57.880001068115234,&quot;High&quot;:57.970001220703125,&quot;Low&quot;:50.5,&quot;Close&quot;:56.34000015258789,&quot;Volume&quot;:136181800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:51.68,&quot;SMA10&quot;:46.271,&quot;SMA20&quot;:38.0005,&quot;SMA50&quot;:25.0072,&quot;EMA12&quot;:45.2485,&quot;EMA26&quot;:36.6482,&quot;RSI14&quot;:32.8264,&quot;MACD&quot;:8.6004,&quot;Bollinger_Upper&quot;:57.9069,&quot;Bollinger_Lower&quot;:18.0941,&quot;Daily_Range&quot;:7.47,&quot;Volume_MA5&quot;:151958680.0,&quot;ATR14&quot;:5.528,&quot;ADX14&quot;:78.0471,&quot;OBV&quot;:2104061400},{&quot;Date&quot;:&quot;2025-10-16&quot;,&quot;Open&quot;:54.69499969482422,&quot;High&quot;:55.15999984741211,&quot;Low&quot;:46.869998931884766,&quot;Close&quot;:47.970001220703125,&quot;Volume&quot;:138635900,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:51.852,&quot;SMA10&quot;:47.528,&quot;SMA20&quot;:39.162,&quot;SMA50&quot;:25.6468,&quot;EMA12&quot;:45.6672,&quot;EMA26&quot;:37.4868,&quot;RSI14&quot;:25.8144,&quot;MACD&quot;:8.1804,&quot;Bollinger_Upper&quot;:58.5137,&quot;Bollinger_Lower&quot;:19.8103,&quot;Daily_Range&quot;:8.29,&quot;Volume_MA5&quot;:148594180.0,&quot;ATR14&quot;:5.973,&quot;ADX14&quot;:76.1382,&quot;OBV&quot;:1965425500},{&quot;Date&quot;:&quot;2025-10-17&quot;,&quot;Open&quot;:44.65999984741211,&quot;High&quot;:48.25,&quot;Low&quot;:43.650001525878906,&quot;Close&quot;:46.380001068115234,&quot;Volume&quot;:112310500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:52.344,&quot;SMA10&quot;:48.16,&quot;SMA20&quot;:40.055,&quot;SMA50&quot;:26.2612,&quot;EMA12&quot;:45.7769,&quot;EMA26&quot;:38.1456,&quot;RSI14&quot;:26.5904,&quot;MACD&quot;:7.6313,&quot;Bollinger_Upper&quot;:58.9827,&quot;Bollinger_Lower&quot;:21.1273,&quot;Daily_Range&quot;:4.6,&quot;Volume_MA5&quot;:143260340.0,&quot;ATR14&quot;:6.0098,&quot;ADX14&quot;:75.3318,&quot;OBV&quot;:1853115000},{&quot;Date&quot;:&quot;2025-10-20&quot;,&quot;Open&quot;:47.47999954223633,&quot;High&quot;:47.779998779296875,&quot;Low&quot;:42.18000030517578,&quot;Close&quot;:43.310001373291016,&quot;Volume&quot;:87195200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:50.024,&quot;SMA10&quot;:48.32,&quot;SMA20&quot;:40.802,&quot;SMA50&quot;:26.8186,&quot;EMA12&quot;:45.3974,&quot;EMA26&quot;:38.5281,&quot;RSI14&quot;:23.2329,&quot;MACD&quot;:6.8692,&quot;Bollinger_Upper&quot;:58.9512,&quot;Bollinger_Lower&quot;:22.6528,&quot;Daily_Range&quot;:5.6,&quot;Volume_MA5&quot;:124467240.0,&quot;ATR14&quot;:6.2916,&quot;ADX14&quot;:74.0564,&quot;OBV&quot;:1765919800},{&quot;Date&quot;:&quot;2025-10-21&quot;,&quot;Open&quot;:42.52000045776367,&quot;High&quot;:43.599998474121094,&quot;Low&quot;:39.04999923706055,&quot;Close&quot;:40.0,&quot;Volume&quot;:82535100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:46.8,&quot;SMA10&quot;:47.929,&quot;SMA20&quot;:41.229,&quot;SMA50&quot;:27.299,&quot;EMA12&quot;:44.567,&quot;EMA26&quot;:38.6372,&quot;RSI14&quot;:19.4334,&quot;MACD&quot;:5.9298,&quot;Bollinger_Upper&quot;:58.8468,&quot;Bollinger_Lower&quot;:23.6112,&quot;Daily_Range&quot;:4.55,&quot;Volume_MA5&quot;:111371700.0,&quot;ATR14&quot;:6.4209,&quot;ADX14&quot;:71.7818,&quot;OBV&quot;:1683384700},{&quot;Date&quot;:&quot;2025-10-22&quot;,&quot;Open&quot;:38.52000045776367,&quot;High&quot;:39.720001220703125,&quot;Low&quot;:34.13999938964844,&quot;Close&quot;:36.060001373291016,&quot;Volume&quot;:114958400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:42.744,&quot;SMA10&quot;:47.212,&quot;SMA20&quot;:41.45,&quot;SMA50&quot;:27.6962,&quot;EMA12&quot;:43.2582,&quot;EMA26&quot;:38.4463,&quot;RSI14&quot;:5.5498,&quot;MACD&quot;:4.812,&quot;Bollinger_Upper&quot;:58.6677,&quot;Bollinger_Lower&quot;:24.2323,&quot;Daily_Range&quot;:5.58,&quot;Volume_MA5&quot;:107127020.0,&quot;ATR14&quot;:6.4138,&quot;ADX14&quot;:67.6423,&quot;OBV&quot;:1568426300},{&quot;Date&quot;:&quot;2025-10-23&quot;,&quot;Open&quot;:40.380001068115234,&quot;High&quot;:41.959999084472656,&quot;Low&quot;:37.65999984741211,&quot;Close&quot;:39.595001220703125,&quot;Volume&quot;:164337700,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:41.069,&quot;SMA10&quot;:46.4605,&quot;SMA20&quot;:41.8248,&quot;SMA50&quot;:28.1433,&quot;EMA12&quot;:42.6947,&quot;EMA26&quot;:38.5314,&quot;RSI14&quot;:3.534,&quot;MACD&quot;:4.1633,&quot;Bollinger_Upper&quot;:58.5034,&quot;Bollinger_Lower&quot;:25.1461,&quot;Daily_Range&quot;:4.3,&quot;Volume_MA5&quot;:112267380.0,&quot;ATR14&quot;:6.4616,&quot;ADX14&quot;:62.7567,&quot;OBV&quot;:1732764000},{&quot;Date&quot;:&quot;2025-10-24&quot;,&quot;Open&quot;:41.25,&quot;High&quot;:43.459999084472656,&quot;Low&quot;:38.69499969482422,&quot;Close&quot;:38.84000015258789,&quot;Volume&quot;:87712800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:39.561,&quot;SMA10&quot;:45.9525,&quot;SMA20&quot;:42.2078,&quot;SMA50&quot;:28.5605,&quot;EMA12&quot;:42.1016,&quot;EMA26&quot;:38.5542,&quot;RSI14&quot;:-0.598,&quot;MACD&quot;:3.5474,&quot;Bollinger_Upper&quot;:58.1946,&quot;Bollinger_Lower&quot;:26.2209,&quot;Daily_Range&quot;:4.765,&quot;Volume_MA5&quot;:107347840.0,&quot;ATR14&quot;:6.4632,&quot;ADX14&quot;:57.5936,&quot;OBV&quot;:1645051200},{&quot;Date&quot;:&quot;2025-10-27&quot;,&quot;Open&quot;:39.564998626708984,&quot;High&quot;:42.61000061035156,&quot;Low&quot;:39.13999938964844,&quot;Close&quot;:40.2400016784668,&quot;Volume&quot;:71650800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:38.947,&quot;SMA10&quot;:44.4855,&quot;SMA20&quot;:42.7373,&quot;SMA50&quot;:29.0323,&quot;EMA12&quot;:41.8152,&quot;EMA26&quot;:38.6791,&quot;RSI14&quot;:-1.8219,&quot;MACD&quot;:3.1361,&quot;Bollinger_Upper&quot;:57.6374,&quot;Bollinger_Lower&quot;:27.8371,&quot;Daily_Range&quot;:3.47,&quot;Volume_MA5&quot;:104238960.0,&quot;ATR14&quot;:6.3418,&quot;ADX14&quot;:52.022,&quot;OBV&quot;:1716702000},{&quot;Date&quot;:&quot;2025-10-28&quot;,&quot;Open&quot;:40.04499816894531,&quot;High&quot;:42.93000030517578,&quot;Low&quot;:36.99100112915039,&quot;Close&quot;:37.06999969482422,&quot;Volume&quot;:93119800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:38.361,&quot;SMA10&quot;:42.5805,&quot;SMA20&quot;:43.1013,&quot;SMA50&quot;:29.4411,&quot;EMA12&quot;:41.0852,&quot;EMA26&quot;:38.5599,&quot;RSI14&quot;:-6.5834,&quot;MACD&quot;:2.5253,&quot;Bollinger_Upper&quot;:56.9911,&quot;Bollinger_Lower&quot;:29.2114,&quot;Daily_Range&quot;:5.939,&quot;Volume_MA5&quot;:106355900.0,&quot;ATR14&quot;:6.2824,&quot;ADX14&quot;:47.4782,&quot;OBV&quot;:1623582200},{&quot;Date&quot;:&quot;2025-10-29&quot;,&quot;Open&quot;:37.689998626708984,&quot;High&quot;:40.07500076293945,&quot;Low&quot;:36.900001525878906,&quot;Close&quot;:39.40999984741211,&quot;Volume&quot;:64001300,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:39.031,&quot;SMA10&quot;:40.8875,&quot;SMA20&quot;:43.5793,&quot;SMA50&quot;:29.9261,&quot;EMA12&quot;:40.8275,&quot;EMA26&quot;:38.6229,&quot;RSI14&quot;:-8.9007,&quot;MACD&quot;:2.2046,&quot;Bollinger_Upper&quot;:56.1438,&quot;Bollinger_Lower&quot;:31.0147,&quot;Daily_Range&quot;:3.175,&quot;Volume_MA5&quot;:96164480.0,&quot;ATR14&quot;:6.1285,&quot;ADX14&quot;:43.1124,&quot;OBV&quot;:1687583500},{&quot;Date&quot;:&quot;2025-10-30&quot;,&quot;Open&quot;:38.08000183105469,&quot;High&quot;:42.88999938964844,&quot;Low&quot;:37.68000030517578,&quot;Close&quot;:42.52000045776367,&quot;Volume&quot;:64904700,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:39.616,&quot;SMA10&quot;:40.3425,&quot;SMA20&quot;:43.9353,&quot;SMA50&quot;:30.4813,&quot;EMA12&quot;:41.0879,&quot;EMA26&quot;:38.9115,&quot;RSI14&quot;:2.178,&quot;MACD&quot;:2.1763,&quot;Bollinger_Upper&quot;:55.9138,&quot;Bollinger_Lower&quot;:31.9567,&quot;Daily_Range&quot;:5.21,&quot;Volume_MA5&quot;:76277880.0,&quot;ATR14&quot;:6.1264,&quot;ADX14&quot;:38.2627,&quot;OBV&quot;:1752488200},{&quot;Date&quot;:&quot;2025-10-31&quot;,&quot;Open&quot;:42.22999954223633,&quot;High&quot;:44.52000045776367,&quot;Low&quot;:41.68000030517578,&quot;Close&quot;:44.27000045776367,&quot;Volume&quot;:67133200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:40.702,&quot;SMA10&quot;:40.1315,&quot;SMA20&quot;:44.1458,&quot;SMA50&quot;:31.0813,&quot;EMA12&quot;:41.5774,&quot;EMA26&quot;:39.3085,&quot;RSI14&quot;:-20.7483,&quot;MACD&quot;:2.2689,&quot;Bollinger_Upper&quot;:55.9847,&quot;Bollinger_Lower&quot;:32.3068,&quot;Daily_Range&quot;:2.84,&quot;Volume_MA5&quot;:72161960.0,&quot;ATR14&quot;:5.5214,&quot;ADX14&quot;:34.4066,&quot;OBV&quot;:1819621400},{&quot;Date&quot;:&quot;2025-11-03&quot;,&quot;Open&quot;:44.310001373291016,&quot;High&quot;:44.380001068115234,&quot;Low&quot;:39.0,&quot;Close&quot;:39.119998931884766,&quot;Volume&quot;:59342400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:40.478,&quot;SMA10&quot;:39.7125,&quot;SMA20&quot;:44.0163,&quot;SMA50&quot;:31.5673,&quot;EMA12&quot;:41.1994,&quot;EMA26&quot;:39.2945,&quot;RSI14&quot;:-40.756,&quot;MACD&quot;:1.9048,&quot;Bollinger_Upper&quot;:56.0229,&quot;Bollinger_Lower&quot;:32.0096,&quot;Daily_Range&quot;:5.38,&quot;Volume_MA5&quot;:69700280.0,&quot;ATR14&quot;:5.3235,&quot;ADX14&quot;:31.88,&quot;OBV&quot;:1760279000},{&quot;Date&quot;:&quot;2025-11-04&quot;,&quot;Open&quot;:37.029998779296875,&quot;High&quot;:38.619998931884766,&quot;Low&quot;:34.64500045776367,&quot;Close&quot;:35.18000030517578,&quot;Volume&quot;:55462800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:40.1,&quot;SMA10&quot;:39.2305,&quot;SMA20&quot;:43.5798,&quot;SMA50&quot;:31.9815,&quot;EMA12&quot;:40.2733,&quot;EMA26&quot;:38.9897,&quot;RSI14&quot;:-59.9132,&quot;MACD&quot;:1.2836,&quot;Bollinger_Upper&quot;:56.2206,&quot;Bollinger_Lower&quot;:30.9389,&quot;Daily_Range&quot;:3.975,&quot;Volume_MA5&quot;:62168880.0,&quot;ATR14&quot;:5.1096,&quot;ADX14&quot;:29.4787,&quot;OBV&quot;:1704816200},{&quot;Date&quot;:&quot;2025-11-05&quot;,&quot;Open&quot;:36.279998779296875,&quot;High&quot;:38.0,&quot;Low&quot;:35.0,&quot;Close&quot;:37.290000915527344,&quot;Volume&quot;:41383300,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:39.676,&quot;SMA10&quot;:39.3535,&quot;SMA20&quot;:43.2828,&quot;SMA50&quot;:32.4213,&quot;EMA12&quot;:39.8143,&quot;EMA26&quot;:38.8638,&quot;RSI14&quot;:-24.9969,&quot;MACD&quot;:0.9505,&quot;Bollinger_Upper&quot;:56.2336,&quot;Bollinger_Lower&quot;:30.3319,&quot;Daily_Range&quot;:3.0,&quot;Volume_MA5&quot;:57645280.0,&quot;ATR14&quot;:4.6474,&quot;ADX14&quot;:28.1335,&quot;OBV&quot;:1746199500},{&quot;Date&quot;:&quot;2025-11-06&quot;,&quot;Open&quot;:37.11000061035156,&quot;High&quot;:37.13999938964844,&quot;Low&quot;:34.20000076293945,&quot;Close&quot;:34.36000061035156,&quot;Volume&quot;:46667000,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:38.044,&quot;SMA10&quot;:38.83,&quot;SMA20&quot;:42.6453,&quot;SMA50&quot;:32.8007,&quot;EMA12&quot;:38.9752,&quot;EMA26&quot;:38.5302,&quot;RSI14&quot;:-31.106,&quot;MACD&quot;:0.445,&quot;Bollinger_Upper&quot;:56.0501,&quot;Bollinger_Lower&quot;:29.2404,&quot;Daily_Range&quot;:2.94,&quot;Volume_MA5&quot;:53997740.0,&quot;ATR14&quot;:4.5396,&quot;ADX14&quot;:26.7687,&quot;OBV&quot;:1699532500},{&quot;Date&quot;:&quot;2025-11-07&quot;,&quot;Open&quot;:32.81999969482422,&quot;High&quot;:33.810001373291016,&quot;Low&quot;:30.6200008392334,&quot;Close&quot;:33.77000045776367,&quot;Volume&quot;:57796500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:35.944,&quot;SMA10&quot;:38.323,&quot;SMA20&quot;:42.1378,&quot;SMA50&quot;:33.1445,&quot;EMA12&quot;:38.1744,&quot;EMA26&quot;:38.1776,&quot;RSI14&quot;:-24.248,&quot;MACD&quot;:-0.0032,&quot;Bollinger_Upper&quot;:56.0965,&quot;Bollinger_Lower&quot;:28.179,&quot;Daily_Range&quot;:3.19,&quot;Volume_MA5&quot;:52130400.0,&quot;ATR14&quot;:4.4067,&quot;ADX14&quot;:26.1703,&quot;OBV&quot;:1641736000},{&quot;Date&quot;:&quot;2025-11-10&quot;,&quot;Open&quot;:34.099998474121094,&quot;High&quot;:34.709999084472656,&quot;Low&quot;:32.599998474121094,&quot;Close&quot;:33.08000183105469,&quot;Volume&quot;:38866000,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:34.736,&quot;SMA10&quot;:37.607,&quot;SMA20&quot;:41.0463,&quot;SMA50&quot;:33.4815,&quot;EMA12&quot;:37.3906,&quot;EMA26&quot;:37.8,&quot;RSI14&quot;:-17.1804,&quot;MACD&quot;:-0.4094,&quot;Bollinger_Upper&quot;:54.19,&quot;Bollinger_Lower&quot;:27.9025,&quot;Daily_Range&quot;:2.11,&quot;Volume_MA5&quot;:48035120.0,&quot;ATR14&quot;:4.2324,&quot;ADX14&quot;:25.7561,&quot;OBV&quot;:1602870000},{&quot;Date&quot;:&quot;2025-11-11&quot;,&quot;Open&quot;:31.079999923706055,&quot;High&quot;:32.18000030517578,&quot;Low&quot;:30.239999771118164,&quot;Close&quot;:31.399999618530273,&quot;Volume&quot;:51004200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:33.98,&quot;SMA10&quot;:37.04,&quot;SMA20&quot;:39.8103,&quot;SMA50&quot;:33.7991,&quot;EMA12&quot;:36.469,&quot;EMA26&quot;:37.3259,&quot;RSI14&quot;:-11.7808,&quot;MACD&quot;:-0.8569,&quot;Bollinger_Upper&quot;:51.561,&quot;Bollinger_Lower&quot;:28.0595,&quot;Daily_Range&quot;:1.94,&quot;Volume_MA5&quot;:47143400.0,&quot;ATR14&quot;:4.0167,&quot;ADX14&quot;:26.623,&quot;OBV&quot;:1551865800},{&quot;Date&quot;:&quot;2025-11-12&quot;,&quot;Open&quot;:31.1200008392334,&quot;High&quot;:31.649999618530273,&quot;Low&quot;:28.049999237060547,&quot;Close&quot;:28.299999237060547,&quot;Volume&quot;:50651600,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:32.182,&quot;SMA10&quot;:35.929,&quot;SMA20&quot;:38.4083,&quot;SMA50&quot;:34.0643,&quot;EMA12&quot;:35.2122,&quot;EMA26&quot;:36.6573,&quot;RSI14&quot;:-46.5102,&quot;MACD&quot;:-1.4451,&quot;Bollinger_Upper&quot;:48.4169,&quot;Bollinger_Lower&quot;:28.3996,&quot;Daily_Range&quot;:3.6,&quot;Volume_MA5&quot;:48997060.0,&quot;ATR14&quot;:3.8524,&quot;ADX14&quot;:29.188,&quot;OBV&quot;:1501214200},{&quot;Date&quot;:&quot;2025-11-13&quot;,&quot;Open&quot;:26.989999771118164,&quot;High&quot;:27.40999984741211,&quot;Low&quot;:24.75,&quot;Close&quot;:25.200000762939453,&quot;Volume&quot;:65493200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:30.35,&quot;SMA10&quot;:34.197,&quot;SMA20&quot;:37.2698,&quot;SMA50&quot;:34.2659,&quot;EMA12&quot;:33.6719,&quot;EMA26&quot;:35.8086,&quot;RSI14&quot;:-63.9526,&quot;MACD&quot;:-2.1368,&quot;Bollinger_Upper&quot;:47.862,&quot;Bollinger_Lower&quot;:26.6775,&quot;Daily_Range&quot;:2.66,&quot;Volume_MA5&quot;:52762300.0,&quot;ATR14&quot;:3.7656,&quot;ADX14&quot;:32.9933,&quot;OBV&quot;:1435721000},{&quot;Date&quot;:&quot;2025-11-14&quot;,&quot;Open&quot;:23.600000381469727,&quot;High&quot;:26.829999923706055,&quot;Low&quot;:23.3700008392334,&quot;Close&quot;:25.479999542236328,&quot;Volume&quot;:68287500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:28.692,&quot;SMA10&quot;:32.318,&quot;SMA20&quot;:36.2248,&quot;SMA50&quot;:34.4735,&quot;EMA12&quot;:32.4116,&quot;EMA26&quot;:35.0436,&quot;RSI14&quot;:-73.3833,&quot;MACD&quot;:-2.632,&quot;Bollinger_Upper&quot;:47.1512,&quot;Bollinger_Lower&quot;:25.2983,&quot;Daily_Range&quot;:3.46,&quot;Volume_MA5&quot;:54860500.0,&quot;ATR14&quot;:3.7435,&quot;ADX14&quot;:37.2888,&quot;OBV&quot;:1504008500},{&quot;Date&quot;:&quot;2025-11-17&quot;,&quot;Open&quot;:24.979999542236328,&quot;High&quot;:25.989999771118164,&quot;Low&quot;:24.190000534057617,&quot;Close&quot;:24.690000534057617,&quot;Volume&quot;:42986900,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:27.014,&quot;SMA10&quot;:30.875,&quot;SMA20&quot;:35.2938,&quot;SMA50&quot;:34.6643,&quot;EMA12&quot;:31.2237,&quot;EMA26&quot;:34.2766,&quot;RSI14&quot;:-61.9242,&quot;MACD&quot;:-3.053,&quot;Bollinger_Upper&quot;:46.8341,&quot;Bollinger_Lower&quot;:23.7534,&quot;Daily_Range&quot;:1.8,&quot;Volume_MA5&quot;:55684680.0,&quot;ATR14&quot;:3.4479,&quot;ADX14&quot;:40.4298,&quot;OBV&quot;:1461021600}]}<br>================================== Ai Message ==================================<br>Tool Calls:<br>fetch_quarterly_financials (call_J16aYkWf8I3a78kvngbPCT5c)<br>Call ID: call_J16aYkWf8I3a78kvngbPCT5c<br>Args:<br>symbol: RGTI<br>================================= Tool Message =================================<br>Name: fetch_quarterly_financials<br><br>{&quot;quarterly_financials&quot;:[{&quot;index&quot;:&quot;2025-09-30T00:00:00&quot;,&quot;Tax Effect Of Unusual Items&quot;:0.0,&quot;Tax Rate For Calcs&quot;:0.0,&quot;Normalized EBITDA&quot;:-12877000.0,&quot;Total Unusual Items&quot;:-186017000.0,&quot;Total Unusual Items Excluding Goodwill&quot;:-186017000.0,&quot;Net Income From Continuing Operation Net Minority Interest&quot;:-200968000.0,&quot;Reconciled Depreciation&quot;:2074000.0,&quot;Reconciled Cost Of Revenue&quot;:1543000.0,&quot;EBITDA&quot;:-198894000.0,&quot;EBIT&quot;:-200968000.0,&quot;Net Interest Income&quot;:5598000.0,&quot;Interest Expense&quot;:0.0,&quot;Interest Income&quot;:5598000.0,&quot;Normalized Income&quot;:-14951000.0,&quot;Net Income From Continuing And Discontinued Operation&quot;:-200968000.0,&quot;Total Expenses&quot;:22496000.0,&quot;Total Operating Income As Reported&quot;:-20549000.0,&quot;Diluted Average Shares&quot;:325024000.0,&quot;Basic Average Shares&quot;:325024000.0,&quot;Diluted EPS&quot;:-0.62,&quot;Basic EPS&quot;:-0.62,&quot;Diluted NI Availto Com Stockholders&quot;:-200968000.0,&quot;Average Dilution Earnings&quot;:NaN,&quot;Net Income Common Stockholders&quot;:-200968000.0,&quot;Net Income&quot;:-200968000.0,&quot;Net Income Including Noncontrolling Interests&quot;:-200968000.0,&quot;Net Income Continuous Operations&quot;:-200968000.0,&quot;Tax Provision&quot;:0.0,&quot;Pretax Income&quot;:-200968000.0,&quot;Other Income Expense&quot;:-186017000.0,&quot;Special Income Charges&quot;:-4062000.0,&quot;Restructuring And Mergern Acquisition&quot;:4062000.0,&quot;Gain On Sale Of Security&quot;:-181955000.0,&quot;Net Non Operating Interest Income Expense&quot;:5598000.0,&quot;Interest Expense Non Operating&quot;:0.0,&quot;Interest Income Non Operating&quot;:5598000.0,&quot;Operating Income&quot;:-20549000.0,&quot;Operating Expense&quot;:20953000.0,&quot;Research And Development&quot;:15020000.0,&quot;Selling General And Administration&quot;:5933000.0,&quot;Gross Profit&quot;:404000.0,&quot;Cost Of Revenue&quot;:1543000.0,&quot;Total Revenue&quot;:1947000.0,&quot;Operating Revenue&quot;:1947000.0,&quot;Ordinary Shares Number&quot;:325307895.0,&quot;Share Issued&quot;:325307895.0,&quot;Total Debt&quot;:7597000.0,&quot;Tangible Book Value&quot;:371826000.0,&quot;Invested Capital&quot;:371826000.0,&quot;Working Capital&quot;:444660000.0,&quot;Net Tangible Assets&quot;:371826000.0,&quot;Capital Lease Obligations&quot;:7597000.0,&quot;Common Stock Equity&quot;:371826000.0,&quot;Total Capitalization&quot;:371826000.0,&quot;Total Equity Gross Minority Interest&quot;:371826000.0,&quot;Stockholders Equity&quot;:371826000.0,&quot;Gains Losses Not Affecting Retained Earnings&quot;:690000.0,&quot;Other Equity Adjustments&quot;:690000.0,&quot;Retained Earnings&quot;:-752750000.0,&quot;Additional Paid In Capital&quot;:1123853000.0,&quot;Capital Stock&quot;:33000.0,&quot;Common Stock&quot;:33000.0,&quot;Preferred Stock&quot;:0.0,&quot;Total Liabilities Net Minority Interest&quot;:258448000.0,&quot;Total Non Current Liabilities Net Minority Interest&quot;:246814000.0,&quot;Other Non Current Liabilities&quot;:NaN,&quot;Derivative Product Liabilities&quot;:240737000.0,&quot;Non Current Deferred Liabilities&quot;:698000.0,&quot;Non Current Deferred Revenue&quot;:698000.0,&quot;Long Term Debt And Capital Lease Obligation&quot;:5379000.0,&quot;Long Term Capital Lease Obligation&quot;:5379000.0,&quot;Long Term Debt&quot;:NaN,&quot;Current Liabilities&quot;:11634000.0,&quot;Other Current Liabilities&quot;:NaN,&quot;Current Deferred Liabilities&quot;:0.0,&quot;Current Deferred Revenue&quot;:0.0,&quot;Current Debt And Capital Lease Obligation&quot;:2218000.0,&quot;Current Capital Lease Obligation&quot;:2218000.0,&quot;Current Debt&quot;:NaN,&quot;Other Current Borrowings&quot;:NaN,&quot;Payables And Accrued Expenses&quot;:9416000.0,&quot;Current Accrued Expenses&quot;:6137000.0,&quot;Interest Payable&quot;:NaN,&quot;Payables&quot;:3279000.0,&quot;Total Tax Payable&quot;:NaN,&quot;Accounts Payable&quot;:3279000.0,&quot;Total Assets&quot;:630274000.0,&quot;Total Non Current Assets&quot;:173980000.0,&quot;Other Non Current Assets&quot;:1142000.0,&quot;Investments And Advances&quot;:111955000.0,&quot;Investmentin Financial Assets&quot;:111955000.0,&quot;Available For Sale Securities&quot;:111955000.0,&quot;Net PPE&quot;:60883000.0,&quot;Accumulated Depreciation&quot;:NaN,&quot;Gross PPE&quot;:60883000.0,&quot;Leases&quot;:NaN,&quot;Construction In Progress&quot;:NaN,&quot;Other Properties&quot;:60883000.0,&quot;Machinery Furniture Equipment&quot;:NaN,&quot;Properties&quot;:NaN,&quot;Current Assets&quot;:456294000.0,&quot;Other Current Assets&quot;:3376000.0,&quot;Prepaid Assets&quot;:3658000.0,&quot;Receivables&quot;:2277000.0,&quot;Accounts Receivable&quot;:2277000.0,&quot;Cash Cash Equivalents And Short Term Investments&quot;:446983000.0,&quot;Other Short Term Investments&quot;:420850000.0,&quot;Cash And Cash Equivalents&quot;:26133000.0,&quot;Free Cash Flow&quot;:-19711000.0,&quot;Repayment Of Debt&quot;:0.0,&quot;Issuance Of Capital Stock&quot;:0.0,&quot;Capital Expenditure&quot;:-5889000.0,&quot;Interest Paid Supplemental Data&quot;:0.0,&quot;End Cash Position&quot;:26133000.0,&quot;Beginning Cash Position&quot;:57183000.0,&quot;Effect Of Exchange Rate Changes&quot;:-69000.0,&quot;Changes In Cash&quot;:-30981000.0,&quot;Financing Cash Flow&quot;:2817000.0,&quot;Cash Flow From Continuing Financing Activities&quot;:2817000.0,&quot;Net Other Financing Charges&quot;:-90000.0,&quot;Proceeds From Stock Option Exercised&quot;:2907000.0,&quot;Net Common Stock Issuance&quot;:0.0,&quot;Common Stock Issuance&quot;:0.0,&quot;Net Issuance Payments Of Debt&quot;:0.0,&quot;Net Long Term Debt Issuance&quot;:0.0,&quot;Long Term Debt Payments&quot;:0.0,&quot;Investing Cash Flow&quot;:-19976000.0,&quot;Cash Flow From Continuing Investing Activities&quot;:-19976000.0,&quot;Net Investment Purchase And Sale&quot;:-14087000.0,&quot;Sale Of Investment&quot;:70000000.0,&quot;Purchase Of Investment&quot;:-84087000.0,&quot;Net PPE Purchase And Sale&quot;:-5889000.0,&quot;Purchase Of PPE&quot;:-5889000.0,&quot;Operating Cash Flow&quot;:-13822000.0,&quot;Cash Flow From Continuing Operating Activities&quot;:-13822000.0,&quot;Change In Working Capital&quot;:-2014000.0,&quot;Change In Other Working Capital&quot;:-118000.0,&quot;Change In Payables And Accrued Expense&quot;:-313000.0,&quot;Change In Accrued Expense&quot;:-313000.0,&quot;Change In Prepaid Assets&quot;:-1010000.0,&quot;Change In Receivables&quot;:-573000.0,&quot;Changes In Account Receivables&quot;:-573000.0,&quot;Other Non Cash Items&quot;:4461000.0,&quot;Stock Based Compensation&quot;:4299000.0,&quot;Asset Impairment Charge&quot;:NaN,&quot;Amortization Of Securities&quot;:-3629000.0,&quot;Depreciation Amortization Depletion&quot;:2074000.0,&quot;Depreciation And Amortization&quot;:2074000.0,&quot;Operating Gains Losses&quot;:181955000.0,&quot;Gain Loss On Investment Securities&quot;:181955000.0,&quot;Net Income From Continuing Operations&quot;:-200968000.0,&quot;EPS&quot;:-6089.939393939394,&quot;Operating_Income&quot;:-20549000.0,&quot;Gross_Profit&quot;:404000.0,&quot;Total_Assets&quot;:630274000.0,&quot;Total_Liabilities&quot;:null,&quot;Shareholder_Equity&quot;:null,&quot;Free_Cash_Flow&quot;:-19711000.0,&quot;Return_on_Equity&quot;:null,&quot;Return_on_Assets&quot;:-0.3188581474089047,&quot;Current_Ratio&quot;:null,&quot;Quick_Ratio&quot;:null,&quot;Debt_to_Equity&quot;:null,&quot;Interest_Coverage&quot;:null,&quot;Book_Value_Per_Share&quot;:null,&quot;Gross_Margin&quot;:0.20749871597329225,&quot;Operating_Margin&quot;:-10.554185927067284,&quot;Net_Margin&quot;:-103.21931176168464,&quot;Dividend_Payout_Ratio&quot;:null,&quot;Effective_Tax_Rate&quot;:null,&quot;Capital_Expenditures&quot;:null,&quot;Inventory_Turnover&quot;:null,&quot;Receivables_Turnover&quot;:null,&quot;Revenue_Growth_QoQ&quot;:0.08106607440310938,&quot;Net_Income_Growth_QoQ&quot;:4.068038533313159},{&quot;index&quot;:&quot;2025-06-30T00:00:00&quot;,&quot;Tax Effect Of Unusual Items&quot;:0.0,&quot;Tax Rate For Calcs&quot;:0.0,&quot;Normalized EBITDA&quot;:-14946000.0,&quot;Total Unusual Items&quot;:-22814000.0,&quot;Total Unusual Items Excluding Goodwill&quot;:-22814000.0,&quot;Net Income From Continuing Operation Net Minority Interest&quot;:-39654000.0,&quot;Reconciled Depreciation&quot;:1894000.0,&quot;Reconciled Cost Of Revenue&quot;:1235000.0,&quot;EBITDA&quot;:-37760000.0,&quot;EBIT&quot;:-39654000.0,&quot;Net Interest Income&quot;:3042000.0,&quot;Interest Expense&quot;:0.0,&quot;Interest Income&quot;:3042000.0,&quot;Normalized Income&quot;:-16840000.0,&quot;Net Income From Continuing And Discontinued Operation&quot;:-39654000.0,&quot;Total Expenses&quot;:21683000.0,&quot;Total Operating Income As Reported&quot;:-19882000.0,&quot;Diluted Average Shares&quot;:298254000.0,&quot;Basic Average Shares&quot;:298254000.0,&quot;Diluted EPS&quot;:-0.13,&quot;Basic EPS&quot;:-0.13,&quot;Diluted NI Availto Com Stockholders&quot;:-39654000.0,&quot;Average Dilution Earnings&quot;:0.0,&quot;Net Income Common Stockholders&quot;:-39654000.0,&quot;Net Income&quot;:-39654000.0,&quot;Net Income Including Noncontrolling Interests&quot;:-39654000.0,&quot;Net Income Continuous Operations&quot;:-39654000.0,&quot;Tax Provision&quot;:0.0,&quot;Pretax Income&quot;:-39654000.0,&quot;Other Income Expense&quot;:-22814000.0,&quot;Special Income Charges&quot;:-2257000.0,&quot;Restructuring And Mergern Acquisition&quot;:2257000.0,&quot;Gain On Sale Of Security&quot;:-20557000.0,&quot;Net Non Operating Interest Income Expense&quot;:3042000.0,&quot;Interest Expense Non Operating&quot;:0.0,&quot;Interest Income Non Operating&quot;:3042000.0,&quot;Operating Income&quot;:-19882000.0,&quot;Operating Expense&quot;:20448000.0,&quot;Research And Development&quot;:13522000.0,&quot;Selling General And Administration&quot;:6926000.0,&quot;Gross Profit&quot;:566000.0,&quot;Cost Of Revenue&quot;:1235000.0,&quot;Total Revenue&quot;:1801000.0,&quot;Operating Revenue&quot;:1801000.0,&quot;Ordinary Shares Number&quot;:323762157.0,&quot;Share Issued&quot;:323762157.0,&quot;Total Debt&quot;:8010000.0,&quot;Tangible Book Value&quot;:553263000.0,&quot;Invested Capital&quot;:553263000.0,&quot;Working Capital&quot;:423149000.0,&quot;Net Tangible Assets&quot;:553263000.0,&quot;Capital Lease Obligations&quot;:8010000.0,&quot;Common Stock Equity&quot;:553263000.0,&quot;Total Capitalization&quot;:553263000.0,&quot;Total Equity Gross Minority Interest&quot;:553263000.0,&quot;Stockholders Equity&quot;:553263000.0,&quot;Gains Losses Not Affecting Retained Earnings&quot;:133000.0,&quot;Other Equity Adjustments&quot;:133000.0,&quot;Retained Earnings&quot;:-551782000.0,&quot;Additional Paid In Capital&quot;:1104880000.0,&quot;Capital Stock&quot;:32000.0,&quot;Common Stock&quot;:32000.0,&quot;Preferred Stock&quot;:0.0,&quot;Total Liabilities Net Minority Interest&quot;:83427000.0,&quot;Total Non Current Liabilities Net Minority Interest&quot;:72997000.0,&quot;Other Non Current Liabilities&quot;:6371000.0,&quot;Derivative Product Liabilities&quot;:60116000.0,&quot;Non Current Deferred Liabilities&quot;:698000.0,&quot;Non Current Deferred Revenue&quot;:698000.0,&quot;Long Term Debt And Capital Lease Obligation&quot;:5812000.0,&quot;Long Term Capital Lease Obligation&quot;:5812000.0,&quot;Long Term Debt&quot;:NaN,&quot;Current Liabilities&quot;:10430000.0,&quot;Other Current Liabilities&quot;:NaN,&quot;Current Deferred Liabilities&quot;:118000.0,&quot;Current Deferred Revenue&quot;:118000.0,&quot;Current Debt And Capital Lease Obligation&quot;:2198000.0,&quot;Current Capital Lease Obligation&quot;:2198000.0,&quot;Current Debt&quot;:NaN,&quot;Other Current Borrowings&quot;:NaN,&quot;Payables And Accrued Expenses&quot;:8114000.0,&quot;Current Accrued Expenses&quot;:5955000.0,&quot;Interest Payable&quot;:NaN,&quot;Payables&quot;:2159000.0,&quot;Total Tax Payable&quot;:NaN,&quot;Accounts Payable&quot;:2159000.0,&quot;Total Assets&quot;:636690000.0,&quot;Total Non Current Assets&quot;:203111000.0,&quot;Other Non Current Assets&quot;:1122000.0,&quot;Investments And Advances&quot;:145903000.0,&quot;Investmentin Financial Assets&quot;:145903000.0,&quot;Available For Sale Securities&quot;:145903000.0,&quot;Net PPE&quot;:56086000.0,&quot;Accumulated Depreciation&quot;:NaN,&quot;Gross PPE&quot;:56086000.0,&quot;Leases&quot;:NaN,&quot;Construction In Progress&quot;:NaN,&quot;Other Properties&quot;:56086000.0,&quot;Machinery Furniture Equipment&quot;:NaN,&quot;Properties&quot;:NaN,&quot;Current Assets&quot;:433579000.0,&quot;Other Current Assets&quot;:3031000.0,&quot;Prepaid Assets&quot;:3056000.0,&quot;Receivables&quot;:1753000.0,&quot;Accounts Receivable&quot;:1753000.0,&quot;Cash Cash Equivalents And Short Term Investments&quot;:425739000.0,&quot;Other Short Term Investments&quot;:368556000.0,&quot;Cash And Cash Equivalents&quot;:57183000.0,&quot;Free Cash Flow&quot;:-21836000.0,&quot;Repayment Of Debt&quot;:0.0,&quot;Issuance Of Capital Stock&quot;:381719000.0,&quot;Capital Expenditure&quot;:-5667000.0,&quot;Interest Paid Supplemental Data&quot;:0.0,&quot;End Cash Position&quot;:57183000.0,&quot;Beginning Cash Position&quot;:37162000.0,&quot;Effect Of Exchange Rate Changes&quot;:153000.0,&quot;Changes In Cash&quot;:19868000.0,&quot;Financing Cash Flow&quot;:382160000.0,&quot;Cash Flow From Continuing Financing Activities&quot;:382160000.0,&quot;Net Other Financing Charges&quot;:-725000.0,&quot;Proceeds From Stock Option Exercised&quot;:1166000.0,&quot;Net Common Stock Issuance&quot;:381719000.0,&quot;Common Stock Issuance&quot;:381719000.0,&quot;Net Issuance Payments Of Debt&quot;:0.0,&quot;Net Long Term Debt Issuance&quot;:0.0,&quot;Long Term Debt Payments&quot;:0.0,&quot;Investing Cash Flow&quot;:-346123000.0,&quot;Cash Flow From Continuing Investing Activities&quot;:-346123000.0,&quot;Net Investment Purchase And Sale&quot;:-340456000.0,&quot;Sale Of Investment&quot;:54000000.0,&quot;Purchase Of Investment&quot;:-394456000.0,&quot;Net PPE Purchase And Sale&quot;:-5667000.0,&quot;Purchase Of PPE&quot;:-5667000.0,&quot;Operating Cash Flow&quot;:-16169000.0,&quot;Cash Flow From Continuing Operating Activities&quot;:-16169000.0,&quot;Change In Working Capital&quot;:-3196000.0,&quot;Change In Other Working Capital&quot;:-29000.0,&quot;Change In Payables And Accrued Expense&quot;:-138000.0,&quot;Change In Accrued Expense&quot;:-138000.0,&quot;Change In Prepaid Assets&quot;:-2215000.0,&quot;Change In Receivables&quot;:-814000.0,&quot;Changes In Account Receivables&quot;:-814000.0,&quot;Other Non Cash Items&quot;:2649000.0,&quot;Stock Based Compensation&quot;:3554000.0,&quot;Asset Impairment Charge&quot;:NaN,&quot;Amortization Of Securities&quot;:-1973000.0,&quot;Depreciation Amortization Depletion&quot;:1894000.0,&quot;Depreciation And Amortization&quot;:1894000.0,&quot;Operating Gains Losses&quot;:20557000.0,&quot;Gain Loss On Investment Securities&quot;:20557000.0,&quot;Net Income From Continuing Operations&quot;:-39654000.0,&quot;EPS&quot;:-1239.1875,&quot;Operating_Income&quot;:-19882000.0,&quot;Gross_Profit&quot;:566000.0,&quot;Total_Assets&quot;:636690000.0,&quot;Total_Liabilities&quot;:null,&quot;Shareholder_Equity&quot;:null,&quot;Free_Cash_Flow&quot;:-21836000.0,&quot;Return_on_Equity&quot;:null,&quot;Return_on_Assets&quot;:-0.06228148706591905,&quot;Current_Ratio&quot;:null,&quot;Quick_Ratio&quot;:null,&quot;Debt_to_Equity&quot;:null,&quot;Interest_Coverage&quot;:null,&quot;Book_Value_Per_Share&quot;:null,&quot;Gross_Margin&quot;:0.31426985008328706,&quot;Operating_Margin&quot;:-11.03942254303165,&quot;Net_Margin&quot;:-22.01776790671849,&quot;Dividend_Payout_Ratio&quot;:null,&quot;Effective_Tax_Rate&quot;:null,&quot;Capital_Expenditures&quot;:null,&quot;Inventory_Turnover&quot;:null,&quot;Receivables_Turnover&quot;:null,&quot;Revenue_Growth_QoQ&quot;:0.2235054347826087,&quot;Net_Income_Growth_QoQ&quot;:-1.9304300898660223},{&quot;index&quot;:&quot;2025-03-31T00:00:00&quot;,&quot;Tax Effect Of Unusual Items&quot;:0.0,&quot;Tax Rate For Calcs&quot;:0.0,&quot;Normalized EBITDA&quot;:-17651000.0,&quot;Total Unusual Items&quot;:62099000.0,&quot;Total Unusual Items Excluding Goodwill&quot;:62099000.0,&quot;Net Income From Continuing Operation Net Minority Interest&quot;:42619000.0,&quot;Reconciled Depreciation&quot;:1829000.0,&quot;Reconciled Cost Of Revenue&quot;:1030000.0,&quot;EBITDA&quot;:44448000.0,&quot;EBIT&quot;:42619000.0,&quot;Net Interest Income&quot;:2152000.0,&quot;Interest Expense&quot;:0.0,&quot;Interest Income&quot;:2152000.0,&quot;Normalized Income&quot;:-19480000.0,&quot;Net Income From Continuing And Discontinued Operation&quot;:42619000.0,&quot;Total Expenses&quot;:23104000.0,&quot;Total Operating Income As Reported&quot;:-21632000.0,&quot;Diluted Average Shares&quot;:301595000.0,&quot;Basic Average Shares&quot;:284698000.0,&quot;Diluted EPS&quot;:0.15,&quot;Basic EPS&quot;:0.15,&quot;Diluted NI Availto Com Stockholders&quot;:42619000.0,&quot;Average Dilution Earnings&quot;:NaN,&quot;Net Income Common Stockholders&quot;:42619000.0,&quot;Net Income&quot;:42619000.0,&quot;Net Income Including Noncontrolling Interests&quot;:42619000.0,&quot;Net Income Continuous Operations&quot;:42619000.0,&quot;Tax Provision&quot;:0.0,&quot;Pretax Income&quot;:42619000.0,&quot;Other Income Expense&quot;:62099000.0,&quot;Special Income Charges&quot;:8837000.0,&quot;Restructuring And Mergern Acquisition&quot;:-8837000.0,&quot;Gain On Sale Of Security&quot;:53262000.0,&quot;Net Non Operating Interest Income Expense&quot;:2152000.0,&quot;Interest Expense Non Operating&quot;:0.0,&quot;Interest Income Non Operating&quot;:2152000.0,&quot;Operating Income&quot;:-21632000.0,&quot;Operating Expense&quot;:22074000.0,&quot;Research And Development&quot;:15455000.0,&quot;Selling General And Administration&quot;:6619000.0,&quot;Gross Profit&quot;:442000.0,&quot;Cost Of Revenue&quot;:1030000.0,&quot;Total Revenue&quot;:1472000.0,&quot;Operating Revenue&quot;:1472000.0,&quot;Ordinary Shares Number&quot;:286974947.0,&quot;Share Issued&quot;:286974947.0,&quot;Total Debt&quot;:8409000.0,&quot;Tangible Book Value&quot;:207128000.0,&quot;Invested Capital&quot;:207128000.0,&quot;Working Capital&quot;:202969000.0,&quot;Net Tangible Assets&quot;:207128000.0,&quot;Capital Lease Obligations&quot;:8409000.0,&quot;Common Stock Equity&quot;:207128000.0,&quot;Total Capitalization&quot;:207128000.0,&quot;Total Equity Gross Minority Interest&quot;:207128000.0,&quot;Stockholders Equity&quot;:207128000.0,&quot;Gains Losses Not Affecting Retained Earnings&quot;:-88000.0,&quot;Other Equity Adjustments&quot;:-88000.0,&quot;Retained Earnings&quot;:-512128000.0,&quot;Additional Paid In Capital&quot;:719315000.0,&quot;Capital Stock&quot;:29000.0,&quot;Common Stock&quot;:29000.0,&quot;Preferred Stock&quot;:0.0,&quot;Total Liabilities Net Minority Interest&quot;:62010000.0,&quot;Total Non Current Liabilities Net Minority Interest&quot;:50618000.0,&quot;Other Non Current Liabilities&quot;:4114000.0,&quot;Derivative Product Liabilities&quot;:39576000.0,&quot;Non Current Deferred Liabilities&quot;:698000.0,&quot;Non Current Deferred Revenue&quot;:698000.0,&quot;Long Term Debt And Capital Lease Obligation&quot;:6230000.0,&quot;Long Term Capital Lease Obligation&quot;:6230000.0,&quot;Long Term Debt&quot;:NaN,&quot;Current Liabilities&quot;:11392000.0,&quot;Other Current Liabilities&quot;:NaN,&quot;Current Deferred Liabilities&quot;:147000.0,&quot;Current Deferred Revenue&quot;:147000.0,&quot;Current Debt And Capital Lease Obligation&quot;:2179000.0,&quot;Current Capital Lease Obligation&quot;:2179000.0,&quot;Current Debt&quot;:NaN,&quot;Other Current Borrowings&quot;:NaN,&quot;Payables And Accrued Expenses&quot;:9066000.0,&quot;Current Accrued Expenses&quot;:5665000.0,&quot;Interest Payable&quot;:NaN,&quot;Payables&quot;:3401000.0,&quot;Total Tax Payable&quot;:NaN,&quot;Accounts Payable&quot;:3401000.0,&quot;Total Assets&quot;:269138000.0,&quot;Total Non Current Assets&quot;:54777000.0,&quot;Other Non Current Assets&quot;:1068000.0,&quot;Investments And Advances&quot;:0.0,&quot;Investmentin Financial Assets&quot;:0.0,&quot;Available For Sale Securities&quot;:NaN,&quot;Net PPE&quot;:53709000.0,&quot;Accumulated Depreciation&quot;:NaN,&quot;Gross PPE&quot;:53709000.0,&quot;Leases&quot;:NaN,&quot;Construction In Progress&quot;:NaN,&quot;Other Properties&quot;:53709000.0,&quot;Machinery Furniture Equipment&quot;:NaN,&quot;Properties&quot;:NaN,&quot;Current Assets&quot;:214361000.0,&quot;Other Current Assets&quot;:2041000.0,&quot;Prepaid Assets&quot;:2124000.0,&quot;Receivables&quot;:1068000.0,&quot;Accounts Receivable&quot;:1068000.0,&quot;Cash Cash Equivalents And Short Term Investments&quot;:209128000.0,&quot;Other Short Term Investments&quot;:171966000.0,&quot;Cash And Cash Equivalents&quot;:37162000.0,&quot;Free Cash Flow&quot;:-16198000.0,&quot;Repayment Of Debt&quot;:0.0,&quot;Issuance Of Capital Stock&quot;:0.0,&quot;Capital Expenditure&quot;:-2547000.0,&quot;Interest Paid Supplemental Data&quot;:0.0,&quot;End Cash Position&quot;:37162000.0,&quot;Beginning Cash Position&quot;:67674000.0,&quot;Effect Of Exchange Rate Changes&quot;:-187000.0,&quot;Changes In Cash&quot;:-30325000.0,&quot;Financing Cash Flow&quot;:6935000.0,&quot;Cash Flow From Continuing Financing Activities&quot;:6935000.0,&quot;Net Other Financing Charges&quot;:6199000.0,&quot;Proceeds From Stock Option Exercised&quot;:736000.0,&quot;Net Common Stock Issuance&quot;:0.0,&quot;Common Stock Issuance&quot;:0.0,&quot;Net Issuance Payments Of Debt&quot;:0.0,&quot;Net Long Term Debt Issuance&quot;:0.0,&quot;Long Term Debt Payments&quot;:0.0,&quot;Investing Cash Flow&quot;:-23609000.0,&quot;Cash Flow From Continuing Investing Activities&quot;:-23609000.0,&quot;Net Investment Purchase And Sale&quot;:-21062000.0,&quot;Sale Of Investment&quot;:23000000.0,&quot;Purchase Of Investment&quot;:-44062000.0,&quot;Net PPE Purchase And Sale&quot;:-2547000.0,&quot;Purchase Of PPE&quot;:-2547000.0,&quot;Operating Cash Flow&quot;:-13651000.0,&quot;Cash Flow From Continuing Operating Activities&quot;:-13651000.0,&quot;Change In Working Capital&quot;:865000.0,&quot;Change In Other Working Capital&quot;:34000.0,&quot;Change In Payables And Accrued Expense&quot;:-2654000.0,&quot;Change In Accrued Expense&quot;:-2654000.0,&quot;Change In Prepaid Assets&quot;:1379000.0,&quot;Change In Receivables&quot;:2106000.0,&quot;Changes In Account Receivables&quot;:2106000.0,&quot;Other Non Cash Items&quot;:-8453000.0,&quot;Stock Based Compensation&quot;:4174000.0,&quot;Asset Impairment Charge&quot;:NaN,&quot;Amortization Of Securities&quot;:-1423000.0,&quot;Depreciation Amortization Depletion&quot;:1829000.0,&quot;Depreciation And Amortization&quot;:1829000.0,&quot;Operating Gains Losses&quot;:-53262000.0,&quot;Gain Loss On Investment Securities&quot;:-53262000.0,&quot;Net Income From Continuing Operations&quot;:42619000.0,&quot;EPS&quot;:1469.6206896551723,&quot;Operating_Income&quot;:-21632000.0,&quot;Gross_Profit&quot;:442000.0,&quot;Total_Assets&quot;:269138000.0,&quot;Total_Liabilities&quot;:null,&quot;Shareholder_Equity&quot;:null,&quot;Free_Cash_Flow&quot;:-16198000.0,&quot;Return_on_Equity&quot;:null,&quot;Return_on_Assets&quot;:0.1583537070201904,&quot;Current_Ratio&quot;:null,&quot;Quick_Ratio&quot;:null,&quot;Debt_to_Equity&quot;:null,&quot;Interest_Coverage&quot;:null,&quot;Book_Value_Per_Share&quot;:null,&quot;Gross_Margin&quot;:0.30027173913043476,&quot;Operating_Margin&quot;:-14.695652173913043,&quot;Net_Margin&quot;:28.953125,&quot;Dividend_Payout_Ratio&quot;:null,&quot;Effective_Tax_Rate&quot;:null,&quot;Capital_Expenditures&quot;:null,&quot;Inventory_Turnover&quot;:null,&quot;Receivables_Turnover&quot;:null,&quot;Revenue_Growth_QoQ&quot;:-0.3526824978012313,&quot;Net_Income_Growth_QoQ&quot;:-1.2786265780166186},{&quot;index&quot;:&quot;2024-12-31T00:00:00&quot;,&quot;Tax Effect Of Unusual Items&quot;:0.0,&quot;Tax Rate For Calcs&quot;:0.0,&quot;Normalized EBITDA&quot;:-15197000.0,&quot;Total Unusual Items&quot;:-135567000.0,&quot;Total Unusual Items Excluding Goodwill&quot;:-135567000.0,&quot;Net Income From Continuing Operation Net Minority Interest&quot;:-152961000.0,&quot;Reconciled Depreciation&quot;:1751000.0,&quot;Reconciled Cost Of Revenue&quot;:1271000.0,&quot;EBITDA&quot;:-150764000.0,&quot;EBIT&quot;:-152515000.0,&quot;Net Interest Income&quot;:1100000.0,&quot;Interest Expense&quot;:446000.0,&quot;Interest Income&quot;:1546000.0,&quot;Normalized Income&quot;:-17394000.0,&quot;Net Income From Continuing And Discontinued Operation&quot;:-152961000.0,&quot;Total Expenses&quot;:20768000.0,&quot;Total Operating Income As Reported&quot;:-18494000.0,&quot;Diluted Average Shares&quot;:226364000.0,&quot;Basic Average Shares&quot;:226364000.0,&quot;Diluted EPS&quot;:-0.68,&quot;Basic EPS&quot;:-0.68,&quot;Diluted NI Availto Com Stockholders&quot;:-152961000.0,&quot;Average Dilution Earnings&quot;:NaN,&quot;Net Income Common Stockholders&quot;:-152961000.0,&quot;Net Income&quot;:-152961000.0,&quot;Net Income Including Noncontrolling Interests&quot;:-152961000.0,&quot;Net Income Continuous Operations&quot;:-152961000.0,&quot;Tax Provision&quot;:0.0,&quot;Pretax Income&quot;:-152961000.0,&quot;Other Income Expense&quot;:-135567000.0,&quot;Special Income Charges&quot;:-44682000.0,&quot;Restructuring And Mergern Acquisition&quot;:44256000.0,&quot;Gain On Sale Of Security&quot;:-90885000.0,&quot;Net Non Operating Interest Income Expense&quot;:1100000.0,&quot;Interest Expense Non Operating&quot;:446000.0,&quot;Interest Income Non Operating&quot;:1546000.0,&quot;Operating Income&quot;:-18494000.0,&quot;Operating Expense&quot;:19497000.0,&quot;Research And Development&quot;:13657000.0,&quot;Selling General And Administration&quot;:5840000.0,&quot;Gross Profit&quot;:1003000.0,&quot;Cost Of Revenue&quot;:1271000.0,&quot;Total Revenue&quot;:2274000.0,&quot;Operating Revenue&quot;:2274000.0,&quot;Ordinary Shares Number&quot;:283546871.0,&quot;Share Issued&quot;:283546871.0,&quot;Total Debt&quot;:8800000.0,&quot;Tangible Book Value&quot;:126589000.0,&quot;Invested Capital&quot;:126589000.0,&quot;Working Capital&quot;:194891000.0,&quot;Net Tangible Assets&quot;:126589000.0,&quot;Capital Lease Obligations&quot;:8800000.0,&quot;Common Stock Equity&quot;:126589000.0,&quot;Total Capitalization&quot;:126589000.0,&quot;Total Equity Gross Minority Interest&quot;:126589000.0,&quot;Stockholders Equity&quot;:126589000.0,&quot;Gains Losses Not Affecting Retained Earnings&quot;:105000.0,&quot;Other Equity Adjustments&quot;:105000.0,&quot;Retained Earnings&quot;:-554747000.0,&quot;Additional Paid In Capital&quot;:681202000.0,&quot;Capital Stock&quot;:29000.0,&quot;Common Stock&quot;:29000.0,&quot;Preferred Stock&quot;:0.0,&quot;Total Liabilities Net Minority Interest&quot;:158198000.0,&quot;Total Non Current Liabilities Net Minority Interest&quot;:146331000.0,&quot;Other Non Current Liabilities&quot;:45897000.0,&quot;Derivative Product Liabilities&quot;:93095000.0,&quot;Non Current Deferred Liabilities&quot;:698000.0,&quot;Non Current Deferred Revenue&quot;:698000.0,&quot;Long Term Debt And Capital Lease Obligation&quot;:6641000.0,&quot;Long Term Capital Lease Obligation&quot;:6641000.0,&quot;Long Term Debt&quot;:NaN,&quot;Current Liabilities&quot;:11867000.0,&quot;Other Current Liabilities&quot;:623000.0,&quot;Current Deferred Liabilities&quot;:113000.0,&quot;Current Deferred Revenue&quot;:113000.0,&quot;Current Debt And Capital Lease Obligation&quot;:2159000.0,&quot;Current Capital Lease Obligation&quot;:2159000.0,&quot;Current Debt&quot;:NaN,&quot;Other Current Borrowings&quot;:NaN,&quot;Payables And Accrued Expenses&quot;:8972000.0,&quot;Current Accrued Expenses&quot;:6991000.0,&quot;Interest Payable&quot;:0.0,&quot;Payables&quot;:1981000.0,&quot;Total Tax Payable&quot;:391000.0,&quot;Accounts Payable&quot;:1590000.0,&quot;Total Assets&quot;:284787000.0,&quot;Total Non Current Assets&quot;:78029000.0,&quot;Other Non Current Assets&quot;:325000.0,&quot;Investments And Advances&quot;:25068000.0,&quot;Investmentin Financial Assets&quot;:25068000.0,&quot;Available For Sale Securities&quot;:25068000.0,&quot;Net PPE&quot;:52636000.0,&quot;Accumulated Depreciation&quot;:-40309000.0,&quot;Gross PPE&quot;:92945000.0,&quot;Leases&quot;:8868000.0,&quot;Construction In Progress&quot;:1339000.0,&quot;Other Properties&quot;:78080000.0,&quot;Machinery Furniture Equipment&quot;:4658000.0,&quot;Properties&quot;:0.0,&quot;Current Assets&quot;:206758000.0,&quot;Other Current Assets&quot;:9081000.0,&quot;Prepaid Assets&quot;:3156000.0,&quot;Receivables&quot;:2427000.0,&quot;Accounts Receivable&quot;:2427000.0,&quot;Cash Cash Equivalents And Short Term Investments&quot;:192094000.0,&quot;Other Short Term Investments&quot;:124420000.0,&quot;Cash And Cash Equivalents&quot;:67674000.0,&quot;Free Cash Flow&quot;:-9826000.0,&quot;Repayment Of Debt&quot;:-13837000.0,&quot;Issuance Of Capital Stock&quot;:154669000.0,&quot;Capital Expenditure&quot;:-1282000.0,&quot;Interest Paid Supplemental Data&quot;:293000.0,&quot;End Cash Position&quot;:67674000.0,&quot;Beginning Cash Position&quot;:20286000.0,&quot;Effect Of Exchange Rate Changes&quot;:-148000.0,&quot;Changes In Cash&quot;:47536000.0,&quot;Financing Cash Flow&quot;:133674000.0,&quot;Cash Flow From Continuing Financing Activities&quot;:133674000.0,&quot;Net Other Financing Charges&quot;:-7629000.0,&quot;Proceeds From Stock Option Exercised&quot;:471000.0,&quot;Net Common Stock Issuance&quot;:154669000.0,&quot;Common Stock Issuance&quot;:154669000.0,&quot;Net Issuance Payments Of Debt&quot;:-13837000.0,&quot;Net Long Term Debt Issuance&quot;:-13837000.0,&quot;Long Term Debt Payments&quot;:-13837000.0,&quot;Investing Cash Flow&quot;:-77594000.0,&quot;Cash Flow From Continuing Investing Activities&quot;:-77594000.0,&quot;Net Investment Purchase And Sale&quot;:-76312000.0,&quot;Sale Of Investment&quot;:50001000.0,&quot;Purchase Of Investment&quot;:-126313000.0,&quot;Net PPE Purchase And Sale&quot;:-1282000.0,&quot;Purchase Of PPE&quot;:-1282000.0,&quot;Operating Cash Flow&quot;:-8544000.0,&quot;Cash Flow From Continuing Operating Activities&quot;:-8544000.0,&quot;Change In Working Capital&quot;:4126000.0,&quot;Change In Other Working Capital&quot;:-75000.0,&quot;Change In Payables And Accrued Expense&quot;:951000.0,&quot;Change In Accrued Expense&quot;:951000.0,&quot;Change In Prepaid Assets&quot;:-479000.0,&quot;Change In Receivables&quot;:3729000.0,&quot;Changes In Account Receivables&quot;:3729000.0,&quot;Other Non Cash Items&quot;:44735000.0,&quot;Stock Based Compensation&quot;:3364000.0,&quot;Asset Impairment Charge&quot;:0.0,&quot;Amortization Of Securities&quot;:-870000.0,&quot;Depreciation Amortization Depletion&quot;:1751000.0,&quot;Depreciation And Amortization&quot;:1751000.0,&quot;Operating Gains Losses&quot;:91311000.0,&quot;Gain Loss On Investment Securities&quot;:90885000.0,&quot;Net Income From Continuing Operations&quot;:-152961000.0,&quot;EPS&quot;:-5274.517241379311,&quot;Operating_Income&quot;:-18494000.0,&quot;Gross_Profit&quot;:1003000.0,&quot;Total_Assets&quot;:284787000.0,&quot;Total_Liabilities&quot;:null,&quot;Shareholder_Equity&quot;:null,&quot;Free_Cash_Flow&quot;:-9826000.0,&quot;Return_on_Equity&quot;:null,&quot;Return_on_Assets&quot;:-0.5371066797290607,&quot;Current_Ratio&quot;:null,&quot;Quick_Ratio&quot;:null,&quot;Debt_to_Equity&quot;:null,&quot;Interest_Coverage&quot;:-41.46636771300449,&quot;Book_Value_Per_Share&quot;:null,&quot;Gross_Margin&quot;:0.4410729991204925,&quot;Operating_Margin&quot;:-8.132805628847846,&quot;Net_Margin&quot;:-67.26517150395779,&quot;Dividend_Payout_Ratio&quot;:null,&quot;Effective_Tax_Rate&quot;:null,&quot;Capital_Expenditures&quot;:null,&quot;Inventory_Turnover&quot;:null,&quot;Receivables_Turnover&quot;:null,&quot;Revenue_Growth_QoQ&quot;:-0.04373423044575273,&quot;Net_Income_Growth_QoQ&quot;:9.312209263129509},{&quot;index&quot;:&quot;2024-09-30T00:00:00&quot;,&quot;Tax Effect Of Unusual Items&quot;:0.0,&quot;Tax Rate For Calcs&quot;:0.0,&quot;Normalized EBITDA&quot;:-14299000.0,&quot;Total Unusual Items&quot;:2020000.0,&quot;Total Unusual Items Excluding Goodwill&quot;:2020000.0,&quot;Net Income From Continuing Operation Net Minority Interest&quot;:-14833000.0,&quot;Reconciled Depreciation&quot;:1821000.0,&quot;Reconciled Cost Of Revenue&quot;:1174000.0,&quot;EBITDA&quot;:-12279000.0,&quot;EBIT&quot;:-14100000.0,&quot;Net Interest Income&quot;:493000.0,&quot;Interest Expense&quot;:733000.0,&quot;Interest Income&quot;:1226000.0,&quot;Normalized Income&quot;:-16853000.0,&quot;Net Income From Continuing And Discontinued Operation&quot;:-14833000.0,&quot;Total Expenses&quot;:19724000.0,&quot;Total Operating Income As Reported&quot;:-17346000.0,&quot;Diluted Average Shares&quot;:188389000.0,&quot;Basic Average Shares&quot;:188389000.0,&quot;Diluted EPS&quot;:-0.08,&quot;Basic EPS&quot;:-0.08,&quot;Diluted NI Availto Com Stockholders&quot;:-14833000.0,&quot;Average Dilution Earnings&quot;:NaN,&quot;Net Income Common Stockholders&quot;:-14833000.0,&quot;Net Income&quot;:-14833000.0,&quot;Net Income Including Noncontrolling Interests&quot;:-14833000.0,&quot;Net Income Continuous Operations&quot;:-14833000.0,&quot;Tax Provision&quot;:0.0,&quot;Pretax Income&quot;:-14833000.0,&quot;Other Income Expense&quot;:2020000.0,&quot;Special Income Charges&quot;:820000.0,&quot;Restructuring And Mergern Acquisition&quot;:-820000.0,&quot;Gain On Sale Of Security&quot;:1200000.0,&quot;Net Non Operating Interest Income Expense&quot;:493000.0,&quot;Interest Expense Non Operating&quot;:733000.0,&quot;Interest Income Non Operating&quot;:1226000.0,&quot;Operating Income&quot;:-17346000.0,&quot;Operating Expense&quot;:18550000.0,&quot;Research And Development&quot;:12752000.0,&quot;Selling General And Administration&quot;:5798000.0,&quot;Gross Profit&quot;:1204000.0,&quot;Cost Of Revenue&quot;:1174000.0,&quot;Total Revenue&quot;:2378000.0,&quot;Operating Revenue&quot;:2378000.0,&quot;Ordinary Shares Number&quot;:191958045.0,&quot;Share Issued&quot;:191958045.0,&quot;Total Debt&quot;:22490000.0,&quot;Tangible Book Value&quot;:122838000.0,&quot;Invested Capital&quot;:136146000.0,&quot;Working Capital&quot;:82406000.0,&quot;Net Tangible Assets&quot;:122838000.0,&quot;Capital Lease Obligations&quot;:9182000.0,&quot;Common Stock Equity&quot;:122838000.0,&quot;Total Capitalization&quot;:124899000.0,&quot;Total Equity Gross Minority Interest&quot;:122838000.0,&quot;Stockholders Equity&quot;:122838000.0,&quot;Gains Losses Not Affecting Retained Earnings&quot;:254000.0,&quot;Other Equity Adjustments&quot;:254000.0,&quot;Retained Earnings&quot;:-401786000.0,&quot;Additional Paid In Capital&quot;:524351000.0,&quot;Capital Stock&quot;:19000.0,&quot;Common Stock&quot;:19000.0,&quot;Preferred Stock&quot;:0.0,&quot;Total Liabilities Net Minority Interest&quot;:34412000.0,&quot;Total Non Current Liabilities Net Minority Interest&quot;:12952000.0,&quot;Other Non Current Liabilities&quot;:1641000.0,&quot;Derivative Product Liabilities&quot;:2210000.0,&quot;Non Current Deferred Liabilities&quot;:NaN,&quot;Non Current Deferred Revenue&quot;:NaN,&quot;Long Term Debt And Capital Lease Obligation&quot;:9101000.0,&quot;Long Term Capital Lease Obligation&quot;:7040000.0,&quot;Long Term Debt&quot;:2061000.0,&quot;Current Liabilities&quot;:21460000.0,&quot;Other Current Liabilities&quot;:NaN,&quot;Current Deferred Liabilities&quot;:886000.0,&quot;Current Deferred Revenue&quot;:886000.0,&quot;Current Debt And Capital Lease Obligation&quot;:13389000.0,&quot;Current Capital Lease Obligation&quot;:2142000.0,&quot;Current Debt&quot;:11247000.0,&quot;Other Current Borrowings&quot;:11247000.0,&quot;Payables And Accrued Expenses&quot;:7185000.0,&quot;Current Accrued Expenses&quot;:5581000.0,&quot;Interest Payable&quot;:NaN,&quot;Payables&quot;:1604000.0,&quot;Total Tax Payable&quot;:NaN,&quot;Accounts Payable&quot;:1604000.0,&quot;Total Assets&quot;:157250000.0,&quot;Total Non Current Assets&quot;:53384000.0,&quot;Other Non Current Assets&quot;:178000.0,&quot;Investments And Advances&quot;:NaN,&quot;Investmentin Financial Assets&quot;:NaN,&quot;Available For Sale Securities&quot;:NaN,&quot;Net PPE&quot;:53206000.0,&quot;Accumulated Depreciation&quot;:NaN,&quot;Gross PPE&quot;:53206000.0,&quot;Leases&quot;:NaN,&quot;Construction In Progress&quot;:NaN,&quot;Other Properties&quot;:53206000.0,&quot;Machinery Furniture Equipment&quot;:NaN,&quot;Properties&quot;:NaN,&quot;Current Assets&quot;:103866000.0,&quot;Other Current Assets&quot;:4902000.0,&quot;Prepaid Assets&quot;:NaN,&quot;Receivables&quot;:6384000.0,&quot;Accounts Receivable&quot;:6384000.0,&quot;Cash Cash Equivalents And Short Term Investments&quot;:92580000.0,&quot;Other Short Term Investments&quot;:72294000.0,&quot;Cash And Cash Equivalents&quot;:20286000.0,&quot;Free Cash Flow&quot;:-17705000.0,&quot;Repayment Of Debt&quot;:-3292000.0,&quot;Issuance Of Capital Stock&quot;:11998000.0,&quot;Capital Expenditure&quot;:-2278000.0,&quot;Interest Paid Supplemental Data&quot;:553000.0,&quot;End Cash Position&quot;:20286000.0,&quot;Beginning Cash Position&quot;:20684000.0,&quot;Effect Of Exchange Rate Changes&quot;:72000.0,&quot;Changes In Cash&quot;:-470000.0,&quot;Financing Cash Flow&quot;:8692000.0,&quot;Cash Flow From Continuing Financing Activities&quot;:8692000.0,&quot;Net Other Financing Charges&quot;:-29000.0,&quot;Proceeds From Stock Option Exercised&quot;:15000.0,&quot;Net Common Stock Issuance&quot;:11998000.0,&quot;Common Stock Issuance&quot;:11998000.0,&quot;Net Issuance Payments Of Debt&quot;:-3292000.0,&quot;Net Long Term Debt Issuance&quot;:-3292000.0,&quot;Long Term Debt Payments&quot;:-3292000.0,&quot;Investing Cash Flow&quot;:6265000.0,&quot;Cash Flow From Continuing Investing Activities&quot;:6265000.0,&quot;Net Investment Purchase And Sale&quot;:8543000.0,&quot;Sale Of Investment&quot;:30999000.0,&quot;Purchase Of Investment&quot;:-22456000.0,&quot;Net PPE Purchase And Sale&quot;:-2278000.0,&quot;Purchase Of PPE&quot;:-2278000.0,&quot;Operating Cash Flow&quot;:-15427000.0,&quot;Cash Flow From Continuing Operating Activities&quot;:-15427000.0,&quot;Change In Working Capital&quot;:-3789000.0,&quot;Change In Other Working Capital&quot;:50000.0,&quot;Change In Payables And Accrued Expense&quot;:-2030000.0,&quot;Change In Accrued Expense&quot;:-2030000.0,&quot;Change In Prepaid Assets&quot;:-934000.0,&quot;Change In Receivables&quot;:-875000.0,&quot;Changes In Account Receivables&quot;:-875000.0,&quot;Other Non Cash Items&quot;:123000.0,&quot;Stock Based Compensation&quot;:3427000.0,&quot;Asset Impairment Charge&quot;:0.0,&quot;Amortization Of Securities&quot;:-976000.0,&quot;Depreciation Amortization Depletion&quot;:1821000.0,&quot;Depreciation And Amortization&quot;:1821000.0,&quot;Operating Gains Losses&quot;:-1200000.0,&quot;Gain Loss On Investment Securities&quot;:-1200000.0,&quot;Net Income From Continuing Operations&quot;:-14833000.0,&quot;EPS&quot;:-780.6842105263158,&quot;Operating_Income&quot;:-17346000.0,&quot;Gross_Profit&quot;:1204000.0,&quot;Total_Assets&quot;:157250000.0,&quot;Total_Liabilities&quot;:null,&quot;Shareholder_Equity&quot;:null,&quot;Free_Cash_Flow&quot;:-17705000.0,&quot;Return_on_Equity&quot;:null,&quot;Return_on_Assets&quot;:-0.0943275039745628,&quot;Current_Ratio&quot;:null,&quot;Quick_Ratio&quot;:null,&quot;Debt_to_Equity&quot;:null,&quot;Interest_Coverage&quot;:-23.664392905866304,&quot;Book_Value_Per_Share&quot;:null,&quot;Gross_Margin&quot;:0.5063078216989066,&quot;Operating_Margin&quot;:-7.294365012615644,&quot;Net_Margin&quot;:-6.237594617325484,&quot;Dividend_Payout_Ratio&quot;:null,&quot;Effective_Tax_Rate&quot;:null,&quot;Capital_Expenditures&quot;:null,&quot;Inventory_Turnover&quot;:null,&quot;Receivables_Turnover&quot;:null,&quot;Revenue_Growth_QoQ&quot;:NaN,&quot;Net_Income_Growth_QoQ&quot;:NaN},{&quot;index&quot;:&quot;2024-06-30T00:00:00&quot;,&quot;Tax Effect Of Unusual Items&quot;:NaN,&quot;Tax Rate For Calcs&quot;:NaN,&quot;Normalized EBITDA&quot;:NaN,&quot;Total Unusual Items&quot;:NaN,&quot;Total Unusual Items Excluding Goodwill&quot;:NaN,&quot;Net Income From Continuing Operation Net Minority Interest&quot;:NaN,&quot;Reconciled Depreciation&quot;:NaN,&quot;Reconciled Cost Of Revenue&quot;:NaN,&quot;EBITDA&quot;:NaN,&quot;EBIT&quot;:NaN,&quot;Net Interest Income&quot;:NaN,&quot;Interest Expense&quot;:NaN,&quot;Interest Income&quot;:NaN,&quot;Normalized Income&quot;:NaN,&quot;Net Income From Continuing And Discontinued Operation&quot;:NaN,&quot;Total Expenses&quot;:NaN,&quot;Total Operating Income As Reported&quot;:NaN,&quot;Diluted Average Shares&quot;:NaN,&quot;Basic Average Shares&quot;:NaN,&quot;Diluted EPS&quot;:NaN,&quot;Basic EPS&quot;:NaN,&quot;Diluted NI Availto Com Stockholders&quot;:NaN,&quot;Average Dilution Earnings&quot;:0.0,&quot;Net Income Common Stockholders&quot;:NaN,&quot;Net Income&quot;:NaN,&quot;Net Income Including Noncontrolling Interests&quot;:NaN,&quot;Net Income Continuous Operations&quot;:NaN,&quot;Tax Provision&quot;:NaN,&quot;Pretax Income&quot;:NaN,&quot;Other Income Expense&quot;:NaN,&quot;Special Income Charges&quot;:NaN,&quot;Restructuring And Mergern Acquisition&quot;:NaN,&quot;Gain On Sale Of Security&quot;:NaN,&quot;Net Non Operating Interest Income Expense&quot;:NaN,&quot;Interest Expense Non Operating&quot;:NaN,&quot;Interest Income Non Operating&quot;:NaN,&quot;Operating Income&quot;:NaN,&quot;Operating Expense&quot;:NaN,&quot;Research And Development&quot;:NaN,&quot;Selling General And Administration&quot;:NaN,&quot;Gross Profit&quot;:NaN,&quot;Cost Of Revenue&quot;:NaN,&quot;Total Revenue&quot;:NaN,&quot;Operating Revenue&quot;:NaN,&quot;Ordinary Shares Number&quot;:NaN,&quot;Share Issued&quot;:NaN,&quot;Total Debt&quot;:NaN,&quot;Tangible Book Value&quot;:NaN,&quot;Invested Capital&quot;:NaN,&quot;Working Capital&quot;:NaN,&quot;Net Tangible Assets&quot;:NaN,&quot;Capital Lease Obligations&quot;:NaN,&quot;Common Stock Equity&quot;:NaN,&quot;Total Capitalization&quot;:NaN,&quot;Total Equity Gross Minority Interest&quot;:NaN,&quot;Stockholders Equity&quot;:NaN,&quot;Gains Losses Not Affecting Retained Earnings&quot;:NaN,&quot;Other Equity Adjustments&quot;:NaN,&quot;Retained Earnings&quot;:NaN,&quot;Additional Paid In Capital&quot;:NaN,&quot;Capital Stock&quot;:NaN,&quot;Common Stock&quot;:NaN,&quot;Preferred Stock&quot;:NaN,&quot;Total Liabilities Net Minority Interest&quot;:NaN,&quot;Total Non Current Liabilities Net Minority Interest&quot;:NaN,&quot;Other Non Current Liabilities&quot;:2461000.0,&quot;Derivative Product Liabilities&quot;:NaN,&quot;Non Current Deferred Liabilities&quot;:NaN,&quot;Non Current Deferred Revenue&quot;:NaN,&quot;Long Term Debt And Capital Lease Obligation&quot;:NaN,&quot;Long Term Capital Lease Obligation&quot;:NaN,&quot;Long Term Debt&quot;:3364000.0,&quot;Current Liabilities&quot;:NaN,&quot;Other Current Liabilities&quot;:NaN,&quot;Current Deferred Liabilities&quot;:NaN,&quot;Current Deferred Revenue&quot;:NaN,&quot;Current Debt And Capital Lease Obligation&quot;:NaN,&quot;Current Capital Lease Obligation&quot;:NaN,&quot;Current Debt&quot;:13042000.0,&quot;Other Current Borrowings&quot;:13042000.0,&quot;Payables And Accrued Expenses&quot;:NaN,&quot;Current Accrued Expenses&quot;:NaN,&quot;Interest Payable&quot;:NaN,&quot;Payables&quot;:NaN,&quot;Total Tax Payable&quot;:NaN,&quot;Accounts Payable&quot;:NaN,&quot;Total Assets&quot;:NaN,&quot;Total Non Current Assets&quot;:NaN,&quot;Other Non Current Assets&quot;:NaN,&quot;Investments And Advances&quot;:NaN,&quot;Investmentin Financial Assets&quot;:NaN,&quot;Available For Sale Securities&quot;:NaN,&quot;Net PPE&quot;:NaN,&quot;Accumulated Depreciation&quot;:NaN,&quot;Gross PPE&quot;:NaN,&quot;Leases&quot;:NaN,&quot;Construction In Progress&quot;:NaN,&quot;Other Properties&quot;:NaN,&quot;Machinery Furniture Equipment&quot;:NaN,&quot;Properties&quot;:NaN,&quot;Current Assets&quot;:NaN,&quot;Other Current Assets&quot;:NaN,&quot;Prepaid Assets&quot;:NaN,&quot;Receivables&quot;:NaN,&quot;Accounts Receivable&quot;:NaN,&quot;Cash Cash Equivalents And Short Term Investments&quot;:NaN,&quot;Other Short Term Investments&quot;:NaN,&quot;Cash And Cash Equivalents&quot;:NaN,&quot;Free Cash Flow&quot;:NaN,&quot;Repayment Of Debt&quot;:NaN,&quot;Issuance Of Capital Stock&quot;:NaN,&quot;Capital Expenditure&quot;:NaN,&quot;Interest Paid Supplemental Data&quot;:NaN,&quot;End Cash Position&quot;:NaN,&quot;Beginning Cash Position&quot;:NaN,&quot;Effect Of Exchange Rate Changes&quot;:NaN,&quot;Changes In Cash&quot;:NaN,&quot;Financing Cash Flow&quot;:NaN,&quot;Cash Flow From Continuing Financing Activities&quot;:NaN,&quot;Net Other Financing Charges&quot;:NaN,&quot;Proceeds From Stock Option Exercised&quot;:NaN,&quot;Net Common Stock Issuance&quot;:NaN,&quot;Common Stock Issuance&quot;:NaN,&quot;Net Issuance Payments Of Debt&quot;:NaN,&quot;Net Long Term Debt Issuance&quot;:NaN,&quot;Long Term Debt Payments&quot;:NaN,&quot;Investing Cash Flow&quot;:NaN,&quot;Cash Flow From Continuing Investing Activities&quot;:NaN,&quot;Net Investment Purchase And Sale&quot;:NaN,&quot;Sale Of Investment&quot;:NaN,&quot;Purchase Of Investment&quot;:NaN,&quot;Net PPE Purchase And Sale&quot;:NaN,&quot;Purchase Of PPE&quot;:NaN,&quot;Operating Cash Flow&quot;:NaN,&quot;Cash Flow From Continuing Operating Activities&quot;:NaN,&quot;Change In Working Capital&quot;:NaN,&quot;Change In Other Working Capital&quot;:NaN,&quot;Change In Payables And Accrued Expense&quot;:NaN,&quot;Change In Accrued Expense&quot;:NaN,&quot;Change In Prepaid Assets&quot;:NaN,&quot;Change In Receivables&quot;:NaN,&quot;Changes In Account Receivables&quot;:NaN,&quot;Other Non Cash Items&quot;:NaN,&quot;Stock Based Compensation&quot;:NaN,&quot;Asset Impairment Charge&quot;:0.0,&quot;Amortization Of Securities&quot;:NaN,&quot;Depreciation Amortization Depletion&quot;:NaN,&quot;Depreciation And Amortization&quot;:NaN,&quot;Operating Gains Losses&quot;:NaN,&quot;Gain Loss On Investment Securities&quot;:NaN,&quot;Net Income From Continuing Operations&quot;:NaN,&quot;EPS&quot;:NaN,&quot;Operating_Income&quot;:NaN,&quot;Gross_Profit&quot;:NaN,&quot;Total_Assets&quot;:NaN,&quot;Total_Liabilities&quot;:null,&quot;Shareholder_Equity&quot;:null,&quot;Free_Cash_Flow&quot;:NaN,&quot;Return_on_Equity&quot;:null,&quot;Return_on_Assets&quot;:NaN,&quot;Current_Ratio&quot;:null,&quot;Quick_Ratio&quot;:null,&quot;Debt_to_Equity&quot;:null,&quot;Interest_Coverage&quot;:NaN,&quot;Book_Value_Per_Share&quot;:null,&quot;Gross_Margin&quot;:NaN,&quot;Operating_Margin&quot;:NaN,&quot;Net_Margin&quot;:NaN,&quot;Dividend_Payout_Ratio&quot;:null,&quot;Effective_Tax_Rate&quot;:null,&quot;Capital_Expenditures&quot;:null,&quot;Inventory_Turnover&quot;:null,&quot;Receivables_Turnover&quot;:null,&quot;Revenue_Growth_QoQ&quot;:NaN,&quot;Net_Income_Growth_QoQ&quot;:NaN},{&quot;index&quot;:&quot;2024-03-31T00:00:00&quot;,&quot;Tax Effect Of Unusual Items&quot;:NaN,&quot;Tax Rate For Calcs&quot;:NaN,&quot;Normalized EBITDA&quot;:NaN,&quot;Total Unusual Items&quot;:NaN,&quot;Total Unusual Items Excluding Goodwill&quot;:NaN,&quot;Net Income From Continuing Operation Net Minority Interest&quot;:NaN,&quot;Reconciled Depreciation&quot;:NaN,&quot;Reconciled Cost Of Revenue&quot;:NaN,&quot;EBITDA&quot;:NaN,&quot;EBIT&quot;:NaN,&quot;Net Interest Income&quot;:NaN,&quot;Interest Expense&quot;:NaN,&quot;Interest Income&quot;:NaN,&quot;Normalized Income&quot;:NaN,&quot;Net Income From Continuing And Discontinued Operation&quot;:NaN,&quot;Total Expenses&quot;:NaN,&quot;Total Operating Income As Reported&quot;:NaN,&quot;Diluted Average Shares&quot;:NaN,&quot;Basic Average Shares&quot;:NaN,&quot;Diluted EPS&quot;:NaN,&quot;Basic EPS&quot;:NaN,&quot;Diluted NI Availto Com Stockholders&quot;:NaN,&quot;Average Dilution Earnings&quot;:NaN,&quot;Net Income Common Stockholders&quot;:NaN,&quot;Net Income&quot;:NaN,&quot;Net Income Including Noncontrolling Interests&quot;:NaN,&quot;Net Income Continuous Operations&quot;:NaN,&quot;Tax Provision&quot;:NaN,&quot;Pretax Income&quot;:NaN,&quot;Other Income Expense&quot;:NaN,&quot;Special Income Charges&quot;:NaN,&quot;Restructuring And Mergern Acquisition&quot;:NaN,&quot;Gain On Sale Of Security&quot;:NaN,&quot;Net Non Operating Interest Income Expense&quot;:NaN,&quot;Interest Expense Non Operating&quot;:NaN,&quot;Interest Income Non Operating&quot;:NaN,&quot;Operating Income&quot;:NaN,&quot;Operating Expense&quot;:NaN,&quot;Research And Development&quot;:NaN,&quot;Selling General And Administration&quot;:NaN,&quot;Gross Profit&quot;:NaN,&quot;Cost Of Revenue&quot;:NaN,&quot;Total Revenue&quot;:NaN,&quot;Operating Revenue&quot;:NaN,&quot;Ordinary Shares Number&quot;:NaN,&quot;Share Issued&quot;:NaN,&quot;Total Debt&quot;:NaN,&quot;Tangible Book Value&quot;:NaN,&quot;Invested Capital&quot;:NaN,&quot;Working Capital&quot;:NaN,&quot;Net Tangible Assets&quot;:NaN,&quot;Capital Lease Obligations&quot;:NaN,&quot;Common Stock Equity&quot;:NaN,&quot;Total Capitalization&quot;:NaN,&quot;Total Equity Gross Minority Interest&quot;:NaN,&quot;Stockholders Equity&quot;:NaN,&quot;Gains Losses Not Affecting Retained Earnings&quot;:NaN,&quot;Other Equity Adjustments&quot;:NaN,&quot;Retained Earnings&quot;:NaN,&quot;Additional Paid In Capital&quot;:NaN,&quot;Capital Stock&quot;:NaN,&quot;Common Stock&quot;:NaN,&quot;Preferred Stock&quot;:NaN,&quot;Total Liabilities Net Minority Interest&quot;:NaN,&quot;Total Non Current Liabilities Net Minority Interest&quot;:NaN,&quot;Other Non Current Liabilities&quot;:NaN,&quot;Derivative Product Liabilities&quot;:NaN,&quot;Non Current Deferred Liabilities&quot;:NaN,&quot;Non Current Deferred Revenue&quot;:NaN,&quot;Long Term Debt And Capital Lease Obligation&quot;:NaN,&quot;Long Term Capital Lease Obligation&quot;:NaN,&quot;Long Term Debt&quot;:6496000.0,&quot;Current Liabilities&quot;:NaN,&quot;Other Current Liabilities&quot;:NaN,&quot;Current Deferred Liabilities&quot;:NaN,&quot;Current Deferred Revenue&quot;:NaN,&quot;Current Debt And Capital Lease Obligation&quot;:NaN,&quot;Current Capital Lease Obligation&quot;:NaN,&quot;Current Debt&quot;:12814000.0,&quot;Other Current Borrowings&quot;:12814000.0,&quot;Payables And Accrued Expenses&quot;:NaN,&quot;Current Accrued Expenses&quot;:NaN,&quot;Interest Payable&quot;:NaN,&quot;Payables&quot;:NaN,&quot;Total Tax Payable&quot;:NaN,&quot;Accounts Payable&quot;:NaN,&quot;Total Assets&quot;:NaN,&quot;Total Non Current Assets&quot;:NaN,&quot;Other Non Current Assets&quot;:NaN,&quot;Investments And Advances&quot;:NaN,&quot;Investmentin Financial Assets&quot;:NaN,&quot;Available For Sale Securities&quot;:NaN,&quot;Net PPE&quot;:NaN,&quot;Accumulated Depreciation&quot;:NaN,&quot;Gross PPE&quot;:NaN,&quot;Leases&quot;:NaN,&quot;Construction In Progress&quot;:NaN,&quot;Other Properties&quot;:NaN,&quot;Machinery Furniture Equipment&quot;:NaN,&quot;Properties&quot;:NaN,&quot;Current Assets&quot;:NaN,&quot;Other Current Assets&quot;:NaN,&quot;Prepaid Assets&quot;:NaN,&quot;Receivables&quot;:NaN,&quot;Accounts Receivable&quot;:NaN,&quot;Cash Cash Equivalents And Short Term Investments&quot;:NaN,&quot;Other Short Term Investments&quot;:NaN,&quot;Cash And Cash Equivalents&quot;:NaN,&quot;Free Cash Flow&quot;:NaN,&quot;Repayment Of Debt&quot;:NaN,&quot;Issuance Of Capital Stock&quot;:NaN,&quot;Capital Expenditure&quot;:NaN,&quot;Interest Paid Supplemental Data&quot;:NaN,&quot;End Cash Position&quot;:NaN,&quot;Beginning Cash Position&quot;:NaN,&quot;Effect Of Exchange Rate Changes&quot;:NaN,&quot;Changes In Cash&quot;:NaN,&quot;Financing Cash Flow&quot;:NaN,&quot;Cash Flow From Continuing Financing Activities&quot;:NaN,&quot;Net Other Financing Charges&quot;:NaN,&quot;Proceeds From Stock Option Exercised&quot;:NaN,&quot;Net Common Stock Issuance&quot;:NaN,&quot;Common Stock Issuance&quot;:NaN,&quot;Net Issuance Payments Of Debt&quot;:NaN,&quot;Net Long Term Debt Issuance&quot;:NaN,&quot;Long Term Debt Payments&quot;:NaN,&quot;Investing Cash Flow&quot;:NaN,&quot;Cash Flow From Continuing Investing Activities&quot;:NaN,&quot;Net Investment Purchase And Sale&quot;:NaN,&quot;Sale Of Investment&quot;:NaN,&quot;Purchase Of Investment&quot;:NaN,&quot;Net PPE Purchase And Sale&quot;:NaN,&quot;Purchase Of PPE&quot;:NaN,&quot;Operating Cash Flow&quot;:NaN,&quot;Cash Flow From Continuing Operating Activities&quot;:NaN,&quot;Change In Working Capital&quot;:NaN,&quot;Change In Other Working Capital&quot;:NaN,&quot;Change In Payables And Accrued Expense&quot;:NaN,&quot;Change In Accrued Expense&quot;:NaN,&quot;Change In Prepaid Assets&quot;:NaN,&quot;Change In Receivables&quot;:NaN,&quot;Changes In Account Receivables&quot;:NaN,&quot;Other Non Cash Items&quot;:NaN,&quot;Stock Based Compensation&quot;:NaN,&quot;Asset Impairment Charge&quot;:0.0,&quot;Amortization Of Securities&quot;:NaN,&quot;Depreciation Amortization Depletion&quot;:NaN,&quot;Depreciation And Amortization&quot;:NaN,&quot;Operating Gains Losses&quot;:NaN,&quot;Gain Loss On Investment Securities&quot;:NaN,&quot;Net Income From Continuing Operations&quot;:NaN,&quot;EPS&quot;:NaN,&quot;Operating_Income&quot;:NaN,&quot;Gross_Profit&quot;:NaN,&quot;Total_Assets&quot;:NaN,&quot;Total_Liabilities&quot;:null,&quot;Shareholder_Equity&quot;:null,&quot;Free_Cash_Flow&quot;:NaN,&quot;Return_on_Equity&quot;:null,&quot;Return_on_Assets&quot;:NaN,&quot;Current_Ratio&quot;:null,&quot;Quick_Ratio&quot;:null,&quot;Debt_to_Equity&quot;:null,&quot;Interest_Coverage&quot;:NaN,&quot;Book_Value_Per_Share&quot;:null,&quot;Gross_Margin&quot;:NaN,&quot;Operating_Margin&quot;:NaN,&quot;Net_Margin&quot;:NaN,&quot;Dividend_Payout_Ratio&quot;:null,&quot;Effective_Tax_Rate&quot;:null,&quot;Capital_Expenditures&quot;:null,&quot;Inventory_Turnover&quot;:null,&quot;Receivables_Turnover&quot;:null}]}<br>================================== Ai Message ==================================<br>Tool Calls:<br>write_todos (call_p13Ph19zbFKQmDT0vguccn3j)<br>Call ID: call_p13Ph19zbFKQmDT0vguccn3j<br>Args:<br>todos: [{&#39;content&#39;: &#39;Fetch stock basics for RGTI&#39;, &#39;status&#39;: &#39;completed&#39;}, {&#39;content&#39;: &#39;Fetch 6-month price history and technical indicators for RGTI&#39;, &#39;status&#39;: &#39;completed&#39;}, {&#39;content&#39;: &#39;Fetch latest quarterly financials for RGTI&#39;, &#39;status&#39;: &#39;completed&#39;}, {&#39;content&#39;: &#39;Synthesize analysis and produce recommendation for RGTI&#39;, &#39;status&#39;: &#39;in_progress&#39;}]<br>================================= Tool Message =================================<br>Name: write_todos<br><br>Updated todo list to [{&#39;content&#39;: &#39;Fetch stock basics for RGTI&#39;, &#39;status&#39;: &#39;completed&#39;}, {&#39;content&#39;: &#39;Fetch 6-month price history and technical indicators for RGTI&#39;, &#39;status&#39;: &#39;completed&#39;}, {&#39;content&#39;: &#39;Fetch latest quarterly financials for RGTI&#39;, &#39;status&#39;: &#39;completed&#39;}, {&#39;content&#39;: &#39;Synthesize analysis and produce recommendation for RGTI&#39;, &#39;status&#39;: &#39;in_progress&#39;}]<br>================================== Ai Message ==================================<br><br>Here’s my concise synthesis and recommendation for your 425-share position in Rigetti Computing (RGTI), average cost $39.57, current $24.69:<br><br>1. Key Fundamentals<br>- Latest TTM revenue: $7.5 M; gross profit margin ~32%; operating margin –10.6%; net loss –$351 M.<br>- Cash &amp; equivalents: $447 M vs. debt $7.6 M → ample runway (&gt;2 years at current burn).<br>- Burn rate ~\$40 M quarterly; quarterly R&amp;D heavy, minimal commercialization to date.<br>- Enormous market cap ~$8.1 B, price/sales ~1,087× — valuation built on future promise, not today’s cash flows.<br><br>2. Technical Picture (6-month view)<br>- From July 2025 peak ~$58 → $24.7 now: down ~57%.<br>- Price below 20-day &amp; 50-day SMAs; downtrend intact.<br>- RSI plunged into deeply oversold territory, now recovering but remains weak.<br>- Volume tapering off; no clear capitulation yet.<br><br>3. Bull/Bear Arguments<br>Bullish<br>• Leader in superconducting quantum hardware, strong IP &amp; partnerships.<br>• Healthy cash balance; low debt reduces near-term financing risk.<br>• Analyst consensus “Strong Buy,” median target ~$40–41.<br>Bearish<br>• Pre-commercial revenue, heavy quarterly losses — profitability distant.<br>• High dilution risk as more capital raises likely to fund R&amp;D.<br>• Valuation relies on speculative breakthrough adoption; macro tech pull-back hits high-beta quantum stocks hard.<br><br>4. Recommendation: HOLD (Speculative)<br>- If you’re a long-term believer (3–5 years) in quantum growth, consider dollar-cost averaging on continued weakness—your cost basis ($39.57) already reflects much of the upside priced in.<br>- If you need capital or have a lower risk tolerance, reduce exposure now and re-enter on clear tech-breakthrough news or improved financials.<br>Price target:<br>- Base case (18 months): $35–45 (targets mid-cycle commercialization milestones).<br>- Downside support: $20–22 (psychological level, 200-day SMA).<br>Time horizon: 12–18 months.<br>Confidence: Medium-Low (high uncertainty around commercialization timing).</pre><p>In my previous <a href="https://www.linkedin.com/posts/rajeshranjan66_langgraph-react-agents-unlocked-fastmcp-activity-7340628738763575298-AEbd">article</a>, I walked through how to build a ReAct (Reasoning + Action) agent using LangChain + LangGraph, powered by MCP tools over STDIO. That was the foundation.</p><h4>💥 Why This Article Matters</h4><p>This post is not just a tutorial.<br> It is a <strong>blueprint</strong> for anyone building:</p><ul><li>Agentic financial systems</li><li>Streamable MCP tools</li><li>AI research workflows</li><li>LangGraph-based multi-agent apps</li><li>Enterprise-grade LLM architectures</li></ul><p>If you’re working on AI agents, LangChain/LangGraph, MCP servers, or AI-driven finance — this walkthrough will save you weeks of trial and error.</p><h4>🧠 The DeepAgent Architecture — At a Glance</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WX41R7J1rWfJ_PWOZK29Hg.png" /><figcaption>AI Investment Co-pilot Architecture</figcaption></figure><p>AI Investment Co-pilot is designed as a <strong>cloud-native, multi-agent financial analyst</strong>, orchestrated through LangGraph and supercharged by Model Context Protocol (MCP). Its goal: deliver research-grade insights that feel like you’re working with a team of expert analysts.</p><h4>🎨 1. Streamlit UI — The Face of the Co-Pilot</h4><p>The front-end (https://rajeshranjan.click) provides two distinct user modes:</p><h4>1️⃣ DeepAgent Research Mode (Full Intelligence Mode)</h4><p>This is where DeepAgent acts like a <em>team</em> of analysts working together:</p><h4>🔸 Multi-Agent Reasoning</h4><p>DeepAgent uses the deepagent framework (originally from Cloudé, now extended to work with LangChain + LangGraph) to coordinate several specialist sub-agents:</p><ul><li><strong>fundamental_analyst</strong> — valuations, balance sheets, intrinsic value</li><li><strong>technical_analyst</strong> — trendlines, momentum, signals</li><li><strong>risk_analyst</strong> — volatility &amp; exposure assessment</li><li><strong>news_sentiment_analyst</strong> <em>(coming soon)</em></li><li><strong>macroeconomic_analyst</strong> <em>(coming soon)</em></li><li><strong>valuation_specialist</strong> <em>(coming soon)</em></li></ul><p>These agents collaborate, debate, and refine each other’s outputs — delivering a cohesive, research-grade investment brief.</p><h4>🔸 RAG-Enhanced Research Memory</h4><ul><li>Powered by <strong>ChromaDB</strong></li><li>Stores research papers &amp; domain-specific knowledge</li><li>Optional based on UI toggle or environment configuration</li><li>Used as <em>additional context</em> for the sub-agents</li></ul><h4>🔸 ARIMA Price Forecasting</h4><ul><li>Time-series forecasting integrated into the flow</li><li>Helps assess short-term and mid-term price trajectories</li></ul><h4>🔸 LangGraph Coordination</h4><p>LangGraph provides:</p><ul><li>Stateful agent workflows</li><li>Controlled execution</li><li>Error recovery and decision routing</li></ul><p>Essentially, DeepAgent thinks in steps — not just answers.</p><h4>🔸 Human-in-the-loop Option</h4><p>If DeepAgent is disabled, the workflow gracefully switches to direct human feedback mode.</p><h4>2️⃣ Express Analysis Mode (Fast, Lightweight, Insightful)</h4><p>Built for speed and clarity:</p><ul><li>Zero conversational memory</li><li>Up to <strong>two revision cycles</strong> with human feedback</li><li>Uses RAG for evidence-based insights</li><li>No multi-agent complexity — ideal for quick analysis</li></ul><p>Perfect when you just want: <em>“Give me the insights now.”</em></p><h4>🏗️ 2. The Common Infrastructure Backbone</h4><h4>🔌 MCP Server on AWS</h4><p>The MCP Server powers the tools DeepAgent relies on. It includes pre-cached, high-speed analytical modules like:</p><ul><li><strong>forecast_stock_price</strong></li><li><strong>portfolio_quant_analysis</strong></li><li><strong>fetch_financials</strong></li><li><strong>fetch_stock_info</strong></li><li><strong>fetch_technical_indicators</strong></li><li><strong>fetch_earnings</strong></li><li><strong>web_search</strong><br> …and more.</li></ul><p>Each tool caches results so repeated queries return <strong>up to 3× faster</strong>.</p><h4>External data source integrations:</h4><ul><li><strong>Yahoo Finance Python SDK</strong></li><li><strong>Tavily Web Search API</strong></li><li><strong>FRED Economic Data</strong></li><li><strong>World Bank Economic Indicators</strong></li></ul><p>Real-time data + cached intelligence = consistently fast results.</p><h4>☁️ AWS Cloud Deployment (ECS Fargate)</h4><ul><li>Fully serverles</li><li>Auto-scaling</li><li>Zero maintenance</li><li>Production-grade stability</li></ul><p>The entire system runs on AWS ECS Fargate, making DeepAgent ready for enterprise workloads.</p><h4>🔍 LangSmith Observability</h4><p>Integrated observability lets you:</p><ul><li>Trace every LLM call</li><li>Debug agent reasoning</li><li>Analyze prompts, latency, and performance</li><li>Monitor entire LangGraph workflows</li></ul><p>DeepAgent isn’t a black box — you get full transparency.</p><h4>✨ Why This Architecture Matters</h4><p>DeepAgent stands out because it blends:</p><ul><li><strong>Specialized multi-agent intelligence</strong></li><li><strong>RAG-based research augmentation</strong></li><li><strong>Real-time financial data</strong></li><li><strong>Forecasting models</strong></li><li><strong>MCP-powered tool interoperability</strong></li><li><strong>Cloud-native scalability</strong></li><li><strong>Human-in-the-loop design</strong></li></ul><p>This creates a system that behaves not like a chatbot…<br> …but like a <strong>full-fledged AI investment research assistant</strong>.</p><h3>Now Lets deep dive into Streamable HTTP MCP Server side implementation -</h3><p>Install fastMCP server using -</p><pre>pip install fastmcp</pre><p>then verify installation using -</p><pre> fastmcp version</pre><p>Below is sample output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*up7UymLubHnokIvPgYYNAQ.png" /><figcaption>Version of fast MCP server</figcaption></figure><p>Below is my full requirements.txt file to see all the lib installed in my python virtual environment.</p><pre>aiohttp==3.9.5<br>aiosignal==1.3.2<br>annotated-types==0.7.0<br>anyio==4.9.0<br>async-timeout==4.0.3<br>attrs==25.3.0<br>Authlib==1.6.0<br>certifi==2025.6.15<br>cffi==1.17.1<br>charset-normalizer==3.4.2<br>click==8.2.1<br>cryptography==45.0.4<br>exceptiongroup==1.3.0<br>fastapi==0.115.13<br>#upgraded to 2.11.0 <br>fastmcp==2.11.0<br>frozenlist==1.7.0<br>h11==0.16.0<br>httpcore==1.0.9<br>httpx==0.28.1<br>httpx-sse==0.4.0<br>idna==3.10<br>markdown-it-py==3.0.0<br>#upgarded to mcp==1.13.1 from mcp==1.9.4,<br>mcp==1.13.1<br>mdurl==0.1.2<br>multidict==6.5.0<br>openapi-pydantic==0.5.1<br>propcache==0.3.2<br>pycparser==2.22<br>pydantic==2.11.7<br>pydantic-settings==2.10.0<br>pydantic_core==2.33.2<br>Pygments==2.19.2<br>python-dotenv==1.1.0<br>python-multipart==0.0.20<br>requests==2.31.0<br>rich==14.0.0<br>shellingham==1.5.4<br>sniffio==1.3.1<br>sse-starlette==2.3.6<br>starlette==0.46.2<br>typer==0.16.0<br>typing-inspection==0.4.1<br>typing_extensions==4.14.0<br>urllib3==2.5.0<br>uvicorn==0.34.3<br>yarl==1.20.1<br>#for converting yfiance mcp tools into http from stdio<br>#numpy==2.2.6<br>numpy==1.26.4<br>pandas==2.3.2<br>yfinance==0.2.62<br>statsmodels==0.14.5<br>cachetools==6.1.0<br>#for Tavily Web Search<br>langchain-community==0.3.16</pre><p>Now lets go through the code. Below are imports used-</p><pre># Standard library<br>import functools<br>import inspect<br>import logging<br>import math<br>import os<br>import time<br>from datetime import datetime, timedelta<br>from typing import Any, Dict, List, Optional<br><br># Third-party<br>import numpy as np<br>import pandas as pd<br>from pandas import DataFrame<br>import requests<br>from cachetools import TTLCache<br>from cachetools.keys import hashkey<br>from dotenv import load_dotenv<br># from fastapi import FastAPI<br># from fastapi.middleware.cors import CORSMiddleware<br>from fastmcp import FastMCP<br>from langchain_community.tools.tavily_search import TavilySearchResults<br>import uvicorn<br>from starlette.requests import Request<br>from starlette.responses import PlainTextResponse<br>from statsmodels.tsa.arima.model import ARIMA<br>import yfinance as yf<br><br># Load environment variables<br>load_dotenv()</pre><p>Below are the key imports for MCP servers -<br><strong>fastmcp.FastMCP — </strong><br>MCP wrapper used to register tools and expose them via an HTTP interface.<br><strong>uvicorn</strong> — ASGI server used to run the app locally.<br><strong>starlette.requests.Request — </strong><br>Request type used by custom FastAPI routes (health check signature).<br><strong>starlette.responses.PlainTextResponse — </strong><br>Simple plain-text HTTP response for the health endpoint.</p><pre># Initialize FastMCP<br>mcp = FastMCP(name=&quot;stocksMCPServerHTTPYFinance&quot;)</pre><p>This instantiates the FastMCP manager used across the module to register tools, routes and to produce the HTTP app.</p><ul><li>Purpose: create a single FastMCP instance (mcp) that the file’s @mcp.tool(), @mcp.custom_route() and similar decorators attach handlers to.</li><li>Side effects: instantiation happens at import time, so decorators later in the file depend on this object being present.</li><li>Usage: later the code calls mcp.http_app() to produce the FastAPI app that is run by Uvicorn.</li></ul><pre>@mcp.custom_route(&quot;/health&quot;, methods=[&quot;GET&quot;])<br>async def health_check(request: Request) -&gt; PlainTextResponse:<br>    return PlainTextResponse(&quot;OK&quot;)</pre><p>Above code defines a custom health check endpoint for the FastAPI application. This endpoint is used to verify that the server is running and responsive. It is implemented using the @mcp.custom_route decorator, which registers a route with the MCP framework.</p><pre># Create and mount the HTTP app<br>app = mcp.http_app()  # Use the MCP HTTP app directly instead of mounting</pre><p>Above line assigns the result of the http_app() method from the FastMCP instance (mcp) to the app variable. This method returns a pre-configured FastAPI application that integrates the tools and routes defined in the FastMCP instance.</p><p>By using this method, the developer avoids manually setting up the FastAPI app and ensures that all MCP-related configurations, such as tools, routes, and middleware, are included.<br>This design simplifies the process of creating the HTTP server by encapsulating the app’s setup logic within the FastMCP class. It also ensures consistency and reduces the risk of misconfigurations when integrating the MCP tools with the FastAPI framework.</p><pre>if __name__ == &quot;__main__&quot;:<br>    # Configure logging<br>    logging.basicConfig(<br>        level=logging.DEBUG,<br>        format=&#39;%(asctime)s - %(name)s - %(levelname)s - %(message)s&#39;<br>    )<br><br>    uvicorn.run(<br>        app,<br>        host=&quot;127.0.0.1&quot;,<br>        port=8001,<br>        log_level=&quot;debug&quot;  # Set log level to DEBUG for detailed output<br>    )</pre><p>Above code sets up the logging system to display detailed debug-level logs. The level=logging.DEBUG ensures that all debug, info, warning, and error messages are captured. The format specifies the structure of the log messages, including the timestamp, logger name, log level, and the actual message</p><p>The uvicorn.run() function is used to start the ASGI server:</p><p><strong>app:</strong> refers to the FastAPI application instance, which is created earlier in the script using mcp.http_app().<br><strong>host=”127.0.0.1&quot; :</strong> specifies that the server will listen on the local machine (localhost).<br><strong>port=8001 :</strong> sets the port number on which the server will be accessible.<br><strong>log_level=”debug” :</strong> ensures that detailed logs from uvicorn are displayed, which is helpful during development.</p><p><strong>The if __name__ == “__main__”:</strong>check ensures this code only runs when the file is executed directly (not when imported as a module).</p><h4>Implementing Caching at MCP Tools level -</h4><p>Caching is implemented at MCP tools level to avoid repeatedly calling proivder APIs of Yahoo Finance, tavli Search, Fed and World Bank.</p><p>Below lines of the code defines a caching mechanism with statistics tracking, using the TTLCache class from the cachetools library. This mechanism is wrapped in a custom class, CacheWithStats, which adds functionality for tracking cache hits and misses, generating cache keys and delegating cache operations. This class is designed to work with both synchronous and asynchronous functions, making it versatile for various use cases.</p><pre># cache 500 records for 30 sec,<br>#financialdata_cache = TTLCache(maxsize=100, ttl=300)<br>#pricedata_cache = TTLCache(maxsize=100, ttl=30)<br>#Stores up to 100 different stock symbols<br>#Each entry expires after 30 seconds (TTL = Time To Live)<br>#Automatically removes old entries when full<br><br>price_cache = TTLCache(maxsize=100, ttl=1800)<br>import inspect<br><br>class CacheWithStats:<br>    def __init__(self, cache):<br>        self._cache = cache<br>        self.hits = 0<br>        self.misses = 0<br>        self._last_reset = time.time()<br><br>    def __call__(self, func):<br>        # Check if the function is async<br>        if inspect.iscoroutinefunction(func):<br>            @functools.wraps(func)<br>            async def async_wrapper(*args, **kwargs):<br>                # Include function name in the cache key<br>                key = self._generate_key(func.__name__, *args, **kwargs)<br>                if key in self._cache:<br>                    self.hits += 1<br>                    logging.debug(f&quot;Cache HIT for {func.__name__} with key: {key}&quot;)<br>                    return self._cache[key]<br>                else:<br>                    self.misses += 1<br>                    logging.debug(f&quot;Cache MISS for {func.__name__} with key: {key}&quot;)<br>                    result = await func(*args, **kwargs)<br>                    self._cache[key] = result<br>                    return result<br><br>            return async_wrapper<br>        else:<br>            @functools.wraps(func)<br>            def sync_wrapper(*args, **kwargs):<br>                # Include function name in the cache key<br>                key = self._generate_key(func.__name__, *args, **kwargs)<br>                if key in self._cache:<br>                    self.hits += 1<br>                    logging.debug(f&quot;Cache HIT for {func.__name__} with key: {key}&quot;)<br>                    return self._cache[key]<br>                else:<br>                    self.misses += 1<br>                    logging.debug(f&quot;Cache MISS for {func.__name__} with key: {key}&quot;)<br>                    result = func(*args, **kwargs)<br>                    self._cache[key] = result<br>                    return result<br><br>            return sync_wrapper<br><br>    @staticmethod<br>    def _make_hashable(obj):<br>        if isinstance(obj, dict):<br>            return tuple(sorted((k, CacheWithStats._make_hashable(v)) for k, v in obj.items()))<br>        elif isinstance(obj, (list, set)):<br>            return tuple(CacheWithStats._make_hashable(x) for x in obj)<br>        return obj<br><br>    def _generate_key(self, *args, **kwargs):<br>        hashable_args = tuple(CacheWithStats._make_hashable(arg) for arg in args)<br>        hashable_kwargs = tuple(sorted((k, CacheWithStats._make_hashable(v)) for k, v in kwargs.items()))<br>        return hashkey(*hashable_args, *hashable_kwargs)<br><br>    # def _generate_key(self, *args, **kwargs):<br>    #     &quot;&quot;&quot;Generate a cache key using cachetools.hashkey.&quot;&quot;&quot;<br>    #     return hashkey(*args, **kwargs)<br><br>    def __getattr__(self, name):<br>        return getattr(self._cache, name)<br><br># Wrap the price_cache for statistics tracking<br>tracked_cache = CacheWithStats(price_cache)</pre><pre>price_cache = TTLCache(maxsize=100, ttl=1800)</pre><p>The price_cache is initialized as a TTLCache with a maximum size of 100 entries and a time-to-live (TTL) of 1800 seconds (30 minutes). This ensures that the cache automatically removes the oldest entries when full and expires entries after the TTL.</p><pre>def __init__(self, cache):<br>        self._cache = cache<br>        self.hits = 0<br>        self.misses = 0<br>        self._last_reset = time.time()</pre><p>Above constructor initializes the cache object and sets up counters for hits and misses. The self._last_reset attribute tracks when the cache statistics were last reset.</p><pre>def __call__(self, func):<br>    # Check if the function is async<br>    if inspect.iscoroutinefunction(func):<br>        @functools.wraps(func)<br>        async def async_wrapper(*args, **kwargs):<br>            # Include function name in the cache key<br>            key = self._generate_key(func.__name__, *args, **kwargs)<br>            if key in self._cache:<br>                self.hits += 1<br>                logging.debug(f&quot;Cache HIT for {func.__name__} with key: {key}&quot;)<br>                return self._cache[key]<br>            else:<br>                self.misses += 1<br>                logging.debug(f&quot;Cache MISS for {func.__name__} with key: {key}&quot;)<br>                result = await func(*args, **kwargs)<br>                self._cache[key] = result<br>                return result<br><br>        return async_wrapper<br>    else:<br>        @functools.wraps(func)<br>        def sync_wrapper(*args, **kwargs):<br>            # Include function name in the cache key<br>            key = self._generate_key(func.__name__, *args, **kwargs)<br>            if key in self._cache:<br>                self.hits += 1<br>                logging.debug(f&quot;Cache HIT for {func.__name__} with key: {key}&quot;)<br>                return self._cache[key]<br>            else:<br>                self.misses += 1<br>                logging.debug(f&quot;Cache MISS for {func.__name__} with key: {key}&quot;)<br>                result = func(*args, **kwargs)<br>                self._cache[key] = result<br>                return result<br><br>        return sync_wrapper</pre><p>The __call__ method allows the class to be used as a decorator. It checks if the decorated function is asynchronous:<br>For asynchronous functions, it defines async_wrapper, which generates a cache key using _generate_key. If the key exists in the cache, it increments the hits counter and returns the cached value. Otherwise, it increments the misses counter, calls the function, stores the result in the cache, and returns it.<br>For synchronous functions, it defines sync_wrapper, which performs the same logic but synchronously.</p><pre>@staticmethod<br>    def _make_hashable(obj):<br>        if isinstance(obj, dict):<br>            return tuple(sorted((k, CacheWithStats._make_hashable(v)) for k, v in obj.items()))<br>        elif isinstance(obj, (list, set)):<br>            return tuple(CacheWithStats._make_hashable(x) for x in obj)<br>        return obj<br><br>    def _generate_key(self, *args, **kwargs):<br>        hashable_args = tuple(CacheWithStats._make_hashable(arg) for arg in args)<br>        hashable_kwargs = tuple(sorted((k, CacheWithStats._make_hashable(v)) for k, v in kwargs.items()))<br>        return hashkey(*hashable_args, *hashable_kwargs)</pre><p>The _generate_key method creates a unique, hashable key for the cache based on the function’s arguments. It uses _make_hashable to ensure that complex data structures like dictionaries and lists are converted into hashable formats</p><pre>def __getattr__(self, name):<br>    return getattr(self._cache, name)</pre><p>The __getattr__ method delegates attribute access to the underlying cache object, allowing the wrapper to behave like the original cache.</p><pre>tracked_cache = CacheWithStats(price_cache)</pre><p>Finally, the price_cache is wrapped with CacheWithStats to enable statistics tracking. This wrapped cache, tracked_cache, can be used to cache function results while monitoring performance.</p><p>with decorator @tracked_cache caching can be applied on individual tool.</p><p>Following is one of the multiple MCP tools which will fetch technical indicators of the stock.</p><p>List of all the tools are available in final python code at the bottom of the article.</p><pre>@mcp.tool()<br>@tracked_cache<br>async def fetch_technical_indicators(symbol: str, period: str = &quot;1mo&quot;) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Get daily technical indicators for a stock.<br>    Args: symbol (str), period (str)<br>    Returns: dict with indicators per day.<br>    &quot;&quot;&quot;<br>    import pandas as pd<br>    import yfinance as yf<br><br>    def safe_calc(series, window):<br>        try:<br>            return series.rolling(window=window).mean()<br>        except Exception:<br>            return None<br><br>    def calc_atr(df, window=14):<br>        high_low = df[&#39;High&#39;] - df[&#39;Low&#39;]<br>        high_close = (df[&#39;High&#39;] - df[&#39;Close&#39;].shift()).abs()<br>        low_close = (df[&#39;Low&#39;] - df[&#39;Close&#39;].shift()).abs()<br>        tr = pd.concat([high_low, high_close, low_close], axis=1).max(axis=1)<br>        return tr.rolling(window=window).mean()<br><br>    def calc_obv(df):<br>        obv = [0]<br>        for i in range(1, len(df)):<br>            if df[&#39;Close&#39;].iloc[i] &gt; df[&#39;Close&#39;].iloc[i - 1]:<br>                obv.append(obv[-1] + df[&#39;Volume&#39;].iloc[i])<br>            elif df[&#39;Close&#39;].iloc[i] &lt; df[&#39;Close&#39;].iloc[i - 1]:<br>                obv.append(obv[-1] - df[&#39;Volume&#39;].iloc[i])<br>            else:<br>                obv.append(obv[-1])<br>        return pd.Series(obv, index=df.index)<br><br>    def calc_adx(df, window=14):<br>        try:<br>            up = df[&#39;High&#39;].diff()<br>            down = -df[&#39;Low&#39;].diff()<br>            plus_dm = np.where((up &gt; down) &amp; (up &gt; 0), up, 0)<br>            minus_dm = np.where((down &gt; up) &amp; (down &gt; 0), down, 0)<br><br>            # Ensure tr is a Series with a valid index<br>            tr_series = calc_atr(df, window)<br>            if not isinstance(tr_series, pd.Series):<br>                return pd.Series([np.nan] * len(df), index=df.index)<br><br>            plus_di = 100 * pd.Series(plus_dm, index=df.index).rolling(window).sum() / tr_series<br>            minus_di = 100 * pd.Series(minus_dm, index=df.index).rolling(window).sum() / tr_series<br><br>            # Handle potential division by zero<br>            dx_denominator = (plus_di + minus_di)<br>            dx = 100 * (abs(plus_di - minus_di) / dx_denominator.where(dx_denominator != 0, np.nan))<br><br>            adx = dx.rolling(window).mean()<br>            return adx<br>        except Exception:<br>            return pd.Series([np.nan] * len(df), index=df.index)<br><br>    try:<br>        ticker = yf.Ticker(symbol)<br>        history = ticker.history(period=period, interval=&quot;1d&quot;, auto_adjust=True, prepost=False)<br>        if history.empty:<br>            return {&quot;error&quot;: f&quot;No data for {symbol} ({period})&quot;}<br><br>        # Indicators<br>        indicators = {<br>            &quot;SMA5&quot;: safe_calc(history[&quot;Close&quot;], 5),<br>            &quot;SMA10&quot;: safe_calc(history[&quot;Close&quot;], 10),<br>            &quot;SMA20&quot;: safe_calc(history[&quot;Close&quot;], 20),<br><br>            &quot;SMA50&quot;: safe_calc(history[&quot;Close&quot;], 50),<br>            &quot;EMA12&quot;: history[&quot;Close&quot;].ewm(span=12, adjust=False).mean(),<br>            &quot;EMA26&quot;: history[&quot;Close&quot;].ewm(span=26, adjust=False).mean(),<br>            &quot;RSI14&quot;: 100 - (100 / (<br>                    1 + history[&quot;Close&quot;].pct_change().rolling(14).mean() / history[&quot;Close&quot;].pct_change().rolling(<br>                14).std())),<br>            &quot;MACD&quot;: history[&quot;Close&quot;].ewm(span=12, adjust=False).mean() - history[&quot;Close&quot;].ewm(span=26,<br>                                                                                              adjust=False).mean(),<br>            &quot;Bollinger_Upper&quot;: safe_calc(history[&quot;Close&quot;], 20) + 2 * history[&quot;Close&quot;].rolling(20).std(),<br>            &quot;Bollinger_Lower&quot;: safe_calc(history[&quot;Close&quot;], 20) - 2 * history[&quot;Close&quot;].rolling(20).std(),<br>            &quot;Daily_Range&quot;: history[&quot;High&quot;] - history[&quot;Low&quot;],<br>            &quot;Volume_MA5&quot;: safe_calc(history[&quot;Volume&quot;], 5),<br>            &quot;ATR14&quot;: calc_atr(history, 14),<br>            &quot;ADX14&quot;: calc_adx(history, 14),<br>            &quot;OBV&quot;: calc_obv(history)<br>        }<br><br>        for name, values in indicators.items():<br>            if values is not None:<br>                history[name] = values.round(4)<br><br>        # Clean up NaN/NaT values for JSON serialization<br>        history = history.replace({np.nan: None})<br><br>        # Prepare output<br>        result = history.reset_index().to_dict(orient=&quot;records&quot;)<br>        # Convert Timestamp objects in records to strings<br>        for record in result:<br>            if &#39;Date&#39; in record and isinstance(record[&#39;Date&#39;], pd.Timestamp):<br>                record[&#39;Date&#39;] = record[&#39;Date&#39;].strftime(&#39;%Y-%m-%d&#39;)<br><br>        return {&quot;symbol&quot;: symbol, &quot;period&quot;: period, &quot;indicators&quot;: result}<br><br>    except TypeError as te:<br>        logging.error(f&quot;Serialization error in fetch_technical_indicators for {symbol}: {str(te)}&quot;)<br>        return {&quot;error&quot;: f&quot;Could not serialize data. Check for non-standard data types. Details: {str(te)}&quot;}<br>    except Exception as e:<br>        logging.error(f&quot;General error in fetch_technical_indicators for {symbol}: {str(e)}&quot;)<br>        return {&quot;error&quot;: str(e)}</pre><p>@mcp.tool() decorator will make function as MCP Tool.</p><p>How to run MCP Server locally — run file simply with python command.</p><pre>python  mcp_stock_server_http_yfinance.py</pre><pre><br>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$ pwd<br>/Users/rajeshranjan/RajeshWork/mcp/mcp_http_server/mcp_http_server_project<br>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$ python  mcp_stock_server_http_yfinance.py<br>2025-11-16 20:40:16,257 - DEBUG - Initializing server &#39;stocksMCPServerHTTPYFinance&#39;<br>2025-11-16 20:40:16,258 - DEBUG - Registering handler for ListToolsRequest<br>2025-11-16 20:40:16,258 - DEBUG - Registering handler for ListResourcesRequest<br>2025-11-16 20:40:16,258 - DEBUG - Registering handler for ListResourceTemplatesRequest<br>2025-11-16 20:40:16,258 - DEBUG - Registering handler for PromptListRequest<br>2025-11-16 20:40:16,258 - DEBUG - Registering handler for CallToolRequest<br>2025-11-16 20:40:16,258 - DEBUG - Registering handler for ReadResourceRequest<br>2025-11-16 20:40:16,258 - DEBUG - Registering handler for GetPromptRequest<br>2025-11-16 20:40:16,285 - DEBUG - Using selector: KqueueSelector<br>/Users/rajeshranjan/RajeshWork/mcp/mcp_http_server/project_310_env/lib/python3.10/site-packages/websockets/legacy/__init__.py:6: DeprecationWarning: websockets.legacy is deprecated; see https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions<br>  warnings.warn(  # deprecated in 14.0 - 2024-11-09<br>/Users/rajeshranjan/RajeshWork/mcp/mcp_http_server/project_310_env/lib/python3.10/site-packages/uvicorn/protocols/websockets/websockets_impl.py:17: DeprecationWarning: websockets.server.WebSocketServerProtocol is deprecated<br>  from websockets.server import WebSocketServerProtocol<br>INFO:     Started server process [42183]<br>INFO:     Waiting for application startup.<br>2025-11-16 20:40:16,327 - INFO - StreamableHTTP session manager started<br>INFO:     Application startup complete.<br>INFO:     Uvicorn running on http://127.0.0.1:8001 (Press CTRL+C to quit)<br></pre><p>Now MCP HTTP server is running on <a href="http://127.0.0.1:8001/">http://127.0.0.1:8001</a> as you see in above logs</p><h4>How to test MCP Server and tools using MCP Inspector -</h4><p>Refer below link for installation of MCP Inspector <a href="https://modelcontextprotocol.io/docs/tools/inspector">https://modelcontextprotocol.io/docs/tools/inspector</a></p><p>Once it is installed, run inspector using below command ensure MCP server is already running because Inspector will be connecting to MCP Server URL at <a href="http://127.0.0.1:8001/">http://127.0.0.1:8001</a></p><pre> fastmcp dev  /Users/rajeshranjan/RajeshWork/mcp/mcp_http_server/mcp_http_server_project/mcp_stock_server_http_yfinance.py</pre><p>Below is output -</p><pre>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$ fastmcp dev  /Users/rajeshranjan/RajeshWork/mcp/mcp_http_server/mcp_http_server_project/mcp_stock_server_http_yfinance.py<br>2025-11-16 20:54:05,275 - DEBUG - Initializing server &#39;stocksMCPServerHTTPYFinance&#39;<br>2025-11-16 20:54:05,275 - DEBUG - Registering handler for ListToolsRequest<br>2025-11-16 20:54:05,275 - DEBUG - Registering handler for ListResourcesRequest<br>2025-11-16 20:54:05,275 - DEBUG - Registering handler for ListResourceTemplatesRequest<br>2025-11-16 20:54:05,276 - DEBUG - Registering handler for PromptListRequest<br>2025-11-16 20:54:05,276 - DEBUG - Registering handler for CallToolRequest<br>2025-11-16 20:54:05,276 - DEBUG - Registering handler for ReadResourceRequest<br>2025-11-16 20:54:05,276 - DEBUG - Registering handler for GetPromptRequest<br>Starting MCP inspector...<br>⚙️ Proxy server listening on 127.0.0.1:6277<br>🔑 Session token: 208437eb0a09013d24ac10c4b406f30b0b45db077d83a0c2e0e6a740a3e461e0<br>Use this token to authenticate requests or set DANGEROUSLY_OMIT_AUTH=true to disable auth<br><br>🔗 Open inspector with token pre-filled:<br>   http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=208437eb0a09013d24ac10c4b406f30b0b45db077d83a0c2e0e6a740a3e461e0<br>   (Auto-open is disabled when authentication is enabled)<br><br>🔍 MCP Inspector is up and running at http://127.0.0.1:6274 🚀<br><br></pre><p>Now copy below URL and hit browser <br>http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=208437eb0a09013d24ac10c4b406f30b0b45db077d83a0c2e0e6a740a3e461e0</p><p>You will see below screen-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ubmT7EO_BDw447Ca6FUDdA.png" /></figure><p>Ensure trasport type is selected as “Streamable HTTP” and</p><p>Replace URL to <a href="http://127.0.0.1:8001/">http://127.0.0.1:8001</a>/mcp, esnure change sse to mcp in default URL. It looks like below -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3XBIndjug_RbJ8VNcV7d7w.png" /></figure><p>Now hit connect button and you will see Connected with green indicator like below -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*exCMJlh7ao450FC7MrUR3g.png" /></figure><p>On the right pane, you will see Resource, prompt and Tools. A MCP server can implment all these 3 but ours only has Tools.</p><p>Click on Tools → List Tools button and all the MCP tools will be listed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rS72dGC0N4jHzxCrFcQUzA.png" /></figure><p>Click on one of the Tool say “fetch_technical_indicators” , enter your stock symbol, lets say RGTI and hit “Run Tool” Button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SF-J2WSJouP_HbUKnEyg8A.png" /></figure><p>and see the response -</p><p>It will return 1 month of indictors data in JSON format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ImmeJv_UHk2eOBpUx6Ur0Q.png" /></figure><p>Testing of caching -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pGF5ai0mDJzNU49gp4OgCA.png" /></figure><p>Now you can see what is happening in MCP server logs which is running in my Pycharm IDE -</p><pre>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$ pwd<br>/Users/rajeshranjan/RajeshWork/mcp/mcp_http_server/mcp_http_server_project<br>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$ python  mcp_stock_server_http_yfinance.py<br>2025-11-16 20:40:16,257 - DEBUG - Initializing server &#39;stocksMCPServerHTTPYFinance&#39;<br>2025-11-16 20:40:16,258 - DEBUG - Registering handler for ListToolsRequest<br>2025-11-16 20:40:16,258 - DEBUG - Registering handler for ListResourcesRequest<br>2025-11-16 20:40:16,258 - DEBUG - Registering handler for ListResourceTemplatesRequest<br>2025-11-16 20:40:16,258 - DEBUG - Registering handler for PromptListRequest<br>2025-11-16 20:40:16,258 - DEBUG - Registering handler for CallToolRequest<br>2025-11-16 20:40:16,258 - DEBUG - Registering handler for ReadResourceRequest<br>2025-11-16 20:40:16,258 - DEBUG - Registering handler for GetPromptRequest<br>2025-11-16 20:40:16,285 - DEBUG - Using selector: KqueueSelector<br>/Users/rajeshranjan/RajeshWork/mcp/mcp_http_server/project_310_env/lib/python3.10/site-packages/websockets/legacy/__init__.py:6: DeprecationWarning: websockets.legacy is deprecated; see https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions<br>  warnings.warn(  # deprecated in 14.0 - 2024-11-09<br>/Users/rajeshranjan/RajeshWork/mcp/mcp_http_server/project_310_env/lib/python3.10/site-packages/uvicorn/protocols/websockets/websockets_impl.py:17: DeprecationWarning: websockets.server.WebSocketServerProtocol is deprecated<br>  from websockets.server import WebSocketServerProtocol<br>INFO:     Started server process [42183]<br>INFO:     Waiting for application startup.<br>2025-11-16 20:40:16,327 - INFO - StreamableHTTP session manager started<br>INFO:     Application startup complete.<br>INFO:     Uvicorn running on http://127.0.0.1:8001 (Press CTRL+C to quit)<br>INFO:     127.0.0.1:59306 - &quot;POST /mcp HTTP/1.1&quot; 307 Temporary Redirect<br>2025-11-16 21:00:59,973 - DEBUG - Creating new transport<br>2025-11-16 21:00:59,995 - INFO - Created new transport with session ID: 66a618b7d67b49f7a5909d69afc5085c<br>INFO:     127.0.0.1:59307 - &quot;POST /mcp/ HTTP/1.1&quot; 200 OK<br>2025-11-16 21:01:00,153 - DEBUG - Closing SSE writer<br>2025-11-16 21:01:00,153 - DEBUG - chunk: b&#39;event: message\r\ndata: {&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;id&quot;:0,&quot;result&quot;:{&quot;protocolVersion&quot;:&quot;2025-03-26&quot;,&quot;capabilities&quot;:{&quot;experimental&quot;:{},&quot;prompts&quot;:{&quot;listChanged&quot;:true},&quot;resources&quot;:{&quot;subscribe&quot;:false,&quot;listChanged&quot;:true},&quot;tools&quot;:{&quot;listChanged&quot;:true}},&quot;serverInfo&quot;:{&quot;name&quot;:&quot;stocksMCPServerHTTPYFinance&quot;,&quot;version&quot;:&quot;1.13.1&quot;}}}\r\n\r\n&#39;<br>2025-11-16 21:01:00,154 - DEBUG - Got event: http.disconnect. Stop streaming.<br>INFO:     127.0.0.1:59306 - &quot;POST /mcp HTTP/1.1&quot; 307 Temporary Redirect<br>2025-11-16 21:01:00,209 - DEBUG - Session already exists, handling request directly<br>INFO:     127.0.0.1:59307 - &quot;POST /mcp/ HTTP/1.1&quot; 202 Accepted<br>2025-11-16 21:01:00,211 - DEBUG - Received message: root=InitializedNotification(method=&#39;notifications/initialized&#39;, params=None, jsonrpc=&#39;2.0&#39;)<br>INFO:     127.0.0.1:59306 - &quot;GET /mcp HTTP/1.1&quot; 307 Temporary Redirect<br>2025-11-16 21:01:00,214 - DEBUG - Session already exists, handling request directly<br>INFO:     127.0.0.1:59307 - &quot;GET /mcp/ HTTP/1.1&quot; 200 OK<br>2025-11-16 21:01:15,217 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:01:15.217279+00:00\r\n\r\n&#39;<br>2025-11-16 21:01:30,219 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:01:30.218897+00:00\r\n\r\n&#39;<br>2025-11-16 21:01:45,221 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:01:45.221457+00:00\r\n\r\n&#39;<br>2025-11-16 21:02:00,223 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:02:00.223837+00:00\r\n\r\n&#39;<br>2025-11-16 21:02:15,226 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:02:15.226557+00:00\r\n\r\n&#39;<br>2025-11-16 21:02:30,229 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:02:30.229455+00:00\r\n\r\n&#39;<br>2025-11-16 21:02:45,231 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:02:45.231318+00:00\r\n\r\n&#39;<br>2025-11-16 21:03:00,233 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:03:00.233724+00:00\r\n\r\n&#39;<br>2025-11-16 21:03:15,235 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:03:15.234971+00:00\r\n\r\n&#39;<br>2025-11-16 21:03:30,236 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:03:30.236931+00:00\r\n\r\n&#39;<br>2025-11-16 21:03:45,239 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:03:45.238978+00:00\r\n\r\n&#39;<br>2025-11-16 21:04:00,241 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:04:00.241749+00:00\r\n\r\n&#39;<br>2025-11-16 21:04:15,243 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:04:15.243169+00:00\r\n\r\n&#39;<br>INFO:     127.0.0.1:59310 - &quot;POST /mcp HTTP/1.1&quot; 307 Temporary Redirect<br>2025-11-16 21:04:15,332 - DEBUG - Session already exists, handling request directly<br>INFO:     127.0.0.1:59311 - &quot;POST /mcp/ HTTP/1.1&quot; 200 OK<br>2025-11-16 21:04:15,355 - DEBUG - Received message: &lt;mcp.shared.session.RequestResponder object at 0x124e1fe50&gt;<br>2025-11-16 21:04:15,364 - INFO - Processing request of type ListToolsRequest<br>2025-11-16 21:04:15,364 - DEBUG - Dispatching request of type ListToolsRequest<br>2025-11-16 21:04:15,403 - DEBUG - Response sent<br>2025-11-16 21:04:15,405 - DEBUG - Closing SSE writer<br>2025-11-16 21:04:15,405 - DEBUG - chunk: b&#39;event: message\r\ndata: {&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;id&quot;:1,&quot;result&quot;:{&quot;tools&quot;:[{&quot;name&quot;:&quot;fetch_stock_info&quot;,&quot;description&quot;:&quot;Get general company info for a stock symbol.\\nArgs: symbol (str)\\nReturns: dict with company profile and key stats.&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{&quot;symbol&quot;:{&quot;title&quot;:&quot;Symbol&quot;,&quot;type&quot;:&quot;string&quot;}},&quot;required&quot;:[&quot;symbol&quot;],&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;fetch_quarterly_financials&quot;,&quot;description&quot;:&quot;Get quarterly financials and ratios for a stock.\\nArgs: symbol (str)\\nReturns: list of dicts per quarter with metrics.&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{&quot;symbol&quot;:{&quot;title&quot;:&quot;Symbol&quot;,&quot;type&quot;:&quot;string&quot;}},&quot;required&quot;:[&quot;symbol&quot;],&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;fetch_annual_financials&quot;,&quot;description&quot;:&quot;Get annual financials and ratios for a stock.\\nArgs: symbol (str)\\nReturns: list of dicts per year with metrics.&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{&quot;symbol&quot;:{&quot;title&quot;:&quot;Symbol&quot;,&quot;type&quot;:&quot;string&quot;}},&quot;required&quot;:[&quot;symbol&quot;],&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;get_stock_history&quot;,&quot;description&quot;:&quot;Retrieve historical stock price data with technical indicators.\\n\\nArgs:\\n    symbol (str): The stock symbol (e.g., \\&quot;AAPL\\&quot;, \\&quot;MSFT\\&quot;).\\n    period (str): The time period for the data (default: \\&quot;1mo\\&quot;).\\n                  Valid values: \\&quot;1d\\&quot;, \\&quot;5d\\&quot;, \\&quot;1mo\\&quot;, \\&quot;3mo\\&quot;, \\&quot;6mo\\&quot;, \\&quot;1y\\&quot;, \\&quot;2y\\&quot;, \\&quot;5y\\&quot;, \\&quot;10y\\&quot;, \\&quot;ytd\\&quot;, \\&quot;max\\&quot;.\\n\\nReturns:\\n    DataFrame: A DataFrame containing OHLCV data, technical indicators, and metadata.\\n               Metadata is stored in the `attrs` attribute of the DataFrame.&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{&quot;symbol&quot;:{&quot;title&quot;:&quot;Symbol&quot;,&quot;type&quot;:&quot;string&quot;},&quot;period&quot;:{&quot;default&quot;:&quot;1mo&quot;,&quot;title&quot;:&quot;Period&quot;,&quot;type&quot;:&quot;string&quot;}},&quot;required&quot;:[&quot;symbol&quot;],&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;fetch_technical_indicators&quot;,&quot;description&quot;:&quot;Get daily technical indicators for a stock.\\nArgs: symbol (str), period (str)\\nReturns: dict with indicators per day.&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{&quot;symbol&quot;:{&quot;title&quot;:&quot;Symbol&quot;,&quot;type&quot;:&quot;string&quot;},&quot;period&quot;:{&quot;default&quot;:&quot;1mo&quot;,&quot;title&quot;:&quot;Period&quot;,&quot;type&quot;:&quot;string&quot;}},&quot;required&quot;:[&quot;symbol&quot;],&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;fetch_dividends&quot;,&quot;description&quot;:&quot;Retrieve historical dividend data for a given stock symbol.\\n\\nArgs:\\n    symbol (str): The stock symbol of the company (e.g., \\&quot;AAPL\\&quot;, \\&quot;TSLA\\&quot;).\\n\\nReturns:\\n    dict: A dictionary containing:\\n          - `dividend_data` (dict): Historical dividend data and statistics.\\n          - `dividend_summary` (dict): Summary of dividend-related metrics.\\n          - `last_updated` (str): Timestamp of the data retrieval.\\n          - `error` (str, optional): Error message if the data retrieval fails.&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{&quot;symbol&quot;:{&quot;title&quot;:&quot;Symbol&quot;,&quot;type&quot;:&quot;string&quot;}},&quot;required&quot;:[&quot;symbol&quot;],&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;fetch_actions&quot;,&quot;description&quot;:&quot;Retrieve corporate actions (dividends and stock splits) for a given stock symbol.\\n\\nArgs:\\n    symbol (str): The stock symbol of the company (e.g., \\&quot;AAPL\\&quot;, \\&quot;TSLA\\&quot;).\\n\\nReturns:\\n    dict: A dictionary containing:\\n          - `actions` (dict): Historical dividend and stock split data.\\n          - `summary` (dict): Summary statistics for dividends and splits.\\n          - `last_updated` (str): Timestamp of the data retrieval.\\n          - `error` (str, optional): Error message if the data retrieval fails.&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{&quot;symbol&quot;:{&quot;title&quot;:&quot;Symbol&quot;,&quot;type&quot;:&quot;string&quot;}},&quot;required&quot;:[&quot;symbol&quot;],&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;fetch_calendar&quot;,&quot;description&quot;:&quot;Retrieve upcoming company events, such as earnings dates, for a given stock symbol.\\n\\nArgs:\\n    symbol (str): The stock symbol of the company (e.g., \\&quot;AAPL\\&quot;, \\&quot;TSLA\\&quot;).\\n\\nReturns:\\n    dict: A dictionary containing:\\n          - `events` (dict): Upcoming earnings and other event details.\\n          - `last_updated` (str): Timestamp of the data retrieval.\\n          - `error` (str, optional): Error message if the data retrieval fails.&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{&quot;symbol&quot;:{&quot;title&quot;:&quot;Symbol&quot;,&quot;type&quot;:&quot;string&quot;}},&quot;required&quot;:[&quot;symbol&quot;],&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;fetch_earnings&quot;,&quot;description&quot;:&quot;Retrieve annual earnings history for a given stock symbol.\\n\\nArgs:\\n    symbol (str): The stock symbol of the company (e.g., \\&quot;AAPL\\&quot;, \\&quot;TSLA\\&quot;).\\n\\nReturns:\\n    dict: A dictionary containing:\\n          - Years as keys and earnings data (revenue and net income) as values.\\n          - `error` (str, optional): Error message if the data retrieval fails.&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{&quot;symbol&quot;:{&quot;title&quot;:&quot;Symbol&quot;,&quot;type&quot;:&quot;string&quot;}},&quot;required&quot;:[&quot;symbol&quot;],&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;fetch_institutional_holders&quot;,&quot;description&quot;:&quot;Retrieve institutional holders and ownership summary for a given stock symbol.\\n\\nArgs:\\n    symbol (str): The stock symbol of the company (e.g., \\&quot;AAPL\\&quot;, \\&quot;MSFT\\&quot;).\\n\\nReturns:\\n    dict: A dictionary containing:\\n          - `institutional_holders` (list): List of institutional holders and their details.\\n          - `ownership_summary` (dict): Summary of major holders and ownership percentages.\\n          - `metadata` (dict): Metadata about the data retrieval.\\n          - `error` (str, optional): Error message if the data retrieval fails.&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{&quot;symbol&quot;:{&quot;title&quot;:&quot;Symbol&quot;,&quot;type&quot;:&quot;string&quot;}},&quot;required&quot;:[&quot;symbol&quot;],&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;portfolio_quant_analysis&quot;,&quot;description&quot;:&quot;Detailed quantitative research analysis with statistical metrics , risk metrics, narrative about portfolio,Top sector exposure,Annualized volatility\\nand optimization suggestions. Best for in-depth quant review.\\nArgs:\\n    holdings: {\\&quot;AAPL\\&quot;: 10, \\&quot;MSFT\\&quot;: 5, \\&quot;CASH\\&quot;: 5000}\\nReturns:\\n    Detailed portfolio analytics dictionary.&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{&quot;holdings&quot;:{&quot;additionalProperties&quot;:true,&quot;title&quot;:&quot;Holdings&quot;,&quot;type&quot;:&quot;object&quot;}},&quot;required&quot;:[&quot;holdings&quot;],&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;forecast_stock&quot;,&quot;description&quot;:&quot;Forecast stock prices using ARIMA.\\n\\nArgs:\\n    symbol (str): Stock symbol (e.g., \\&quot;AAPL\\&quot;).\\n    forecast_days (int): Number of days to forecast.\\n    p (int): ARIMA parameter for autoregression.\\n    d (int): ARIMA parameter for differencing.\\n    q (int): ARIMA parameter for moving average.\\n    p (AutoRegressive order): The number of lag observations included in the model. It determines how many past values are used to predict the current value.\\n    d (Differencing order): The number of times the data needs to be differenced to make it stationary. It accounts for trends in the data.\\n    q (Moving Average order): The size of the moving average window, which determines how many past forecast errors are used to predict the current value.\\n\\nReturns:\\n    dict: Forecasted prices and metadata.&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{&quot;symbol&quot;:{&quot;title&quot;:&quot;Symbol&quot;,&quot;type&quot;:&quot;string&quot;},&quot;forecast_days&quot;:{&quot;title&quot;:&quot;Forecast Days&quot;,&quot;type&quot;:&quot;integer&quot;},&quot;p&quot;:{&quot;title&quot;:&quot;P&quot;,&quot;type&quot;:&quot;integer&quot;},&quot;d&quot;:{&quot;title&quot;:&quot;D&quot;,&quot;type&quot;:&quot;integer&quot;},&quot;q&quot;:{&quot;title&quot;:&quot;Q&quot;,&quot;type&quot;:&quot;integer&quot;}},&quot;required&quot;:[&quot;symbol&quot;,&quot;forecast_days&quot;,&quot;p&quot;,&quot;d&quot;,&quot;q&quot;],&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;crawl_web_page&quot;,&quot;description&quot;:&quot;Crawl a web page or perform a search using the Tavily API.\\nArgs:\\n    query (str): The search query or URL to crawl.\\n    The freshness_hours parameter in your method specifies how recent the search results should be, in hours.\\n    The Tavily API typically supports values like 1, 3, 6, 12, 24, 48, and 168 (up to 7 days).\\n\\nReturns:\\n    dict: The search results or extracted content.&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{&quot;query&quot;:{&quot;title&quot;:&quot;Query&quot;,&quot;type&quot;:&quot;string&quot;},&quot;freshness_hours&quot;:{&quot;default&quot;:168,&quot;title&quot;:&quot;Freshness Hours&quot;,&quot;type&quot;:&quot;integer&quot;}},&quot;required&quot;:[&quot;query&quot;],&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;get_fred_macro_data&quot;,&quot;description&quot;:&quot;Get macroeconomic data from FRED API.\\n\\nCommon series IDs:\\n- GDP: \&#39;GDP\&#39;\\n- Unemployment: \&#39;UNRATE\&#39;\\n- CPI: \&#39;CPIAUCSL\&#39;\\n- Interest Rates: \&#39;FEDFUNDS\&#39;\\n- 10-Year Treasury: \&#39;DGS10\&#39;\\n- Nonfarm Payrolls: \&#39;PAYEMS\&#39;\\n\\nArgs:\\n    series_id (str): FRED series identifier (default: \&#39;GDP\&#39;)\\n    observation_start (str): Start date in YYYY-MM-DD format (default: \&#39;2020-01-01\&#39;)&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{&quot;series_id&quot;:{&quot;default&quot;:&quot;GDP&quot;,&quot;title&quot;:&quot;Series Id&quot;,&quot;type&quot;:&quot;string&quot;},&quot;observation_start&quot;:{&quot;default&quot;:&quot;2020-01-01&quot;,&quot;title&quot;:&quot;Observation Start&quot;,&quot;type&quot;:&quot;string&quot;}},&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;get_international_macro_data&quot;,&quot;description&quot;:&quot;Get international data using World Bank API (more reliable)&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{&quot;country_code&quot;:{&quot;default&quot;:&quot;US&quot;,&quot;title&quot;:&quot;Country Code&quot;,&quot;type&quot;:&quot;string&quot;},&quot;indicator&quot;:{&quot;default&quot;:&quot;GDP&quot;,&quot;title&quot;:&quot;Indicator&quot;,&quot;type&quot;:&quot;string&quot;}},&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;get_cache_stats&quot;,&quot;description&quot;:&quot;Retrieve statistics about the price cache.&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{},&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;view_cache_records&quot;,&quot;description&quot;:&quot;Inspect the current records stored in the cache.\\nReturns a dictionary of cache keys and their corresponding values,\\nalong with cache metadata.&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{},&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}},{&quot;name&quot;:&quot;reset_cache&quot;,&quot;description&quot;:&quot;Clear the price cache and reset statistics&quot;,&quot;inputSchema&quot;:{&quot;properties&quot;:{},&quot;type&quot;:&quot;object&quot;},&quot;outputSchema&quot;:{&quot;additionalProperties&quot;:true,&quot;type&quot;:&quot;object&quot;},&quot;_meta&quot;:{&quot;_fastmcp&quot;:{&quot;tags&quot;:[]}}}]}}\r\n\r\n&#39;<br>2025-11-16 21:04:15,417 - DEBUG - Got event: http.disconnect. Stop streaming.<br>2025-11-16 21:04:30,244 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:04:30.244700+00:00\r\n\r\n&#39;<br>2025-11-16 21:04:45,245 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:04:45.245787+00:00\r\n\r\n&#39;<br>2025-11-16 21:05:00,247 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:05:00.247564+00:00\r\n\r\n&#39;<br>2025-11-16 21:05:15,249 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:05:15.249699+00:00\r\n\r\n&#39;<br>2025-11-16 21:05:30,251 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:05:30.251295+00:00\r\n\r\n&#39;<br>2025-11-16 21:05:45,253 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:05:45.253024+00:00\r\n\r\n&#39;<br>INFO:     127.0.0.1:59313 - &quot;POST /mcp HTTP/1.1&quot; 307 Temporary Redirect<br>2025-11-16 21:05:47,928 - DEBUG - Session already exists, handling request directly<br>INFO:     127.0.0.1:59314 - &quot;POST /mcp/ HTTP/1.1&quot; 200 OK<br>2025-11-16 21:05:47,932 - DEBUG - Received message: &lt;mcp.shared.session.RequestResponder object at 0x124e1faf0&gt;<br>2025-11-16 21:05:47,932 - INFO - Processing request of type CallToolRequest<br>2025-11-16 21:05:47,932 - DEBUG - Dispatching request of type CallToolRequest<br>2025-11-16 21:05:48,047 - DEBUG - Cache MISS for fetch_technical_indicators with key: (&#39;fetch_technical_indicators&#39;, (&#39;period&#39;, &#39;1mo&#39;), (&#39;symbol&#39;, &#39;RGTI&#39;))<br>2025-11-16 21:05:48,079 - DEBUG - Entering history()<br>2025-11-16 21:05:48,103 - DEBUG - (&#39;CREATE TABLE IF NOT EXISTS &quot;_tz_kv&quot; (&quot;key&quot; VARCHAR(255) NOT NULL PRIMARY KEY, &quot;value&quot; VARCHAR(255)) WITHOUT ROWID&#39;, [])<br>2025-11-16 21:05:48,110 - DEBUG - (&#39;SELECT &quot;t1&quot;.&quot;key&quot;, &quot;t1&quot;.&quot;value&quot; FROM &quot;_tz_kv&quot; AS &quot;t1&quot; WHERE (&quot;t1&quot;.&quot;key&quot; = ?) LIMIT ? OFFSET ?&#39;, [&#39;RGTI&#39;, 1, 0])<br>2025-11-16 21:05:48,188 - DEBUG -  Entering history()<br>2025-11-16 21:05:48,188 - DEBUG - RGTI: Yahoo GET parameters: {&#39;range&#39;: &#39;1mo&#39;, &#39;interval&#39;: &#39;1d&#39;, &#39;includePrePost&#39;: False, &#39;events&#39;: &#39;div,splits,capitalGains&#39;}<br>2025-11-16 21:05:48,189 - DEBUG -   Entering get()<br>2025-11-16 21:05:48,189 - DEBUG -    Entering _make_request()<br>2025-11-16 21:05:48,189 - DEBUG - url=https://query2.finance.yahoo.com/v8/finance/chart/RGTI<br>2025-11-16 21:05:48,189 - DEBUG - params={&#39;range&#39;: &#39;1mo&#39;, &#39;interval&#39;: &#39;1d&#39;, &#39;includePrePost&#39;: False, &#39;events&#39;: &#39;div,splits,capitalGains&#39;}<br>2025-11-16 21:05:48,189 - DEBUG -     Entering _get_cookie_and_crumb()<br>2025-11-16 21:05:48,189 - DEBUG - cookie_mode = &#39;basic&#39;<br>2025-11-16 21:05:48,189 - DEBUG -      Entering _get_cookie_and_crumb_basic()<br>2025-11-16 21:05:48,189 - DEBUG -       Entering _get_cookie_basic()<br>2025-11-16 21:05:48,189 - DEBUG -        Entering _load_cookie_curlCffi()<br>2025-11-16 21:05:48,191 - DEBUG - (&#39;CREATE TABLE IF NOT EXISTS &quot;_cookieschema&quot; (&quot;strategy&quot; VARCHAR(255) NOT NULL PRIMARY KEY, &quot;fetch_date&quot; DATETIME NOT NULL, &quot;cookie_bytes&quot; BLOB NOT NULL) WITHOUT ROWID&#39;, [])<br>2025-11-16 21:05:48,193 - DEBUG - (&#39;SELECT &quot;t1&quot;.&quot;strategy&quot;, &quot;t1&quot;.&quot;fetch_date&quot;, &quot;t1&quot;.&quot;cookie_bytes&quot; FROM &quot;_cookieschema&quot; AS &quot;t1&quot; WHERE (&quot;t1&quot;.&quot;strategy&quot; = ?) LIMIT ? OFFSET ?&#39;, [&#39;curlCffi&#39;, 1, 0])<br>2025-11-16 21:05:48,197 - DEBUG -        Exiting _load_cookie_curlCffi()<br>2025-11-16 21:05:48,197 - DEBUG - reusing persistent cookie<br>2025-11-16 21:05:48,197 - DEBUG -       Exiting _get_cookie_basic()<br>2025-11-16 21:05:48,197 - DEBUG -       Entering _get_crumb_basic()<br>2025-11-16 21:05:48,198 - DEBUG -        Entering _get_cookie_basic()<br>2025-11-16 21:05:48,198 - DEBUG - reusing cookie<br>2025-11-16 21:05:48,198 - DEBUG -        Exiting _get_cookie_basic()<br>2025-11-16 21:05:48,529 - DEBUG - crumb = &#39;.GQMa7lV/QS&#39;<br>2025-11-16 21:05:48,529 - DEBUG -       Exiting _get_crumb_basic()<br>2025-11-16 21:05:48,529 - DEBUG -      Exiting _get_cookie_and_crumb_basic()<br>2025-11-16 21:05:48,529 - DEBUG -     Exiting _get_cookie_and_crumb()<br>2025-11-16 21:05:48,622 - DEBUG - response code=200<br>2025-11-16 21:05:48,622 - DEBUG -    Exiting _make_request()<br>2025-11-16 21:05:48,622 - DEBUG -   Exiting get()<br>2025-11-16 21:05:48,698 - DEBUG - RGTI: yfinance received OHLC data: 2025-10-15 13:30:00 -&gt; 2025-11-14 14:30:00<br>2025-11-16 21:05:48,728 - DEBUG - RGTI: OHLC after cleaning: 2025-10-15 09:30:00-04:00 -&gt; 2025-11-14 09:30:00-05:00<br>2025-11-16 21:05:48,742 - DEBUG - RGTI: OHLC after combining events: 2025-10-15 00:00:00-04:00 -&gt; 2025-11-14 00:00:00-05:00<br>2025-11-16 21:05:48,760 - DEBUG - RGTI: yfinance returning OHLC: 2025-10-15 00:00:00-04:00 -&gt; 2025-11-14 00:00:00-05:00<br>2025-11-16 21:05:48,761 - DEBUG -  Exiting history()<br>2025-11-16 21:05:48,762 - DEBUG - Exiting history()<br>2025-11-16 21:05:48,822 - DEBUG - Response sent<br>2025-11-16 21:05:48,823 - DEBUG - Closing SSE writer<br>2025-11-16 21:05:48,824 - DEBUG - chunk: b&#39;event: message\r\ndata: {&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;id&quot;:2,&quot;result&quot;:{&quot;content&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;text&quot;:&quot;{\\&quot;symbol\\&quot;:\\&quot;RGTI\\&quot;,\\&quot;period\\&quot;:\\&quot;1mo\\&quot;,\\&quot;indicators\\&quot;:[{\\&quot;Date\\&quot;:\\&quot;2025-10-15\\&quot;,\\&quot;Open\\&quot;:57.880001068115234,\\&quot;High\\&quot;:57.970001220703125,\\&quot;Low\\&quot;:50.5,\\&quot;Close\\&quot;:56.34000015258789,\\&quot;Volume\\&quot;:136181800,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:null,\\&quot;SMA10\\&quot;:null,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:56.34,\\&quot;EMA26\\&quot;:56.34,\\&quot;RSI14\\&quot;:null,\\&quot;MACD\\&quot;:0.0,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:7.47,\\&quot;Volume_MA5\\&quot;:null,\\&quot;ATR14\\&quot;:null,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:0},{\\&quot;Date\\&quot;:\\&quot;2025-10-16\\&quot;,\\&quot;Open\\&quot;:54.69499969482422,\\&quot;High\\&quot;:55.15999984741211,\\&quot;Low\\&quot;:46.869998931884766,\\&quot;Close\\&quot;:47.970001220703125,\\&quot;Volume\\&quot;:138635900,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:null,\\&quot;SMA10\\&quot;:null,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:55.0523,\\&quot;EMA26\\&quot;:55.72,\\&quot;RSI14\\&quot;:null,\\&quot;MACD\\&quot;:-0.6677,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:8.29,\\&quot;Volume_MA5\\&quot;:null,\\&quot;ATR14\\&quot;:null,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-138635900},{\\&quot;Date\\&quot;:\\&quot;2025-10-17\\&quot;,\\&quot;Open\\&quot;:44.65999984741211,\\&quot;High\\&quot;:48.25,\\&quot;Low\\&quot;:43.650001525878906,\\&quot;Close\\&quot;:46.380001068115234,\\&quot;Volume\\&quot;:112310500,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:null,\\&quot;SMA10\\&quot;:null,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:53.7181,\\&quot;EMA26\\&quot;:55.0281,\\&quot;RSI14\\&quot;:null,\\&quot;MACD\\&quot;:-1.31,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:4.6,\\&quot;Volume_MA5\\&quot;:null,\\&quot;ATR14\\&quot;:null,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-250946400},{\\&quot;Date\\&quot;:\\&quot;2025-10-20\\&quot;,\\&quot;Open\\&quot;:47.47999954223633,\\&quot;High\\&quot;:47.779998779296875,\\&quot;Low\\&quot;:42.18000030517578,\\&quot;Close\\&quot;:43.310001373291016,\\&quot;Volume\\&quot;:87195200,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:null,\\&quot;SMA10\\&quot;:null,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:52.1169,\\&quot;EMA26\\&quot;:54.1601,\\&quot;RSI14\\&quot;:null,\\&quot;MACD\\&quot;:-2.0433,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:5.6,\\&quot;Volume_MA5\\&quot;:null,\\&quot;ATR14\\&quot;:null,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-338141600},{\\&quot;Date\\&quot;:\\&quot;2025-10-21\\&quot;,\\&quot;Open\\&quot;:42.52000045776367,\\&quot;High\\&quot;:43.599998474121094,\\&quot;Low\\&quot;:39.04999923706055,\\&quot;Close\\&quot;:40.0,\\&quot;Volume\\&quot;:82535100,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:46.8,\\&quot;SMA10\\&quot;:null,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:50.2527,\\&quot;EMA26\\&quot;:53.1112,\\&quot;RSI14\\&quot;:null,\\&quot;MACD\\&quot;:-2.8585,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:4.55,\\&quot;Volume_MA5\\&quot;:111371700.0,\\&quot;ATR14\\&quot;:null,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-420676700},{\\&quot;Date\\&quot;:\\&quot;2025-10-22\\&quot;,\\&quot;Open\\&quot;:38.52000045776367,\\&quot;High\\&quot;:39.720001220703125,\\&quot;Low\\&quot;:34.13999938964844,\\&quot;Close\\&quot;:36.060001373291016,\\&quot;Volume\\&quot;:114958400,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:42.744,\\&quot;SMA10\\&quot;:null,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:48.0692,\\&quot;EMA26\\&quot;:51.8482,\\&quot;RSI14\\&quot;:null,\\&quot;MACD\\&quot;:-3.779,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:5.58,\\&quot;Volume_MA5\\&quot;:107127020.0,\\&quot;ATR14\\&quot;:null,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-535635100},{\\&quot;Date\\&quot;:\\&quot;2025-10-23\\&quot;,\\&quot;Open\\&quot;:40.380001068115234,\\&quot;High\\&quot;:41.959999084472656,\\&quot;Low\\&quot;:37.65999984741211,\\&quot;Close\\&quot;:39.595001220703125,\\&quot;Volume\\&quot;:164337700,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:41.069,\\&quot;SMA10\\&quot;:null,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:46.7655,\\&quot;EMA26\\&quot;:50.9405,\\&quot;RSI14\\&quot;:null,\\&quot;MACD\\&quot;:-4.175,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:4.3,\\&quot;Volume_MA5\\&quot;:112267380.0,\\&quot;ATR14\\&quot;:null,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-371297400},{\\&quot;Date\\&quot;:\\&quot;2025-10-24\\&quot;,\\&quot;Open\\&quot;:41.25,\\&quot;High\\&quot;:43.459999084472656,\\&quot;Low\\&quot;:38.69499969482422,\\&quot;Close\\&quot;:38.84000015258789,\\&quot;Volume\\&quot;:87712800,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:39.561,\\&quot;SMA10\\&quot;:null,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:45.5462,\\&quot;EMA26\\&quot;:50.0442,\\&quot;RSI14\\&quot;:null,\\&quot;MACD\\&quot;:-4.498,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:4.765,\\&quot;Volume_MA5\\&quot;:107347840.0,\\&quot;ATR14\\&quot;:null,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-459010200},{\\&quot;Date\\&quot;:\\&quot;2025-10-27\\&quot;,\\&quot;Open\\&quot;:39.564998626708984,\\&quot;High\\&quot;:42.61000061035156,\\&quot;Low\\&quot;:39.13999938964844,\\&quot;Close\\&quot;:40.2400016784668,\\&quot;Volume\\&quot;:71650800,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:38.947,\\&quot;SMA10\\&quot;:null,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:44.7299,\\&quot;EMA26\\&quot;:49.318,\\&quot;RSI14\\&quot;:null,\\&quot;MACD\\&quot;:-4.5881,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:3.47,\\&quot;Volume_MA5\\&quot;:104238960.0,\\&quot;ATR14\\&quot;:null,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-387359400},{\\&quot;Date\\&quot;:\\&quot;2025-10-28\\&quot;,\\&quot;Open\\&quot;:40.04499816894531,\\&quot;High\\&quot;:42.93000030517578,\\&quot;Low\\&quot;:36.99100112915039,\\&quot;Close\\&quot;:37.06999969482422,\\&quot;Volume\\&quot;:93119800,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:38.361,\\&quot;SMA10\\&quot;:42.5805,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:43.5514,\\&quot;EMA26\\&quot;:48.4107,\\&quot;RSI14\\&quot;:null,\\&quot;MACD\\&quot;:-4.8593,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:5.939,\\&quot;Volume_MA5\\&quot;:106355900.0,\\&quot;ATR14\\&quot;:null,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-480479200},{\\&quot;Date\\&quot;:\\&quot;2025-10-29\\&quot;,\\&quot;Open\\&quot;:37.689998626708984,\\&quot;High\\&quot;:40.07500076293945,\\&quot;Low\\&quot;:36.900001525878906,\\&quot;Close\\&quot;:39.40999984741211,\\&quot;Volume\\&quot;:64001300,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:39.031,\\&quot;SMA10\\&quot;:40.8875,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:42.9143,\\&quot;EMA26\\&quot;:47.744,\\&quot;RSI14\\&quot;:null,\\&quot;MACD\\&quot;:-4.8297,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:3.175,\\&quot;Volume_MA5\\&quot;:96164480.0,\\&quot;ATR14\\&quot;:null,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-416477900},{\\&quot;Date\\&quot;:\\&quot;2025-10-30\\&quot;,\\&quot;Open\\&quot;:38.08000183105469,\\&quot;High\\&quot;:42.88999938964844,\\&quot;Low\\&quot;:37.68000030517578,\\&quot;Close\\&quot;:42.52000045776367,\\&quot;Volume\\&quot;:64904700,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:39.616,\\&quot;SMA10\\&quot;:40.3425,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:42.8536,\\&quot;EMA26\\&quot;:47.357,\\&quot;RSI14\\&quot;:null,\\&quot;MACD\\&quot;:-4.5034,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:5.21,\\&quot;Volume_MA5\\&quot;:76277880.0,\\&quot;ATR14\\&quot;:null,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-351573200},{\\&quot;Date\\&quot;:\\&quot;2025-10-31\\&quot;,\\&quot;Open\\&quot;:42.22999954223633,\\&quot;High\\&quot;:44.52000045776367,\\&quot;Low\\&quot;:41.68000030517578,\\&quot;Close\\&quot;:44.27000045776367,\\&quot;Volume\\&quot;:67133200,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:40.702,\\&quot;SMA10\\&quot;:40.1315,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:43.0715,\\&quot;EMA26\\&quot;:47.1284,\\&quot;RSI14\\&quot;:null,\\&quot;MACD\\&quot;:-4.0568,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:2.84,\\&quot;Volume_MA5\\&quot;:72161960.0,\\&quot;ATR14\\&quot;:null,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-284440000},{\\&quot;Date\\&quot;:\\&quot;2025-11-03\\&quot;,\\&quot;Open\\&quot;:44.310001373291016,\\&quot;High\\&quot;:44.380001068115234,\\&quot;Low\\&quot;:39.0,\\&quot;Close\\&quot;:39.119998931884766,\\&quot;Volume\\&quot;:59342400,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:40.478,\\&quot;SMA10\\&quot;:39.7125,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:42.4636,\\&quot;EMA26\\&quot;:46.5351,\\&quot;RSI14\\&quot;:null,\\&quot;MACD\\&quot;:-4.0716,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:5.38,\\&quot;Volume_MA5\\&quot;:69700280.0,\\&quot;ATR14\\&quot;:5.3235,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-343782400},{\\&quot;Date\\&quot;:\\&quot;2025-11-04\\&quot;,\\&quot;Open\\&quot;:37.029998779296875,\\&quot;High\\&quot;:38.619998931884766,\\&quot;Low\\&quot;:34.64500045776367,\\&quot;Close\\&quot;:35.18000030517578,\\&quot;Volume\\&quot;:55462800,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:40.1,\\&quot;SMA10\\&quot;:39.2305,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:41.343,\\&quot;EMA26\\&quot;:45.694,\\&quot;RSI14\\&quot;:-59.9132,\\&quot;MACD\\&quot;:-4.351,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:3.975,\\&quot;Volume_MA5\\&quot;:62168880.0,\\&quot;ATR14\\&quot;:5.1096,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-399245200},{\\&quot;Date\\&quot;:\\&quot;2025-11-05\\&quot;,\\&quot;Open\\&quot;:36.279998779296875,\\&quot;High\\&quot;:38.0,\\&quot;Low\\&quot;:35.0,\\&quot;Close\\&quot;:37.290000915527344,\\&quot;Volume\\&quot;:41383300,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:39.676,\\&quot;SMA10\\&quot;:39.3535,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:40.7195,\\&quot;EMA26\\&quot;:45.0715,\\&quot;RSI14\\&quot;:-24.9969,\\&quot;MACD\\&quot;:-4.352,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:3.0,\\&quot;Volume_MA5\\&quot;:57645280.0,\\&quot;ATR14\\&quot;:4.6474,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-357861900},{\\&quot;Date\\&quot;:\\&quot;2025-11-06\\&quot;,\\&quot;Open\\&quot;:37.11000061035156,\\&quot;High\\&quot;:37.13999938964844,\\&quot;Low\\&quot;:34.20000076293945,\\&quot;Close\\&quot;:34.36000061035156,\\&quot;Volume\\&quot;:46667000,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:38.044,\\&quot;SMA10\\&quot;:38.83,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:39.7411,\\&quot;EMA26\\&quot;:44.2781,\\&quot;RSI14\\&quot;:-31.106,\\&quot;MACD\\&quot;:-4.5369,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:2.94,\\&quot;Volume_MA5\\&quot;:53997740.0,\\&quot;ATR14\\&quot;:4.5396,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-404528900},{\\&quot;Date\\&quot;:\\&quot;2025-11-07\\&quot;,\\&quot;Open\\&quot;:32.81999969482422,\\&quot;High\\&quot;:33.810001373291016,\\&quot;Low\\&quot;:30.6200008392334,\\&quot;Close\\&quot;:33.77000045776367,\\&quot;Volume\\&quot;:57796500,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:35.944,\\&quot;SMA10\\&quot;:38.323,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:38.8225,\\&quot;EMA26\\&quot;:43.4997,\\&quot;RSI14\\&quot;:-24.248,\\&quot;MACD\\&quot;:-4.6772,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:3.19,\\&quot;Volume_MA5\\&quot;:52130400.0,\\&quot;ATR14\\&quot;:4.4067,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-462325400},{\\&quot;Date\\&quot;:\\&quot;2025-11-10\\&quot;,\\&quot;Open\\&quot;:34.099998474121094,\\&quot;High\\&quot;:34.709999084472656,\\&quot;Low\\&quot;:32.599998474121094,\\&quot;Close\\&quot;:33.08000183105469,\\&quot;Volume\\&quot;:38866000,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:34.736,\\&quot;SMA10\\&quot;:37.607,\\&quot;SMA20\\&quot;:null,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:37.939,\\&quot;EMA26\\&quot;:42.7279,\\&quot;RSI14\\&quot;:-17.1804,\\&quot;MACD\\&quot;:-4.7888,\\&quot;Bollinger_Upper\\&quot;:null,\\&quot;Bollinger_Lower\\&quot;:null,\\&quot;Daily_Range\\&quot;:2.11,\\&quot;Volume_MA5\\&quot;:48035120.0,\\&quot;ATR14\\&quot;:4.2324,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-501191400},{\\&quot;Date\\&quot;:\\&quot;2025-11-11\\&quot;,\\&quot;Open\\&quot;:31.079999923706055,\\&quot;High\\&quot;:32.18000030517578,\\&quot;Low\\&quot;:30.239999771118164,\\&quot;Close\\&quot;:31.399999618530273,\\&quot;Volume\\&quot;:51004200,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:33.98,\\&quot;SMA10\\&quot;:37.04,\\&quot;SMA20\\&quot;:39.8103,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:36.933,\\&quot;EMA26\\&quot;:41.8888,\\&quot;RSI14\\&quot;:-11.7808,\\&quot;MACD\\&quot;:-4.9557,\\&quot;Bollinger_Upper\\&quot;:51.561,\\&quot;Bollinger_Lower\\&quot;:28.0595,\\&quot;Daily_Range\\&quot;:1.94,\\&quot;Volume_MA5\\&quot;:47143400.0,\\&quot;ATR14\\&quot;:4.0167,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-552195600},{\\&quot;Date\\&quot;:\\&quot;2025-11-12\\&quot;,\\&quot;Open\\&quot;:31.1200008392334,\\&quot;High\\&quot;:31.649999618530273,\\&quot;Low\\&quot;:28.049999237060547,\\&quot;Close\\&quot;:28.299999237060547,\\&quot;Volume\\&quot;:50651600,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:32.182,\\&quot;SMA10\\&quot;:35.929,\\&quot;SMA20\\&quot;:38.4083,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:35.6049,\\&quot;EMA26\\&quot;:40.8822,\\&quot;RSI14\\&quot;:-46.5102,\\&quot;MACD\\&quot;:-5.2773,\\&quot;Bollinger_Upper\\&quot;:48.4169,\\&quot;Bollinger_Lower\\&quot;:28.3996,\\&quot;Daily_Range\\&quot;:3.6,\\&quot;Volume_MA5\\&quot;:48997060.0,\\&quot;ATR14\\&quot;:3.8524,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-602847200},{\\&quot;Date\\&quot;:\\&quot;2025-11-13\\&quot;,\\&quot;Open\\&quot;:26.989999771118164,\\&quot;High\\&quot;:27.40999984741211,\\&quot;Low\\&quot;:24.75,\\&quot;Close\\&quot;:25.200000762939453,\\&quot;Volume\\&quot;:65493200,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:30.35,\\&quot;SMA10\\&quot;:34.197,\\&quot;SMA20\\&quot;:37.2698,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:34.0041,\\&quot;EMA26\\&quot;:39.7205,\\&quot;RSI14\\&quot;:-63.9526,\\&quot;MACD\\&quot;:-5.7164,\\&quot;Bollinger_Upper\\&quot;:47.862,\\&quot;Bollinger_Lower\\&quot;:26.6775,\\&quot;Daily_Range\\&quot;:2.66,\\&quot;Volume_MA5\\&quot;:52762300.0,\\&quot;ATR14\\&quot;:3.7656,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-668340400},{\\&quot;Date\\&quot;:\\&quot;2025-11-14\\&quot;,\\&quot;Open\\&quot;:23.600000381469727,\\&quot;High\\&quot;:26.829999923706055,\\&quot;Low\\&quot;:23.3700008392334,\\&quot;Close\\&quot;:25.479999542236328,\\&quot;Volume\\&quot;:68034100,\\&quot;Dividends\\&quot;:0.0,\\&quot;Stock Splits\\&quot;:0.0,\\&quot;SMA5\\&quot;:28.692,\\&quot;SMA10\\&quot;:32.318,\\&quot;SMA20\\&quot;:36.2248,\\&quot;SMA50\\&quot;:null,\\&quot;EMA12\\&quot;:32.6927,\\&quot;EMA26\\&quot;:38.6657,\\&quot;RSI14\\&quot;:-73.3833,\\&quot;MACD\\&quot;:-5.973,\\&quot;Bollinger_Upper\\&quot;:47.1512,\\&quot;Bollinger_Lower\\&quot;:25.2983,\\&quot;Daily_Range\\&quot;:3.46,\\&quot;Volume_MA5\\&quot;:54809820.0,\\&quot;ATR14\\&quot;:3.7435,\\&quot;ADX14\\&quot;:null,\\&quot;OBV\\&quot;:-600306300}]}&quot;}],&quot;structuredContent&quot;:{&quot;symbol&quot;:&quot;RGTI&quot;,&quot;period&quot;:&quot;1mo&quot;,&quot;indicators&quot;:[{&quot;Date&quot;:&quot;2025-10-15&quot;,&quot;Open&quot;:57.880001068115234,&quot;High&quot;:57.970001220703125,&quot;Low&quot;:50.5,&quot;Close&quot;:56.34000015258789,&quot;Volume&quot;:136181800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:null,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:56.34,&quot;EMA26&quot;:56.34,&quot;RSI14&quot;:null,&quot;MACD&quot;:0.0,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:7.47,&quot;Volume_MA5&quot;:null,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:0},{&quot;Date&quot;:&quot;2025-10-16&quot;,&quot;Open&quot;:54.69499969482422,&quot;High&quot;:55.15999984741211,&quot;Low&quot;:46.869998931884766,&quot;Close&quot;:47.970001220703125,&quot;Volume&quot;:138635900,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:null,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:55.0523,&quot;EMA26&quot;:55.72,&quot;RSI14&quot;:null,&quot;MACD&quot;:-0.6677,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:8.29,&quot;Volume_MA5&quot;:null,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-138635900},{&quot;Date&quot;:&quot;2025-10-17&quot;,&quot;Open&quot;:44.65999984741211,&quot;High&quot;:48.25,&quot;Low&quot;:43.650001525878906,&quot;Close&quot;:46.380001068115234,&quot;Volume&quot;:112310500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:null,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:53.7181,&quot;EMA26&quot;:55.0281,&quot;RSI14&quot;:null,&quot;MACD&quot;:-1.31,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:4.6,&quot;Volume_MA5&quot;:null,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-250946400},{&quot;Date&quot;:&quot;2025-10-20&quot;,&quot;Open&quot;:47.47999954223633,&quot;High&quot;:47.779998779296875,&quot;Low&quot;:42.18000030517578,&quot;Close&quot;:43.310001373291016,&quot;Volume&quot;:87195200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:null,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:52.1169,&quot;EMA26&quot;:54.1601,&quot;RSI14&quot;:null,&quot;MACD&quot;:-2.0433,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:5.6,&quot;Volume_MA5&quot;:null,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-338141600},{&quot;Date&quot;:&quot;2025-10-21&quot;,&quot;Open&quot;:42.52000045776367,&quot;High&quot;:43.599998474121094,&quot;Low&quot;:39.04999923706055,&quot;Close&quot;:40.0,&quot;Volume&quot;:82535100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:46.8,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:50.2527,&quot;EMA26&quot;:53.1112,&quot;RSI14&quot;:null,&quot;MACD&quot;:-2.8585,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:4.55,&quot;Volume_MA5&quot;:111371700.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-420676700},{&quot;Date&quot;:&quot;2025-10-22&quot;,&quot;Open&quot;:38.52000045776367,&quot;High&quot;:39.720001220703125,&quot;Low&quot;:34.13999938964844,&quot;Close&quot;:36.060001373291016,&quot;Volume&quot;:114958400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:42.744,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:48.0692,&quot;EMA26&quot;:51.8482,&quot;RSI14&quot;:null,&quot;MACD&quot;:-3.779,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:5.58,&quot;Volume_MA5&quot;:107127020.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-535635100},{&quot;Date&quot;:&quot;2025-10-23&quot;,&quot;Open&quot;:40.380001068115234,&quot;High&quot;:41.959999084472656,&quot;Low&quot;:37.65999984741211,&quot;Close&quot;:39.595001220703125,&quot;Volume&quot;:164337700,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:41.069,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:46.7655,&quot;EMA26&quot;:50.9405,&quot;RSI14&quot;:null,&quot;MACD&quot;:-4.175,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:4.3,&quot;Volume_MA5&quot;:112267380.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-371297400},{&quot;Date&quot;:&quot;2025-10-24&quot;,&quot;Open&quot;:41.25,&quot;High&quot;:43.459999084472656,&quot;Low&quot;:38.69499969482422,&quot;Close&quot;:38.84000015258789,&quot;Volume&quot;:87712800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:39.561,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:45.5462,&quot;EMA26&quot;:50.0442,&quot;RSI14&quot;:null,&quot;MACD&quot;:-4.498,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:4.765,&quot;Volume_MA5&quot;:107347840.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-459010200},{&quot;Date&quot;:&quot;2025-10-27&quot;,&quot;Open&quot;:39.564998626708984,&quot;High&quot;:42.61000061035156,&quot;Low&quot;:39.13999938964844,&quot;Close&quot;:40.2400016784668,&quot;Volume&quot;:71650800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:38.947,&quot;SMA10&quot;:null,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:44.7299,&quot;EMA26&quot;:49.318,&quot;RSI14&quot;:null,&quot;MACD&quot;:-4.5881,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:3.47,&quot;Volume_MA5&quot;:104238960.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-387359400},{&quot;Date&quot;:&quot;2025-10-28&quot;,&quot;Open&quot;:40.04499816894531,&quot;High&quot;:42.93000030517578,&quot;Low&quot;:36.99100112915039,&quot;Close&quot;:37.06999969482422,&quot;Volume&quot;:93119800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:38.361,&quot;SMA10&quot;:42.5805,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:43.5514,&quot;EMA26&quot;:48.4107,&quot;RSI14&quot;:null,&quot;MACD&quot;:-4.8593,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:5.939,&quot;Volume_MA5&quot;:106355900.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-480479200},{&quot;Date&quot;:&quot;2025-10-29&quot;,&quot;Open&quot;:37.689998626708984,&quot;High&quot;:40.07500076293945,&quot;Low&quot;:36.900001525878906,&quot;Close&quot;:39.40999984741211,&quot;Volume&quot;:64001300,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:39.031,&quot;SMA10&quot;:40.8875,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:42.9143,&quot;EMA26&quot;:47.744,&quot;RSI14&quot;:null,&quot;MACD&quot;:-4.8297,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:3.175,&quot;Volume_MA5&quot;:96164480.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-416477900},{&quot;Date&quot;:&quot;2025-10-30&quot;,&quot;Open&quot;:38.08000183105469,&quot;High&quot;:42.88999938964844,&quot;Low&quot;:37.68000030517578,&quot;Close&quot;:42.52000045776367,&quot;Volume&quot;:64904700,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:39.616,&quot;SMA10&quot;:40.3425,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:42.8536,&quot;EMA26&quot;:47.357,&quot;RSI14&quot;:null,&quot;MACD&quot;:-4.5034,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:5.21,&quot;Volume_MA5&quot;:76277880.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-351573200},{&quot;Date&quot;:&quot;2025-10-31&quot;,&quot;Open&quot;:42.22999954223633,&quot;High&quot;:44.52000045776367,&quot;Low&quot;:41.68000030517578,&quot;Close&quot;:44.27000045776367,&quot;Volume&quot;:67133200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:40.702,&quot;SMA10&quot;:40.1315,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:43.0715,&quot;EMA26&quot;:47.1284,&quot;RSI14&quot;:null,&quot;MACD&quot;:-4.0568,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:2.84,&quot;Volume_MA5&quot;:72161960.0,&quot;ATR14&quot;:null,&quot;ADX14&quot;:null,&quot;OBV&quot;:-284440000},{&quot;Date&quot;:&quot;2025-11-03&quot;,&quot;Open&quot;:44.310001373291016,&quot;High&quot;:44.380001068115234,&quot;Low&quot;:39.0,&quot;Close&quot;:39.119998931884766,&quot;Volume&quot;:59342400,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:40.478,&quot;SMA10&quot;:39.7125,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:42.4636,&quot;EMA26&quot;:46.5351,&quot;RSI14&quot;:null,&quot;MACD&quot;:-4.0716,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:5.38,&quot;Volume_MA5&quot;:69700280.0,&quot;ATR14&quot;:5.3235,&quot;ADX14&quot;:null,&quot;OBV&quot;:-343782400},{&quot;Date&quot;:&quot;2025-11-04&quot;,&quot;Open&quot;:37.029998779296875,&quot;High&quot;:38.619998931884766,&quot;Low&quot;:34.64500045776367,&quot;Close&quot;:35.18000030517578,&quot;Volume&quot;:55462800,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:40.1,&quot;SMA10&quot;:39.2305,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:41.343,&quot;EMA26&quot;:45.694,&quot;RSI14&quot;:-59.9132,&quot;MACD&quot;:-4.351,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:3.975,&quot;Volume_MA5&quot;:62168880.0,&quot;ATR14&quot;:5.1096,&quot;ADX14&quot;:null,&quot;OBV&quot;:-399245200},{&quot;Date&quot;:&quot;2025-11-05&quot;,&quot;Open&quot;:36.279998779296875,&quot;High&quot;:38.0,&quot;Low&quot;:35.0,&quot;Close&quot;:37.290000915527344,&quot;Volume&quot;:41383300,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:39.676,&quot;SMA10&quot;:39.3535,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:40.7195,&quot;EMA26&quot;:45.0715,&quot;RSI14&quot;:-24.9969,&quot;MACD&quot;:-4.352,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:3.0,&quot;Volume_MA5&quot;:57645280.0,&quot;ATR14&quot;:4.6474,&quot;ADX14&quot;:null,&quot;OBV&quot;:-357861900},{&quot;Date&quot;:&quot;2025-11-06&quot;,&quot;Open&quot;:37.11000061035156,&quot;High&quot;:37.13999938964844,&quot;Low&quot;:34.20000076293945,&quot;Close&quot;:34.36000061035156,&quot;Volume&quot;:46667000,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:38.044,&quot;SMA10&quot;:38.83,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:39.7411,&quot;EMA26&quot;:44.2781,&quot;RSI14&quot;:-31.106,&quot;MACD&quot;:-4.5369,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:2.94,&quot;Volume_MA5&quot;:53997740.0,&quot;ATR14&quot;:4.5396,&quot;ADX14&quot;:null,&quot;OBV&quot;:-404528900},{&quot;Date&quot;:&quot;2025-11-07&quot;,&quot;Open&quot;:32.81999969482422,&quot;High&quot;:33.810001373291016,&quot;Low&quot;:30.6200008392334,&quot;Close&quot;:33.77000045776367,&quot;Volume&quot;:57796500,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:35.944,&quot;SMA10&quot;:38.323,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:38.8225,&quot;EMA26&quot;:43.4997,&quot;RSI14&quot;:-24.248,&quot;MACD&quot;:-4.6772,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:3.19,&quot;Volume_MA5&quot;:52130400.0,&quot;ATR14&quot;:4.4067,&quot;ADX14&quot;:null,&quot;OBV&quot;:-462325400},{&quot;Date&quot;:&quot;2025-11-10&quot;,&quot;Open&quot;:34.099998474121094,&quot;High&quot;:34.709999084472656,&quot;Low&quot;:32.599998474121094,&quot;Close&quot;:33.08000183105469,&quot;Volume&quot;:38866000,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:34.736,&quot;SMA10&quot;:37.607,&quot;SMA20&quot;:null,&quot;SMA50&quot;:null,&quot;EMA12&quot;:37.939,&quot;EMA26&quot;:42.7279,&quot;RSI14&quot;:-17.1804,&quot;MACD&quot;:-4.7888,&quot;Bollinger_Upper&quot;:null,&quot;Bollinger_Lower&quot;:null,&quot;Daily_Range&quot;:2.11,&quot;Volume_MA5&quot;:48035120.0,&quot;ATR14&quot;:4.2324,&quot;ADX14&quot;:null,&quot;OBV&quot;:-501191400},{&quot;Date&quot;:&quot;2025-11-11&quot;,&quot;Open&quot;:31.079999923706055,&quot;High&quot;:32.18000030517578,&quot;Low&quot;:30.239999771118164,&quot;Close&quot;:31.399999618530273,&quot;Volume&quot;:51004200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:33.98,&quot;SMA10&quot;:37.04,&quot;SMA20&quot;:39.8103,&quot;SMA50&quot;:null,&quot;EMA12&quot;:36.933,&quot;EMA26&quot;:41.8888,&quot;RSI14&quot;:-11.7808,&quot;MACD&quot;:-4.9557,&quot;Bollinger_Upper&quot;:51.561,&quot;Bollinger_Lower&quot;:28.0595,&quot;Daily_Range&quot;:1.94,&quot;Volume_MA5&quot;:47143400.0,&quot;ATR14&quot;:4.0167,&quot;ADX14&quot;:null,&quot;OBV&quot;:-552195600},{&quot;Date&quot;:&quot;2025-11-12&quot;,&quot;Open&quot;:31.1200008392334,&quot;High&quot;:31.649999618530273,&quot;Low&quot;:28.049999237060547,&quot;Close&quot;:28.299999237060547,&quot;Volume&quot;:50651600,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:32.182,&quot;SMA10&quot;:35.929,&quot;SMA20&quot;:38.4083,&quot;SMA50&quot;:null,&quot;EMA12&quot;:35.6049,&quot;EMA26&quot;:40.8822,&quot;RSI14&quot;:-46.5102,&quot;MACD&quot;:-5.2773,&quot;Bollinger_Upper&quot;:48.4169,&quot;Bollinger_Lower&quot;:28.3996,&quot;Daily_Range&quot;:3.6,&quot;Volume_MA5&quot;:48997060.0,&quot;ATR14&quot;:3.8524,&quot;ADX14&quot;:null,&quot;OBV&quot;:-602847200},{&quot;Date&quot;:&quot;2025-11-13&quot;,&quot;Open&quot;:26.989999771118164,&quot;High&quot;:27.40999984741211,&quot;Low&quot;:24.75,&quot;Close&quot;:25.200000762939453,&quot;Volume&quot;:65493200,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:30.35,&quot;SMA10&quot;:34.197,&quot;SMA20&quot;:37.2698,&quot;SMA50&quot;:null,&quot;EMA12&quot;:34.0041,&quot;EMA26&quot;:39.7205,&quot;RSI14&quot;:-63.9526,&quot;MACD&quot;:-5.7164,&quot;Bollinger_Upper&quot;:47.862,&quot;Bollinger_Lower&quot;:26.6775,&quot;Daily_Range&quot;:2.66,&quot;Volume_MA5&quot;:52762300.0,&quot;ATR14&quot;:3.7656,&quot;ADX14&quot;:null,&quot;OBV&quot;:-668340400},{&quot;Date&quot;:&quot;2025-11-14&quot;,&quot;Open&quot;:23.600000381469727,&quot;High&quot;:26.829999923706055,&quot;Low&quot;:23.3700008392334,&quot;Close&quot;:25.479999542236328,&quot;Volume&quot;:68034100,&quot;Dividends&quot;:0.0,&quot;Stock Splits&quot;:0.0,&quot;SMA5&quot;:28.692,&quot;SMA10&quot;:32.318,&quot;SMA20&quot;:36.2248,&quot;SMA50&quot;:null,&quot;EMA12&quot;:32.6927,&quot;EMA26&quot;:38.6657,&quot;RSI14&quot;:-73.3833,&quot;MACD&quot;:-5.973,&quot;Bollinger_Upper&quot;:47.1512,&quot;Bollinger_Lower&quot;:25.2983,&quot;Daily_Range&quot;:3.46,&quot;Volume_MA5&quot;:54809820.0,&quot;ATR14&quot;:3.7435,&quot;ADX14&quot;:null,&quot;OBV&quot;:-600306300}]},&quot;isError&quot;:false}}\r\n\r\n&#39;<br>2025-11-16 21:05:48,866 - DEBUG - Got event: http.disconnect. Stop streaming.<br>2025-11-16 21:06:00,255 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:06:00.255471+00:00\r\n\r\n&#39;<br>2025-11-16 21:06:15,257 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:06:15.257234+00:00\r\n\r\n&#39;<br>2025-11-16 21:06:30,258 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:06:30.258587+00:00\r\n\r\n&#39;<br>2025-11-16 21:06:45,260 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:06:45.260219+00:00\r\n\r\n&#39;<br>2025-11-16 21:07:00,261 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:07:00.261737+00:00\r\n\r\n&#39;<br>2025-11-16 21:07:15,264 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:07:15.264658+00:00\r\n\r\n&#39;<br>2025-11-16 21:07:30,267 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:07:30.267285+00:00\r\n\r\n&#39;<br>2025-11-16 21:07:45,269 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:07:45.269359+00:00\r\n\r\n&#39;<br>2025-11-16 21:08:00,271 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:08:00.271892+00:00\r\n\r\n&#39;<br>2025-11-16 21:08:15,273 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:08:15.273224+00:00\r\n\r\n&#39;<br>2025-11-16 21:08:30,275 - DEBUG - ping: b&#39;: ping - 2025-11-16 13:08:30.275506+00:00\r\n\r\n&#39;<br><br><br><br></pre><h4>🔎 How to Read MCP server HTTP Logs</h4><h4>1. Server startup</h4><pre>DEBUG - Initializing server &#39;stocksMCPServerHTTPYFinance&#39;<br>DEBUG - Registering handler for ListToolsRequest<br>...<br>INFO  - Uvicorn running on http://127.0.0.1:8001<br>INFO  - StreamableHTTP session manager started</pre><p>This tells you:</p><ul><li>The MCP server booted successfully.</li><li>All request types (ListToolsRequest, CallToolRequest, etc.) are registered.</li><li>Uvicorn is listening on localhost:8001</li><li>Custom <strong>session manager</strong> for streamable HTTP is active.</li></ul><h4>2. Redirects and session creation</h4><pre>INFO  - 127.0.0.1 - &quot;POST /mcp HTTP/1.1&quot; 307 Temporary Redirect<br>DEBUG - Creating new transport<br>INFO  - Created new transport with session ID: ...<br>INFO  - 127.0.0.1 - &quot;POST /mcp/ HTTP/1.1&quot; 200 OK</pre><p>What’s happening:</p><ul><li>The client hits /mcp → your app redirects to /mcp/ with <strong>307</strong>.</li><li>Creating new transport = <strong>new MCP session</strong>.</li><li>The session ID is how subsequent requests are tied to the same connection.</li></ul><h4>3. Handshake + SSE stream</h4><pre>DEBUG - Closing SSE writer<br>DEBUG - chunk: b&#39;event: message ... serverInfo ...&#39;<br>DEBUG - Got event: http.disconnect. Stop streaming.</pre><p>This is the <strong>initial handshake</strong>:</p><ul><li>Server sends a JSON-RPC result with protocolVersion, capabilities, and serverInfo.</li><li>It’s wrapped in an SSE event: message chunk.</li><li>The SSE writer closes when that logical response is done.</li></ul><h4>4. Keep-alive pings</h4><pre>DEBUG - ping: b&#39;: ping - 2025-11-16 13:01:15.217279+00:00\r\n\r\n&#39;</pre><p>Every ~15 seconds the server sends a <strong>ping comment</strong> over SSE:</p><ul><li>Keeps the HTTP connection alive.</li><li>Lets you know the session is still healthy.</li><li>Safe to ignore unless pings stop unexpectedly.</li></ul><h4>5. Tool discovery (ListToolsRequest)</h4><pre>INFO  - Processing request of type ListToolsRequest<br>DEBUG - Dispatching request of type ListToolsRequest<br>DEBUG - Response sent<br>DEBUG - chunk: b&#39;event: message\r\ndata: {&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;id&quot;:1,&quot;result&quot;:{&quot;tools&quot;:[...]}}&#39;</pre><p>This is the MCP client (e.g., MCP Inspector / DeepAgent) asking:</p><blockquote><em>“What tools does this server provide?”</em>The response:</blockquote><p>The response:</p><ul><li>Is streamed as an SSE message.</li><li>Contains the full list of tools with name, description, and schemas.</li></ul><p>If you don’t see this, your MCP client isn’t discovering tools correctly.</p><h4>6. Tool execution (CallToolRequest)</h4><pre>INFO  - Processing request of type CallToolRequest<br>DEBUG - Dispatching request of type CallToolRequest<br>DEBUG - Cache MISS for fetch_technical_indicators ...<br>...<br>DEBUG - Response sent<br>DEBUG - chunk: b&#39;event: message\r\ndata: {&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;id&quot;:2,&quot;result&quot;:{&quot;content&quot;:[...],&quot;structuredContent&quot;:{...}}}&#39;</pre><p>This is a <strong>tool call in action</strong>:</p><ul><li>CallToolRequest with arguments (e.g., symbol=&quot;RGTI&quot;, period=&quot;1mo&quot;).</li><li>Logs from yfinance or other libraries show the underlying API calls.</li><li>At the end, another SSE message carries:</li><li>content → text output the LLM can see.</li><li>structuredContent → machine-readable JSON</li><li>isError: false if everything worked.</li></ul><p>If there were an exception, you’d see isError: true and a stack trace nearby.</p><h4>7. “Session already exists”</h4><pre>DEBUG - Session already exists, handling request directly</pre><p>This is normal and good:</p><ul><li>It means the client is reusing the existing MCP session instead of creating a new one.</li><li>Multiple POST/GET pairs (for different requests and streams) are all mapped to the same session ID.</li></ul><h4>MCP Instpector logs — showing HTTP streamable transport type is used-</h4><pre>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$ fastmcp dev  /Users/rajeshranjan/RajeshWork/mcp/mcp_http_server/mcp_http_server_project/mcp_stock_server_http_yfinance.py<br>2025-11-16 20:54:05,275 - DEBUG - Initializing server &#39;stocksMCPServerHTTPYFinance&#39;<br>2025-11-16 20:54:05,275 - DEBUG - Registering handler for ListToolsRequest<br>2025-11-16 20:54:05,275 - DEBUG - Registering handler for ListResourcesRequest<br>2025-11-16 20:54:05,275 - DEBUG - Registering handler for ListResourceTemplatesRequest<br>2025-11-16 20:54:05,276 - DEBUG - Registering handler for PromptListRequest<br>2025-11-16 20:54:05,276 - DEBUG - Registering handler for CallToolRequest<br>2025-11-16 20:54:05,276 - DEBUG - Registering handler for ReadResourceRequest<br>2025-11-16 20:54:05,276 - DEBUG - Registering handler for GetPromptRequest<br>Starting MCP inspector...<br>⚙️ Proxy server listening on 127.0.0.1:6277<br>🔑 Session token: 208437eb0a09013d24ac10c4b406f30b0b45db077d83a0c2e0e6a740a3e461e0<br>Use this token to authenticate requests or set DANGEROUSLY_OMIT_AUTH=true to disable auth<br><br>🔗 Open inspector with token pre-filled:<br>   http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=208437eb0a09013d24ac10c4b406f30b0b45db077d83a0c2e0e6a740a3e461e0<br>   (Auto-open is disabled when authentication is enabled)<br><br>🔍 MCP Inspector is up and running at http://127.0.0.1:6274 🚀<br>New StreamableHttp connection request<br>Query parameters: {&quot;url&quot;:&quot;http://127.0.0.1:8001/mcp&quot;,&quot;transportType&quot;:&quot;streamable-http&quot;}<br>Created StreamableHttp server transport<br>Created StreamableHttp client transport<br>Client &lt;-&gt; Proxy  sessionId: 6eff4f0a-fbfd-48b7-a613-6feec20b2386<br>(node:42380) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time<br>(Use `node --trace-warnings ...` to show where the warning was created)<br>Proxy  &lt;-&gt; Server sessionId: 66a618b7d67b49f7a5909d69afc5085c<br>Received POST message for sessionId 6eff4f0a-fbfd-48b7-a613-6feec20b2386<br>Received GET message for sessionId 6eff4f0a-fbfd-48b7-a613-6feec20b2386<br>Received POST message for sessionId 6eff4f0a-fbfd-48b7-a613-6feec20b2386<br>Received POST message for sessionId 6eff4f0a-fbfd-48b7-a613-6feec20b2386</pre><h4>So what is the magic behind this, how HTTP streamable Transport works, is it same as HTTP Transport?</h4><ul><li><strong>Standard HTTP Transport:</strong> Like sending a letter. You write the entire message, put it in an envelope (the HTTP request), and mail it. The recipient reads the entire letter, writes a full response, and mails it back. The conversation is discrete and complete in each round trip.</li><li><strong>Streamable HTTP Transport: </strong>Like a live phone call. You start the call (the request), and you can speak and hear the other person’s responses in real-time, as they are being formed. The conversation is a continuous, flowing stream of information.</li></ul><p><strong>Difference between above two -</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*43Egv0CzqZQ0jWAyUsbipg.png" /></figure><p>Below is complete code of MCP server -</p><pre><br><br># Standard library<br>import functools<br>import inspect<br>import logging<br>import math<br>import os<br>import time<br>from datetime import datetime, timedelta<br>from typing import Any, Dict, List, Optional<br><br># Third-party<br>import numpy as np<br>import pandas as pd<br>from pandas import DataFrame<br>import requests<br>from cachetools import TTLCache<br>from cachetools.keys import hashkey<br>from dotenv import load_dotenv<br>from fastapi import FastAPI<br>from fastapi.middleware.cors import CORSMiddleware<br>from fastmcp import FastMCP<br>from langchain_community.tools.tavily_search import TavilySearchResults<br>import uvicorn<br>from starlette.requests import Request<br>from starlette.responses import PlainTextResponse<br>from statsmodels.tsa.arima.model import ARIMA<br>import yfinance as yf<br><br># Load environment variables<br>load_dotenv()<br><br># cache 500 records for 30 sec,<br>#financialdata_cache = TTLCache(maxsize=100, ttl=300)<br>#pricedata_cache = TTLCache(maxsize=100, ttl=30)<br>#Stores up to 100 different stock symbols<br>#Each entry expires after 30 seconds (TTL = Time To Live)<br>#Automatically removes old entries when full<br><br>price_cache = TTLCache(maxsize=100, ttl=1800)<br><br><br>class CacheWithStats:<br>    def __init__(self, cache):<br>        self._cache = cache<br>        self.hits = 0<br>        self.misses = 0<br>        self._last_reset = time.time()<br><br>    def __call__(self, func):<br>        # Check if the function is async<br>        if inspect.iscoroutinefunction(func):<br>            @functools.wraps(func)<br>            async def async_wrapper(*args, **kwargs):<br>                # Include function name in the cache key<br>                key = self._generate_key(func.__name__, *args, **kwargs)<br>                if key in self._cache:<br>                    self.hits += 1<br>                    logging.debug(f&quot;Cache HIT for {func.__name__} with key: {key}&quot;)<br>                    return self._cache[key]<br>                else:<br>                    self.misses += 1<br>                    logging.debug(f&quot;Cache MISS for {func.__name__} with key: {key}&quot;)<br>                    result = await func(*args, **kwargs)<br>                    self._cache[key] = result<br>                    return result<br><br>            return async_wrapper<br>        else:<br>            @functools.wraps(func)<br>            def sync_wrapper(*args, **kwargs):<br>                # Include function name in the cache key<br>                key = self._generate_key(func.__name__, *args, **kwargs)<br>                if key in self._cache:<br>                    self.hits += 1<br>                    logging.debug(f&quot;Cache HIT for {func.__name__} with key: {key}&quot;)<br>                    return self._cache[key]<br>                else:<br>                    self.misses += 1<br>                    logging.debug(f&quot;Cache MISS for {func.__name__} with key: {key}&quot;)<br>                    result = func(*args, **kwargs)<br>                    self._cache[key] = result<br>                    return result<br><br>            return sync_wrapper<br><br>    @staticmethod<br>    def _make_hashable(obj):<br>        if isinstance(obj, dict):<br>            return tuple(sorted((k, CacheWithStats._make_hashable(v)) for k, v in obj.items()))<br>        elif isinstance(obj, (list, set)):<br>            return tuple(CacheWithStats._make_hashable(x) for x in obj)<br>        return obj<br><br>    def _generate_key(self, *args, **kwargs):<br>        hashable_args = tuple(CacheWithStats._make_hashable(arg) for arg in args)<br>        hashable_kwargs = tuple(sorted((k, CacheWithStats._make_hashable(v)) for k, v in kwargs.items()))<br>        return hashkey(*hashable_args, *hashable_kwargs)<br><br>    # def _generate_key(self, *args, **kwargs):<br>    #     &quot;&quot;&quot;Generate a cache key using cachetools.hashkey.&quot;&quot;&quot;<br>    #     return hashkey(*args, **kwargs)<br><br>    def __getattr__(self, name):<br>        return getattr(self._cache, name)<br><br># Wrap the price_cache for statistics tracking<br>tracked_cache = CacheWithStats(price_cache)<br><br><br># Initialize logging<br>logging.basicConfig(level=logging.DEBUG, format=’%(asctime)s - %(levelname)s - %(message)s’)<br>#mcp = FastMCP(&quot;stocksAnalysisMCPServer&quot;, &quot;1.0.0&quot;, &quot;A server to analyze stock data using yfinance&quot;)<br><br># Initialize FastAPI app<br># app = FastAPI()<br><br># Add CORS middleware<br># app.add_middleware(<br>#     CORSMiddleware,<br>#     allow_origins=[&quot;*&quot;],<br>#     allow_credentials=True,<br>#     allow_methods=[&quot;*&quot;],<br>#     allow_headers=[&quot;*&quot;],<br># )<br><br># Initialize FastMCP<br>mcp = FastMCP(name=&quot;stocksMCPServerHTTPYFinance&quot;)<br><br>@mcp.tool()<br>@tracked_cache<br>async def fetch_stock_info(symbol: str) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Get general company info for a stock symbol.<br>    Args: symbol (str)<br>    Returns: dict with company profile and key stats.<br>    &quot;&quot;&quot;<br>    try:<br>        ticker = yf.Ticker(symbol)<br><br>        # fast_info: quick access to common fields<br>        fast_info = ticker.fast_info if hasattr(ticker, &quot;fast_info&quot;) else {}<br><br>        # get_info(): more detailed profile (non-deprecated version of .info)<br>        try:<br>            full_info = ticker.get_info()<br><br>            #logging.info(f&quot;full_info keys for {symbol}: {list(full_info.keys())}&quot;)<br>        except Exception as e:<br>            #logging.warning(f&quot;Could not fetch detailed info for {symbol}: {e}&quot;)<br>            full_info = {}<br><br>        result = {<br>            &quot;symbol&quot;: symbol,<br>            &quot;company_name&quot;: full_info.get(&quot;shortName&quot;),<br>            &quot;market_cap&quot;: full_info.get(&quot;marketCap&quot;),<br>            &quot;pe_ratio&quot;: full_info.get(&quot;trailingPE&quot;),<br>            &quot;52_week_high&quot;: full_info.get(&quot;fiftyTwoWeekHigh&quot;),<br>            &quot;52_week_low&quot;: full_info.get(&quot;fiftyTwoWeekLow&quot;),<br>            &quot;company_name&quot;: full_info.get(&quot;shortName&quot;),<br>            &quot;long_name&quot;: full_info.get(&quot;longName&quot;),<br>            &quot;symbol&quot;: full_info.get(&quot;symbol&quot;),<br>            &quot;exchange&quot;: full_info.get(&quot;exchange&quot;),<br>            &quot;sector&quot;: full_info.get(&quot;sector&quot;),<br>            &quot;industry&quot;: full_info.get(&quot;industry&quot;),<br>            &quot;market_cap&quot;: full_info.get(&quot;marketCap&quot;),<br>            &quot;enterprise_value&quot;: full_info.get(&quot;enterpriseValue&quot;),<br>            &quot;shares_outstanding&quot;: full_info.get(&quot;sharesOutstanding&quot;),<br>            &quot;pe_ratio_trailing&quot;: full_info.get(&quot;trailingPE&quot;),<br>            &quot;pe_ratio_forward&quot;: full_info.get(&quot;forwardPE&quot;),<br>            &quot;peg_ratio&quot;: full_info.get(&quot;pegRatio&quot;),<br>            &quot;dividend_rate&quot;: full_info.get(&quot;dividendRate&quot;),<br>            &quot;dividend_yield&quot;: full_info.get(&quot;dividendYield&quot;),<br>            &quot;ex_dividend_date&quot;: full_info.get(&quot;exDividendDate&quot;),<br>            &quot;payout_ratio&quot;: full_info.get(&quot;payoutRatio&quot;),<br>            &quot;five_year_avg_dividend_yield&quot;: full_info.get(&quot;fiveYearAvgDividendYield&quot;),<br>            &quot;fifty_two_week_high&quot;: full_info.get(&quot;fiftyTwoWeekHigh&quot;),<br>            &quot;fifty_two_week_low&quot;: full_info.get(&quot;fiftyTwoWeekLow&quot;),<br>            &quot;regular_market_price&quot;: full_info.get(&quot;regularMarketPrice&quot;),<br>            &quot;beta&quot;: full_info.get(&quot;beta&quot;),<br>            &quot;profit_margins&quot;: full_info.get(&quot;profitMargins&quot;),<br>            &quot;gross_margins&quot;: full_info.get(&quot;grossMargins&quot;),<br>            &quot;ebitda_margins&quot;: full_info.get(&quot;ebitdaMargins&quot;),<br>            &quot;revenue&quot;: full_info.get(&quot;revenue&quot;),<br>            &quot;gross_profits&quot;: full_info.get(&quot;grossProfits&quot;),<br>            &quot;total_cash&quot;: full_info.get(&quot;totalCash&quot;),<br>            &quot;total_debt&quot;: full_info.get(&quot;totalDebt&quot;),<br>            &quot;debt_to_equity&quot;: full_info.get(&quot;debtToEquity&quot;),<br>            &quot;website&quot;: full_info.get(&quot;website&quot;),<br>            &quot;address&quot;: full_info.get(&quot;address1&quot;),<br>            &quot;city&quot;: full_info.get(&quot;city&quot;),<br>            &quot;state&quot;: full_info.get(&quot;state&quot;),<br>            &quot;country&quot;: full_info.get(&quot;country&quot;),<br>            &quot;full_time_employees&quot;: full_info.get(&quot;fullTimeEmployees&quot;),<br>            &quot;earnings_growth&quot;: full_info.get(&quot;earningsGrowth&quot;),<br>            &quot;revenue_growth&quot;: full_info.get(&quot;revenueGrowth&quot;),<br>            &quot;operating_margins&quot;: full_info.get(&quot;operatingMargins&quot;),<br>            &quot;recommendation_mean&quot;: full_info.get(&quot;recommendationMean&quot;),<br>            &quot;recommendation_key&quot;: full_info.get(&quot;recommendationKey&quot;),<br>            &quot;logo_url&quot;: full_info.get(&quot;logo_url&quot;),<br>            &quot;phone&quot;: full_info.get(&quot;phone&quot;),<br>            &quot;summary&quot;: full_info.get(&quot;summary&quot;),<br>            &quot;general_info&quot;: {},<br><br><br>            &quot;last_updated&quot;: datetime.now().strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)<br>        }<br><br>        # Merge fast_info + full_info<br>        result[&quot;general_info&quot;].update(fast_info if fast_info else {})<br>        result[&quot;general_info&quot;].update(full_info if full_info else {})<br><br>        if not result[&quot;general_info&quot;]:<br>            return {<br>                &quot;error&quot;: f&quot;No stock info available for {symbol}&quot;,<br>                &quot;symbol&quot;: symbol,<br>                &quot;last_updated&quot;: result[&quot;last_updated&quot;]<br>            }<br><br>        return result<br><br>    except Exception as e:<br>        logging.error(f&quot;Error fetching stock info for {symbol}: {str(e)}&quot;)<br>        return {<br>            &quot;error&quot;: f&quot;Failed to fetch stock info: {str(e)}&quot;,<br>            &quot;symbol&quot;: symbol,<br>            &quot;last_updated&quot;: datetime.now().strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)<br>        }<br><br><br><br>@mcp.tool()<br>@tracked_cache<br>async def fetch_quarterly_financials(symbol: str) -&gt; dict:<br>    &quot;&quot;&quot;<br>        Get quarterly financials and ratios for a stock.<br>        Args: symbol (str)<br>        Returns: list of dicts per quarter with metrics.<br>        &quot;&quot;&quot;<br>    ticker = yf.Ticker(symbol)<br>    income = ticker.quarterly_financials<br>    balance = ticker.quarterly_balance_sheet<br>    cashflow = ticker.quarterly_cashflow<br><br>    if (income is None or income.empty) and (balance is None or balance.empty) and (cashflow is None or cashflow.empty):<br>        return {&quot;error&quot;: f&quot;No quarterly financial statements available for {symbol}&quot;}<br><br>    df_income = income.T if income is not None else pd.DataFrame()<br>    df_balance = balance.T if balance is not None else pd.DataFrame()<br>    df_cashflow = cashflow.T if cashflow is not None else pd.DataFrame()<br><br>    combined = df_income.join(df_balance, how=&quot;outer&quot;, lsuffix=&quot;_inc&quot;, rsuffix=&quot;_bal&quot;)<br>    combined = combined.join(df_cashflow, how=&quot;outer&quot;, rsuffix=&quot;_cf&quot;)<br>    combined.sort_index(ascending=False, inplace=True)<br>    combined = combined.reset_index()<br><br>    records = []<br>    for i, row in combined.iterrows():<br>        quarter_data = row.to_dict()<br>        try:<br>            revenue = row.get(&quot;Total Revenue&quot;, None)<br>            net_income = row.get(&quot;Net Income&quot;, None)<br>            ebitda = row.get(&quot;EBITDA&quot;, None)<br>            operating_income = row.get(&quot;Operating Income&quot;, None)<br>            gross_profit = row.get(&quot;Gross Profit&quot;, None)<br>            total_assets = row.get(&quot;Total Assets&quot;, None)<br>            total_liabilities = row.get(&quot;Total Liab&quot;, None)<br>            equity = row.get(&quot;Total Stockholder Equity&quot;, None)<br>            free_cash_flow = row.get(&quot;Free Cash Flow&quot;, None)<br>            capex = row.get(&quot;Capital Expenditures&quot;, None)<br>            current_assets = row.get(&quot;Total Current Assets&quot;, None)<br>            current_liabilities = row.get(&quot;Total Current Liabilities&quot;, None)<br>            inventory = row.get(&quot;Inventory&quot;, None)<br>            receivables = row.get(&quot;Net Receivables&quot;, None)<br>            shares_outstanding = row.get(&quot;Common Stock&quot;, None)<br>            dividends = row.get(&quot;Dividends Paid&quot;, None)<br>            tax_expense = row.get(&quot;Income Tax Expense&quot;, None)<br>            interest_expense = row.get(&quot;Interest Expense&quot;, None)<br><br>            eps = net_income / shares_outstanding if net_income and shares_outstanding else None<br>            roe = net_income / equity if net_income and equity else None<br>            roa = net_income / total_assets if net_income and total_assets else None<br>            current_ratio = current_assets / current_liabilities if current_assets and current_liabilities else None<br>            quick_ratio = (current_assets - inventory) / current_liabilities if current_assets and inventory and current_liabilities else None<br>            debt_to_equity = total_liabilities / equity if total_liabilities and equity else None<br>            interest_coverage = operating_income / interest_expense if operating_income and interest_expense else None<br>            book_value_per_share = equity / shares_outstanding if equity and shares_outstanding else None<br>            gross_margin = gross_profit / revenue if gross_profit and revenue else None<br>            operating_margin = operating_income / revenue if operating_income and revenue else None<br>            net_margin = net_income / revenue if net_income and revenue else None<br>            dividend_payout_ratio = dividends / net_income if dividends and net_income else None<br>            effective_tax_rate = tax_expense / pre_tax_income if tax_expense and (pre_tax_income := row.get(&quot;Pretax Income&quot;, None)) else None<br>            inventory_turnover = revenue / inventory if revenue and inventory else None<br>            receivables_turnover = revenue / receivables if revenue and receivables else None<br><br>            quarter_data.update({<br>                &quot;EPS&quot;: eps,<br>                &quot;EBITDA&quot;: ebitda,<br>                &quot;Operating_Income&quot;: operating_income,<br>                &quot;Gross_Profit&quot;: gross_profit,<br>                &quot;Total_Assets&quot;: total_assets,<br>                &quot;Total_Liabilities&quot;: total_liabilities,<br>                &quot;Shareholder_Equity&quot;: equity,<br>                &quot;Free_Cash_Flow&quot;: free_cash_flow,<br>                &quot;Return_on_Equity&quot;: roe,<br>                &quot;Return_on_Assets&quot;: roa,<br>                &quot;Current_Ratio&quot;: current_ratio,<br>                &quot;Quick_Ratio&quot;: quick_ratio,<br>                &quot;Debt_to_Equity&quot;: debt_to_equity,<br>                &quot;Interest_Coverage&quot;: interest_coverage,<br>                &quot;Book_Value_Per_Share&quot;: book_value_per_share,<br>                &quot;Gross_Margin&quot;: gross_margin,<br>                &quot;Operating_Margin&quot;: operating_margin,<br>                &quot;Net_Margin&quot;: net_margin,<br>                &quot;Dividend_Payout_Ratio&quot;: dividend_payout_ratio,<br>                &quot;Effective_Tax_Rate&quot;: effective_tax_rate,<br>                &quot;Capital_Expenditures&quot;: capex,<br>                &quot;Inventory_Turnover&quot;: inventory_turnover,<br>                &quot;Receivables_Turnover&quot;: receivables_turnover,<br>            })<br><br>            # Growth rates (QoQ)<br>            if i &lt; len(combined) - 1:<br>                prev_row = combined.iloc[i + 1]<br>                prev_revenue = prev_row.get(&quot;Total Revenue&quot;, None)<br>                prev_net_income = prev_row.get(&quot;Net Income&quot;, None)<br>                quarter_data[&quot;Revenue_Growth_QoQ&quot;] = ((revenue - prev_revenue) / prev_revenue) if revenue and prev_revenue else None<br>                quarter_data[&quot;Net_Income_Growth_QoQ&quot;] = ((net_income - prev_net_income) / prev_net_income) if net_income and prev_net_income else None<br>        except Exception:<br>            pass<br>        records.append(quarter_data)<br><br>    return {&quot;quarterly_financials&quot;: records}<br><br><br>@mcp.tool()<br>@tracked_cache<br>async def fetch_annual_financials(symbol: str) -&gt; dict:<br><br>    &quot;&quot;&quot;<br>    Get annual financials and ratios for a stock.<br>    Args: symbol (str)<br>    Returns: list of dicts per year with metrics.<br>    &quot;&quot;&quot;<br>    ticker = yf.Ticker(symbol)<br>    income = ticker.financials<br>    balance = ticker.balance_sheet<br>    cashflow = ticker.cashflow<br><br>    if (income is None or income.empty) and (balance is None or balance.empty) and (cashflow is None or cashflow.empty):<br>        return {&quot;error&quot;: f&quot;No financial statements available for {symbol}&quot;}<br><br>    df_income = income.T if income is not None else pd.DataFrame()<br>    df_balance = balance.T if balance is not None else pd.DataFrame()<br>    df_cashflow = cashflow.T if cashflow is not None else pd.DataFrame()<br><br>    combined = df_income.join(df_balance, how=&quot;outer&quot;, lsuffix=&quot;_inc&quot;, rsuffix=&quot;_bal&quot;)<br>    combined = combined.join(df_cashflow, how=&quot;outer&quot;, rsuffix=&quot;_cf&quot;)<br>    combined.sort_index(ascending=False, inplace=True)<br>    combined = combined.reset_index()<br><br>    # Calculate additional metrics<br>    records = []<br>    for i, row in combined.iterrows():<br>        year_data = row.to_dict()<br>        try:<br>            # Extract values safely<br>            revenue = row.get(&quot;Total Revenue&quot;, None)<br>            net_income = row.get(&quot;Net Income&quot;, None)<br>            ebitda = row.get(&quot;EBITDA&quot;, None)<br>            operating_income = row.get(&quot;Operating Income&quot;, None)<br>            gross_profit = row.get(&quot;Gross Profit&quot;, None)<br>            total_assets = row.get(&quot;Total Assets&quot;, None)<br>            total_liabilities = row.get(&quot;Total Liab&quot;, None)<br>            equity = row.get(&quot;Total Stockholder Equity&quot;, None)<br>            free_cash_flow = row.get(&quot;Free Cash Flow&quot;, None)<br>            capex = row.get(&quot;Capital Expenditures&quot;, None)<br>            current_assets = row.get(&quot;Total Current Assets&quot;, None)<br>            current_liabilities = row.get(&quot;Total Current Liabilities&quot;, None)<br>            inventory = row.get(&quot;Inventory&quot;, None)<br>            receivables = row.get(&quot;Net Receivables&quot;, None)<br>            shares_outstanding = row.get(&quot;Common Stock&quot;, None)<br>            dividends = row.get(&quot;Dividends Paid&quot;, None)<br>            tax_expense = row.get(&quot;Income Tax Expense&quot;, None)<br>            interest_expense = row.get(&quot;Interest Expense&quot;, None)<br><br>            # Ratios and growth<br>            eps = net_income / shares_outstanding if net_income and shares_outstanding else None<br>            roe = net_income / equity if net_income and equity else None<br>            roa = net_income / total_assets if net_income and total_assets else None<br>            current_ratio = current_assets / current_liabilities if current_assets and current_liabilities else None<br>            quick_ratio = (current_assets - inventory) / current_liabilities if current_assets and inventory and current_liabilities else None<br>            debt_to_equity = total_liabilities / equity if total_liabilities and equity else None<br>            interest_coverage = operating_income / interest_expense if operating_income and interest_expense else None<br>            book_value_per_share = equity / shares_outstanding if equity and shares_outstanding else None<br>            gross_margin = gross_profit / revenue if gross_profit and revenue else None<br>            operating_margin = operating_income / revenue if operating_income and revenue else None<br>            net_margin = net_income / revenue if net_income and revenue else None<br>            dividend_payout_ratio = dividends / net_income if dividends and net_income else None<br>            effective_tax_rate = tax_expense / pre_tax_income if tax_expense and (pre_tax_income := row.get(&quot;Pretax Income&quot;, None)) else None<br>            inventory_turnover = revenue / inventory if revenue and inventory else None<br>            receivables_turnover = revenue / receivables if revenue and receivables else None<br><br>            # Add to year_data<br>            year_data.update({<br>                &quot;EPS&quot;: eps,<br>                &quot;EBITDA&quot;: ebitda,<br>                &quot;Operating_Income&quot;: operating_income,<br>                &quot;Gross_Profit&quot;: gross_profit,<br>                &quot;Total_Assets&quot;: total_assets,<br>                &quot;Total_Liabilities&quot;: total_liabilities,<br>                &quot;Shareholder_Equity&quot;: equity,<br>                &quot;Free_Cash_Flow&quot;: free_cash_flow,<br>                &quot;Return_on_Equity&quot;: roe,<br>                &quot;Return_on_Assets&quot;: roa,<br>                &quot;Current_Ratio&quot;: current_ratio,<br>                &quot;Quick_Ratio&quot;: quick_ratio,<br>                &quot;Debt_to_Equity&quot;: debt_to_equity,<br>                &quot;Interest_Coverage&quot;: interest_coverage,<br>                &quot;Book_Value_Per_Share&quot;: book_value_per_share,<br>                &quot;Gross_Margin&quot;: gross_margin,<br>                &quot;Operating_Margin&quot;: operating_margin,<br>                &quot;Net_Margin&quot;: net_margin,<br>                &quot;Dividend_Payout_Ratio&quot;: dividend_payout_ratio,<br>                &quot;Effective_Tax_Rate&quot;: effective_tax_rate,<br>                &quot;Capital_Expenditures&quot;: capex,<br>                &quot;Inventory_Turnover&quot;: inventory_turnover,<br>                &quot;Receivables_Turnover&quot;: receivables_turnover,<br>            })<br><br>            # Growth rates (YoY)<br>            if i &lt; len(combined) - 1:<br>                prev_row = combined.iloc[i + 1]<br>                prev_revenue = prev_row.get(&quot;Total Revenue&quot;, None)<br>                prev_net_income = prev_row.get(&quot;Net Income&quot;, None)<br>                year_data[&quot;Revenue_Growth_YoY&quot;] = ((revenue - prev_revenue) / prev_revenue) if revenue and prev_revenue else None<br>                year_data[&quot;Net_Income_Growth_YoY&quot;] = ((net_income - prev_net_income) / prev_net_income) if net_income and prev_net_income else None<br>        except Exception:<br>            pass<br>        records.append(year_data)<br><br>    return {&quot;annual_financials&quot;: records[:2]}<br><br><br><br><br># @mcp.tool()<br># @tracked_cache<br>async def get_stock_price(symbol: str) -&gt; Optional[float]:<br>    &quot;&quot;&quot;<br>    Retrieve the latest stock price for a given symbol.<br><br>    Args:<br>        symbol (str): The stock symbol (e.g., &quot;AAPL&quot;, &quot;MSFT&quot;).<br><br>    Returns:<br>        float: The latest stock price if successful.<br>        None: If the price data is unavailable or invalid.<br>    &quot;&quot;&quot;<br>    logging.debug(f&quot;**************fetch_stock_info called with: {symbol}&quot;)<br>    logging.debug(f&quot;***************Cache stats - Hits: {tracked_cache.hits}, Misses: {tracked_cache.misses}&quot;)<br>    logging.debug(f&quot;═══════════════════════════════════════════════════&quot;)<br>    logging.debug(f&quot;fetch_stock_info called with: &#39;{symbol}&#39;&quot;)<br>    logging.debug(f&quot;Type of symbol: {type(symbol)}, Value: &#39;{symbol}&#39;&quot;)<br>    logging.debug(f&quot;Cache stats - Hits: {tracked_cache.hits}, Misses: {tracked_cache.misses}&quot;)<br>    logging.debug(f&quot;Current cache size: {len(price_cache)}&quot;)<br>    logging.debug(f&quot;Cache keys: {list(price_cache.keys())}&quot;)<br>    logging.debug(f&quot;═══════════════════════════════════════════════════&quot;)<br>    try:<br>        ticker = yf.Ticker(symbol)<br><br>        # Get data with timeout and validation<br>        data = ticker.history(<br>            period=&quot;1d&quot;,<br>            interval=&quot;1m&quot;,  # More frequent data for accuracy<br>            prepost=False,  # Only regular market hours<br>            timeout=10  # Fail fast if no response<br>        )<br><br>        if data.empty:<br>            logging.error(f&quot;No price data for {symbol}&quot;)<br>            return None<br><br>        # Validate we have closing price<br>        if &quot;Close&quot; not in data.columns:<br>            logging.error(f&quot;Missing Close price for {symbol}&quot;)<br>            return None<br><br>        latest_price = data[&quot;Close&quot;].iloc[-1]<br><br>        # Price sanity check<br>        if not isinstance(latest_price, (float, int)) or latest_price &lt;= 0:<br>            logging.error(f&quot;Invalid price {latest_price} for {symbol}&quot;)<br>            return None<br><br>       # logging.info(f&quot;Price retrieved for {symbol}: ${latest_price:.2f}&quot;)<br>        return float(latest_price)<br><br>    except Exception as e:<br>        logging.error(f&quot;Failed to get price for {symbol}: {str(e)}&quot;)<br>        return None<br><br><br>@mcp.tool()<br>@tracked_cache<br>async def get_stock_history(symbol: str, period: str = &quot;1mo&quot;) -&gt; DataFrame:<br>    &quot;&quot;&quot;<br>    Retrieve historical stock price data with technical indicators.<br><br>    Args:<br>        symbol (str): The stock symbol (e.g., &quot;AAPL&quot;, &quot;MSFT&quot;).<br>        period (str): The time period for the data (default: &quot;1mo&quot;).<br>                      Valid values: &quot;1d&quot;, &quot;5d&quot;, &quot;1mo&quot;, &quot;3mo&quot;, &quot;6mo&quot;, &quot;1y&quot;, &quot;2y&quot;, &quot;5y&quot;, &quot;10y&quot;, &quot;ytd&quot;, &quot;max&quot;.<br><br>    Returns:<br>        DataFrame: A DataFrame containing OHLCV data, technical indicators, and metadata.<br>                   Metadata is stored in the `attrs` attribute of the DataFrame.<br>    &quot;&quot;&quot;<br>    logging.debug(f&quot;**************fetch_stock_info called with: {symbol}&quot;)<br>    logging.debug(f&quot;***************Cache stats - Hits: {tracked_cache.hits}, Misses: {tracked_cache.misses}&quot;)<br>    logging.debug(f&quot;═══════════════════════════════════════════════════&quot;)<br>    logging.debug(f&quot;fetch_stock_info called with: &#39;{symbol}&#39;&quot;)<br>    logging.debug(f&quot;Type of symbol: {type(symbol)}, Value: &#39;{symbol}&#39;&quot;)<br>    logging.debug(f&quot;Cache stats - Hits: {tracked_cache.hits}, Misses: {tracked_cache.misses}&quot;)<br>    logging.debug(f&quot;Current cache size: {len(price_cache)}&quot;)<br>    logging.debug(f&quot;Cache keys: {list(price_cache.keys())}&quot;)<br>    logging.debug(f&quot;═══════════════════════════════════════════════════&quot;)<br>    # Input validation<br>    valid_periods = [&#39;1d&#39;, &#39;5d&#39;, &#39;1mo&#39;, &#39;3mo&#39;, &#39;6mo&#39;, &#39;1y&#39;, &#39;2y&#39;, &#39;5y&#39;, &#39;10y&#39;, &#39;ytd&#39;, &#39;max&#39;]<br>    if period not in valid_periods:<br>        logging.error(f&quot;Invalid period: {period}. Valid periods: {valid_periods}&quot;)<br>        return DataFrame()<br><br>    try:<br>        ticker = yf.Ticker(symbol)<br><br>        # Get historical data with modern API<br>        history = ticker.history(<br>            period=period,<br>            interval=&quot;1d&quot;,<br>            actions=True,<br>            auto_adjust=True,<br>            prepost=False  # Disable pre/post market data for consistency<br>        )<br><br>        if history.empty:<br>            logging.warning(f&quot;No data for {symbol} (period: {period})&quot;)<br>            return DataFrame()<br><br>        # Validate required columns<br>        required_cols = [&#39;Open&#39;, &#39;High&#39;, &#39;Low&#39;, &#39;Close&#39;, &#39;Volume&#39;]<br>        missing_cols = [col for col in required_cols if col not in history.columns]<br>        if missing_cols:<br>            logging.error(f&quot;Missing columns: {missing_cols}&quot;)<br>            return DataFrame()<br><br>        # Calculate technical indicators<br>        def safe_calc(series, window):<br>            try:<br>                return series.rolling(window=window).mean()<br>            except:<br>                return None<br><br>        indicators = {<br>            &#39;Daily_Return&#39;: history[&#39;Close&#39;].pct_change(),<br>            &#39;MA5&#39;: safe_calc(history[&#39;Close&#39;], 5),<br>            &#39;MA20&#39;: safe_calc(history[&#39;Close&#39;], 20),<br>            &#39;Daily_Range&#39;: history[&#39;High&#39;] - history[&#39;Low&#39;],<br>            &#39;Volume_MA5&#39;: safe_calc(history[&#39;Volume&#39;], 5)<br>        }<br><br>        # Add indicators only if calculation succeeded<br>        for name, values in indicators.items():<br>            if values is not None:<br>                history[name] = values.round(4)<br><br>        # Add metadata<br>        metadata = {<br>            &#39;symbol&#39;: symbol,<br>            &#39;period&#39;: period,<br>            &#39;start_date&#39;: history.index[0].strftime(&#39;%Y-%m-%d&#39;),<br>            &#39;end_date&#39;: history.index[-1].strftime(&#39;%Y-%m-%d&#39;),<br>            &#39;trading_days&#39;: len(history),<br>            &#39;summary_stats&#39;: {<br>                &#39;start_price&#39;: float(history[&#39;Open&#39;].iloc[0]),<br>                &#39;end_price&#39;: float(history[&#39;Close&#39;].iloc[-1]),<br>                &#39;period_high&#39;: float(history[&#39;High&#39;].max()),<br>                &#39;period_low&#39;: float(history[&#39;Low&#39;].min()),<br>                &#39;avg_volume&#39;: int(history[&#39;Volume&#39;].mean()),<br>                &#39;total_volume&#39;: int(history[&#39;Volume&#39;].sum()),<br>                &#39;price_change&#39;: float(history[&#39;Close&#39;].iloc[-1] - history[&#39;Open&#39;].iloc[0]),<br>                &#39;price_change_pct&#39;: round(float(<br>                    (history[&#39;Close&#39;].iloc[-1] - history[&#39;Open&#39;].iloc[0]) /<br>                    history[&#39;Open&#39;].iloc[0] * 100), 2)<br>            }<br>        }<br><br>        history.attrs.update(metadata)<br>        return history<br><br>    except Exception as e:<br>        logging.error(f&quot;Error processing {symbol}: {str(e)}&quot;, exc_info=True)<br>        return DataFrame()<br><br><br>@mcp.tool()<br>@tracked_cache<br>async def fetch_technical_indicators(symbol: str, period: str = &quot;1mo&quot;) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Get daily technical indicators for a stock.<br>    Args: symbol (str), period (str)<br>    Returns: dict with indicators per day.<br>    &quot;&quot;&quot;<br>    import pandas as pd<br>    import yfinance as yf<br><br>    def safe_calc(series, window):<br>        try:<br>            return series.rolling(window=window).mean()<br>        except Exception:<br>            return None<br><br>    def calc_atr(df, window=14):<br>        high_low = df[&#39;High&#39;] - df[&#39;Low&#39;]<br>        high_close = (df[&#39;High&#39;] - df[&#39;Close&#39;].shift()).abs()<br>        low_close = (df[&#39;Low&#39;] - df[&#39;Close&#39;].shift()).abs()<br>        tr = pd.concat([high_low, high_close, low_close], axis=1).max(axis=1)<br>        return tr.rolling(window=window).mean()<br><br>    def calc_obv(df):<br>        obv = [0]<br>        for i in range(1, len(df)):<br>            if df[&#39;Close&#39;].iloc[i] &gt; df[&#39;Close&#39;].iloc[i - 1]:<br>                obv.append(obv[-1] + df[&#39;Volume&#39;].iloc[i])<br>            elif df[&#39;Close&#39;].iloc[i] &lt; df[&#39;Close&#39;].iloc[i - 1]:<br>                obv.append(obv[-1] - df[&#39;Volume&#39;].iloc[i])<br>            else:<br>                obv.append(obv[-1])<br>        return pd.Series(obv, index=df.index)<br><br>    def calc_adx(df, window=14):<br>        try:<br>            up = df[&#39;High&#39;].diff()<br>            down = -df[&#39;Low&#39;].diff()<br>            plus_dm = np.where((up &gt; down) &amp; (up &gt; 0), up, 0)<br>            minus_dm = np.where((down &gt; up) &amp; (down &gt; 0), down, 0)<br><br>            # Ensure tr is a Series with a valid index<br>            tr_series = calc_atr(df, window)<br>            if not isinstance(tr_series, pd.Series):<br>                return pd.Series([np.nan] * len(df), index=df.index)<br><br>            plus_di = 100 * pd.Series(plus_dm, index=df.index).rolling(window).sum() / tr_series<br>            minus_di = 100 * pd.Series(minus_dm, index=df.index).rolling(window).sum() / tr_series<br><br>            # Handle potential division by zero<br>            dx_denominator = (plus_di + minus_di)<br>            dx = 100 * (abs(plus_di - minus_di) / dx_denominator.where(dx_denominator != 0, np.nan))<br><br>            adx = dx.rolling(window).mean()<br>            return adx<br>        except Exception:<br>            return pd.Series([np.nan] * len(df), index=df.index)<br><br>    try:<br>        ticker = yf.Ticker(symbol)<br>        history = ticker.history(period=period, interval=&quot;1d&quot;, auto_adjust=True, prepost=False)<br>        if history.empty:<br>            return {&quot;error&quot;: f&quot;No data for {symbol} ({period})&quot;}<br><br>        # Indicators<br>        indicators = {<br>            &quot;SMA5&quot;: safe_calc(history[&quot;Close&quot;], 5),<br>            &quot;SMA10&quot;: safe_calc(history[&quot;Close&quot;], 10),<br>            &quot;SMA20&quot;: safe_calc(history[&quot;Close&quot;], 20),<br><br>            &quot;SMA50&quot;: safe_calc(history[&quot;Close&quot;], 50),<br>            &quot;EMA12&quot;: history[&quot;Close&quot;].ewm(span=12, adjust=False).mean(),<br>            &quot;EMA26&quot;: history[&quot;Close&quot;].ewm(span=26, adjust=False).mean(),<br>            &quot;RSI14&quot;: 100 - (100 / (<br>                    1 + history[&quot;Close&quot;].pct_change().rolling(14).mean() / history[&quot;Close&quot;].pct_change().rolling(<br>                14).std())),<br>            &quot;MACD&quot;: history[&quot;Close&quot;].ewm(span=12, adjust=False).mean() - history[&quot;Close&quot;].ewm(span=26,<br>                                                                                              adjust=False).mean(),<br>            &quot;Bollinger_Upper&quot;: safe_calc(history[&quot;Close&quot;], 20) + 2 * history[&quot;Close&quot;].rolling(20).std(),<br>            &quot;Bollinger_Lower&quot;: safe_calc(history[&quot;Close&quot;], 20) - 2 * history[&quot;Close&quot;].rolling(20).std(),<br>            &quot;Daily_Range&quot;: history[&quot;High&quot;] - history[&quot;Low&quot;],<br>            &quot;Volume_MA5&quot;: safe_calc(history[&quot;Volume&quot;], 5),<br>            &quot;ATR14&quot;: calc_atr(history, 14),<br>            &quot;ADX14&quot;: calc_adx(history, 14),<br>            &quot;OBV&quot;: calc_obv(history)<br>        }<br><br>        for name, values in indicators.items():<br>            if values is not None:<br>                history[name] = values.round(4)<br><br>        # Clean up NaN/NaT values for JSON serialization<br>        history = history.replace({np.nan: None})<br><br>        # Prepare output<br>        result = history.reset_index().to_dict(orient=&quot;records&quot;)<br>        # Convert Timestamp objects in records to strings<br>        for record in result:<br>            if &#39;Date&#39; in record and isinstance(record[&#39;Date&#39;], pd.Timestamp):<br>                record[&#39;Date&#39;] = record[&#39;Date&#39;].strftime(&#39;%Y-%m-%d&#39;)<br><br>        return {&quot;symbol&quot;: symbol, &quot;period&quot;: period, &quot;indicators&quot;: result}<br><br>    except TypeError as te:<br>        logging.error(f&quot;Serialization error in fetch_technical_indicators for {symbol}: {str(te)}&quot;)<br>        return {&quot;error&quot;: f&quot;Could not serialize data. Check for non-standard data types. Details: {str(te)}&quot;}<br>    except Exception as e:<br>        logging.error(f&quot;General error in fetch_technical_indicators for {symbol}: {str(e)}&quot;)<br>        return {&quot;error&quot;: str(e)}<br><br><br><br><br>@mcp.tool()<br>@tracked_cache<br>async def fetch_dividends(symbol: str) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Retrieve historical dividend data for a given stock symbol.<br><br>    Args:<br>        symbol (str): The stock symbol of the company (e.g., &quot;AAPL&quot;, &quot;TSLA&quot;).<br><br>    Returns:<br>        dict: A dictionary containing:<br>              - `dividend_data` (dict): Historical dividend data and statistics.<br>              - `dividend_summary` (dict): Summary of dividend-related metrics.<br>              - `last_updated` (str): Timestamp of the data retrieval.<br>              - `error` (str, optional): Error message if the data retrieval fails.<br>    &quot;&quot;&quot;<br>    try:<br>        ticker = yf.Ticker(symbol)<br><br>        # Get dividend data<br>        dividends = ticker.history(period=&quot;max&quot;)[&#39;Dividends&#39;]<br><br>        # Get additional dividend info from ticker.info<br>        info = ticker.info<br><br>        result = {<br>            &quot;symbol&quot;: symbol,<br>            &quot;dividend_data&quot;: {},<br>            &quot;dividend_summary&quot;: {},<br>            &quot;last_updated&quot;: datetime.now().strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)<br>        }<br><br>        # Process historical dividends<br>        if not dividends.empty:<br>            # Filter out zero dividends and create historical data<br>            div_history = {}<br>            for date, amount in dividends[dividends &gt; 0].items():<br>                div_history[date.strftime(&quot;%Y-%m-%d&quot;)] = float(amount)<br><br>            result[&quot;dividend_data&quot;] = {<br>                &quot;history&quot;: div_history,<br>                &quot;total_dividends_paid&quot;: len(div_history),<br>                &quot;latest_dividend&quot;: float(dividends[dividends &gt; 0].iloc[-1]) if len(<br>                    dividends[dividends &gt; 0]) &gt; 0 else None,<br>                &quot;latest_dividend_date&quot;: dividends[dividends &gt; 0].index[-1].strftime(&quot;%Y-%m-%d&quot;) if len(<br>                    dividends[dividends &gt; 0]) &gt; 0 else None<br>            }<br><br>            # Calculate some basic statistics<br>            if div_history:<br>                dividend_values = list(div_history.values())<br>                result[&quot;dividend_data&quot;][&quot;statistics&quot;] = {<br>                    &quot;average_dividend&quot;: float(sum(dividend_values) / len(dividend_values)),<br>                    &quot;minimum_dividend&quot;: float(min(dividend_values)),<br>                    &quot;maximum_dividend&quot;: float(max(dividend_values)),<br>                    &quot;total_dividend_amount&quot;: float(sum(dividend_values))<br>                }<br><br>        # Add dividend summary from info<br>        dividend_summary = {}<br>        dividend_fields = {<br>            &quot;dividendRate&quot;: &quot;annual_dividend_rate&quot;,<br>            &quot;dividendYield&quot;: &quot;dividend_yield&quot;,<br>            &quot;payoutRatio&quot;: &quot;payout_ratio&quot;,<br>            &quot;fiveYearAvgDividendYield&quot;: &quot;five_year_avg_dividend_yield&quot;,<br>            &quot;trailingAnnualDividendRate&quot;: &quot;trailing_annual_dividend_rate&quot;,<br>            &quot;trailingAnnualDividendYield&quot;: &quot;trailing_annual_dividend_yield&quot;<br>        }<br><br>        for api_field, result_field in dividend_fields.items():<br>            if api_field in info and info[api_field] is not None:<br>                dividend_summary[result_field] = float(info[api_field])<br><br>        # Add dividend dates<br>        date_fields = {<br>            &quot;dividendDate&quot;: &quot;next_dividend_date&quot;,<br>            &quot;exDividendDate&quot;: &quot;ex_dividend_date&quot;,<br>            &quot;lastDividendDate&quot;: &quot;last_dividend_date&quot;<br>        }<br><br>        for api_field, result_field in date_fields.items():<br>            if api_field in info and info[api_field] is not None:<br>                try:<br>                    date_value = datetime.fromtimestamp(info[api_field])<br>                    dividend_summary[result_field] = date_value.strftime(&quot;%Y-%m-%d&quot;)<br>                except (TypeError, ValueError) as e:<br>                    logging.warning(f&quot;Could not process {api_field}: {e}&quot;)<br><br>        if dividend_summary:<br>            result[&quot;dividend_summary&quot;] = dividend_summary<br><br>        # Check if we have any dividend data<br>        if not result[&quot;dividend_data&quot;] and not result[&quot;dividend_summary&quot;]:<br>            logging.warning(f&quot;No dividend data found for {symbol}&quot;)<br>            return {<br>                &quot;error&quot;: f&quot;No dividend data available for {symbol}&quot;,<br>                &quot;symbol&quot;: symbol,<br>                &quot;last_updated&quot;: result[&quot;last_updated&quot;]<br>            }<br><br>        return result<br><br>    except Exception as e:<br>        logging.error(f&quot;Error fetching dividends for {symbol}: {str(e)}&quot;)<br>        return {<br>            &quot;error&quot;: f&quot;Failed to fetch dividends: {str(e)}&quot;,<br>            &quot;symbol&quot;: symbol,<br>            &quot;last_updated&quot;: datetime.now().strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)<br>        }<br><br><br>@mcp.tool()<br>@tracked_cache<br>async def fetch_actions(symbol: str) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Retrieve corporate actions (dividends and stock splits) for a given stock symbol.<br><br>    Args:<br>        symbol (str): The stock symbol of the company (e.g., &quot;AAPL&quot;, &quot;TSLA&quot;).<br><br>    Returns:<br>        dict: A dictionary containing:<br>              - `actions` (dict): Historical dividend and stock split data.<br>              - `summary` (dict): Summary statistics for dividends and splits.<br>              - `last_updated` (str): Timestamp of the data retrieval.<br>              - `error` (str, optional): Error message if the data retrieval fails.<br>    &quot;&quot;&quot;<br>    try:<br>        ticker = yf.Ticker(symbol)<br><br>        # Get historical data with actions<br>        history = ticker.history(period=&quot;max&quot;)<br><br>        result = {<br>            &quot;symbol&quot;: symbol,<br>            &quot;actions&quot;: {<br>                &quot;dividends&quot;: {},<br>                &quot;splits&quot;: {}<br>            },<br>            &quot;summary&quot;: {<br>                &quot;total_dividends&quot;: 0,<br>                &quot;total_splits&quot;: 0,<br>                &quot;dividend_stats&quot;: {},<br>                &quot;split_stats&quot;: {}<br>            },<br>            &quot;last_updated&quot;: datetime.now().strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)<br>        }<br><br>        # Process dividends<br>        if &#39;Dividends&#39; in history.columns:<br>            dividends = history[&#39;Dividends&#39;]<br>            div_data = {}<br><br>            # Filter out zero dividends<br>            non_zero_dividends = dividends[dividends &gt; 0]<br><br>            if not non_zero_dividends.empty:<br>                for date, amount in non_zero_dividends.items():<br>                    div_data[date.strftime(&quot;%Y-%m-%d&quot;)] = float(amount)<br><br>                dividend_values = list(div_data.values())<br>                result[&quot;actions&quot;][&quot;dividends&quot;] = div_data<br>                result[&quot;summary&quot;][&quot;dividend_stats&quot;] = {<br>                    &quot;total_dividends_paid&quot;: len(div_data),<br>                    &quot;first_dividend_date&quot;: min(div_data.keys()),<br>                    &quot;last_dividend_date&quot;: max(div_data.keys()),<br>                    &quot;average_dividend&quot;: float(sum(dividend_values) / len(dividend_values)),<br>                    &quot;minimum_dividend&quot;: float(min(dividend_values)),<br>                    &quot;maximum_dividend&quot;: float(max(dividend_values)),<br>                    &quot;total_dividend_amount&quot;: float(sum(dividend_values))<br>                }<br>                result[&quot;summary&quot;][&quot;total_dividends&quot;] = len(div_data)<br><br>        # Process stock splits<br>        if &#39;Stock Splits&#39; in history.columns:<br>            splits = history[&#39;Stock Splits&#39;]<br>            split_data = {}<br><br>            # Filter out non-split events<br>            non_zero_splits = splits[splits != 0]<br><br>            if not non_zero_splits.empty:<br>                for date, ratio in non_zero_splits.items():<br>                    split_data[date.strftime(&quot;%Y-%m-%d&quot;)] = float(ratio)<br><br>                split_values = list(split_data.values())<br>                result[&quot;actions&quot;][&quot;splits&quot;] = split_data<br>                result[&quot;summary&quot;][&quot;split_stats&quot;] = {<br>                    &quot;total_splits&quot;: len(split_data),<br>                    &quot;first_split_date&quot;: min(split_data.keys()),<br>                    &quot;last_split_date&quot;: max(split_data.keys()),<br>                    &quot;split_ratios&quot;: split_data<br>                }<br>                result[&quot;summary&quot;][&quot;total_splits&quot;] = len(split_data)<br><br>        # Add additional info from ticker.info<br>        try:<br>            info = ticker.info<br><br>            # Add upcoming dividend information if available<br>            if &#39;dividendDate&#39; in info and info[&#39;dividendDate&#39;]:<br>                next_div_date = datetime.fromtimestamp(info[&#39;dividendDate&#39;])<br>                result[&quot;upcoming_dividend&quot;] = {<br>                    &quot;date&quot;: next_div_date.strftime(&quot;%Y-%m-%d&quot;),<br>                    &quot;amount&quot;: info.get(&#39;dividendRate&#39;, None)<br>                }<br><br>            # Add ex-dividend date if available<br>            if &#39;exDividendDate&#39; in info and info[&#39;exDividendDate&#39;]:<br>                ex_div_date = datetime.fromtimestamp(info[&#39;exDividendDate&#39;])<br>                result[&quot;ex_dividend_date&quot;] = ex_div_date.strftime(&quot;%Y-%m-%d&quot;)<br><br>        except Exception as e:<br>            logging.warning(f&quot;Error processing additional info: {str(e)}&quot;)<br><br>        # Check if we have any data<br>        if not result[&quot;actions&quot;][&quot;dividends&quot;] and not result[&quot;actions&quot;][&quot;splits&quot;]:<br>            logging.warning(f&quot;No corporate actions found for {symbol}&quot;)<br>            return {<br>                &quot;error&quot;: f&quot;No corporate actions available for {symbol}&quot;,<br>                &quot;symbol&quot;: symbol,<br>                &quot;last_updated&quot;: result[&quot;last_updated&quot;]<br>            }<br><br>        return result<br><br>    except Exception as e:<br>        logging.error(f&quot;Error fetching actions for {symbol}: {str(e)}&quot;)<br>        return {<br>            &quot;error&quot;: f&quot;Failed to fetch actions: {str(e)}&quot;,<br>            &quot;symbol&quot;: symbol,<br>            &quot;last_updated&quot;: datetime.now().strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)<br>        }<br><br><br>@mcp.tool()<br>@tracked_cache<br>async def fetch_calendar(symbol: str) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Retrieve upcoming company events, such as earnings dates, for a given stock symbol.<br><br>    Args:<br>        symbol (str): The stock symbol of the company (e.g., &quot;AAPL&quot;, &quot;TSLA&quot;).<br><br>    Returns:<br>        dict: A dictionary containing:<br>              - `events` (dict): Upcoming earnings and other event details.<br>              - `last_updated` (str): Timestamp of the data retrieval.<br>              - `error` (str, optional): Error message if the data retrieval fails.<br>    &quot;&quot;&quot;<br>    try:<br>        ticker = yf.Ticker(symbol)<br>        calendar = ticker.calendar<br>        earnings_dates = ticker.earnings_dates<br><br>        result = {<br>            &quot;symbol&quot;: symbol,<br>            &quot;events&quot;: {},<br>            &quot;last_updated&quot;: datetime.now().strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)<br>        }<br><br>        # Process calendar events<br>        if calendar is not None and not calendar.empty:<br>            try:<br>                calendar_dict = {}<br><br>                # Process Earnings Date<br>                if &#39;Earnings Date&#39; in calendar.index:<br>                    earnings_date = calendar.loc[&#39;Earnings Date&#39;].iloc[0]<br>                    calendar_dict[&#39;earnings_date&#39;] = earnings_date.strftime(&quot;%Y-%m-%d&quot;) if pd.notnull(<br>                        earnings_date) else None<br><br>                # Process Earnings High/Low<br>                if &#39;Earnings High&#39; in calendar.index:<br>                    calendar_dict[&#39;earnings_estimate_high&#39;] = float(<br>                        calendar.loc[&#39;Earnings High&#39;].iloc[0]) if pd.notnull(<br>                        calendar.loc[&#39;Earnings High&#39;].iloc[0]) else None<br><br>                if &#39;Earnings Low&#39; in calendar.index:<br>                    calendar_dict[&#39;earnings_estimate_low&#39;] = float(calendar.loc[&#39;Earnings Low&#39;].iloc[0]) if pd.notnull(<br>                        calendar.loc[&#39;Earnings Low&#39;].iloc[0]) else None<br><br>                # Process Revenue Forecast<br>                if &#39;Revenue Forecast&#39; in calendar.index:<br>                    calendar_dict[&#39;revenue_forecast&#39;] = float(calendar.loc[&#39;Revenue Forecast&#39;].iloc[0]) if pd.notnull(<br>                        calendar.loc[&#39;Revenue Forecast&#39;].iloc[0]) else None<br><br>                result[&quot;events&quot;][&quot;upcoming_earnings&quot;] = calendar_dict<br><br>            except Exception as e:<br>                logging.warning(f&quot;Error processing calendar data: {str(e)}&quot;)<br><br>        # Process detailed earnings dates<br>        if earnings_dates is not None and not earnings_dates.empty:<br>            try:<br>                earnings_list = []<br>                for date, row in earnings_dates.iterrows():<br>                    earnings_event = {<br>                        &quot;date&quot;: date.strftime(&quot;%Y-%m-%d&quot;),<br>                        &quot;estimate&quot;: float(row.get(&#39;EPS Estimate&#39;, None)) if pd.notnull(<br>                            row.get(&#39;EPS Estimate&#39;, None)) else None,<br>                        &quot;actual&quot;: float(row.get(&#39;Reported EPS&#39;, None)) if pd.notnull(<br>                            row.get(&#39;Reported EPS&#39;, None)) else None,<br>                        &quot;surprise&quot;: float(row.get(&#39;Surprise(%)&#39;, None)) if pd.notnull(<br>                            row.get(&#39;Surprise(%)&#39;, None)) else None<br>                    }<br>                    earnings_list.append(earnings_event)<br><br>                result[&quot;events&quot;][&quot;earnings_history&quot;] = earnings_list[:4]  # Last 4 earnings dates<br><br>            except Exception as e:<br>                logging.warning(f&quot;Error processing earnings dates: {str(e)}&quot;)<br><br>        # Add additional company events if available<br>        try:<br>            # Get company information<br>            info = ticker.info<br><br>            # Add next dividend date if available<br>            if &#39;dividendDate&#39; in info and info[&#39;dividendDate&#39;] is not None:<br>                div_date = datetime.fromtimestamp(info[&#39;dividendDate&#39;])<br>                result[&quot;events&quot;][&quot;next_dividend&quot;] = {<br>                    &quot;date&quot;: div_date.strftime(&quot;%Y-%m-%d&quot;),<br>                    &quot;amount&quot;: info.get(&#39;dividendRate&#39;, None)<br>                }<br><br>            # Add ex-dividend date if available<br>            if &#39;exDividendDate&#39; in info and info[&#39;exDividendDate&#39;] is not None:<br>                ex_div_date = datetime.fromtimestamp(info[&#39;exDividendDate&#39;])<br>                result[&quot;events&quot;][&quot;ex_dividend_date&quot;] = ex_div_date.strftime(&quot;%Y-%m-%d&quot;)<br><br>        except Exception as e:<br>            logging.warning(f&quot;Error processing additional events: {str(e)}&quot;)<br><br>        # Check if we have any events<br>        if not any(result[&quot;events&quot;].values()):<br>            logging.warning(f&quot;No calendar events found for {symbol}&quot;)<br>            return {<br>                &quot;error&quot;: f&quot;No calendar events available for {symbol}&quot;,<br>                &quot;symbol&quot;: symbol,<br>                &quot;last_updated&quot;: result[&quot;last_updated&quot;]<br>            }<br><br>        return result<br><br>    except Exception as e:<br>        logging.error(f&quot;Error fetching calendar for {symbol}: {str(e)}&quot;)<br>        return {<br>            &quot;error&quot;: f&quot;Failed to fetch calendar: {str(e)}&quot;,<br>            &quot;symbol&quot;: symbol,<br>            &quot;last_updated&quot;: datetime.now().strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)<br>        }<br><br>@mcp.tool()<br>@tracked_cache<br>async def fetch_earnings(symbol: str) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Retrieve annual earnings history for a given stock symbol.<br><br>    Args:<br>        symbol (str): The stock symbol of the company (e.g., &quot;AAPL&quot;, &quot;TSLA&quot;).<br><br>    Returns:<br>        dict: A dictionary containing:<br>              - Years as keys and earnings data (revenue and net income) as values.<br>              - `error` (str, optional): Error message if the data retrieval fails.<br>    &quot;&quot;&quot;<br>    try:<br>        ticker = yf.Ticker(symbol)<br><br>        # Income statement -&gt; Net Income (earnings)<br>        income_stmt = ticker.income_stmt<br>        # Financials -&gt; Total Revenue<br>        financials = ticker.financials<br><br>        if income_stmt is None or financials is None:<br>            return {&quot;message&quot;: f&quot;No earnings history found for {symbol}&quot;}<br><br>        earnings_dict = {}<br><br>        for year in income_stmt.columns:<br>            revenue_val = financials.loc[&quot;Total Revenue&quot;].get(year, float(&quot;nan&quot;))<br>            earnings_val = income_stmt.loc[&quot;Net Income&quot;].get(year, float(&quot;nan&quot;))<br><br>            # Replace NaN with None<br>            revenue = None if (revenue_val is None or math.isnan(revenue_val)) else int(revenue_val)<br>            earnings = None if (earnings_val is None or math.isnan(earnings_val)) else int(earnings_val)<br><br>            earnings_dict[str(year.year)] = {<br>                &quot;Revenue&quot;: revenue,<br>                &quot;Earnings&quot;: earnings<br>            }<br><br>        return earnings_dict<br><br>    except Exception as e:<br>        return {&quot;error&quot;: str(e)}<br><br>@mcp.tool()<br>@tracked_cache<br>async def fetch_institutional_holders(symbol: str) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Retrieve institutional holders and ownership summary for a given stock symbol.<br><br>    Args:<br>        symbol (str): The stock symbol of the company (e.g., &quot;AAPL&quot;, &quot;MSFT&quot;).<br><br>    Returns:<br>        dict: A dictionary containing:<br>              - `institutional_holders` (list): List of institutional holders and their details.<br>              - `ownership_summary` (dict): Summary of major holders and ownership percentages.<br>              - `metadata` (dict): Metadata about the data retrieval.<br>              - `error` (str, optional): Error message if the data retrieval fails.<br>    &quot;&quot;&quot;<br>    result = {<br>        &quot;institutional_holders&quot;: [],<br>        &quot;ownership_summary&quot;: {},<br>        &quot;metadata&quot;: {<br>            &quot;symbol&quot;: symbol,<br>            &quot;last_updated&quot;: datetime.now().isoformat(),<br>            &quot;data_source&quot;: &quot;yfinance&quot;<br>        }<br>    }<br><br>    try:<br>        ticker = yf.Ticker(symbol)<br><br>        # Get institutional holders (new API method)<br>        inst_holders = ticker.get_institutional_holders()<br><br>        # Process institutional holders<br>        if inst_holders is not None and not inst_holders.empty:<br>            holders_list = []<br>            for _, row in inst_holders.iterrows():<br>                pct_held = row.get(&#39;% Out&#39;)<br>                holder_data = {<br>                    &quot;holder&quot;: str(row.get(&#39;Holder&#39;, &#39;N/A&#39;)),<br>                    &quot;shares&quot;: int(row.get(&#39;Shares&#39;, 0)),<br>                    &quot;date_reported&quot;: str(row.get(&#39;Date Reported&#39;, &#39;N/A&#39;)),<br>                    &quot;value&quot;: float(row.get(&#39;Value&#39;, 0)),<br>                    &quot;pct_held&quot;: float(pct_held) if pct_held is not None else None<br>                }<br>                holders_list.append(holder_data)<br><br>            result[&quot;institutional_holders&quot;] = holders_list<br>            result[&quot;metadata&quot;][&quot;total_institutions&quot;] = len(holders_list)<br>            result[&quot;metadata&quot;][&quot;total_shares&quot;] = int(inst_holders[&#39;Shares&#39;].sum())<br><br>        # Get major holders (ownership breakdown)<br>        major_holders = ticker.get_major_holders()<br><br>        # Process ownership summary<br>        if major_holders is not None and not major_holders.empty:<br>            ownership = {}<br>            for _, row in major_holders.iterrows():<br>                if len(row) &gt;= 2:<br>                    key = str(row.iloc[0]).strip()<br>                    val = str(row.iloc[1]).strip()<br>                    if &#39;%&#39; in val:<br>                        val = float(val.replace(&#39;%&#39;, &#39;&#39;)) / 100<br>                    ownership[key] = val<br>            result[&quot;ownership_summary&quot;] = ownership<br><br>    except Exception as e:<br>        result[&quot;error&quot;] = f&quot;Failed to fetch data for {symbol}&quot;<br>        result[&quot;details&quot;] = str(e)<br><br>    return result<br><br>@mcp.tool()<br>@tracked_cache<br>async def portfolio_quant_analysis(holdings: dict) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Detailed quantitative research analysis with statistical metrics , risk metrics, narrative about portfolio,Top sector exposure,Annualized volatility<br>    and optimization suggestions. Best for in-depth quant review.<br>    Args:<br>        holdings: {&quot;AAPL&quot;: 10, &quot;MSFT&quot;: 5, &quot;CASH&quot;: 5000}<br>    Returns:<br>        Detailed portfolio analytics dictionary.<br>    &quot;&quot;&quot;<br><br>    tickers = [t for t in holdings.keys() if t != &quot;CASH&quot;]<br>    data = yf.download(tickers, period=&quot;6mo&quot;, interval=&quot;1d&quot;, group_by=&quot;ticker&quot;, auto_adjust=True, progress=False)<br><br>    total_value = holdings.get(&quot;CASH&quot;, 0.0)<br>    daily_change_value = 0.0<br>    portfolio_history = pd.DataFrame()<br><br>    sector_exposure = {}<br>    industry_exposure = {}<br>    dividends_total = 0.0<br>    projected_income = 0.0<br>    top_gainers = []<br>    top_losers = []<br><br>    # Risk calculation prep<br>    returns_list = []<br>    weights = []<br>    betas = []<br><br>    for ticker in tickers:<br>        stock = yf.Ticker(ticker)<br>        hist = data[ticker][&quot;Close&quot;] if len(tickers) &gt; 1 else data[&quot;Close&quot;]<br><br>        qty = holdings[ticker]<br>        latest_price = hist.iloc[-1]<br>        prev_price = hist.iloc[-2]<br><br>        total_value += latest_price * qty<br>        daily_change_value += (latest_price - prev_price) * qty<br><br>        # Portfolio history<br>        portfolio_history[ticker] = hist.pct_change().dropna()<br>        returns_list.append(hist.pct_change().dropna())<br>        weights.append((latest_price * qty) / total_value)<br><br>        # Sector &amp; industry mapping<br>        info = stock.info<br>        sector_exposure[info.get(&quot;sector&quot;, &quot;Unknown&quot;)] = sector_exposure.get(info.get(&quot;sector&quot;, &quot;Unknown&quot;), 0) + latest_price * qty<br>        industry_exposure[info.get(&quot;industry&quot;, &quot;Unknown&quot;)] = industry_exposure.get(info.get(&quot;industry&quot;, &quot;Unknown&quot;), 0) + latest_price * qty<br><br>        # Dividend &amp; income<br>        divs = stock.dividends<br>        if not divs.empty:<br>            annual_div = divs[-4:].sum() if len(divs) &gt;= 4 else divs.sum()<br>            projected_income += annual_div * qty<br>            dividends_total += (annual_div / latest_price) * 100  # yield %<br><br>    # Normalize exposures<br>    for sector in sector_exposure:<br>        sector_exposure[sector] = round((sector_exposure[sector] / total_value) * 100, 2)<br>    for industry in industry_exposure:<br>        industry_exposure[industry] = round((industry_exposure[industry] / total_value) * 100, 2)<br><br>    # Risk metrics<br>    portfolio_returns = portfolio_history.mean(axis=1)<br>    volatility = np.std(portfolio_returns) * np.sqrt(252)<br>    sharpe = np.mean(portfolio_returns) / np.std(portfolio_returns) * np.sqrt(252) if np.std(portfolio_returns) != 0 else 0<br>    sortino = np.mean(portfolio_returns) / np.std(portfolio_returns[portfolio_returns &lt; 0]) * np.sqrt(252) if np.std(portfolio_returns[portfolio_returns &lt; 0]) != 0 else 0<br>    max_drawdown = (portfolio_history.sum(axis=1).cumsum().cummax() - portfolio_history.sum(axis=1).cumsum()).max()<br><br>    # Value at Risk (95%)<br>    var_95 = np.percentile(portfolio_returns, 5) * total_value<br><br>    # Narrative<br>    narrative = f&quot;Your portfolio is worth ${total_value:,.2f}, with a daily change of ${daily_change_value:,.2f}. &quot;<br>    narrative += f&quot;Top sector exposure: {max(sector_exposure, key=sector_exposure.get)} ({max(sector_exposure.values()):.2f}%). &quot;<br>    narrative += f&quot;Annualized volatility is {volatility:.2%}, Sharpe ratio {sharpe:.2f}.&quot;<br><br>    return {<br>        &quot;total_value&quot;: round(total_value, 2),<br>        &quot;daily_change&quot;: round(daily_change_value, 2),<br>        &quot;sector_exposure&quot;: sector_exposure,<br>        &quot;industry_exposure&quot;: industry_exposure,<br>        &quot;dividend_yield_avg&quot;: round(dividends_total / len(tickers), 2) if tickers else 0,<br>        &quot;projected_annual_income&quot;: round(projected_income, 2),<br>        &quot;risk_metrics&quot;: {<br>            &quot;volatility&quot;: round(volatility, 4),<br>            &quot;sharpe&quot;: round(sharpe, 4),<br>            &quot;sortino&quot;: round(sortino, 4),<br>            &quot;max_drawdown&quot;: round(max_drawdown, 4),<br>            &quot;value_at_risk_95&quot;: round(var_95, 2)<br>        },<br>        &quot;narrative&quot;: narrative<br>    }<br><br>@mcp.tool()<br>@tracked_cache<br>async def forecast_stock(symbol: str, forecast_days: int, p: int, d: int, q: int) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Forecast stock prices using ARIMA.<br><br>    Args:<br>        symbol (str): Stock symbol (e.g., &quot;AAPL&quot;).<br>        forecast_days (int): Number of days to forecast.<br>        p (int): ARIMA parameter for autoregression.<br>        d (int): ARIMA parameter for differencing.<br>        q (int): ARIMA parameter for moving average.<br>        p (AutoRegressive order): The number of lag observations included in the model. It determines how many past values are used to predict the current value.<br>        d (Differencing order): The number of times the data needs to be differenced to make it stationary. It accounts for trends in the data.<br>        q (Moving Average order): The size of the moving average window, which determines how many past forecast errors are used to predict the current value.<br><br>    Returns:<br>        dict: Forecasted prices and metadata.<br>    &quot;&quot;&quot;<br>    try:<br>        # Fetch historical data<br>        ticker = yf.Ticker(symbol)<br>        history = ticker.history(period=&quot;1y&quot;, interval=&quot;1d&quot;)<br>        if history.empty:<br>            return {&quot;error&quot;: f&quot;No historical data available for {symbol}&quot;}<br><br>        # Use the &#39;Close&#39; price for forecasting<br>        data = history[&#39;Close&#39;].dropna()<br><br>        # Fit ARIMA model<br>        model = ARIMA(data, order=(p, d, q))<br>        fitted_model = model.fit()<br><br>        # Generate forecasts<br>        forecast = fitted_model.get_forecast(steps=forecast_days)<br>        forecast_index = pd.date_range(start=data.index[-1] + pd.Timedelta(days=1), periods=forecast_days)<br>        forecast_values = forecast.predicted_mean<br>        conf_int = forecast.conf_int()<br><br>        # Prepare results<br>        result = {<br>            &quot;symbol&quot;: symbol,<br>            &quot;forecast&quot;: {<br>                &quot;dates&quot;: forecast_index.strftime(&quot;%Y-%m-%d&quot;).tolist(),<br>                &quot;prices&quot;: forecast_values.tolist(),<br>                &quot;confidence_intervals&quot;: conf_int.values.tolist()<br>            },<br>            &quot;model_summary&quot;: str(fitted_model.summary()),<br>            &quot;last_updated&quot;: datetime.now().strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)<br>        }<br>        return result<br><br>    except Exception as e:<br>        return {&quot;error&quot;: str(e)}<br><br><br><br>@mcp.tool()<br>@tracked_cache<br>async def crawl_web_page(query: str, freshness_hours: int = 168) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Crawl a web page or perform a search using the Tavily API.<br>    Args:<br>        query (str): The search query or URL to crawl.<br>        The freshness_hours parameter in your method specifies how recent the search results should be, in hours.<br>        The Tavily API typically supports values like 1, 3, 6, 12, 24, 48, and 168 (up to 7 days).<br><br>    Returns:<br>        dict: The search results or extracted content.<br>    &quot;&quot;&quot;<br>    logging.debug(f&quot;**************crawl_web_page called with: {query}&quot;)<br>    logging.debug(f&quot;***************Cache stats - Hits: {tracked_cache.hits}, Misses: {tracked_cache.misses}&quot;)<br>    logging.debug(f&quot;═══════════════════════════════════════════════════&quot;)<br>    logging.debug(f&quot;crawl_web_page called with: &#39;{query}&#39;&quot;)<br>    logging.debug(f&quot;Type of query: {type(query)}, Value: &#39;{query}&#39;&quot;)<br>    logging.debug(f&quot;Cache stats - Hits: {tracked_cache.hits}, Misses: {tracked_cache.misses}&quot;)<br>    logging.debug(f&quot;Current cache size: {len(price_cache)}&quot;)<br>    logging.debug(f&quot;Cache keys: {list(price_cache.keys())}&quot;)<br><br>    logging.debug(f&quot;═══════════════════════════════════════════════════&quot;)<br>    try:<br>        #search = TavilySearchResults(max_results=8)<br>        tavily_api_key = os.getenv(&#39;TAVILY_API_KEY&#39;)<br>        if not tavily_api_key:<br>            logging.warning(&quot;TAVILY_API_KEY not found in environment, using fallback key (NOT RECOMMENDED)&quot;)<br>            tavily_api_key = &quot;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&quot;  #<br><br>        print(&quot;value of tavily_api_key:&quot;, tavily_api_key)<br>        #logging.debug(f&quot;API keys: &quot;, tavily_api_key)<br>        search = TavilySearchResults(tavily_api_key=tavily_api_key, max_results=5)<br>        result = search.invoke({<br>            &quot;query&quot;: query,<br>            &quot;freshness&quot;: f&quot;{freshness_hours}h&quot;<br>        })<br>        # Always return a dict<br>        if isinstance(result, dict):<br>            return result<br>        elif isinstance(result, list):<br>            return {&quot;results&quot;: result}<br>        else:<br>            return {&quot;error&quot;: &quot;Unexpected API response type&quot;, &quot;raw_result&quot;: str(result)}<br>    except Exception as e:<br>        return {&quot;error&quot;: str(e)}<br><br><br><br><br>@mcp.tool()<br>@tracked_cache<br>async def get_fred_macro_data(series_id: str = &quot;GDP&quot;, observation_start: str = &quot;2020-01-01&quot;) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Get macroeconomic data from FRED API.<br><br>    Common series IDs:<br>    - GDP: &#39;GDP&#39;<br>    - Unemployment: &#39;UNRATE&#39;<br>    - CPI: &#39;CPIAUCSL&#39;<br>    - Interest Rates: &#39;FEDFUNDS&#39;<br>    - 10-Year Treasury: &#39;DGS10&#39;<br>    - Nonfarm Payrolls: &#39;PAYEMS&#39;<br><br>    Args:<br>        series_id (str): FRED series identifier (default: &#39;GDP&#39;)<br>        observation_start (str): Start date in YYYY-MM-DD format (default: &#39;2020-01-01&#39;)<br>    &quot;&quot;&quot;<br>    api_key = os.getenv(&#39;FRED_API_KEY&#39;)<br>    if not api_key:<br>        return {<br>            &quot;error&quot;: &quot;FRED_API_KEY not found in environment variables. Get a free key from: https://fred.stlouisfed.org/docs/api/api_key.html&quot;}<br><br>    base_url = &quot;https://api.stlouisfed.org/fred/series/observations&quot;<br><br>    # Validate series_id<br>    if not series_id or len(series_id) &gt; 25:<br>        return {&quot;error&quot;: &quot;Invalid series_id. Must be 25 or fewer alphanumeric characters.&quot;}<br><br>    params = {<br>        &#39;series_id&#39;: series_id,<br>        &#39;api_key&#39;: api_key,<br>        &#39;file_type&#39;: &#39;json&#39;,<br>        &#39;observation_start&#39;: observation_start<br>    }<br><br>    try:<br>        response = requests.get(base_url, params=params)<br><br>        if response.status_code != 200:<br>            return {<br>                &quot;error&quot;: f&quot;FRED API returned status {response.status_code}&quot;,<br>                &quot;details&quot;: response.text<br>            }<br><br>        data = response.json()<br><br>        # Check for FRED API errors<br>        if &#39;error_code&#39; in data:<br>            return {<br>                &quot;error&quot;: f&quot;FRED API Error {data.get(&#39;error_code&#39;)}&quot;,<br>                &quot;message&quot;: data.get(&#39;error_message&#39;)<br>            }<br><br>        # Extract observations<br>        if &#39;observations&#39; in data:<br>            observations = data[&#39;observations&#39;]<br>            if not observations:<br>                return {&quot;error&quot;: f&quot;No data found for series_id: {series_id}&quot;}<br><br>            # Filter out periods with no data (. values)<br>            valid_observations = [obs for obs in observations if obs.get(&#39;value&#39;) != &#39;.&#39;]<br><br>            if not valid_observations:<br>                return {&quot;error&quot;: f&quot;No valid data points found for series_id: {series_id}&quot;}<br><br>            latest_obs = valid_observations[-1]<br><br>            return {<br>                &quot;series_id&quot;: series_id,<br>                &quot;series_name&quot;: f&quot;FRED Data for {series_id}&quot;,<br>                &quot;latest_value&quot;: float(latest_obs[&#39;value&#39;]) if latest_obs[&#39;value&#39;] else None,<br>                &quot;latest_date&quot;: latest_obs[&#39;date&#39;],<br>                &quot;total_observations&quot;: len(valid_observations),<br>                &quot;data_range&quot;: {<br>                    &quot;start_date&quot;: valid_observations[0][&#39;date&#39;],<br>                    &quot;end_date&quot;: latest_obs[&#39;date&#39;]<br>                },<br>                &quot;observations_sample&quot;: valid_observations[:3]  # First 3 data points<br>            }<br>        else:<br>            return {&quot;error&quot;: &quot;Unexpected response format from FRED API&quot;, &quot;raw_response&quot;: data}<br><br>    except Exception as e:<br>        return {&quot;error&quot;: f&quot;FRED API request failed: {str(e)}&quot;}<br><br><br>@mcp.tool()<br>@tracked_cache<br>async def get_international_macro_data(country_code: str = &quot;US&quot;, indicator: str = &quot;GDP&quot;) -&gt; dict:<br>    &quot;&quot;&quot;Get international data using World Bank API (more reliable)&quot;&quot;&quot;<br><br>    country_map = {<br>        &quot;US&quot;: &quot;United States&quot;,<br>        &quot;IN&quot;: &quot;India&quot;,<br>        &quot;SG&quot;: &quot;Singapore&quot;,<br>        &quot;CN&quot;: &quot;China&quot;,<br>        &quot;JP&quot;: &quot;Japan&quot;<br>    }<br><br>    indicator_map = {<br>        &quot;GDP&quot;: &quot;NY.GDP.MKTP.CD&quot;,  # GDP (current US$)<br>        &quot;GDP_GROWTH&quot;: &quot;NY.GDP.MKTP.KD.ZG&quot;,  # GDP growth (annual %)<br>        &quot;INFLATION&quot;: &quot;FP.CPI.TOTL.ZG&quot;,  # Inflation, consumer prices<br>        &quot;CPI&quot;: &quot;FP.CPI.TOTL&quot;,  # Consumer Price Index<br>        &quot;UNEMPLOYMENT&quot;: &quot;SL.UEM.TOTL.ZS&quot;  # Unemployment rate<br>    }<br><br>    if country_code not in country_map:<br>        return {&quot;error&quot;: f&quot;Country code {country_code} not supported&quot;}<br><br>    if indicator not in indicator_map:<br>        return {&quot;error&quot;: f&quot;Indicator {indicator} not supported&quot;}<br><br>    indicator_code = indicator_map[indicator]<br>    url = f&quot;http://api.worldbank.org/v2/country/{country_code}/indicator/{indicator_code}&quot;<br><br>    params = {<br>        &#39;format&#39;: &#39;json&#39;,<br>        &#39;per_page&#39;: &#39;10&#39;,<br>        &#39;date&#39;: &#39;2010:2024&#39;<br>    }<br><br>    try:<br>        response = requests.get(url, params=params)<br>        data = response.json()<br><br>        if isinstance(data, list) and len(data) &gt; 1:<br>            observations = data[1]<br>            if observations:<br>                latest_data = next((obs for obs in observations if obs[&#39;value&#39;] is not None), None)<br><br>                if latest_data:<br>                    return {<br>                        &quot;country&quot;: country_map[country_code],<br>                        &quot;indicator&quot;: indicator,<br>                        &quot;latest_value&quot;: latest_data[&#39;value&#39;],<br>                        &quot;year&quot;: latest_data[&#39;date&#39;],<br>                        &quot;unit&quot;: &quot;Various units&quot;,<br>                        &quot;source&quot;: &quot;World Bank&quot;,<br>                        &quot;data_points&quot;: len([obs for obs in observations if obs[&#39;value&#39;] is not None])<br>                    }<br><br>        return {&quot;error&quot;: f&quot;No data available for {country_map[country_code]} {indicator}&quot;}<br><br>    except Exception as e:<br>        return {&quot;error&quot;: f&quot;World Bank API request failed: {str(e)}&quot;}<br><br># Internal, non-tool function for statistics logic<br>def _get_cache_statistics_logic() -&gt; Dict[str, Any]:<br>    &quot;&quot;&quot;Shared logic for getting cache statistics.&quot;&quot;&quot;<br>    total_requests = tracked_cache.hits + tracked_cache.misses<br>    hit_ratio = tracked_cache.hits / total_requests if total_requests &gt; 0 else 0<br><br>    return {<br>        &quot;hits&quot;: tracked_cache.hits,<br>        &quot;misses&quot;: tracked_cache.misses,<br>        &quot;total_requests&quot;: total_requests,<br>        &quot;hit_ratio&quot;: f&quot;{hit_ratio:.2%}&quot;,<br>        &quot;max_size&quot;: price_cache.maxsize,<br>        &quot;current_size&quot;: len(price_cache),<br>        &quot;ttl_seconds&quot;: price_cache.ttl,<br>        &quot;last_reset_seconds_ago&quot;: time.time() - tracked_cache._last_reset,<br>        &quot;performance&quot;: &quot;Excellent&quot; if hit_ratio &gt; 0.7 else &quot;Good&quot; if hit_ratio &gt; 0.4 else &quot;Needs improvement&quot;<br>    }<br><br>@mcp.tool()<br>async def get_cache_stats() -&gt; Dict[str, Any]:<br>    &quot;&quot;&quot;Retrieve statistics about the price cache.&quot;&quot;&quot;<br>    return _get_cache_statistics_logic()<br><br><br>@mcp.tool()<br>async def view_cache_records() -&gt; dict:<br>    &quot;&quot;&quot;<br>    Inspect the current records stored in the cache.<br>    Returns a dictionary of cache keys and their corresponding values,<br>    along with cache metadata.<br>    &quot;&quot;&quot;<br>    records = []<br>    try:<br>        # The `items()` method is delegated to the underlying TTLCache<br>        for key, value in tracked_cache.items():<br>            # The key is a tuple from hashkey, e.g., (&#39;function_name&#39;, &#39;arg1&#39;, ...)<br>            tool_name = &quot;unknown&quot;<br>            if isinstance(key, tuple) and len(key) &gt; 0 and isinstance(key[0], str):<br>                tool_name = key[0]<br>                # Represent args/kwargs part of the key as a string<br>                key_args = str(key[1:])<br>            else:<br>                key_args = str(key)<br><br>            record_entry = {<br>                &quot;tool_name&quot;: tool_name,<br>                &quot;cache_key_args&quot;: key_args<br>            }<br><br>            # Handle pandas DataFrame serialization<br>            if isinstance(value, pd.DataFrame):<br>                record_entry[&quot;value_type&quot;] = &quot;DataFrame&quot;<br>                record_entry[&quot;value&quot;] = value.head().to_dict(orient=&#39;records&#39;)<br>                record_entry[&quot;value_preview&quot;] = f&quot;DataFrame with {len(value)} rows&quot;<br>            # Handle other basic JSON-serializable types<br>            elif isinstance(value, (dict, list, str, int, float, bool)) or value is None:<br>                record_entry[&quot;value_type&quot;] = str(type(value).__name__)<br>                record_entry[&quot;value&quot;] = value<br>            # For any other non-serializable types, provide a string representation<br>            else:<br>                record_entry[&quot;value_type&quot;] = str(type(value).__name__)<br>                record_entry[&quot;value&quot;] = f&quot;Non-serializable object: {str(value)[:100]}...&quot;<br><br>            records.append(record_entry)<br><br>        return {<br>            &quot;cache_records&quot;: records,<br>            &quot;current_size&quot;: tracked_cache.currsize,<br>            &quot;max_size&quot;: tracked_cache.maxsize,<br>            &quot;ttl_seconds&quot;: tracked_cache.ttl<br>        }<br>    except Exception as e:<br>        logging.error(f&quot;Error viewing cache records: {e}&quot;)<br>        return {&quot;error&quot;: f&quot;Failed to retrieve cache records: {str(e)}&quot;}<br><br>@mcp.tool()<br>async def reset_cache() -&gt; Dict[str, Any]:<br>    &quot;&quot;&quot;Clear the price cache and reset statistics&quot;&quot;&quot;<br>    price_cache.clear()<br>    tracked_cache.hits = 0<br>    tracked_cache.misses = 0<br>    tracked_cache._last_reset = time.time()<br><br>    return {<br>        &quot;message&quot;: &quot;Cache cleared successfully&quot;,<br>        &quot;new_stats&quot;: _get_cache_statistics_logic()<br>    }<br><br><br><br>#hit curl http://127.0.0.1:8001/health<br>#to check health check<br>@mcp.custom_route(&quot;/health&quot;, methods=[&quot;GET&quot;])<br>async def health_check(request: Request) -&gt; PlainTextResponse:<br>    return PlainTextResponse(&quot;OK&quot;)<br><br># Create and mount the HTTP app<br>app = mcp.http_app()  # Use the MCP HTTP app directly instead of mounting<br><br><br>if __name__ == &quot;__main__&quot;:<br>    # Configure logging<br>    logging.basicConfig(<br>        level=logging.DEBUG,<br>        format=&#39;%(asctime)s - %(name)s - %(levelname)s - %(message)s&#39;<br>    )<br><br>    uvicorn.run(<br>        app,<br>        host=&quot;127.0.0.1&quot;,<br>        port=8001,<br>        log_level=&quot;debug&quot;  # Set log level to DEBUG for detailed output<br>    )</pre><p>Docker file content used to build container -</p><pre>#Dockerfile<br><br>FROM python:3.10-slim<br><br>WORKDIR /app<br><br># Install system dependencies<br>RUN apt-get update &amp;&amp; \<br>    apt-get install -y --no-install-recommends \<br>    curl \<br>    &amp;&amp; rm -rf /var/lib/apt/lists/*<br><br>COPY requirements.txt .<br>RUN pip install --no-cache-dir -r requirements.txt<br><br>COPY .env .env<br><br>COPY . .<br><br># Add healthcheck directly in Dockerfile<br>HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \<br>    CMD curl -f http://localhost:8000/tools/health_check || exit 1<br><br># Use a shell form to ensure proper signal handling<br>#mcp_stock_server_http_yfinance name of file without .py<br>CMD uvicorn mcp_stock_server_http_yfinance:app --host 0.0.0.0 --port 8001 --log-level debug</pre><h4>How to use docker command to build docker image -</h4><p>Ensure docker runtime is locally installed and running.</p><p>Execute below to build -</p><pre>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$ pwd<br>/Users/rajeshranjan/RajeshWork/mcp/mcp_http_server/mcp_http_server_project<br>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$ docker build -t genai/stocks-http-mcp-server-yf:latest .</pre><p>Output -</p><pre>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$ docker build -t genai/stocks-http-mcp-server-yf:latest .<br>[+] Building 331.4s (12/12) FINISHED                                                                                                                                              docker:desktop-linux<br> =&gt; [internal] load build definition from Dockerfile                                                                                                                                              0.0s<br> =&gt; =&gt; transferring dockerfile: 711B                                                                                                                                                              0.0s<br> =&gt; [internal] load metadata for docker.io/library/python:3.10-slim                                                                                                                               3.7s<br> =&gt; [internal] load .dockerignore                                                                                                                                                                 0.0s<br> =&gt; =&gt; transferring context: 117B                                                                                                                                                                 0.0s<br> =&gt; [internal] load build context                                                                                                                                                                 0.0s<br> =&gt; =&gt; transferring context: 143.08kB                                                                                                                                                             0.0s<br> =&gt; [1/7] FROM docker.io/library/python:3.10-slim@sha256:975a1e200a16719060d391eea4ac66ee067d709cc22a32f4ca4737731eae36c0                                                                        17.4s<br> =&gt; =&gt; resolve docker.io/library/python:3.10-slim@sha256:975a1e200a16719060d391eea4ac66ee067d709cc22a32f4ca4737731eae36c0                                                                         0.0s<br> =&gt; =&gt; sha256:975a1e200a16719060d391eea4ac66ee067d709cc22a32f4ca4737731eae36c0 10.37kB / 10.37kB                                                                                                  0.0s<br> =&gt; =&gt; sha256:2ade04f16d1e0bbde15b0a5a2586e180c060df230333e0d951660020557fcba4 1.75kB / 1.75kB                                                                                                    0.0s<br> =&gt; =&gt; sha256:f708d86fc35f2c3d6cb1eb158f34d08b4765118060fac3e3a90309c93d9b8b54 5.48kB / 5.48kB                                                                                                    0.0s<br> =&gt; =&gt; sha256:d7ecded7702a5dbf6d0f79a71edc34b534d08f3051980e2c948fba72db3197fc 29.78MB / 29.78MB                                                                                                  1.9s<br> =&gt; =&gt; sha256:03b7f5f69b041b1abff4207e69de41cedf65789880545196c035eaf5811d5659 1.29MB / 1.29MB                                                                                                    0.3s<br> =&gt; =&gt; sha256:cfba6d6670ccbd07cb56beb604a62b8845b258b6681c2e48550494be8cdd04f5 13.82MB / 13.82MB                                                                                                  1.9s<br> =&gt; =&gt; sha256:a09dc670095e3274f5c5b53f13f7809b550ebdbdb2d9fb9e32e1b18889d13fe5 248B / 248B                                                                                                        1.4s<br> =&gt; =&gt; extracting sha256:d7ecded7702a5dbf6d0f79a71edc34b534d08f3051980e2c948fba72db3197fc                                                                                                         8.7s<br> =&gt; =&gt; extracting sha256:03b7f5f69b041b1abff4207e69de41cedf65789880545196c035eaf5811d5659                                                                                                         1.2s<br> =&gt; =&gt; extracting sha256:cfba6d6670ccbd07cb56beb604a62b8845b258b6681c2e48550494be8cdd04f5                                                                                                         4.2s<br> =&gt; =&gt; extracting sha256:a09dc670095e3274f5c5b53f13f7809b550ebdbdb2d9fb9e32e1b18889d13fe5                                                                                                         0.0s<br> =&gt; [2/7] WORKDIR /app                                                                                                                                                                            1.2s<br> =&gt; [3/7] RUN apt-get update &amp;&amp;     apt-get install -y --no-install-recommends     curl     &amp;&amp; rm -rf /var/lib/apt/lists/*                                                                       13.9s<br> =&gt; [4/7] COPY requirements.txt .                                                                                                                                                                 0.2s <br> =&gt; [5/7] RUN pip install --no-cache-dir -r requirements.txt                                                                                                                                    112.1s <br> =&gt; [6/7] COPY .env .env                                                                                                                                                                          0.1s <br> =&gt; [7/7] COPY . .                                                                                                                                                                                0.1s<br> =&gt; exporting to image                                                                                                                                                                          182.0s<br> =&gt; =&gt; exporting layers                                                                                                                                                                         181.6s<br> =&gt; =&gt; writing image sha256:6b316fab7e8b9bf4442f464a23cc6e10d144de4da97beb688ab1d17338d5adae                                                                                                      0.0s<br> =&gt; =&gt; naming to docker.io/genai/stocks-http-mcp-server-yf:latest                                                                                                                                 0.0s<br><br> 1 warning found (use docker --debug to expand):<br> - JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 24)<br><br>What&#39;s next:<br>    View a summary of image vulnerabilities and recommendations → docker scout quickview <br>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$</pre><p>Tag the docker image ,login into AWS account, create AWS ECR repo for pushing docker image into AWS ECR repo ( i have masked my AWS account#)-</p><pre>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$ docker tag genai/stocks-http-mcp-server-yf:latest 15XXXXXXXXX.dkr.ecr.ap-southeast-1.amazonaws.com/genai/stocks-http-mcp-server-yf:latest<br>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$ aws ecr get-login-password --region ap-southeast-1 | docker login --username AWS --password-stdin 15XXXXXXXXX.dkr.ecr.ap-southeast-1.amazonaws.com<br>Login Succeeded<br>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$ aws ecr create-repository --repository-name genai/stocks-http-mcp-server-yf --region ap-southeast-1<br>{<br>    &quot;repository&quot;: {<br>        &quot;repositoryArn&quot;: &quot;arn:aws:ecr:ap-southeast-1:15XXXXXXXXX:repository/genai/stocks-http-mcp-server-yf&quot;,<br>        &quot;registryId&quot;: &quot;15XXXXXXXXX&quot;,<br>        &quot;repositoryName&quot;: &quot;genai/stocks-http-mcp-server-yf&quot;,<br>        &quot;repositoryUri&quot;: &quot;1572XXXXX.dkr.ecr.ap-southeast-1.amazonaws.com/genai/stocks-http-mcp-server-yf&quot;,<br>        &quot;createdAt&quot;: 1763441949.555,<br>        &quot;imageTagMutability&quot;: &quot;MUTABLE&quot;,<br>        &quot;imageScanningConfiguration&quot;: {<br>            &quot;scanOnPush&quot;: false<br>        },<br>        &quot;encryptionConfiguration&quot;: {<br>            &quot;encryptionType&quot;: &quot;AES256&quot;<br>        }<br>    }<br>}<br>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$ pwd<br>/Users/rajeshranjan/RajeshWork/mcp/mcp_http_server/mcp_http_server_project<br>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$</pre><p>Now push container into AWS ECR using below command</p><pre>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$ docker push 1572XXXXX.dkr.ecr.ap-southeast-1.amazonaws.com/genai/stocks-http-mcp-server-yf:latest<br>The push refers to repository [1572XXXXX.dkr.ecr.ap-southeast-1.amazonaws.com/genai/stocks-http-mcp-server-yf]<br>ec8675c71fb3: Pushed <br>189c0bf3fa7a: Pushed <br>201f0ee5f8b1: Pushed <br>b69fa2bbc941: Pushed <br>2b7fc7473fbd: Pushed <br>88675e7cce01: Pushed <br>c8d27dfd5c2e: Pushed <br>fae086a4d080: Pushed <br>4a473d4e66d3: Pushed <br>36d06fe0cbc6: Pushed <br>latest: digest: sha256:440ad5b1752e9aea5ebe0211bd0189a0c0a283ab4e9836400466e49f3d2e92bd size: 2412<br>(project_310_env) Rajeshs-MacBook-Pro:mcp_http_server_project rajeshranjan$</pre><p>Below is how it appears in AWS ECR -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vsRZ3oJpPORzCNlB-ZCD2A.png" /></figure><p>Now you have many options for running this container in AWS like either use AWS ECS, EKS or EC2 intance. I had used Elastic Container Service (ECS) forgate (serverless ) Spot for running this MCP server in Private Subnet. Used AWS Cloud Map (to save cost)to expose these MCP Tools to client code which is deployed in another docker container in Private Subnet.</p><p>Below code sample showing how endpoint looks like and how it is used in client code.</p><pre>server_params = {<br>    &quot;stocksMCPServerHTTPYFinance&quot;: {<br>        &quot;url&quot;: &quot;http://stock-mcp-http-internal.gen-ai-mcp-services:8001/mcp/&quot; if IS_PRODUCTION<br>               else &quot;http://localhost:8001/mcp/&quot;,<br>        &quot;transport&quot;: &quot;streamable_http&quot;,<br>    }<br>}</pre><p>Please let me know in comments if I need to share more details, I can create another blog for deploying whole solution in AWS cloud with Public and Private Subnet architecture.</p><p>In next article , we will explore implementation of client side code of AI Investment Co-pilot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dp0jNNNNbBxwAYqp37hczw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*SX3v_F1sy99euuQn.png" /></figure><p>This story is published on <a href="https://generativeai.pub/">Generative AI</a>. Connect with us on <a href="https://www.linkedin.com/company/generative-ai-publication">LinkedIn</a> and follow <a href="https://www.zeniteq.com/">Zeniteq</a> to stay in the loop with the latest AI stories.</p><p>Subscribe to our <a href="https://www.generativeaipub.com/">newsletter</a> and <a href="https://www.youtube.com/@generativeaipub">YouTube</a> channel to stay updated with the latest news and updates on generative AI. Let’s shape the future of AI together!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*TeBcRnbKbiJU8-G3.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5818573e3e4f" width="1" height="1" alt=""><hr><p><a href="https://generativeai.pub/deepresearch-react-agent-building-a-streamable-http-mcp-server-for-the-ai-investment-5818573e3e4f">🚀 DeepResearch &amp; React-Agent: Building a Streamable HTTP MCP Server for the AI Investment…</a> was originally published in <a href="https://generativeai.pub/">Generative AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ LangGraph ReAct Agents Unlocked: FastMCP Custom Tool Integration Guide]]></title>
            <link>https://generativeai.pub/langgraph-react-agents-unlocked-fastmcp-custom-tool-integration-guide-6f082558cd0b?source=rss-923ceea63159------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f082558cd0b</guid>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[langchain-tools]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[langgraph]]></category>
            <category><![CDATA[langchain]]></category>
            <dc:creator><![CDATA[Rajesh Ranjan]]></dc:creator>
            <pubDate>Tue, 17 Jun 2025 05:48:25 GMT</pubDate>
            <atom:updated>2025-11-22T06:11:27.182Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Note: This is a ~30 mins read and may take another ~30 mins to implement.</em></p><blockquote>You can read this article for free at <a href="https://generativeai.pub/langgraph-react-agents-unlocked-fastmcp-custom-tool-integration-guide-6f082558cd0b?source=friends_link&amp;sk=3bbaf60dfbfec0ff42c36eb05d0b8206">link</a></blockquote><p>&quot;What if your AI could analyze stocks like a Wall Street pro — pulling real-time data and breaking news in one intelligent workflow? In this tutorial, we’ll build exactly that: A self-thinking ReAct agent powered by LangGraph that leverages custom stock analysis and web search tools through Model Context Protocol (MCP) servers.</p><p>No prior MCP knowledge ? No problem. Think of MCP as a universal “tool connector” that lets your AI safely access specialized capabilities (like live stock data or Web searches) through standardized interfaces. We’ll start from absolute zero:</p><ol><li>🛠️ Building two MCP servers with FastMCP (one for stock data, one for web scraping)</li><li>🤖 Creating a LangGraph agent that intelligently routes user queries to these tools</li><li>🧠 Implementing ReAct pattern where the agent <em>reasons</em> about investment questions, <em>acts</em> by fetching live data/news, and delivers professional-grade summaries</li></ol><p>By the end of this guide, you’ll have a self-thinking AI agent that can:</p><ul><li>📈 Analyze NVIDIA’s stock performance (earnings, trends, volatility)</li><li>🔍 Pull the latest tech news (mergers, product launches, market sentiment)</li><li>🧠 Combine data + news into smart investment insights — no manual work needed!</li></ul><p>Along the way, you’ll unlock the power of LangGraph and FastMCP, learning how to:<br>✔ Turn Python functions into AI tools (stock data, web search)<br>✔ Make agents reason and act automatically (ReAct pattern)<br>✔ Build scalable, plug-and-play AI systems (MCP magic)</p><p>Let’s turn lines of Python into real trading intelligence ! 😀</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DmU2QNrzX4YH-jmXnQH6cA.png" /></figure><p>Now that you see the vision, let’s engineer the machinery. Our stock-savvy ReAct agent needs live data tools, and that’s where Model Context Protocol (MCP) shines. Think of MCP as a universal adapter for AI capabilities:</p><p>👉 What MCP Offers Today:</p><ul><li>Exposes tools (like our stock API), prompts, and resources. Think tools like your API or Micoservices performing one task.</li><li>Enables communication via stdio (simplest for local dev), SSE (uni-directional real-time updates, but now retired), Web socket (production grade agent, bi-directional real time data),or Streamable HTTP (with SSE support,production-ready,good scalability with streaming)</li></ul><p>For this tutorial, we’ll see how tools are exposed and use stdio (standard input/output) – the perfect starting point for seamless local tool integration. Here’s what we’re building:</p><blockquote><em>A LangGraph agent that dynamically combines:</em></blockquote><blockquote><strong><em>Stock data</em></strong><em> via </em><em>yfinance (MCP Server #1),or other APIs you may try — </em>alpha_vantage or Twelve data</blockquote><blockquote><strong><em>Web Search </em></strong><em>via Tavily API (MCP Server #2), or other libraries can be used -</em>SerpAPI or DuckduckGO</blockquote><blockquote><strong><em>Reasoning power</em></strong><em> from OpenAI (or any LLM API)</em></blockquote><p>LangGraph ↔ MCP Tool Integration Flow :</p><p><em>How your agent dynamically accesses tools via MCP</em></p><figure><img alt="Above digram depict how MCP client invokes MCP server. LangGraph nodes invokes MCP server to fetch all the available tools via lang chain MCP adapter which is open source library provided by lang chain." src="https://cdn-images-1.medium.com/max/1024/1*HnQU2XiLKtaZBGD_KwVwmQ.png" /><figcaption>Architecture of ReAct Agent which is showing how MCP client invoking MCP server</figcaption></figure><p>Through LangChain’s open-source MCP adapter, LangGraph nodes communicate with the MCP server to retrieve and utilize all registered tools.</p><p><strong>⚡ Let’s Set Up Coding Environment: (On MacOS)</strong></p><p>Before We Begin:<br>✅ Make sure you have:</p><ul><li>Python 3.12</li><li>A virtual environment already set up in PyCharm (or any other IDE!)</li></ul><p>Quick Setup:</p><p>requirements.txt contains below-will use langgraph-checkpoint in future.</p><pre>asyncio==3.4.3<br>fastmcp==2.7.1<br>langchain-mcp-adapters==0.1.7<br>langchain-openai==0.3.21<br>langgraph==0.4.8<br>langgraph-checkpoint==2.0.26<br>langgraph-prebuilt==0.2.2<br>langgraph-sdk==0.1.70<br>yfinance==0.2.62<br>mcp==1.9.3</pre><p>Install all dependencies in one go:</p><pre>pip install -r requirements.txt</pre><p>Following are installed in my virtual envrionment</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WQ9-LWw_3gOFAWaM62nRMQ.png" /><figcaption>Python libarary versiosns</figcaption></figure><p>Need API Keys?<br>Don’t forget to set these in your .env file:</p><pre>OPENAI_API_KEY=your_key_here  <br>TAVILY_API_KEY=your_key_here</pre><p>Stuck? short vidoe shows the file structure, dependency , and execution flow:</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dn60IqOJokrY&amp;type=text%2Fhtml&amp;schema=youtube&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fn60IqOJokrY%3Ffeature%3Doembed" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9847aec688cf4be0144ffa7c2756734a/href">https://medium.com/media/9847aec688cf4be0144ffa7c2756734a/href</a></iframe><p>Code is available at my <a href="https://github.com/rajeshranjan66/mcp_project">github</a></p><p>Below is the directory structure to organize the required python files</p><pre>mcp_project/<br>├── requirements.txt<br>├── .env<br>├── mcp_server/<br>│   ├── mcp_stock_server.py<br>│   └── mcp_webcrawler_server.py<br>└── mcp_client/<br>    └── MCPClient_Langgraph.py</pre><h3>🛠️ The Build: Crafting Your AI Agent’s Toolbox</h3><p><em>Plug-and-Play Intelligence with MCP Servers</em></p><p>“Forget monolithic AI systems! We’re building a modular agent architecture where:</p><ul><li>Two specialized MCP servers act as your AI’s “skill pods” (stock analysis + web Search)</li><li>A LangGraph ReAct agent serves as the brain that dynamically taps into these skills</li><li>Zero client updates when adding new tools on MCP Servers— the ultimate future-proof design</li></ul><h3>🔌 Step 1: Building Your MCP Skill Pods</h3><p><em>“Like USB drives for AI capabilities — plug in new tools instantly”</em></p><p>1️⃣ Stock Analysis Server (mcp_stock_server.py)</p><ol><li><strong>Import and setup:</strong></li></ol><pre>import yfinance as yf              # Library for fetching stock market data<br>from dotenv import load_dotenv     # For loading environment variables<br>from fastmcp import FastMCP        # Framework for creating MCP servers<br>from pandas import DataFrame       # For handling tabular data<br><br>load_dotenv()                      # Load environment variables from .env file</pre><p>2. <strong>MCP Server Initialization : </strong>This creates an MCP server instance with a name, version, and description.</p><p>Name of the MCP server (stocksAnalysisMCPServer) will be used in MCP Client later.</p><pre>mcp = FastMCP(&quot;stocksAnalysisMCPServer&quot;, &quot;1.0.0&quot;, &quot;A server to analyze stock data using yfinance&quot;)</pre><p>3. <strong>Five Tools</strong>: MCP server stocksAnalysisMCPServer will expose these five tools.</p><p>a. fetch_stock_info</p><ul><li>Takes a stock symbol (e.g., “AAPL” for Apple)</li><li>Returns general company information as a dictionary</li><li>Example usage: Get company overview, sector, industry, etc.</li><li>Is decorated with <strong>@mcp.tool()</strong> to make it available via MCP</li></ul><pre>@mcp.tool()<br>def fetch_stock_info(symbol: str) -&gt; dict:<br>    &quot;&quot;&quot;Get Company&#39;s general information.<br>    Args:<br>        &quot;&quot;symbol (str): Stock symbol of the company.<br>        Returns:<br>            &quot;dict&quot;: A dictionary containing the company&#39;s general information.<br>    &quot;&quot;&quot;<br><br>    stock = yf.Ticker(symbol)<br>    return stock.info</pre><p>b. fetch_quarterly_financials</p><ul><li>Takes a stock symbol</li><li>Returns quarterly financial statements as a DataFrame</li><li>The .T transposes the data for better readability</li></ul><pre>@mcp.tool()<br>def fetch_quarterly_financials(symbol: str) -&gt; DataFrame :<br>    &quot;&quot;&quot;Get stock quarterly financials.<br>    Args:<br>        symbol (str): Stock symbol of the company.<br>        Returns:<br>            &quot;&quot;DataFrame&quot;: A DataFrame containing the company&#39;s quarterly financials.<br>    &quot;&quot;&quot;<br>    stock = yf.Ticker(symbol)<br>    return stock.quarterly_financials.T</pre><p>c. fetch_annual_financials</p><ul><li>Similar to quarterly financials but returns annual data</li><li>Useful for year-over-year analysis</li></ul><pre>@mcp.tool()<br>def fetch_annual_financials(symbol: str) -&gt; DataFrame:<br>    &quot;&quot;&quot;Get stock annual financials.<br>    Args:<br>        symbol (str): Stock symbol of the company.<br>        Returns:<br>            DataFrame: A DataFrame containing the company&#39;s annual financials.<br>    &quot;&quot;&quot;<br><br>    stock = yf.Ticker(symbol)<br>    return stock.financials.T</pre><p>d. get_stock_price</p><ul><li>Gets most recent closing price</li><li>Returns the most recent closing price as a float</li><li>Use history(period=”1d”) to get the latest day’s data</li></ul><pre>@mcp.tool()<br>def get_stock_price(symbol: str) -&gt; float:<br>    &quot;&quot;&quot;Get the latest trading price (regular market price)<br>    Args:<br>        symbol (str): Stock symbol of the company.<br>        Returns:<br>            float: The current stock price.<br>    &quot;&quot;&quot;<br>    ticker = yf.Ticker(symbol)<br>    current_price = ticker.info[&quot;regularMarketPrice&quot;]<br>    return float(current_price)</pre><p>e. get_stock_history</p><ul><li>Gets historical price data</li><li>Takes a symbol and period (default: “1mo” for one month)</li><li>Returns full price history (Open, High, Low, Close, Volume)</li><li>Prints the history for debugging purposes</li></ul><pre>@mcp.tool()<br>def get_stock_history(symbol: str, period: str = &quot;1mo&quot;) -&gt; DataFrame:<br>    &quot;&quot;&quot;Get stock price history for a given period.<br>    Args:<br>        symbol (str): Stock symbol of the company.<br>        period (str): The period for which to fetch the stock history (default: &quot;1mo&quot;).<br>        Returns:<br>            DataFrame: A DataFrame containing the stock price history.<br>    &quot;&quot;&quot;<br><br>    ticker = yf.Ticker(symbol)<br>    history = ticker.history(period=period)<br>    print(f&quot;\n History from MCP server :{history}&quot;)<br>    return history</pre><p>Each function is decorated with <strong>@mcp.tool()</strong> to make it available as a tool in the MCP framework, allowing clients to call these functions remotely through the MCP protocol.</p><p>4. <strong>Server Execution </strong>:Starts the MCP server using standard input/output for communication.</p><pre>if __name__ == &quot;__main__&quot;:<br>    mcp.run(transport=&quot;stdio&quot;)</pre><p>2️⃣ Web Search Server (mcp_webcrawler_server.py)</p><p><strong>Now lets take a look at mcp_webcrawler_server.py</strong>- This MCP server provides a simple interface for web searches through the MCP protocol, making it easy to integrate web search capabilities into larger applications or AI systems. Uses Tavily API for high-quality search results and limits to 3 results for conciseness</p><p>1. Import and setup:</p><pre>from dotenv import load_dotenv        # For loading environment variables<br>from fastmcp import FastMCP            # Framework for MCP servers<br>from langchain_community.tools.tavily_search import TavilySearchResults  # Web search tool</pre><p>2. <strong>Server Initialization </strong>:</p><pre>load_dotenv()  # Load environment variables (likely contains Tavily API key)<br><br>mcp = FastMCP(<br>    &quot;WebCrawlerMCP&quot;,                                       # Server name<br>    &quot;1.0.0&quot;,                                              # Version<br>    &quot;A server to crawl web pages and extract data using Tavli API.&quot;  # Description<br>)</pre><p><strong>3. Web search tool</strong>:</p><p>This function:</p><ul><li>Takes a search query as input</li><li>Returns results max 3 results as a dictionary</li><li>freshness_hours is set as 1h so , this filter will request results from the last 1 hour.</li><li>Is decorated with <strong>@mcp.tool()</strong> to make it available via MCP</li></ul><pre>@mcp.tool()<br>def crawl_web_page(query: str, freshness_hours: int = 1) -&gt; dict:<br>    &quot;&quot;&quot;<br>    Crawl a web page or perform a search using the Tavily API.<br>    Args:<br>        query (str): The search query or URL to crawl.<br>    Returns:<br>        dict: The search results or extracted content.<br>    &quot;&quot;&quot;<br>    try:<br><br>        search = TavilySearchResults(max_results=3)<br>        return search.invoke({<br>            &quot;query&quot;: query,<br>            &quot;freshness&quot;: f&quot;{freshness_hours}h&quot;<br>        })<br>    except Exception as e:<br>        return {&quot;error&quot;: str(e)}</pre><p>4. <strong>Server Execution </strong>:Starts the MCP server using standard input/output for communication.</p><pre>if __name__ == &quot;__main__&quot;:<br>    mcp.run(transport=&quot;stdio&quot;)</pre><p>We don’t need to run these 2 files. These MCP servers will be invoked by MCP client as a co-routine at runtime.</p><h3>🧠 Step 2: The Brains — LangGraph ReAct Agent</h3><p><em>“Add a new tool tomorrow? Your agent automatically inherits it — no client code changes!”</em></p><p>Lets dive into MCP client part of it ! This is where all the magic lies for ReAct agent.</p><p><strong>MCPClient_Language.py</strong>- This file contains implementation of ReAct agent which will leverage MCP tools exposed by MCP Servers created earlier.</p><p>It demonstrates how to integrate multiple tools, a language model, and a graph-based workflow to handle users query/tasks . It utilizes the langchain framework to interact with multiple MCP servers and perform complex tasks such as stock analysis and news sentiment analysis. The application is structured around a graph-based workflow using StateGraph from the langgraph library.</p><p><strong>1. Initialization — </strong>Import necessary modules, including langchain_core, langgraph, and pydantic. It also loads environment variables using load_dotenv() and initializes a language model (gpt-4o) via the init_chat_model function.</p><p>You can use any other good reasoning model like Google Gemini, DeepSeek etc. I am using GPT-4o. It has to be really good reasoning model to avoid halusination while making decision if tool call is needed or not by LLM.</p><pre><br>import asyncio<br>from pprint import pprint<br>from dotenv import load_dotenv<br>from langchain_mcp_adapters.client import MultiServerMCPClient<br>from langgraph.graph import StateGraph, MessagesState, START, END<br>from langgraph.prebuilt import ToolNode, tools_condition<br>from langchain.chat_models import init_chat_model<br><br># loads environment variables from a .env file into your Python environment<br>load_dotenv()<br><br># Initializes a chat model using a function called<br>model = init_chat_model(&quot;gpt-4o&quot;)</pre><p><strong>2. MCP Server Configuration </strong>— Defines a dictionary named <strong>server_params</strong> that specifies the configuration for two MCP servers. These servers are used to execute specific tasks asynchronously</p><p>The server_params dictionary is used to initialize a <strong>MultiServerMCPClient</strong> object later in the code. This Agent interacts with the defined servers to retrieve tools and perform tasks such as stock analysis and web crawling. By abstracting server configurations into a dictionary, the code ensures modularity and makes it easier to add or modify server details without changing the core logic.</p><p><strong>MultiServerMCPClient is from </strong>langchain_mcp_adapters which provides wrapper that makes Anthropic’s Model Context Protocol (MCP) tools compatible with LangChain and LangGraph.</p><p><strong>stocksAnalysisMCPServer</strong> in below config is name of MCP server defined in mcp_stock_server.py and <strong>WebCrawlerMCP</strong> is defined in mcp_webcrawler_server.py.</p><p><strong>stocksAnalysisMCPServer</strong> is configured to execute a Python script located at /Users/rajeshranjan/RajeshWork/mcp/mcp_project/mcp_server/mcp_stock_server.py. The configuration includes:<br><strong>command</strong>: Specifies the command to execute, which is “python” in this case.<br><strong>args</strong>: A list of arguments passed to the command, including the path to the script.Ensure you give full path of MCP server files.<br><strong>transport</strong>: Defines the communication method between the client and the server, set to “stdio”.</p><p>Similarly, the WebCrawlerMCP server is configured to execute another Python script located at /Users/rajeshranjan/RajeshWork/mcp/mcp_project/mcp_server/mcp_webcrawler_server.py. It uses the same transport type (“stdio”) for communication.</p><pre># Define multiple MCP servers<br>server_params = {<br>    &quot;stocksAnalysisMCPServer&quot;: {<br>        &quot;command&quot;: &quot;python&quot;,<br>        &quot;args&quot;: [&quot;/Users/rajeshranjan/RajeshWork/mcp/mcp_project/mcp_server/mcp_stock_server.py&quot;],<br>        &quot;transport&quot;: &quot;stdio&quot;,<br>    },<br>    &quot;WebCrawlerMCP&quot;: {<br>        &quot;command&quot;: &quot;python&quot;,<br>        &quot;args&quot;: [&quot;/Users/rajeshranjan/RajeshWork/mcp/mcp_project/mcp_server/mcp_webcrawler_server.py&quot;],<br>        &quot;transport&quot;: &quot;stdio&quot;,<br>    }<br>}</pre><p>Main Workflow- Below code initializes a MultiServerMCPClient object using the server_params dictionary, which contains configurations for multiple MCP servers. This client is responsible for managing communication with the defined servers and retrieving tools that can be used for various tasks.</p><p>The <strong>MultiServerMCPClient</strong> is instantiated with the server_params dictionary, which specifies the details of each server, such as the command to execute, arguments, and transport type. This setup allows the client to interact with the servers seamlessly.</p><p>The <strong>get_tools() </strong>method is called asynchronously on the client object to fetch tools from the configured servers. These tools represent functionalities provided by the servers, such as stock analysis or web crawling. The <strong>await</strong> keyword ensures that the asynchronous operation completes before proceeding.</p><p>It will start a new MCP ClientSession for each tool invocation.</p><pre>client = MultiServerMCPClient(server_params)<br>tools = await client.get_tools()</pre><p><em>If you want explictly start the session for specific server (in this case it is stocksAnalysisMCPServer) then use load_mcp_tools as shown below</em></p><pre>from langchain_mcp_adapters.tools import load_mcp_tools<br><br>client = MultiServerMCPClient({...})<br>async with client.session(&quot;stocksAnalysisMCPServer&quot;) as session:<br>    tools = await load_mcp_tools(session)</pre><p>The call_model function takes a single parameter, state, which is an instance of MessagesState. This state contains the messages that the model will process. The function binds the tools retrieved earlier in the workflow to the language model, enhancing its capabilities to perform specific tasks.</p><p>The <strong>bind_tools</strong> method is used to attach the tools to the language model. These tools provide additional functionality, such as stock analysis or web crawling, which the model can utilize during its execution. The invoke method is then called with the messages from the state, allowing the model to process the input and generate a response:</p><pre>def call_model(state: MessagesState):<br>    response = model.bind_tools(tools).invoke(state[&quot;messages&quot;])<br>    return {&quot;messages&quot;: response}</pre><p><strong>Graph-Based Workflow -</strong></p><p>Below code constructs a graph-based workflow using the StateGraph class, which is designed to manage the flow of operations between different nodes. Each node represents a specific task or function, and edges define the relationships and transitions between these tasks.</p><p>The graph is initialized with MessagesState as its state type. This state encapsulates the messages exchanged during the workflow:</p><pre>builder = StateGraph(MessagesState)</pre><p>Two nodes are added to the graph:<br><strong>LLM_Call_with_Tool</strong>: This node invokes the call_model function, which processes messages using the language model and tools.<br><strong>tools</strong>: This node represents the tools retrieved earlier in the workflow, enabling their usage in subsequent operations.</p><pre>builder.add_node(&quot;LLM_Call_with_Tool&quot;, call_model)<br>builder.add_node(&quot;tools&quot;, ToolNode(tools))</pre><p>Edges are added to define the flow between nodes:<br>The graph starts at the <strong>START</strong> node and transitions to <strong>LLM_Call_with_Tool</strong>.<br>Conditional edges are added to dynamically route the workflow based on the state after <strong>LLM_Call_with_Tool</strong>.<br>A direct edge connects the tools node back to <strong>LLM_Call_with_Tool</strong>, creating a loop for iterative processing.</p><p>When the graph is invoked, it starts at the START node, passing the initial state. Each node processes the state and passes the result to the next node(s) as defined by the edges.</p><ul><li>add_conditional_edges(&quot;LLM_Call_with_Tool&quot;, tools_condition) means after &quot;LLM_Call_with_Tool&quot; runs, the tools_condition function decides which node to go to next, based on the current state (e.g., if tool calls are present, go to &quot;tools&quot;; otherwise, end).</li><li>ToolNode(tools) is a ready-made node in the LangGraph state graph that can execute the set of tools provided by the tools variable. tools is a list of tool definitions fetched from the MultiServerMCPClient. The ToolNode wraps these tools so the graph can call them as part of its workflow, enabling the agent to use external capabilities (like stock analysis or web crawling) during execution. Tools node knows how to handle tool calls in the state. It executes the required tool(s) and updates the state with the results, so the next node (like the LLM) can use those results.</li></ul><pre>builder.add_edge(START, &quot;LLM_Call_with_Tool&quot;)<br>builder.add_conditional_edges(&quot;LLM_Call_with_Tool&quot;, tools_condition)<br>builder.add_edge(&quot;tools&quot;, &quot;LLM_Call_with_Tool&quot;)</pre><p><em>If you don’t want to use prebuilt </em><em>tools_conditionthen write your router code and use that in conditinal edge. This router function will be called by conditional edge to decide if flow will go to Tools node or END node. You don’t need to use below code if you are using prebuilt tools_condition.</em></p><pre># just for illustration<br># custom router function<br>def router_function(state:MessagesState):<br>    message=state[&quot;messages&quot;]<br>    last_message=message[-1]<br>    if last_message.tool_calls:<br>        return &quot;tools&quot;<br>    return END<br># how to use above router in conditiona ege <br>workflow2.add_conditional_edges(&quot;LLM_Call_with_Tool&quot;,<br>                                router_function,<br>                                {&quot;tools&quot;:&quot;tools&quot;,<br>                                 END:END})</pre><p>The graph is compiled into an executable application, which can process input states and execute the defined workflow. The compiled graph structure is printed for debugging purposes:</p><pre>app = builder.compile()<br>pprint(app)</pre><p><strong>Comprehensive Prompt and Execution </strong>— A detailed prompt is provided while invoking graph, instructing agent to perform stock and news analysis You can modify to try it out (few prompts are given in the last section) and see how many tools calls are happening</p><ul><li>app.ainvoke asynchronously invokes the agent with the prompt stored in comprehensive_prompt.</li><li>The recursion_limit parameter restricts the number of recursive tool calls the agent can make during execution.</li></ul><pre>comprehensive_prompt = &quot;&quot;&quot;Perform a complete market and news analysis for Tesla (TSLA):<br>        1. Get current stock price and today&#39;s trading range<br>        2. Find and analyze the latest 5 news articles about Tesla<br>        3. Specifically look for:<br>           - Manufacturing updates<br>           - Competition news<br>           - Market expansion news<br>           - Technology developments<br>        4. Analyze how each news category affects the stock price<br>        5. Compare Tesla&#39;s performance with industry trends<br>        6. Summarize:<br>           - Current market position<br>           - News sentiment analysis<br>           - Potential market movers<br>           - Overall outlook<br>        Please provide detailed analysis combining both stock data and news context.&quot;&quot;&quot;<br>agent_response = await app.ainvoke({<br>    &quot;messages&quot;: comprehensive_prompt},<br>{ &quot;recursion_limit&quot;: 10})</pre><p><strong>Output Handling:</strong></p><p>The <strong>agent_response</strong> dictionary contains a key named <strong>messages</strong>, which holds a list of message objects. The for loop iterates through each message in this list and <strong>pretty_print</strong>() method is invoked on each message object to output the message content in a structured and visually appealing format, making it easier to understand the data. In conole log after excuting this MCP client code , we will be observing AI messages, Tool messages and Human messages</p><pre>for m in agent_response[&#39;messages&#39;]:<br>    m.pretty_print()</pre><p><strong>Execution</strong> — Finally, the script is executed using asyncio.run(main()), ensuring the asynchronous workflow is properly managed:</p><pre>if __name__ == &quot;__main__&quot;:<br>    asyncio.run(main())</pre><h4>🎩 Where the Magic Happens: MCPClient_Langgraph.py in Action</h4><p>When you run MCPClient_Langgraph.py, the servers (mcp_stock_server.py and mcp_webcrawler_server.py) are started as subprocesses using the stdio transport. This means the client and servers communicate via standard input/output streams.</p><p>The client (MultiServerMCPClient) connects to both servers and fetches the list of available tools (like get_stock_price, get_stock_history, crawl_web_page etc).</p><p>The workflow is defined as a graph with nodes:</p><p><strong>LLM_Call_with_Tool</strong>: This node calls the GPT 4.o LLM, which can decide to use tools.<br><strong>tools</strong>: This node cxecutes tool calls by sending requests to the appropriate MCP server.</p><blockquote>The initial user prompt is sent to the to node <strong>LLM_Call_with_Tool.</strong><br>The LLM analyzes the prompt and, if it needs external data (like stock prices or news), it generates tool calls.<br>The workflow detects tool calls and routes the state to the tools node.</blockquote><blockquote>The tools node receives the tool call(s) and invokes the correct MCP server/tool via the client.<br>The server executes the function (e.g., fetches stock data, web search) and returns the result to the MCP client.</blockquote><blockquote>The tool results are added to the message state.<br>The workflow loops back to the LLM node (LLM_Call_with_Tool), which now has both the original prompt and the tool results. LLM node analyize it. If result is aligned with users prompt, then LLM generates a final, comprehensive AI message using all available information, else may make additonal tool call and evaluate the result again. This may go in loop and making number of calls to LLM API call which willl incure you charges.</blockquote><p>If LLM model used is not performing well in reasoning, it may go in loop also. To avoid this, you can set <strong>recursion limit</strong>. by default it is 25.</p><p>Recursion limit can be set on any graph at runtime, and is passed to .<strong>invoke</strong> via the config dictionary. recursionLimit is a standalone config key and should not be passed inside the configurable key as all other user-defined configuration. <em>I will cover config part in my future blogs.</em></p><pre>(chatbot-streamlit-gpt) bash-3.2$ pwd<br>/Users/rajeshranjan/RajeshWork/mcp/mcp_project/mcp_client<br>(chatbot-streamlit-gpt) bash-3.2$ python MCPClient_Langgraph.py<br></pre><h4>🚀 Execution Showcase: Your Agent in Action</h4><p><em>Watch the ReAct agent orchestrate stock analysis and web research in real-time</em></p><p><strong>Human Message section</strong> showing user’s prompt passed to LLM node.</p><p><strong>Ai message section </strong>,showing what are different tools needed by LLM i.e. get_stock_price, get_stock_history and crawl_web_page.</p><p><strong>Tool Message secti</strong>on showing resposne of tools call. i.e. what was stock price of Tesla , its history, some latest news about company.</p><p>Again <strong>Ai Message section </strong>is showing what was the final response from LLM node.</p><pre>/Users/rajeshranjan/RajeshWork/mcp/mcp_project/mcp_client<br>(chatbot-streamlit-gpt) bash-3.2$ python MCPClient_Langgraph.py<br>[06/15/25 23:05:40] INFO     Starting MCP server &#39;WebCrawlerMCP&#39; with transport &#39;stdio&#39;                                                                                                                                                                                  server.py:982<br>[06/15/25 23:05:41] INFO     Starting MCP server &#39;stocksAnalysisMCPServer&#39; with transport &#39;stdio&#39;                                                                                                                                                                        server.py:982<br>&lt;langgraph.graph.state.CompiledStateGraph object at 0x107a23e90&gt;<br>[06/15/25 23:05:45] INFO     Starting MCP server &#39;WebCrawlerMCP&#39; with transport &#39;stdio&#39;                                                                                                                                                                                  server.py:982<br>[06/15/25 23:05:45] INFO     Starting MCP server &#39;WebCrawlerMCP&#39; with transport &#39;stdio&#39;                                                                                                                                                                                  server.py:982<br>[06/15/25 23:05:45] INFO     Starting MCP server &#39;WebCrawlerMCP&#39; with transport &#39;stdio&#39;                                                                                                                                                                                  server.py:982<br>[06/15/25 23:05:45] INFO     Starting MCP server &#39;WebCrawlerMCP&#39; with transport &#39;stdio&#39;                                                                                                                                                                                  server.py:982<br>[06/15/25 23:05:46] INFO     Starting MCP server &#39;stocksAnalysisMCPServer&#39; with transport &#39;stdio&#39;                                                                                                                                                                        server.py:982<br>[06/15/25 23:05:46] INFO     Starting MCP server &#39;stocksAnalysisMCPServer&#39; with transport &#39;stdio&#39;                                                                                                                                                                        server.py:982<br>****************************************************************************************************<br>================================ Human Message =================================<br><br>Perform a complete market and news analysis for Tesla (TSLA):<br>        1. Get current stock price and today&#39;s trading range<br>        2. Find and analyze the latest 5 news articles about Tesla<br>        3. Specifically look for:<br>           - Manufacturing updates<br>           - Competition news<br>           - Market expansion news<br>           - Technology developments<br>        4. Analyze how each news category affects the stock price<br>        5. Compare Tesla&#39;s performance with industry trends<br>        6. Summarize:<br>           - Current market position<br>           - News sentiment analysis<br>           - Potential market movers<br>           - Overall outlook<br>        Please provide detailed analysis combining both stock data and news context.<br>================================== Ai Message ==================================<br>Tool Calls:<br>  get_stock_price (call_MP3Bq5SJWsCqLJCLezC3ZgyY)<br> Call ID: call_MP3Bq5SJWsCqLJCLezC3ZgyY<br>  Args:<br>    symbol: TSLA<br>  get_stock_history (call_ezosrBIhoiUBil5tcUDhuzxA)<br> Call ID: call_ezosrBIhoiUBil5tcUDhuzxA<br>  Args:<br>    symbol: TSLA<br>    period: 1d<br>  crawl_web_page (call_HWKhAibM1HWqjfLjqMKeAPxW)<br> Call ID: call_HWKhAibM1HWqjfLjqMKeAPxW<br>  Args:<br>    query: Tesla manufacturing updates news<br>  crawl_web_page (call_DDFAxrRwSWCjTxQTnrMOy6p9)<br> Call ID: call_DDFAxrRwSWCjTxQTnrMOy6p9<br>  Args:<br>    query: Tesla competition news<br>  crawl_web_page (call_tXFKmxzWmucYRSVALmtJAp8f)<br> Call ID: call_tXFKmxzWmucYRSVALmtJAp8f<br>  Args:<br>    query: Tesla market expansion news<br>  crawl_web_page (call_418oz2dWUXCyLsjDyU7vwMyZ)<br> Call ID: call_418oz2dWUXCyLsjDyU7vwMyZ<br>  Args:<br>    query: Tesla technology developments news<br>================================= Tool Message =================================<br>Name: get_stock_price<br><br>325.30999755859375<br>================================= Tool Message =================================<br>Name: get_stock_history<br><br>&quot;                                 Open       High  ...  Dividends  Stock Splits\nDate                                              ...                         \n2025-06-13 00:00:00-04:00  313.970001  332.98999  ...        0.0           0.0\n\n[1 rows x 7 columns]&quot;<br>================================= Tool Message =================================<br>Name: crawl_web_page<br><br>{<br>  &quot;query&quot;: &quot;Tesla manufacturing updates news&quot;,<br>  &quot;results&quot;: [<br>    {<br>      &quot;url&quot;: &quot;https://www.teslarati.com/tag/tesla-factory/&quot;,<br>      &quot;content&quot;: &quot;model y are manufactured](https://www.teslarati.com/wp-content/uploads/2018/06/tesla-fremont-factory-e1529561210353-80x80.jpg) News 5 years ago Tesla offers to make ventilators from its factory in response to coronavirus shortages (Update: NYC reaches out) ---------------------------------------------------------------------------------------------------------------- Tesla CEO Elon Musk has offered to make medical ventilators from its Fremont, California factory if a shortage should arise from [...] *   [![Image 29](https://www.teslarati.com/wp-content/uploads/2020/11/tesla-giga-press-1000x600.jpg)![Image 30](https://www.teslarati.com/wp-content/uploads/2020/11/tesla-giga-press-300x180.jpg)![Image 31](https://www.teslarati.com/wp-content/uploads/2020/11/tesla-giga-press-80x80.jpg) News 4 years ago Tesla begins Giga Press manufacturing at Fremont factory, first sighting in action ---------------------------------------------------------------------------------- A recent flyover of Tesla’s [...] strengthening ------------------------------------------------------------------------------- Tesla has submitted a patent that describes a new, more effective cooling process for manufacturing high-strength aluminum components to be used in its product line. The...](https://www.teslarati.com/tesla-patent-pulsed-spray-quench-aluminum-manufacturing/)&quot;<br>    },<br>    {<br>      &quot;url&quot;: &quot;https://www.motortrend.com/news/2026-tesla-electric-semi-truck-updates&quot;,<br>      &quot;content&quot;: &quot;Fleets such as PepsiCo’s, meanwhile, will appreciate many of the other updates Tesla has made. A new battery pack with slightly less capacity than the existing Semi’s roughly 1 MW capacity is said to reduce weight and lower costs while still maintaining the Semi Standard Range and Semi Long Range’s 300- and 500-mile range ratings due to unspecified aerodynamic and efficiency improvements. [...] .com%2Fnews%2F2026-tesla-electric-semi-truck-updates%3Futm_content%3DTesla%2520Promises%2520Updated%2520Semi%2520Entering%2520Mass%2520Production%2520Next%2520Year%26utm_medium%3Dsocial%26utm_source%3Dbluesky%26utm_type%3Dorganic) [...] [](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.motortrend.com%2Fnews%2F2026-tesla-electric-semi-truck-updates%3Futm_content%3DTesla%2520Promises%2520Updated%2520Semi%2520Entering%2520Mass%2520Production%2520Next%2520Year%26utm_medium%3Dsocial%26utm_source%3Dfacebook%26utm_type%3Dorganic)[](https://x.com/intent/tweet?text=Tesla%20Promises%20Updated%20Semi%20Entering%20Mass%20Production%20Next%20Year&amp;url=https%3A%2F%2Fwww.motortrend&quot;<br>    },<br>    {<br>      &quot;url&quot;: &quot;https://insideevs.com/tesla/news/category/manufacturing-production/&quot;,<br>      &quot;content&quot;: &quot;Apr 2 2024[- 0 Comments / 0 New](https://insideevs.com/news/714347/tesla-q1-2024-production-deliveries/#comments)\n\n[![Image 22: $25,000 Tesla To Ditch Production Line For Radical New Assembly Technique](https://cdn.motor1.com/images/mgl/P3Wr7K/s4/tesla-giga-laboratory-store-in-china.jpg)](https://insideevs.com/news/714515/tesla-unboxed-assembly-method/) [...] Jul 2 2024[- 4 Comments / 4 New](https://insideevs.com/news/724753/tesla-production-deliveries-q2-2024/#comments)\n\n[![Image 9: Tesla Celebrates Building 50 Millionth 4680-Type Battery Cell At Giga Texas](https://cdn.motor1.com/images/mgl/ko6qKM/s4/tesla-s-4680-battery-cells.jpg)](https://insideevs.com/news/722543/tesla-50millionth-4680type-battery-cell/) [...] Xpeng\n\nZeekr\n\n![Image 26](https://ad-delivery.net/px.gif?ch=2)![Image 27](https://ad.doubleclick.net/favicon.ico?ad=300x250&amp;ad_box_=1&amp;adnet=1&amp;showad=1&amp;size=250x250)![Image 28](https://ad-delivery.net/px.gif?ch=1&amp;e=0.6012298392007898)\n\n[![Image 29](https://standout-cdn.kargo.com/img/close-btn-desktop.svg)](https://insideevs.com/tesla/news/category/manufacturing-production/#)\n\n[15](https://insideevs.com/tesla/news/category/manufacturing-production/#)&quot;<br>    }<br>  ]<br>}<br>================================= Tool Message =================================<br>Name: crawl_web_page<br><br>{<br>  &quot;query&quot;: &quot;Tesla competition news&quot;,<br>  &quot;results&quot;: [<br>    {<br>      &quot;url&quot;: &quot;https://autovista24.autovistagroup.com/news/powerful-competition-for-tesla-in-first-quarter-of-2025/&quot;,<br>      &quot;content&quot;: &quot;[](mailto:?subject=Powerful%20competition%20for%20Tesla%20in%20first%20quarter%20of%202025&amp;body=https://autovista24.autovistagroup.com/news/powerful-competition-for-tesla-in-first-quarter-of-2025/)[](https://www.linkedin.com/shareArticle?mini=true&amp;url=https%3A%2F%2Fautovista24.autovistagroup.com%2Fnews%2Fpowerful-competition-for-tesla-in-first-quarter-of-2025%2F&amp;title=&amp;summary=&amp;source=)[](https://twitter.com/intent/tweet?url=https%3A%2F%2Fautovista24.autovistagroup [...] [](mailto:?subject=Powerful%20competition%20for%20Tesla%20in%20first%20quarter%20of%202025&amp;body=https://autovista24.autovistagroup.com/news/powerful-competition-for-tesla-in-first-quarter-of-2025/)[](https://twitter.com/intent/tweet?url=https%3A%2F%2Fautovista24.autovistagroup.com%2Fnews%2Fpowerful-competition-for-tesla-in-first-quarter-of-2025%2F)[](https://www.linkedin.com/shareArticle?mini=true&amp;url=https%3A%2F%2Fautovista24.autovistagroup [...] Its sedan sibling, the Tesla Model 3, was able to hold onto second place as its deliveries increased by 30.5% to 54,197 units. However, increased competition meant its market share fell by 0.2 percentage points (pp) to 4.8%.\n\nThe Wuling Mini came third with 42,184 deliveries, up by 162.9%, pushing its share from 1.9% to 3.7%. Then followed the BYD Seagull, with sales climbing by 36.7% to 38,276 units, its market share remained static at 3.4%.&quot;<br>    },<br>    {<br>      &quot;url&quot;: &quot;https://finance.yahoo.com/video/teslas-us-dominance-risk-amid-161500547.html&quot;,<br>      &quot;content&quot;: &quot;Tesla (TSLA) faces increasing competition in international markets, particularly in China and Europe, where domestic and other global automakers are gaining&quot;<br>    },<br>    {<br>      &quot;url&quot;: &quot;https://www.ndtv.com/world-news/tesla-faces-stiff-competition-by-the-rise-of-chinese-auto-tech-giants-8631023&quot;,<br>      &quot;content&quot;: &quot;Tesla is facing heavy competition against auto giants from China. Chinese tech giants like BYD, are creating driverless cars and EVs at a much&quot;<br>    }<br>  ]<br>}<br>================================= Tool Message =================================<br>Name: crawl_web_page<br><br>{<br>  &quot;query&quot;: &quot;Tesla market expansion news&quot;,<br>  &quot;results&quot;: [<br>    {<br>      &quot;url&quot;: &quot;https://opentools.ai/news/elon-musk-shakes-up-tesla-strategy-a-bold-reinvention&quot;,<br>      &quot;content&quot;: &quot;Recently, a pivotal shift in Tesla&#39;s strategy has been reported by Livemint, emphasizing Elon Musk&#39;s role in pioneering revolutionary changes. By focusing on expanding Tesla&#39;s market reach and innovation capabilities, Musk is not only addressing current industry challenges but also anticipating future trends. For a detailed examination of these strategic maneuvers, you can read the full article [...] *   [Electric Vehicles](https://opentools.ai/news/elon-musk-shakes-up-tesla-strategy-a-bold-reinvention/electric-vehicles)\n*   [Market Expansion](https://opentools.ai/news/elon-musk-shakes-up-tesla-strategy-a-bold-reinvention/market-expansion)\n*   [Technology](https://opentools.ai/news/elon-musk-shakes-up-tesla-strategy-a-bold-reinvention/technology)\n*   [Sustainability](https://opentools.ai/news/elon-musk-shakes-up-tesla-strategy-a-bold-reinvention/sustainability) [...] Experts believe that Musk’s focus on diversification and expansion could have significant implications for the future of transportation. By advancing Tesla&#39;s technological infrastructure, Musk intends to create a ripple effect across global markets, a strategy discussed in detail in that insightful piece on [Livemint](https://www.livemint.com/companies/how-elon-musk-is-reinventing-tesla-s-strategy-11749895174574.html). This focus could lead to more robust competition, driving innovation and&quot;<br>    },<br>    {<br>      &quot;url&quot;: &quot;https://www.imd.org/research-knowledge/strategy/case-studies/tesla-s-global-expansion-where-to-go-next/&quot;,<br>      &quot;content&quot;: &quot;vehicles at only two sites – the US and China. While Tesla had built strong markets in these two countries, it was still lagging in Europe and elsewhere. In January 2021, Tesla was planning to build a new factory in Berlin and enter the Indian market aggressively. The stock market seemed to welcome Tesla’s current and future plans for expansion, with the stock trading at a record high value by mid-January 2021. At the same time, financial analysts and observers were wondering whether much of [...] Tesla set out to build “awesome” electric vehicles with a mission to accelerate the world’s transition to sustainable energy. In so doing, Tesla not only disrupted existing incumbent manufacturers but also proved that there was a market for high-end electric vehicles. By the close of 2020, Tesla’s market cap was $669 billion—nearly as much as the next five most valuable car companies combined. Despite that, its global footprint was still relatively small with production of over one million [...] and 80% of profits came from the Middle East. Set between 2015 and 2019, Case A describes the company’s “Shape for Growth” strategy, which aimed to reduce over-reliance on key markets and resulted in new market entries and over 150 new products. This strategy also mitigated the effects of the 2014-2016 oil price crisis. However, in 2019, Saudi Arabia’s announcement of a 50% sugar tax on sweetened beverages threatened to significantly reduce market volumes.&quot;<br>    },<br>    {<br>      &quot;url&quot;: &quot;https://www.reuters.com/business/autos-transportation/tesla-take-japan-virtual-power-plant-business-nationwide-nikkei-reports-2025-06-12/&quot;,<br>      &quot;content&quot;: &quot;Tesla will expand its virtual power plant business in Japan by providing free storage batteries to companies and remotely managing them to&quot;<br>    }<br>  ]<br>}<br>================================= Tool Message =================================<br>Name: crawl_web_page<br><br>{<br>  &quot;query&quot;: &quot;Tesla technology developments news&quot;,<br>  &quot;results&quot;: [<br>    {<br>      &quot;url&quot;: &quot;https://www.act-news.com/news/tesla-signals-2026-scale-up-for-semi-touts-efficiency-breakthroughs-and-charging-infrastructure-expansion/&quot;,<br>      &quot;content&quot;: &quot;*   [Artificial Intelligence](https://www.act-news.com/fuel-technology/artificial-intelligence/)\n*   [Autonomous](https://www.act-news.com/fuel-technology/autonomous/)\n*   [Biodiesel](https://www.act-news.com/fuel-technology/biodiesel/)\n*   [Biogas](https://www.act-news.com/fuel-technology/biogas/)\n*   [Charging Infrastructure](https://www.act-news.com/fuel-technology/charging-infrastructure/) [...] *   [Compressed Natural Gas (CNG)](https://www.act-news.com/fuel-technology/compressed-natural-gas-cng/)\n*   [Connected](https://www.act-news.com/fuel-technology/connected/)\n*   [DME](https://www.act-news.com/fuel-technology/dme/)\n*   [Efficiency](https://www.act-news.com/fuel-technology/efficiency/)\n*   [Electric Drive](https://www.act-news.com/fuel-technology/electric-drive/)\n*   [EV](https://www.act-news.com/fuel-technology/ev/) [...] *   [Agricultural](https://www.act-news.com/application/agricultural/)\n*   [Aviation](https://www.act-news.com/application/aviation/)\n*   [Construction](https://www.act-news.com/application/construction/)\n*   [Electric Drive](https://www.act-news.com/application/electric-drive/)\n*   [Electrification](https://www.act-news.com/application/electrification/)\n*   [EV](https://www.act-news.com/application/ev/)\n*   [Fueling Infrastructure](https://www.act-news.com/application/fueling-infrastructure/)&quot;<br>    },<br>    {<br>      &quot;url&quot;: &quot;https://opentools.ai/news/musk-talks-up-robotaxis-as-teslas-fundamentals-shift&quot;,<br>      &quot;content&quot;: &quot;In recent developments, industry reactions to Tesla&#39;s shifting focus from traditional vehicles to autonomous robotaxis have been mixed.&quot;<br>    },<br>    {<br>      &quot;url&quot;: &quot;https://www.teslarati.com/latest-tesla-news/&quot;,<br>      &quot;content&quot;: &quot;*   [![Image 31](https://www.teslarati.com/wp-content/uploads/2023/11/tesla-cybertruck-interior-front-seat-infotainment-ui-small-300x180.jpg)![Image 32](https://www.teslarati.com/wp-content/uploads/2023/11/tesla-cybertruck-interior-front-seat-infotainment-ui-small-80x80.jpg) News 3 days ago Tesla launches new feature that cold climate drivers will love -------------------------------------------------------------- Tesla&#39;s steering wheels are getting better with this simple yet effective [...] *   [![Image 10](https://www.teslarati.com/wp-content/uploads/2023/11/tesla-cybertruck-interior-front-seat-infotainment-ui-small-300x180.jpg) Tesla launches new feature that cold climate drivers will love](https://www.teslarati.com/tesla-launches-new-feature-that-cold-climate-drivers-will-love/) [...] *   [![Image 7](https://www.teslarati.com/wp-content/uploads/2023/11/tesla-cybertruck-interior-front-seat-infotainment-ui-small-300x180.jpg) Tesla launches new feature that cold climate drivers will love](https://www.teslarati.com/tesla-launches-new-feature-that-cold-climate-drivers-will-love/)&quot;<br>    }<br>  ]<br>}<br>================================== Ai Message ==================================<br><br>Here&#39;s a comprehensive market and news analysis for Tesla (TSLA):<br><br>### 1. Current Stock Price and Today&#39;s Trading Range:<br>- **Current Stock Price**: \$325.31<br>- **Today&#39;s Trading Range**: Opened at \$313.97 and hit a high of \$332.99.<br><br>### 2. Latest 5 News Articles on Tesla:<br>#### Manufacturing Updates:<br>- Tesla has started Giga Press manufacturing at Fremont, aiming for efficiency in creating high-strength aluminum components. This could potentially lower production costs and lead to better profit margins. [Source](https://www.teslarati.com/tesla-patent-pulsed-spray-quench-aluminum-manufacturing/).<br><br>- Tesla plans to update its electric semi-truck, promising improvements in range and cost efficiency. This positions Tesla as a leader in commercial electric vehicles. [Source](https://www.motortrend.com/news/2026-tesla-electric-semi-truck-updates).<br><br>#### Competition News:<br>- Tesla&#39;s Model 3 maintained its position in the market despite rising competition from brands like BYD and Wuling Mini, which have increased their market shares. [Source](https://autovista24.autovistagroup.com/news/powerful-competition-for-tesla-in-first-quarter-of-2025/).<br><br>- Tesla is facing stiff competition in China and Europe. This growing rivalry pressures Tesla’s international market presence. [Source](https://www.ndtv.com/world-news/tesla-faces-stiff-competition-by-the-rise-of-chinese-auto-tech-giants-8631023).<br><br>#### Market Expansion:<br>- A shift in Tesla&#39;s strategy focuses on diversification and expansion to mitigate market risks. Plans are underway for broader global footprints. [Source](https://opentools.ai/news/elon-musk-shakes-up-tesla-strategy-a-bold-reinvention).<br><br>- Tesla is targeting Japan for expanded virtual power plant operations, providing sustainable energy solutions. [Source](https://www.reuters.com/business/autos-transportation/tesla-take-japan-virtual-power-plant-business-nationwide-nikkei-reports-2025-06-12/).<br><br>#### Technology Developments:<br>- Tesla aims to scale up its semi-truck production, emphasizing breakthroughs in efficiency and infrastructure. [Source](https://www.act-news.com/news/tesla-signals-2026-scale-up-for-semi-touts-efficiency-breakthroughs-and-charging-infrastructure-expansion/).<br><br>- Tesla&#39;s new focus on robotaxis signals a shift from traditional vehicle production, which may redefine urban transportation. [Source](https://opentools.ai/news/musk-talks-up-robotaxis-as-teslas-fundamentals-shift).<br><br>### 3. Impact on Stock Price:<br>- **Manufacturing Updates**: Improved manufacturing processes can decrease costs, potentially bolstering profit margins and leading to a positive impact on stock prices.<br>- **Competition**: Increased competition pressures Tesla&#39;s market share, potentially resulting in stock volatility or bearish sentiments.<br>- **Market Expansion**: Successful expansion and diversification could stabilize earnings and attract investors, positively influencing stock prices.<br>- **Technology Developments**: Innovations like robotaxis might position Tesla as a future leader, attracting bullish investor sentiments.<br><br>### 4. Comparison with Industry Trends:<br>Tesla remains a pioneer in electric vehicles, but the rapid pace of competition, especially from China, challenges its dominance. The emphasis on technology advancements and strategic expansion aligns with current industry trends toward sustainable, smart transportation.<br><br>### 5. Summary Analysis:<br>- **Current Market Position**: Tesla continues as a market leader but faces significant competitive pressure.<br>- **News Sentiment**: Generally mixed. While manufacturing and technology innovations are promising, competition poses a significant threat.<br>- **Potential Market Movers**: Strategic expansion, new manufacturing technologies, and competition dynamics.<br>- **Overall Outlook**: Tesla is poised for growth if it effectively manages competition and leverages its technological advancements.<br><br>Tesla&#39;s rapid innovation and strategic maneuvers continue to make it a formidable player, but its stock performance will depend heavily on its ability to adapt to competition and expand its market footprint effectively.<br>(chatbot-streamlit-gpt) bash-3.2<br></pre><p>Sample prompts that you can use in MCP Client file in field <em>comprehensive_prompt </em>to test this agent</p><pre>&quot;&quot;&quot;Analyze Apple&#39;s (AAPL) current market position:<br>  <br>1. Retrieve the latest stock price and trading volume.<br>2.  the 5 most recent news articles about Apple.<br>3. Highlight any news about product launches, partnerships, or regulatory issues.<br>4. Assess how these news items might impact Apple&#39;s stock price.<br>5. Compare Apple&#39;s recent performance with Microsoft (MSFT).<br><br>Provide an overall investment outlook based on data and news.&quot;&quot;&quot;</pre><pre>&quot;&quot;&quot;Evaluate Google (GOOGL) as an investment:  <br><br>1. Fetch the annual financials and current stock price.<br>2. Search for recent news about Google&#39;s AI initiatives and regulatory challenges.<br>3. Summarize the news and discuss how it could influence Google&#39;s future growth.<br>4. Compare Google&#39;s financials and news sentiment with Meta (META).<br><br>Provide a summary of risks and opportunities.&quot;&quot;&quot;</pre><pre>&quot;&quot;&quot;Summarize the current state of the electric vehicle (EV) market:  <br>1. Get the latest stock prices for Tesla (TSLA), Rivian (RIVN), and Nio (NIO).<br>2. Find and summarize recent news about EV technology, government policies, and market expansion.<br>3. Compare the financials and news sentiment for these companies.<br><br>Provide an outlook for the EV sector based on your findings.&quot;&quot;&quot;</pre><pre>&quot;&quot;&quot;Evaluate Google (GOOGL) as an investment:  <br>1. Fetch the annual financials and current stock price.<br>2. Search for recent news about Google&#39;s AI initiatives and regulatory challenges.<br>3. Summarize the news and discuss how it could influence Google&#39;s future growth.<br>4. Compare Google&#39;s financials and news sentiment with Meta (META).<br><br>Provide a summary of risks and opportunities.&quot;&quot;&quot;</pre><p>I added few more tools in stock MCP servers at the time of writing this blog so below prompt also can be used -</p><pre>&quot;&quot;&quot;<br>    Perform a thorough analysis for Apple Inc. (AAPL):<br><br>1. Retrieve and summarize the following stock data:<br>   - Current stock price and today&#39;s trading range<br>   - Recent price history (last 1 month)<br>   - Latest quarterly and annual financials<br>   - Dividend history and recent actions (splits/dividends)<br>   - Major institutional holders<br>   - Recent earnings and quarterly earnings reports<br><br>2. Search and summarize the latest 5 news articles about Apple, focusing on:<br>   - Product launches or technology updates<br>   - Market expansion or competition<br>   - Regulatory or legal news<br>   - Analyst recommendations and market sentiment<br><br>3. For each news category, analyze its potential impact on the stock price and market outlook.<br><br>4. Compare Apple’s recent performance and news sentiment with key industry peers.<br><br>5. Provide a final summary including:<br>   - Current market position<br>   - Financial health<br>   - News sentiment analysis<br>   - Key opportunities and risks<br>   - Overall investment outlook<br>&quot;&quot;&quot;</pre><h3>🚀 Roadmap: Supercharging stock-savvy ReAct agent</h3><p><em>Where We’re Taking This Next</em></p><ol><li>🧠 Persistent Memory (Coming Soon!) — using thread_id and check point</li></ol><p>2. 👩💻 Human-in-the-Loop (HITL) Integration -using interrupt() and Command(resume=…)</p><p>3. Streamlit-Powered UI (Prototype Stage) —</p><p>If there is any error from MCP server, it will be returned like this to MCP client -</p><pre>/Users/rajeshranjan/RajeshWork/chatbot-streamlit-gpt/bin/python /Users/rajeshranjan/RajeshWork/mcp/mcp_project/mcp_client/MCPClient_Langgraph.py <br>[06/17/25 08:44:26] INFO     Starting MCP server &#39;WebCrawlerMCP&#39;   server.py:982<br>                             with transport &#39;stdio&#39;                             <br>[06/17/25 08:44:26] INFO     Starting MCP server                   server.py:982<br>                             &#39;stocksAnalysisMCPServer&#39; with                     <br>                             transport &#39;stdio&#39;                                  <br>&lt;langgraph.graph.state.CompiledStateGraph object at 0x113bf56a0&gt;<br>[06/17/25 08:44:32] INFO     Starting MCP server                   server.py:982<br>                             &#39;stocksAnalysisMCPServer&#39; with                     <br>                             transport &#39;stdio&#39;                                  <br>[06/17/25 08:44:32] INFO     Starting MCP server                   server.py:982<br>                             &#39;stocksAnalysisMCPServer&#39; with                     <br>                             transport &#39;stdio&#39;                                  <br>[06/17/25 08:44:32] INFO     Starting MCP server                   server.py:982<br>                             &#39;stocksAnalysisMCPServer&#39; with                     <br>                             transport &#39;stdio&#39;                                  <br>[06/17/25 08:44:32] INFO     Starting MCP server                   server.py:982<br>                             &#39;stocksAnalysisMCPServer&#39; with                     <br>                             transport &#39;stdio&#39;                                  <br>[06/17/25 08:44:33] INFO     Starting MCP server                   server.py:982<br>                             &#39;stocksAnalysisMCPServer&#39; with                     <br>                             transport &#39;stdio&#39;                                  <br>[06/17/25 08:44:33] INFO     Starting MCP server                   server.py:982<br>                             &#39;stocksAnalysisMCPServer&#39; with                     <br>                             transport &#39;stdio&#39;                                  <br>[06/17/25 08:44:33] INFO     Starting MCP server                   server.py:982<br>                             &#39;stocksAnalysisMCPServer&#39; with                     <br>                             transport &#39;stdio&#39;                                  <br>[06/17/25 08:44:33] INFO     Starting MCP server                   server.py:982<br>                             &#39;stocksAnalysisMCPServer&#39; with                     <br>                             transport &#39;stdio&#39;                                  <br>[06/17/25 08:44:33] INFO     Starting MCP server                   server.py:982<br>                             &#39;stocksAnalysisMCPServer&#39; with                     <br>                             transport &#39;stdio&#39;                                  <br>                    ERROR    Error calling tool              tool_manager.py:139<br>                             &#39;fetch_earnings&#39;: &#39;NoneType&#39;                       <br>                             object has no attribute                            <br>                             &#39;to_dict&#39;                                          <br>                             ╭─ Traceback (most recent cal─╮                    <br>                             │ /Users/rajeshranjan/RajeshW │                    <br>                             │ ork/chatbot-streamlit-gpt/l │                    <br>                             │ ib/python3.12/site-packages │                    <br>                             │ /fastmcp/tools/tool_manager │                    <br>                             │ .py:130 in call_tool        │                    <br>                             │                             │                    <br>                             │   127 │   │   │   raise Not │                    <br>                             │   128 │   │                 │                    <br>                             │   129 │   │   try:          │                    <br>                             │ ❱ 130 │   │   │   return aw │                    <br>                             │   131 │   │                 │                    <br>                             │   132 │   │   # raise ToolE │                    <br>                             │   133 │   │   except ToolEr │                    <br>                             │                             │                    <br>                             │ /Users/rajeshranjan/RajeshW │                    <br>                             │ ork/chatbot-streamlit-gpt/l │                    <br>                             │ ib/python3.12/site-packages │                    <br>                             │ /fastmcp/tools/tool.py:218  │                    <br>                             │ in run                      │                    <br>                             │                             │                    <br>                             │   215 │   │   │   │   │   p │                    <br>                             │   216 │   │                 │                    <br>                             │   217 │   │   type_adapter  │                    <br>                             │ ❱ 218 │   │   result = type │                    <br>                             │   219 │   │   if inspect.is │                    <br>                             │   220 │   │   │   result =  │                    <br>                             │   221                       │                    <br>                             │                             │                    <br>                             │ /Users/rajeshranjan/RajeshW │                    <br>                             │ ork/chatbot-streamlit-gpt/l │                    <br>                             │ ib/python3.12/site-packages │                    <br>                             │ /pydantic/type_adapter.py:1 │                    <br>                             │ 42 in wrapped               │                    <br>                             │                             │                    <br>                             │   139 │   │   @wraps(func)  │                    <br>                             │   140 │   │   def wrapped(s │                    <br>                             │   141 │   │   │   with self │                    <br>                             │       function              │                    <br>                             │ ❱ 142 │   │   │   │   retur │                    <br>                             │   143 │   │                 │                    <br>                             │   144 │   │   return wrappe │                    <br>                             │   145                       │                    <br>                             │                             │                    <br>                             │ /Users/rajeshranjan/RajeshW │                    <br>                             │ ork/chatbot-streamlit-gpt/l │                    <br>                             │ ib/python3.12/site-packages │                    <br>                             │ /pydantic/type_adapter.py:3 │                    <br>                             │ 73 in validate_python       │                    <br>                             │                             │                    <br>                             │   370 │   │   Returns:      │                    <br>                             │   371 │   │   │   The valid │                    <br>                             │   372 │   │   &quot;&quot;&quot;           │                    <br>                             │ ❱ 373 │   │   return self.v │                    <br>                             │       from_attributes=from_ │                    <br>                             │   374 │                     │                    <br>                             │   375 │   @_frame_depth(1)  │                    <br>                             │   376 │   def validate_json │                    <br>                             │                             │                    <br>                             │ /Users/rajeshranjan/RajeshW │                    <br>                             │ ork/mcp/mcp_project/mcp_ser │                    <br>                             │ ver/mcp_stock_server.py:148 │                    <br>                             │  in fetch_earnings          │                    <br>                             │                             │                    <br>                             │   145 │   │   dict: A dicti │                    <br>                             │   146 │   &quot;&quot;&quot;               │                    <br>                             │   147 │   stock = yf.Ticker │                    <br>                             │ ❱ 148 │   return stock.earn │                    <br>                             │   149                       │                    <br>                             │   150 @mcp.tool()           │                    <br>                             │   151 def fetch_quarterly_e │                    <br>                             ╰─────────────────────────────╯                    <br>                             AttributeError: &#39;NoneType&#39;                         <br>                             object has no attribute                            <br>                             &#39;to_dict&#39;                                          <br>                    ERROR    Error calling tool              tool_manager.py:139<br>                             &#39;fetch_quarterly_earnings&#39;:                        <br>                             &#39;NoneType&#39; object has no                           <br>                             attribute &#39;to_dict&#39;                                <br>                             ╭─ Traceback (most recent cal─╮                    <br>                             │ /Users/rajeshranjan/RajeshW │                    <br>                             │ ork/chatbot-streamlit-gpt/l │                    <br>                             │ ib/python3.12/site-packages │                    <br>                             │ /fastmcp/tools/tool_manager │                    <br>                             │ .py:130 in call_tool        │                    <br>                             │                             │                    <br>                             │   127 │   │   │   raise Not │                    <br>                             │   128 │   │                 │                    <br>                             │   129 │   │   try:          │                    <br>                             │ ❱ 130 │   │   │   return aw │                    <br>                             │   131 │   │                 │                    <br>                             │   132 │   │   # raise ToolE │                    <br>                             │   133 │   │   except ToolEr │                    <br>                             │                             │                    <br>                             │ /Users/rajeshranjan/RajeshW │                    <br>                             │ ork/chatbot-streamlit-gpt/l │                    <br>                             │ ib/python3.12/site-packages │                    <br>                             │ /fastmcp/tools/tool.py:218  │                    <br>                             │ in run                      │                    <br>                             │                             │                    <br>                             │   215 │   │   │   │   │   p │                    <br>                             │   216 │   │                 │                    <br>                             │   217 │   │   type_adapter  │                    <br>                             │ ❱ 218 │   │   result = type │                    <br>                             │   219 │   │   if inspect.is │                    <br>                             │   220 │   │   │   result =  │                    <br>                             │   221                       │                    <br>                             │                             │                    <br>                             │ /Users/rajeshranjan/RajeshW │                    <br>                             │ ork/chatbot-streamlit-gpt/l │                    <br>                             │ ib/python3.12/site-packages │                    <br>                             │ /pydantic/type_adapter.py:1 │                    <br>                             │ 42 in wrapped               │                    <br>                             │                             │                    <br>                             │   139 │   │   @wraps(func)  │                    <br>                             │   140 │   │   def wrapped(s │                    <br>                             │   141 │   │   │   with self │                    <br>                             │       function              │                    <br>                             │ ❱ 142 │   │   │   │   retur │                    <br>                             │   143 │   │                 │                    <br>                             │   144 │   │   return wrappe │                    <br>                             │   145                       │                    <br>                             │                             │                    <br>                             │ /Users/rajeshranjan/RajeshW │                    <br>                             │ ork/chatbot-streamlit-gpt/l │                    <br>                             │ ib/python3.12/site-packages │                    <br>                             │ /pydantic/type_adapter.py:3 │                    <br>                             │ 73 in validate_python       │                    <br>                             │                             │                    <br>                             │   370 │   │   Returns:      │                    <br>                             │   371 │   │   │   The valid │                    <br>                             │   372 │   │   &quot;&quot;&quot;           │                    <br>                             │ ❱ 373 │   │   return self.v │                    <br>                             │       from_attributes=from_ │                    <br>                             │   374 │                     │                    <br>                             │   375 │   @_frame_depth(1)  │                    <br>                             │   376 │   def validate_json │                    <br>                             │                             │                    <br>                             │ /Users/rajeshranjan/RajeshW │                    <br>                             │ ork/mcp/mcp_project/mcp_ser │                    <br>                             │ ver/mcp_stock_server.py:163 │                    <br>                             │  in                         │                    <br>                             │ fetch_quarterly_earnings    │                    <br>                             │                             │                    <br>                             │   160 │   │   dict: A dicti │                    <br>                             │   161 │   &quot;&quot;&quot;               │                    <br>                             │   162 │   stock = yf.Ticker │                    <br>                             │ ❱ 163 │   return stock.quar │                    <br>                             │   164                       │                    <br>                             │   165 if __name__ == &quot;__mai │                    <br>                             │   166 │   mcp.run(transport │                    <br>                             ╰─────────────────────────────╯                    <br>                             AttributeError: &#39;NoneType&#39;                         <br>                             object has no attribute                            <br>                             &#39;to_dict&#39;                                          <br>[06/17/25 08:44:37] INFO     Starting MCP server &#39;WebCrawlerMCP&#39;   server.py:982<br>                             with transport &#39;stdio&#39;                             <br>****************************************************************************************************<br>================================ Human Message =================================<br><br><br>    Perform a thorough analysis for Apple Inc. (AAPL):<br><br>1. Retrieve and summarize the following stock data:<br>   - Current stock price and today&#39;s trading range<br>   - Recent price history (last 1 month)<br>   - Latest quarterly and annual financials<br>   - Dividend history and recent actions (splits/dividends)<br>   - Major institutional holders<br>   - Recent earnings and quarterly earnings reports<br><br>2. Search and summarize the latest 5 news articles about Apple, focusing on:<br>   - Product launches or technology updates<br>   - Market expansion or competition<br>   - Regulatory or legal news<br>   - Analyst recommendations and market sentiment<br><br>3. For each news category, analyze its potential impact on the stock price and market outlook.<br><br>4. Compare Apple’s recent performance and news sentiment with key industry peers.<br><br>5. Provide a final summary including:<br>   - Current market position<br>   - Financial health<br>   - News sentiment analysis<br>   - Key opportunities and risks<br>   - Overall investment outlook<br><br>================================== Ai Message ==================================<br>Tool Calls:<br>  get_stock_price (call_2HRIIHGQFJrkpy9wemCaW3Ww)<br> Call ID: call_2HRIIHGQFJrkpy9wemCaW3Ww<br>  Args:<br>    symbol: AAPL<br>  get_stock_history (call_uykY8snutlGeDynGiHbptdBa)<br> Call ID: call_uykY8snutlGeDynGiHbptdBa<br>  Args:<br>    symbol: AAPL<br>    period: 1mo<br>  fetch_quarterly_financials (call_g34qxsKDc74CDA4BkStSn4VE)<br> Call ID: call_g34qxsKDc74CDA4BkStSn4VE<br>  Args:<br>    symbol: AAPL<br>  fetch_annual_financials (call_PiEXfPWDO47CffIxHywSijs2)<br> Call ID: call_PiEXfPWDO47CffIxHywSijs2<br>  Args:<br>    symbol: AAPL<br>  fetch_dividends (call_Uiiu7qpvAfwwrNDTBaaXq0cq)<br> Call ID: call_Uiiu7qpvAfwwrNDTBaaXq0cq<br>  Args:<br>    symbol: AAPL<br>  fetch_actions (call_S37f3rrB5EJ7JZFQN5ULPn3X)<br> Call ID: call_S37f3rrB5EJ7JZFQN5ULPn3X<br>  Args:<br>    symbol: AAPL<br>  fetch_institutional_holders (call_jhLOhxSNbwtuvKV9zAlZvq3F)<br> Call ID: call_jhLOhxSNbwtuvKV9zAlZvq3F<br>  Args:<br>    symbol: AAPL<br>  fetch_earnings (call_4Gok2EYXeo98dWYFE9K1991z)<br> Call ID: call_4Gok2EYXeo98dWYFE9K1991z<br>  Args:<br>    symbol: AAPL<br>  fetch_quarterly_earnings (call_tLhOia1yL7WpnttsD8dpBzg7)<br> Call ID: call_tLhOia1yL7WpnttsD8dpBzg7<br>  Args:<br>    symbol: AAPL<br>================================= Tool Message =================================<br>Name: get_stock_price<br><br>198.42<br>================================= Tool Message =================================<br>Name: get_stock_history<br><br>&quot;                                 Open        High  ...  Dividends  Stock Splits\nDate                                               ...                         \n2025-05-19 00:00:00-04:00  207.910004  209.479996  ...        0.0           0.0\n2025-05-20 00:00:00-04:00  207.669998  208.470001  ...        0.0           0.0\n2025-05-21 00:00:00-04:00  205.169998  207.039993  ...        0.0           0.0\n2025-05-22 00:00:00-04:00  200.710007  202.750000  ...        0.0           0.0\n2025-05-23 00:00:00-04:00  193.669998  197.699997  ...        0.0           0.0\n2025-05-27 00:00:00-04:00  198.300003  200.740005  ...        0.0           0.0\n2025-05-28 00:00:00-04:00  200.589996  202.729996  ...        0.0           0.0\n2025-05-29 00:00:00-04:00  203.580002  203.809998  ...        0.0           0.0\n2025-05-30 00:00:00-04:00  199.369995  201.960007  ...        0.0           0.0\n2025-06-02 00:00:00-04:00  200.279999  202.130005  ...        0.0           0.0\n2025-06-03 00:00:00-04:00  201.350006  203.770004  ...        0.0           0.0\n2025-06-04 00:00:00-04:00  202.910004  206.240005  ...        0.0           0.0\n2025-06-05 00:00:00-04:00  203.500000  204.750000  ...        0.0           0.0\n2025-06-06 00:00:00-04:00  203.000000  205.699997  ...        0.0           0.0\n2025-06-09 00:00:00-04:00  204.389999  206.000000  ...        0.0           0.0\n2025-06-10 00:00:00-04:00  200.600006  204.350006  ...        0.0           0.0\n2025-06-11 00:00:00-04:00  203.500000  204.500000  ...        0.0           0.0\n2025-06-12 00:00:00-04:00  199.080002  199.679993  ...        0.0           0.0\n2025-06-13 00:00:00-04:00  199.729996  200.369995  ...        0.0           0.0\n2025-06-16 00:00:00-04:00  197.289993  198.684998  ...        0.0           0.0\n\n[20 rows x 7 columns]&quot;<br>================================= Tool Message =================================<br>Name: fetch_quarterly_financials<br><br>&quot;           Tax Effect Of Unusual Items  ... Operating Revenue\n2025-03-31                         0.0  ...     95359000000.0\n2024-12-31                         0.0  ...    124300000000.0\n2024-09-30                         0.0  ...     94930000000.0\n2024-06-30                         0.0  ...     85777000000.0\n2024-03-31                         0.0  ...     90753000000.0\n2023-09-30                         NaN  ...               NaN\n\n[6 rows x 39 columns]&quot;<br>================================= Tool Message =================================<br>Name: fetch_annual_financials<br><br>&quot;           Tax Effect Of Unusual Items  ... Operating Revenue\n2024-09-30                         0.0  ...    391035000000.0\n2023-09-30                         0.0  ...    383285000000.0\n2022-09-30                         0.0  ...    394328000000.0\n2021-09-30                         0.0  ...    365817000000.0\n2020-09-30                         NaN  ...               NaN\n\n[5 rows x 39 columns]&quot;<br>================================= Tool Message =================================<br>Name: fetch_dividends<br><br>{<br>  &quot;1987-05-11T00:00:00-04:00&quot;: 0.000536,<br>  &quot;1987-08-10T00:00:00-04:00&quot;: 0.000536,<br>  &quot;1987-11-17T00:00:00-05:00&quot;: 0.000714,<br>  &quot;1988-02-12T00:00:00-05:00&quot;: 0.000714,<br>  &quot;1988-05-16T00:00:00-04:00&quot;: 0.000714,<br>  &quot;1988-08-15T00:00:00-04:00&quot;: 0.000714,<br>  &quot;1988-11-21T00:00:00-05:00&quot;: 0.000893,<br>  &quot;1989-02-17T00:00:00-05:00&quot;: 0.000893,<br>  &quot;1989-05-22T00:00:00-04:00&quot;: 0.000893,<br>  &quot;1989-08-21T00:00:00-04:00&quot;: 0.000893,<br>  &quot;1989-11-17T00:00:00-05:00&quot;: 0.000982,<br>  &quot;1990-02-16T00:00:00-05:00&quot;: 0.000982,<br>  &quot;1990-05-21T00:00:00-04:00&quot;: 0.000982,<br>  &quot;1990-08-20T00:00:00-04:00&quot;: 0.000982,<br>  &quot;1990-11-16T00:00:00-05:00&quot;: 0.001071,<br>  &quot;1991-02-15T00:00:00-05:00&quot;: 0.001071,<br>  &quot;1991-05-20T00:00:00-04:00&quot;: 0.001071,<br>  &quot;1991-08-19T00:00:00-04:00&quot;: 0.001071,<br>  &quot;1991-11-18T00:00:00-05:00&quot;: 0.001071,<br>  &quot;1992-02-14T00:00:00-05:00&quot;: 0.001071,<br>  &quot;1992-06-01T00:00:00-04:00&quot;: 0.001071,<br>  &quot;1992-08-17T00:00:00-04:00&quot;: 0.001071,<br>  &quot;1992-11-30T00:00:00-05:00&quot;: 0.001071,<br>  &quot;1993-02-12T00:00:00-05:00&quot;: 0.001071,<br>  &quot;1993-05-28T00:00:00-04:00&quot;: 0.001071,<br>  &quot;1993-08-16T00:00:00-04:00&quot;: 0.001071,<br>  &quot;1993-11-19T00:00:00-05:00&quot;: 0.001071,<br>  &quot;1994-02-07T00:00:00-05:00&quot;: 0.001071,<br>  &quot;1994-05-27T00:00:00-04:00&quot;: 0.001071,<br>  &quot;1994-08-15T00:00:00-04:00&quot;: 0.001071,<br>  &quot;1994-11-18T00:00:00-05:00&quot;: 0.001071,<br>  &quot;1995-02-13T00:00:00-05:00&quot;: 0.001071,<br>  &quot;1995-05-26T00:00:00-04:00&quot;: 0.001071,<br>  &quot;1995-08-16T00:00:00-04:00&quot;: 0.001071,<br>  &quot;1995-11-21T00:00:00-05:00&quot;: 0.001071,<br>  &quot;2012-08-09T00:00:00-04:00&quot;: 0.094643,<br>  &quot;2012-11-07T00:00:00-05:00&quot;: 0.094643,<br>  &quot;2013-02-07T00:00:00-05:00&quot;: 0.094643,<br>  &quot;2013-05-09T00:00:00-04:00&quot;: 0.108929,<br>  &quot;2013-08-08T00:00:00-04:00&quot;: 0.108929,<br>  &quot;2013-11-06T00:00:00-05:00&quot;: 0.108929,<br>  &quot;2014-02-06T00:00:00-05:00&quot;: 0.108929,<br>  &quot;2014-05-08T00:00:00-04:00&quot;: 0.1175,<br>  &quot;2014-08-07T00:00:00-04:00&quot;: 0.1175,<br>  &quot;2014-11-06T00:00:00-05:00&quot;: 0.1175,<br>  &quot;2015-02-05T00:00:00-05:00&quot;: 0.1175,<br>  &quot;2015-05-07T00:00:00-04:00&quot;: 0.13,<br>  &quot;2015-08-06T00:00:00-04:00&quot;: 0.13,<br>  &quot;2015-11-05T00:00:00-05:00&quot;: 0.13,<br>  &quot;2016-02-04T00:00:00-05:00&quot;: 0.13,<br>  &quot;2016-05-05T00:00:00-04:00&quot;: 0.1425,<br>  &quot;2016-08-04T00:00:00-04:00&quot;: 0.1425,<br>  &quot;2016-11-03T00:00:00-04:00&quot;: 0.1425,<br>  &quot;2017-02-09T00:00:00-05:00&quot;: 0.1425,<br>  &quot;2017-05-11T00:00:00-04:00&quot;: 0.1575,<br>  &quot;2017-08-10T00:00:00-04:00&quot;: 0.1575,<br>  &quot;2017-11-10T00:00:00-05:00&quot;: 0.1575,<br>  &quot;2018-02-09T00:00:00-05:00&quot;: 0.1575,<br>  &quot;2018-05-11T00:00:00-04:00&quot;: 0.1825,<br>  &quot;2018-08-10T00:00:00-04:00&quot;: 0.1825,<br>  &quot;2018-11-08T00:00:00-05:00&quot;: 0.1825,<br>  &quot;2019-02-08T00:00:00-05:00&quot;: 0.1825,<br>  &quot;2019-05-10T00:00:00-04:00&quot;: 0.1925,<br>  &quot;2019-08-09T00:00:00-04:00&quot;: 0.1925,<br>  &quot;2019-11-07T00:00:00-05:00&quot;: 0.1925,<br>  &quot;2020-02-07T00:00:00-05:00&quot;: 0.1925,<br>  &quot;2020-05-08T00:00:00-04:00&quot;: 0.205,<br>  &quot;2020-08-07T00:00:00-04:00&quot;: 0.205,<br>  &quot;2020-11-06T00:00:00-05:00&quot;: 0.205,<br>  &quot;2021-02-05T00:00:00-05:00&quot;: 0.205,<br>  &quot;2021-05-07T00:00:00-04:00&quot;: 0.22,<br>  &quot;2021-08-06T00:00:00-04:00&quot;: 0.22,<br>  &quot;2021-11-05T00:00:00-04:00&quot;: 0.22,<br>  &quot;2022-02-04T00:00:00-05:00&quot;: 0.22,<br>  &quot;2022-05-06T00:00:00-04:00&quot;: 0.23,<br>  &quot;2022-08-05T00:00:00-04:00&quot;: 0.23,<br>  &quot;2022-11-04T00:00:00-04:00&quot;: 0.23,<br>  &quot;2023-02-10T00:00:00-05:00&quot;: 0.23,<br>  &quot;2023-05-12T00:00:00-04:00&quot;: 0.24,<br>  &quot;2023-08-11T00:00:00-04:00&quot;: 0.24,<br>  &quot;2023-11-10T00:00:00-05:00&quot;: 0.24,<br>  &quot;2024-02-09T00:00:00-05:00&quot;: 0.24,<br>  &quot;2024-05-10T00:00:00-04:00&quot;: 0.25,<br>  &quot;2024-08-12T00:00:00-04:00&quot;: 0.25,<br>  &quot;2024-11-08T00:00:00-05:00&quot;: 0.25,<br>  &quot;2025-02-10T00:00:00-05:00&quot;: 0.25,<br>  &quot;2025-05-12T00:00:00-04:00&quot;: 0.26<br>}<br>================================= Tool Message =================================<br>Name: fetch_actions<br><br>{<br>  &quot;Dividends&quot;: {<br>    &quot;1987-05-11T00:00:00-04:00&quot;: 0.000536,<br>    &quot;1987-06-16T00:00:00-04:00&quot;: 0.0,<br>    &quot;1987-08-10T00:00:00-04:00&quot;: 0.000536,<br>    &quot;1987-11-17T00:00:00-05:00&quot;: 0.000714,<br>    &quot;1988-02-12T00:00:00-05:00&quot;: 0.000714,<br>    &quot;1988-05-16T00:00:00-04:00&quot;: 0.000714,<br>    &quot;1988-08-15T00:00:00-04:00&quot;: 0.000714,<br>    &quot;1988-11-21T00:00:00-05:00&quot;: 0.000893,<br>    &quot;1989-02-17T00:00:00-05:00&quot;: 0.000893,<br>    &quot;1989-05-22T00:00:00-04:00&quot;: 0.000893,<br>    &quot;1989-08-21T00:00:00-04:00&quot;: 0.000893,<br>    &quot;1989-11-17T00:00:00-05:00&quot;: 0.000982,<br>    &quot;1990-02-16T00:00:00-05:00&quot;: 0.000982,<br>    &quot;1990-05-21T00:00:00-04:00&quot;: 0.000982,<br>    &quot;1990-08-20T00:00:00-04:00&quot;: 0.000982,<br>    &quot;1990-11-16T00:00:00-05:00&quot;: 0.001071,<br>    &quot;1991-02-15T00:00:00-05:00&quot;: 0.001071,<br>    &quot;1991-05-20T00:00:00-04:00&quot;: 0.001071,<br>    &quot;1991-08-19T00:00:00-04:00&quot;: 0.001071,<br>    &quot;1991-11-18T00:00:00-05:00&quot;: 0.001071,<br>    &quot;1992-02-14T00:00:00-05:00&quot;: 0.001071,<br>    &quot;1992-06-01T00:00:00-04:00&quot;: 0.001071,<br>    &quot;1992-08-17T00:00:00-04:00&quot;: 0.001071,<br>    &quot;1992-11-30T00:00:00-05:00&quot;: 0.001071,<br>    &quot;1993-02-12T00:00:00-05:00&quot;: 0.001071,<br>    &quot;1993-05-28T00:00:00-04:00&quot;: 0.001071,<br>    &quot;1993-08-16T00:00:00-04:00&quot;: 0.001071,<br>    &quot;1993-11-19T00:00:00-05:00&quot;: 0.001071,<br>    &quot;1994-02-07T00:00:00-05:00&quot;: 0.001071,<br>    &quot;1994-05-27T00:00:00-04:00&quot;: 0.001071,<br>    &quot;1994-08-15T00:00:00-04:00&quot;: 0.001071,<br>    &quot;1994-11-18T00:00:00-05:00&quot;: 0.001071,<br>    &quot;1995-02-13T00:00:00-05:00&quot;: 0.001071,<br>    &quot;1995-05-26T00:00:00-04:00&quot;: 0.001071,<br>    &quot;1995-08-16T00:00:00-04:00&quot;: 0.001071,<br>    &quot;1995-11-21T00:00:00-05:00&quot;: 0.001071,<br>    &quot;2000-06-21T00:00:00-04:00&quot;: 0.0,<br>    &quot;2005-02-28T00:00:00-05:00&quot;: 0.0,<br>    &quot;2012-08-09T00:00:00-04:00&quot;: 0.094643,<br>    &quot;2012-11-07T00:00:00-05:00&quot;: 0.094643,<br>    &quot;2013-02-07T00:00:00-05:00&quot;: 0.094643,<br>    &quot;2013-05-09T00:00:00-04:00&quot;: 0.108929,<br>    &quot;2013-08-08T00:00:00-04:00&quot;: 0.108929,<br>    &quot;2013-11-06T00:00:00-05:00&quot;: 0.108929,<br>    &quot;2014-02-06T00:00:00-05:00&quot;: 0.108929,<br>    &quot;2014-05-08T00:00:00-04:00&quot;: 0.1175,<br>    &quot;2014-06-09T00:00:00-04:00&quot;: 0.0,<br>    &quot;2014-08-07T00:00:00-04:00&quot;: 0.1175,<br>    &quot;2014-11-06T00:00:00-05:00&quot;: 0.1175,<br>    &quot;2015-02-05T00:00:00-05:00&quot;: 0.1175,<br>    &quot;2015-05-07T00:00:00-04:00&quot;: 0.13,<br>    &quot;2015-08-06T00:00:00-04:00&quot;: 0.13,<br>    &quot;2015-11-05T00:00:00-05:00&quot;: 0.13,<br>    &quot;2016-02-04T00:00:00-05:00&quot;: 0.13,<br>    &quot;2016-05-05T00:00:00-04:00&quot;: 0.1425,<br>    &quot;2016-08-04T00:00:00-04:00&quot;: 0.1425,<br>    &quot;2016-11-03T00:00:00-04:00&quot;: 0.1425,<br>    &quot;2017-02-09T00:00:00-05:00&quot;: 0.1425,<br>    &quot;2017-05-11T00:00:00-04:00&quot;: 0.1575,<br>    &quot;2017-08-10T00:00:00-04:00&quot;: 0.1575,<br>    &quot;2017-11-10T00:00:00-05:00&quot;: 0.1575,<br>    &quot;2018-02-09T00:00:00-05:00&quot;: 0.1575,<br>    &quot;2018-05-11T00:00:00-04:00&quot;: 0.1825,<br>    &quot;2018-08-10T00:00:00-04:00&quot;: 0.1825,<br>    &quot;2018-11-08T00:00:00-05:00&quot;: 0.1825,<br>    &quot;2019-02-08T00:00:00-05:00&quot;: 0.1825,<br>    &quot;2019-05-10T00:00:00-04:00&quot;: 0.1925,<br>    &quot;2019-08-09T00:00:00-04:00&quot;: 0.1925,<br>    &quot;2019-11-07T00:00:00-05:00&quot;: 0.1925,<br>    &quot;2020-02-07T00:00:00-05:00&quot;: 0.1925,<br>    &quot;2020-05-08T00:00:00-04:00&quot;: 0.205,<br>    &quot;2020-08-07T00:00:00-04:00&quot;: 0.205,<br>    &quot;2020-08-31T00:00:00-04:00&quot;: 0.0,<br>    &quot;2020-11-06T00:00:00-05:00&quot;: 0.205,<br>    &quot;2021-02-05T00:00:00-05:00&quot;: 0.205,<br>    &quot;2021-05-07T00:00:00-04:00&quot;: 0.22,<br>    &quot;2021-08-06T00:00:00-04:00&quot;: 0.22,<br>    &quot;2021-11-05T00:00:00-04:00&quot;: 0.22,<br>    &quot;2022-02-04T00:00:00-05:00&quot;: 0.22,<br>    &quot;2022-05-06T00:00:00-04:00&quot;: 0.23,<br>    &quot;2022-08-05T00:00:00-04:00&quot;: 0.23,<br>    &quot;2022-11-04T00:00:00-04:00&quot;: 0.23,<br>    &quot;2023-02-10T00:00:00-05:00&quot;: 0.23,<br>    &quot;2023-05-12T00:00:00-04:00&quot;: 0.24,<br>    &quot;2023-08-11T00:00:00-04:00&quot;: 0.24,<br>    &quot;2023-11-10T00:00:00-05:00&quot;: 0.24,<br>    &quot;2024-02-09T00:00:00-05:00&quot;: 0.24,<br>    &quot;2024-05-10T00:00:00-04:00&quot;: 0.25,<br>    &quot;2024-08-12T00:00:00-04:00&quot;: 0.25,<br>    &quot;2024-11-08T00:00:00-05:00&quot;: 0.25,<br>    &quot;2025-02-10T00:00:00-05:00&quot;: 0.25,<br>    &quot;2025-05-12T00:00:00-04:00&quot;: 0.26<br>  },<br>  &quot;Stock Splits&quot;: {<br>    &quot;1987-05-11T00:00:00-04:00&quot;: 0.0,<br>    &quot;1987-06-16T00:00:00-04:00&quot;: 2.0,<br>    &quot;1987-08-10T00:00:00-04:00&quot;: 0.0,<br>    &quot;1987-11-17T00:00:00-05:00&quot;: 0.0,<br>    &quot;1988-02-12T00:00:00-05:00&quot;: 0.0,<br>    &quot;1988-05-16T00:00:00-04:00&quot;: 0.0,<br>    &quot;1988-08-15T00:00:00-04:00&quot;: 0.0,<br>    &quot;1988-11-21T00:00:00-05:00&quot;: 0.0,<br>    &quot;1989-02-17T00:00:00-05:00&quot;: 0.0,<br>    &quot;1989-05-22T00:00:00-04:00&quot;: 0.0,<br>    &quot;1989-08-21T00:00:00-04:00&quot;: 0.0,<br>    &quot;1989-11-17T00:00:00-05:00&quot;: 0.0,<br>    &quot;1990-02-16T00:00:00-05:00&quot;: 0.0,<br>    &quot;1990-05-21T00:00:00-04:00&quot;: 0.0,<br>    &quot;1990-08-20T00:00:00-04:00&quot;: 0.0,<br>    &quot;1990-11-16T00:00:00-05:00&quot;: 0.0,<br>    &quot;1991-02-15T00:00:00-05:00&quot;: 0.0,<br>    &quot;1991-05-20T00:00:00-04:00&quot;: 0.0,<br>    &quot;1991-08-19T00:00:00-04:00&quot;: 0.0,<br>    &quot;1991-11-18T00:00:00-05:00&quot;: 0.0,<br>    &quot;1992-02-14T00:00:00-05:00&quot;: 0.0,<br>    &quot;1992-06-01T00:00:00-04:00&quot;: 0.0,<br>    &quot;1992-08-17T00:00:00-04:00&quot;: 0.0,<br>    &quot;1992-11-30T00:00:00-05:00&quot;: 0.0,<br>    &quot;1993-02-12T00:00:00-05:00&quot;: 0.0,<br>    &quot;1993-05-28T00:00:00-04:00&quot;: 0.0,<br>    &quot;1993-08-16T00:00:00-04:00&quot;: 0.0,<br>    &quot;1993-11-19T00:00:00-05:00&quot;: 0.0,<br>    &quot;1994-02-07T00:00:00-05:00&quot;: 0.0,<br>    &quot;1994-05-27T00:00:00-04:00&quot;: 0.0,<br>    &quot;1994-08-15T00:00:00-04:00&quot;: 0.0,<br>    &quot;1994-11-18T00:00:00-05:00&quot;: 0.0,<br>    &quot;1995-02-13T00:00:00-05:00&quot;: 0.0,<br>    &quot;1995-05-26T00:00:00-04:00&quot;: 0.0,<br>    &quot;1995-08-16T00:00:00-04:00&quot;: 0.0,<br>    &quot;1995-11-21T00:00:00-05:00&quot;: 0.0,<br>    &quot;2000-06-21T00:00:00-04:00&quot;: 2.0,<br>    &quot;2005-02-28T00:00:00-05:00&quot;: 2.0,<br>    &quot;2012-08-09T00:00:00-04:00&quot;: 0.0,<br>    &quot;2012-11-07T00:00:00-05:00&quot;: 0.0,<br>    &quot;2013-02-07T00:00:00-05:00&quot;: 0.0,<br>    &quot;2013-05-09T00:00:00-04:00&quot;: 0.0,<br>    &quot;2013-08-08T00:00:00-04:00&quot;: 0.0,<br>    &quot;2013-11-06T00:00:00-05:00&quot;: 0.0,<br>    &quot;2014-02-06T00:00:00-05:00&quot;: 0.0,<br>    &quot;2014-05-08T00:00:00-04:00&quot;: 0.0,<br>    &quot;2014-06-09T00:00:00-04:00&quot;: 7.0,<br>    &quot;2014-08-07T00:00:00-04:00&quot;: 0.0,<br>    &quot;2014-11-06T00:00:00-05:00&quot;: 0.0,<br>    &quot;2015-02-05T00:00:00-05:00&quot;: 0.0,<br>    &quot;2015-05-07T00:00:00-04:00&quot;: 0.0,<br>    &quot;2015-08-06T00:00:00-04:00&quot;: 0.0,<br>    &quot;2015-11-05T00:00:00-05:00&quot;: 0.0,<br>    &quot;2016-02-04T00:00:00-05:00&quot;: 0.0,<br>    &quot;2016-05-05T00:00:00-04:00&quot;: 0.0,<br>    &quot;2016-08-04T00:00:00-04:00&quot;: 0.0,<br>    &quot;2016-11-03T00:00:00-04:00&quot;: 0.0,<br>    &quot;2017-02-09T00:00:00-05:00&quot;: 0.0,<br>    &quot;2017-05-11T00:00:00-04:00&quot;: 0.0,<br>    &quot;2017-08-10T00:00:00-04:00&quot;: 0.0,<br>    &quot;2017-11-10T00:00:00-05:00&quot;: 0.0,<br>    &quot;2018-02-09T00:00:00-05:00&quot;: 0.0,<br>    &quot;2018-05-11T00:00:00-04:00&quot;: 0.0,<br>    &quot;2018-08-10T00:00:00-04:00&quot;: 0.0,<br>    &quot;2018-11-08T00:00:00-05:00&quot;: 0.0,<br>    &quot;2019-02-08T00:00:00-05:00&quot;: 0.0,<br>    &quot;2019-05-10T00:00:00-04:00&quot;: 0.0,<br>    &quot;2019-08-09T00:00:00-04:00&quot;: 0.0,<br>    &quot;2019-11-07T00:00:00-05:00&quot;: 0.0,<br>    &quot;2020-02-07T00:00:00-05:00&quot;: 0.0,<br>    &quot;2020-05-08T00:00:00-04:00&quot;: 0.0,<br>    &quot;2020-08-07T00:00:00-04:00&quot;: 0.0,<br>    &quot;2020-08-31T00:00:00-04:00&quot;: 4.0,<br>    &quot;2020-11-06T00:00:00-05:00&quot;: 0.0,<br>    &quot;2021-02-05T00:00:00-05:00&quot;: 0.0,<br>    &quot;2021-05-07T00:00:00-04:00&quot;: 0.0,<br>    &quot;2021-08-06T00:00:00-04:00&quot;: 0.0,<br>    &quot;2021-11-05T00:00:00-04:00&quot;: 0.0,<br>    &quot;2022-02-04T00:00:00-05:00&quot;: 0.0,<br>    &quot;2022-05-06T00:00:00-04:00&quot;: 0.0,<br>    &quot;2022-08-05T00:00:00-04:00&quot;: 0.0,<br>    &quot;2022-11-04T00:00:00-04:00&quot;: 0.0,<br>    &quot;2023-02-10T00:00:00-05:00&quot;: 0.0,<br>    &quot;2023-05-12T00:00:00-04:00&quot;: 0.0,<br>    &quot;2023-08-11T00:00:00-04:00&quot;: 0.0,<br>    &quot;2023-11-10T00:00:00-05:00&quot;: 0.0,<br>    &quot;2024-02-09T00:00:00-05:00&quot;: 0.0,<br>    &quot;2024-05-10T00:00:00-04:00&quot;: 0.0,<br>    &quot;2024-08-12T00:00:00-04:00&quot;: 0.0,<br>    &quot;2024-11-08T00:00:00-05:00&quot;: 0.0,<br>    &quot;2025-02-10T00:00:00-05:00&quot;: 0.0,<br>    &quot;2025-05-12T00:00:00-04:00&quot;: 0.0<br>  }<br>}<br>================================= Tool Message =================================<br>Name: fetch_institutional_holders<br><br>[<br>  {<br>    &quot;Date Reported&quot;: &quot;2025-03-31T00:00:00&quot;,<br>    &quot;Holder&quot;: &quot;Vanguard Group Inc&quot;,<br>    &quot;pctHeld&quot;: 0.0938,<br>    &quot;Shares&quot;: 1400790809,<br>    &quot;Value&quot;: 277944909756,<br>    &quot;pctChange&quot;: 0.0036000002<br>  },<br>  {<br>    &quot;Date Reported&quot;: &quot;2025-03-31T00:00:00&quot;,<br>    &quot;Holder&quot;: &quot;Blackrock Inc.&quot;,<br>    &quot;pctHeld&quot;: 0.0763,<br>    &quot;Shares&quot;: 1140202870,<br>    &quot;Value&quot;: 226239051377,<br>    &quot;pctChange&quot;: 0.0149<br>  },<br>  {<br>    &quot;Date Reported&quot;: &quot;2025-03-31T00:00:00&quot;,<br>    &quot;Holder&quot;: &quot;State Street Corporation&quot;,<br>    &quot;pctHeld&quot;: 0.0399,<br>    &quot;Shares&quot;: 596025766,<br>    &quot;Value&quot;: 118263431398,<br>    &quot;pctChange&quot;: 0.00090000004<br>  },<br>  {<br>    &quot;Date Reported&quot;: &quot;2025-03-31T00:00:00&quot;,<br>    &quot;Holder&quot;: &quot;Geode Capital Management, LLC&quot;,<br>    &quot;pctHeld&quot;: 0.0234,<br>    &quot;Shares&quot;: 349807156,<br>    &quot;Value&quot;: 69408735253,<br>    &quot;pctChange&quot;: 0.028299998<br>  },<br>  {<br>    &quot;Date Reported&quot;: &quot;2025-03-31T00:00:00&quot;,<br>    &quot;Holder&quot;: &quot;FMR, LLC&quot;,<br>    &quot;pctHeld&quot;: 0.022,<br>    &quot;Shares&quot;: 328100180,<br>    &quot;Value&quot;: 65101637114,<br>    &quot;pctChange&quot;: -0.0396<br>  },<br>  {<br>    &quot;Date Reported&quot;: &quot;2025-03-31T00:00:00&quot;,<br>    &quot;Holder&quot;: &quot;Berkshire Hathaway, Inc&quot;,<br>    &quot;pctHeld&quot;: 0.0201,<br>    &quot;Shares&quot;: 300000000,<br>    &quot;Value&quot;: 59525999450,<br>    &quot;pctChange&quot;: 0.0<br>  },<br>  {<br>    &quot;Date Reported&quot;: &quot;2025-03-31T00:00:00&quot;,<br>    &quot;Holder&quot;: &quot;Morgan Stanley&quot;,<br>    &quot;pctHeld&quot;: 0.0162,<br>    &quot;Shares&quot;: 241221800,<br>    &quot;Value&quot;: 47863229114,<br>    &quot;pctChange&quot;: 0.0124<br>  },<br>  {<br>    &quot;Date Reported&quot;: &quot;2025-03-31T00:00:00&quot;,<br>    &quot;Holder&quot;: &quot;Price (T.Rowe) Associates Inc&quot;,<br>    &quot;pctHeld&quot;: 0.014400001,<br>    &quot;Shares&quot;: 214703055,<br>    &quot;Value&quot;: 42601379779,<br>    &quot;pctChange&quot;: -0.024600001<br>  },<br>  {<br>    &quot;Date Reported&quot;: &quot;2025-03-31T00:00:00&quot;,<br>    &quot;Holder&quot;: &quot;JPMORGAN CHASE &amp; CO&quot;,<br>    &quot;pctHeld&quot;: 0.013300001,<br>    &quot;Shares&quot;: 198745598,<br>    &quot;Value&quot;: 39435101191,<br>    &quot;pctChange&quot;: 0.086<br>  },<br>  {<br>    &quot;Date Reported&quot;: &quot;2024-12-31T00:00:00&quot;,<br>    &quot;Holder&quot;: &quot;NORGES BANK&quot;,<br>    &quot;pctHeld&quot;: 0.0125,<br>    &quot;Shares&quot;: 187160162,<br>    &quot;Value&quot;: 37136319001,<br>    &quot;pctChange&quot;: 0.0542<br>  }<br>]<br>================================= Tool Message =================================<br>Name: fetch_earnings<br><br>Error: ToolException(&quot;Error calling tool &#39;fetch_earnings&#39;: &#39;NoneType&#39; object has no attribute &#39;to_dict&#39;&quot;)<br> Please fix your mistakes.<br>================================= Tool Message =================================<br>Name: fetch_quarterly_earnings<br><br>Error: ToolException(&quot;Error calling tool &#39;fetch_quarterly_earnings&#39;: &#39;NoneType&#39; object has no attribute &#39;to_dict&#39;&quot;)<br> Please fix your mistakes.<br>================================== Ai Message ==================================<br>Tool Calls:<br>  crawl_web_page (call_yhQGzpSWA5Wod8EePt6XUVqi)<br> Call ID: call_yhQGzpSWA5Wod8EePt6XUVqi<br>  Args:<br>    query: latest news articles about Apple<br>================================= Tool Message =================================<br>Name: crawl_web_page<br><br>[<br>  {<br>    &quot;url&quot;: &quot;https://www.the-independent.com/topic/apple&quot;,<br>    &quot;content&quot;: &quot;## [Apple heads into annual showcase reeling from AI missteps, tech upheaval and Trump&#39;s trade war](/news/world/americas/apple-donald-trump-siri-tim-cook-big-tech-b2766183.html)\n\n![The Stream](https://static.independent.co.uk/2025/06/06/16/The_Stream_08024.jpg?quality=75&amp;width=640&amp;crop=3%3A2%2Csmart&amp;auto=webp)\n\n## [What to Stream: Dierks Bentley, Sydney Sweeney, Alex Cooper and &#39;Deep Cover&#39;](/news/stream-sydney-sweeney-mare-of-easttown-new-york-miami-b2765293.html) [...] ![&lt;p&gt;Apple saw shares fall 3 percent as the markets closed following President Donald Trump’s threat. The president said he was going to put a tariff on the company’s products. &lt;/p&gt;](https://static.independent.co.uk/2025/05/23/14/03/FILE-PHOTO-Apple-CEO-Cook-and-U-S--President-Trump-participate-in-American-Workforce-Policy-Advisory.jpeg?quality=75&amp;width=640&amp;auto=webp) [...] ![&lt;p&gt;Apple saw shares fall 3 percent as the markets closed following President Donald Trump’s threat. The president said he was going to put a tariff on the company’s products. &lt;/p&gt;](https://static.independent.co.uk/2025/05/23/14/03/FILE-PHOTO-Apple-CEO-Cook-and-U-S--President-Trump-participate-in-American-Workforce-Policy-Advisory.jpeg?quality=75&amp;width=640&amp;crop=3%3A2%2Csmart&amp;trim=0%2C329%2C0%2C34&amp;auto=webp)&quot;<br>  },<br>  {<br>    &quot;url&quot;: &quot;https://www.nbcnews.com/tech/apple&quot;,<br>    &quot;content&quot;: &quot;## [Apple faces years of distractions after DOJ antitrust suit](https://www.nbcnews.com/tech/apple/apple-faces-years-distractions-doj-antitrust-suit-rcna144617)\n\n![The Apple store in Hamburg, Germany on April 5, 2023.](https://media-cldnry.s-nbcnews.com/image/upload/t_focal-758x379,f_auto,q_auto:best/rockcms/2024-03/240321-apple-store-ew-320p-05887a.jpg)\n\n## [Business News](https://www.nbcnews.com/business) [...] ## [Tech News](https://www.nbcnews.com/tech/tech-news)\n\n## [Apple reverses course and clears way for Epic Games to set up rival iPhone app store in Europe](https://www.nbcnews.com/tech/tech-news/apple-reverses-course-clears-way-epic-games-set-rival-iphone-app-store-rcna142741)\n\n![Apple hit with more than $1.95 billion EU antitrust fine over music streaming](https://media-cldnry.s-nbcnews.com/image/upload/t_focal-758x379,f_auto,q_auto:best/rockcms/2024-03/240304-apple-store-mb-1232-a83f4b.jpg) [...] ## [Apple boosts U.S. investment plans with $500 billion pledge amid Trump tariff threat](https://www.nbcnews.com/business/business-news/apple-plans-500-billion-us-investment-trump-tariff-threat-rcna193408)\n\n![Apple Holds Launch Event For New Products At Its Headquarters](https://media-cldnry.s-nbcnews.com/image/upload/t_focal-440x220,f_auto,q_auto:best/rockcms/2025-01/250103-Apple-iPhone-aa-130-5b7302.jpg)\n\n## [Apple](https://www.nbcnews.com/tech/apple)&quot;<br>  },<br>  {<br>    &quot;url&quot;: &quot;https://www.apple.com/newsroom/topics/company-news/&quot;,<br>    &quot;content&quot;: &quot;Company News ; Apple reports second quarter results. May 1, 2025 ; Apple will spend more than $500 billion in the U.S. over the next four years. February 24, 2025.&quot;<br>  }<br>]<br>================================== Ai Message ==================================<br><br>### Stock Analysis for Apple Inc. (AAPL)<br><br>**1. Stock Data Summary:**<br><br>- **Current Stock Price:** $198.42<br><br>- **Recent Price History (Last 1 Month):**<br>  - The stock opened at $207.91 on May 19, 2025, reaching highs of $209.48 the same day. Throughout the month, the price fluctuated, with recent lows reaching around $197.29.<br>  - Most recent trading saw the stock opening at $197.29 and reaching a high of $198.68.<br><br>- **Latest Financials:**<br>  - **Quarterly Financials:**<br>    - Operating Revenue ranged from $90.753 billion to $124.3 billion over recent quarters.<br>  - **Annual Financials:**<br>    - Operating Revenue stood at $391.035 billion as of September 30, 2024.<br><br>- **Dividend History and Recent Actions:**<br>  - Historical dividends have shown consistent increases, with recent dividends at $0.26.<br>  - There were no recent stock splits.<br><br>- **Major Institutional Holders:**<br>  - Vanguard Group Inc: 9.38%<br>  - Blackrock Inc.: 7.63%<br>  - State Street Corporation: 3.99%<br>  - Geode Capital Management: 2.34%<br>  - FMR, LLC: 2.20%<br><br>- **Earnings and Quarterly Earnings Reports:**<br>  - Due to technical errors, recent quarterly and earnings data specific to the most recent period could not be extracted.<br><br>**2. Latest News Analysis:**<br><br>- **Product Launches and Technology Updates:**<br>  - Recent news discusses Apple&#39;s readiness for an annual showcase amid several challenges in AI and tech.<br><br>- **Market Expansion and Competition:**<br>  - Apple is enhancing its investment in the U.S. with a $500 billion commitment, possibly as a response to trade threats from the U.S. government.<br><br>- **Regulatory and Legal News:**<br>  - Apple is facing antitrust challenges, including a DOJ lawsuit and a $1.95 billion EU fine related to music streaming.<br><br>- **Analyst Recommendations and Market Sentiment:**<br>  - The sentiment appears mixed as Apple&#39;s share prices dipped 3% following trade threats.<br><br>**3. Impact Analysis:**<br><br>- **Product Launches and Tech Updates:**<br>  - While there&#39;s innovation, current tech and AI challenges might hinder short-term perception. However, significant investment in the U.S. market could improve sentiment.<br><br>- **Market Expansion/Competition:**<br>  - The large U.S. investment could alleviate competition concerns and foster a positive future market outlook.<br><br>- **Regulatory/Legal News:**<br>  - Regulatory scrutiny poses a risk that could lead to stock volatility and increased caution among investors.<br><br>- **Analyst Recommendations:**<br>  - The recent dip in share price reflects cautious optimism where new policies might play a mitigating role.<br><br>**4. Industry Comparison:**<br><br>Comparison with peers (such as Microsoft, Google) generally involves assessing innovation, market agility, and response to regulatory challenges. Apple&#39;s proactive market investments and handling regulatory hurdles will be crucial for maintaining its competitive edge.<br><br>**5. Final Summary for Apple Inc.:**<br><br>- **Market Position:**<br>  - Apple remains a flagship leader in technology, with strong market confidence despite occasional dips.<br><br>- **Financial Health:**<br>  - With stable revenues, consistent dividend payments, and strategic investments, Apple appears financially robust.<br><br>- **News Sentiment Analysis:**<br>  - Mixed, with short-term challenges due to regulatory issues but potential uplift from future investments.<br><br>- **Opportunities and Risks:**<br>  - Opportunities exist in U.S. market expansion and tech innovation. Conversely, regulatory risks and global trade policies present notable challenges.<br><br>- **Investment Outlook:**<br>  - While short-term volatility might be observed, Apple&#39;s strategic initiatives reinforce a positive long-term trajectory. Caution around regulatory developments is advisable.<br><br>Process finished with exit code 0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*eDZkLFlKfq-xGOL7.png" /></figure><p>This story is published on <a href="https://generativeai.pub/">Generative AI</a>. Connect with us on <a href="https://www.linkedin.com/company/generative-ai-publication">LinkedIn</a> and follow <a href="https://www.zeniteq.com/">Zeniteq</a> to stay in the loop with the latest AI stories.</p><p>Subscribe to our <a href="https://www.generativeaipub.com/">newsletter</a> and <a href="https://www.youtube.com/@generativeaipub">YouTube</a> channel to stay updated with the latest news and updates on generative AI. Let’s shape the future of AI together!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*CpAglvtASxd73pep.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f082558cd0b" width="1" height="1" alt=""><hr><p><a href="https://generativeai.pub/langgraph-react-agents-unlocked-fastmcp-custom-tool-integration-guide-6f082558cd0b">🤖 LangGraph ReAct Agents Unlocked: FastMCP Custom Tool Integration Guide</a> was originally published in <a href="https://generativeai.pub/">Generative AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implement retrieval-augmented generation (RAG) architecture with local Deepseek R1:1.5B LLM]]></title>
            <link>https://rajeshranjancs.medium.com/implement-rag-with-deepseek-r1-1-5b-ab1c00096d6b?source=rss-923ceea63159------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab1c00096d6b</guid>
            <category><![CDATA[generative-ai-solution]]></category>
            <category><![CDATA[rag-architecture]]></category>
            <category><![CDATA[deepseek-r1]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Rajesh Ranjan]]></dc:creator>
            <pubDate>Sat, 01 Feb 2025 10:31:45 GMT</pubDate>
            <atom:updated>2025-05-27T07:03:51.900Z</atom:updated>
            <content:encoded><![CDATA[<p>Earlier in the below blog I shown you how to run deepseek model locally on laptop. Now we will use that local deployment to implement RAG based chatbot where you upload your PDF of upto 200 MB in size and start asking question about it.</p><p>In this ,chroma DB is used as vector DB which will store PDF as embeded token. Prompt entered in chatbot will be matched against tokens in Chroma DB to get context from PDF and send that prompt and context to LLM model which is DeepSeek R1(1.5) running on my laptop on Ollama server.</p><p>Below is the blog URL for running DeepSeek R1 locally.</p><p><a href="https://medium.com/@rajeshranjancs/run-deepseek-ai-locally-on-your-laptop-29686590bee2">Run DeepSeek R1 (1.5 B)LLM on your laptop locally</a></p><p>Lets start with creating virtual environment for python project which will have streamlit python code for chatbot.</p><p>First create a folder <em>rag-pdf-deepseek </em>for hosting code, chroma DB, virtual envrionment etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kCNqjTiUwLCjnZQjRSpLkg.png" /></figure><p>Refer below link for how to create virtual enviornment and activate it</p><p><a href="https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/">Install packages in a virtual environment using pip and venv - Python Packaging User Guide</a></p><pre>Rajeshs-MacBook-Pro:rag-pdf-deepseek rajeshranjan$ python3 -m venv .venv<br>Rajeshs-MacBook-Pro:rag-pdf-deepseek rajeshranjan$ source .venv/bin/activate</pre><p>Once virtual environment is created , that python runtime can be used as interpreter for python code in IDE like PyCharm if you are using any IDE.</p><pre>(.venv) Rajeshs-MacBook-Pro:rag-pdf-deepseek rajeshranjan$ which python<br>/Users/rajeshranjan/RajeshWork/DeepSeek_POC/rag-pdf-deepseek/.venv/bin/python</pre><p>Now will install all required dependencies</p><pre>(.venv) Rajeshs-MacBook-Pro:rag-pdf-deepseek rajeshranjan$ pip install streamlit langchain langchain-community chromadb pypdf sentence-transformers ollama</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0mXAApyrQMJREWESFgBILg.png" /></figure><p>If you get Numpy related error (shown below)while executing chatbot -</p><p><em>RuntimeError: Numpy is not available</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*ZVT-lEa6HuF_BaNTRLykTA.png" /></figure><p>then follow below steps to fix it-</p><p>Execute below to uninstall NumPy and reinstall lower version which is &lt;2</p><pre>(.venv) Rajeshs-MacBook-Pro:rag-pdf-deepseek rajeshranjan$ pip uninstall numpy<br>(.venv) Rajeshs-MacBook-Pro:rag-pdf-deepseek rajeshranjan$ pip install &quot;numpy&lt;2&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fzIwzz58zoEdB6UEiew83g.png" /></figure><p>Create python file called <em>pdf_chat_ollama.py </em>and copy below code in that. You don’t need to be expert in Python.Just understand Langchain framework. You can generate code with below prompt on online DeepSeek chatbot available at <a href="https://chat.deepseek.com/">https://chat.deepseek.com/</a></p><p>Prompt -</p><p><em>Generate streamlit code and langchain to upload the pdf , store in chroma vector db and call deepseek-R1:1.5B model of ollama which is running locally , not the API for chat conversation</em></p><pre>import streamlit as st<br>import os<br>import logging<br>from langchain_community.document_loaders import PyPDFLoader<br>from langchain.text_splitter import RecursiveCharacterTextSplitter<br>from langchain_community.embeddings import HuggingFaceEmbeddings<br>from langchain_community.vectorstores import Chroma<br>from langchain.chains import RetrievalQA<br>from langchain_community.llms import Ollama<br><br># App configuration<br>st.set_page_config(page_title=&quot;PDF Chat with Local DeepSeek-R1 1.5B&quot;)<br>st.title(&quot;💬 Chat with PDF using Local DeepSeek-R1 1.5B&quot;)<br># Configure logging<br>logging.basicConfig(level=logging.DEBUG, format=&#39;%(asctime)s - %(levelname)s - %(message)s&#39;)<br><br>logging.info(&quot;********** Initialize embeddings and text splitter ****************&quot;)<br>def initialize_components():<br>    &quot;&quot;&quot;Initialize embeddings and text splitter&quot;&quot;&quot;<br>    return HuggingFaceEmbeddings(model_name=&quot;sentence-transformers/all-MiniLM-L6-v2&quot;), \<br>        RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200)<br><br>logging.info(&quot;********** Process PDF and create vector store ****************&quot;)<br>def process_pdf(file_path):<br>    &quot;&quot;&quot;Process PDF and create vector store&quot;&quot;&quot;<br>    loader = PyPDFLoader(file_path)<br>    documents = loader.load()<br><br>    # Split documents<br>   # logging.info(&quot;********** Split documents ****************&quot;)<br>    texts = st.session_state.text_splitter.split_documents(documents)<br><br>    # Create vector store<br>    logging.info(&quot;********** Create vector store ****************&quot;)<br>    vector_store = Chroma.from_documents(<br>        documents=texts,<br>        embedding=st.session_state.embeddings,<br>        persist_directory=&quot;chroma_db&quot;<br>    )<br>    return vector_store<br><br>logging.info(&quot;********** Initialize embeddings and text splitter ****************&quot;)<br># Initialize embeddings and text splitter<br>if &quot;embeddings&quot; not in st.session_state or &quot;text_splitter&quot; not in st.session_state:<br>    st.session_state.embeddings, st.session_state.text_splitter = initialize_components()<br><br># PDF Upload<br>logging.info(&quot;********** PDF Upload ****************&quot;)<br>uploaded_file = st.file_uploader(&quot;Upload PDF&quot;, type=[&quot;pdf&quot;])<br><br># Process PDF when file is uploaded<br>logging.info(&quot;********** Process PDF when file is uploaded ****************&quot;)<br>if uploaded_file and (&quot;vector_store&quot; not in st.session_state):<br>    with st.spinner(&quot;Processing PDF...&quot;):<br>        # Save temporary file<br>        temp_file = &quot;./temp.pdf&quot;<br>        with open(temp_file, &quot;wb&quot;) as f:<br>            f.write(uploaded_file.getbuffer())<br><br>        # Process PDF<br>        st.session_state.vector_store = process_pdf(temp_file)<br>        st.session_state.retriever = st.session_state.vector_store.as_retriever(search_kwargs={&quot;k&quot;: 3})<br>        os.remove(temp_file)<br>    st.success(&quot;PDF processed successfully!&quot;)<br>logging.info(&quot;********** PDF processed successfully! ****************&quot;)<br><br># Initialize Ollama LLM<br><br>if &quot;llm&quot; not in st.session_state:<br>    logging.info(&quot;********** Initialize Ollama LLM DeepSeek-R1 1.5B ****************&quot;)<br>    with st.spinner(&quot;Initializing DeepSeek-R1 1.5B...&quot;):<br>        st.session_state.llm = Ollama(<br>            model=&quot;deepseek-r1:1.5b&quot;,  # Ensure this matches your Ollama model name<br>            temperature=1.3,<br>            num_ctx=2048,<br>            verbose=True<br>        )<br><br>logging.info(&quot;********** Initialize chat history  ****************&quot;)<br># Initialize chat history<br>if &quot;messages&quot; not in st.session_state:<br>    st.session_state.messages = []<br><br># Display chat messages<br>for message in st.session_state.messages:<br>    with st.chat_message(message[&quot;role&quot;]):<br>        st.markdown(message[&quot;content&quot;])<br><br># Chat input<br>if prompt := st.chat_input(&quot;Ask about the PDF&quot;):<br>    if &quot;vector_store&quot; not in st.session_state:<br>        st.error(&quot;Please upload a PDF first!&quot;)<br>        st.stop()<br><br>    # Add user message to history<br>    st.session_state.messages.append({&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: prompt})<br>    with st.chat_message(&quot;user&quot;):<br>        st.markdown(prompt)<br><br>    # Create QA chain<br>    qa_chain = RetrievalQA.from_chain_type(<br>        llm=st.session_state.llm,<br>        chain_type=&quot;stuff&quot;,<br>        retriever=st.session_state.retriever,<br>        verbose=True,<br>        return_source_documents=True<br>    )<br><br>    # Get response<br>    with st.spinner(&quot;Thinking...&quot;):<br>        try:<br>            result = qa_chain(prompt)<br>            response = f&quot;{result[&#39;result&#39;]}\n\nSources: {list(set([doc.metadata[&#39;source&#39;] for doc in result[&#39;source_documents&#39;]]))}&quot;<br>        except Exception as e:<br>            response = f&quot;Error: {str(e)}&quot;<br><br>    # Add assistant response<br>    st.session_state.messages.append({&quot;role&quot;: &quot;assistant&quot;, &quot;content&quot;: response})<br>    with st.chat_message(&quot;assistant&quot;):<br>        st.markdown(response)</pre><ol><li><strong>PDF Loading</strong>: The PDF is loaded using PyPDFLoader from LangChain.</li><li><strong>Text Splitting</strong>: The content is split into chunks using RecursiveCharacterTextSplitter.</li><li><strong>Vector Store</strong>: The text chunks are stored in a Chroma vector database using Ollama embeddings.</li><li><strong>Conversational Retrieval Chain</strong>: A conversational retrieval chain is set up using the locally running Deepseek-R1:1.5B model via Ollama.</li></ol><p>5 . The ConversationalRetrievalChain is used to handle the chat conversation, leveraging the vector store for retrieval.</p><p>6. The first run will download the embedding model (~80MB)</p><p>Now at this stage, your folder structure should be looking like below -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D8lTEKu4ALKB2ZhVX3pC2A.png" /></figure><p>Now run python code using below command, it will open localhost URL in browser.</p><p><a href="http://localhost:8501/">http://localhost:8501/</a></p><pre>(.venv) Rajeshs-MacBook-Pro:rag-pdf-deepseek rajeshranjan$ streamlit run pdf_chat_ollama.py</pre><p>and chatbot page will be looking like below -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gV7TREqMPD1tnJtevt2bgA.png" /></figure><p>Now upload PDF by clicking browse files to which you want to ask questions -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wsA1dNqUhhhL-z7d8JAonQ.png" /></figure><p>Once PDF is processed successfully , you start asking questions.</p><p>I have used Temperature of 1.3 in code as per table on below link of deepseek. <a href="https://api-docs.deepseek.com/quick_start/parameter_settings">https://api-docs.deepseek.com/quick_start/parameter_settings</a></p><p>Now PDF is processed successfully and stored in Chroma DB as you see in below screenshot -</p><p>SentenceTransformers/all-MiniLM-L6-v2 hugging face model used for text embeddings. It maps sentences &amp; paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SUuvDFZH9ILkeKLA6sChnA.png" /></figure><p>at this point of time, terminal looks like below -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l0TOEuxbwCOlRkTRQO4QHQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XdNLi-4tFHCmagTpbPhIWg.png" /></figure><p>Now on chatbot page , enter question which you want to ask. On my laptop it took ~50sec to get below response with reasoning. Below is my laptop configuration. of Macbook Pro -</p><p><em>Processor — 2.3 GHz Quad-Core Intel Core i5</em></p><p><em>Graphics — Intel Iris Plus Graphics 655 1536 MB</em></p><p><em>Memory — 8 GB 2133 MHz LPDDR3</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ARwdtP2OR50_F44ZCGZ2WA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*09wDcGldwIOTq56oKbO7ug.png" /></figure><p>and terminal looks like below which shows <a href="http://localhost:11434/">http://localhost:11434</a> and this is where ollama server is running which is hosting Deepseek R1 LLM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qZ_kY35-COJ30aVKnQz-0Q.png" /></figure><p>For Editing code , I used PyCharm CE.</p><p><em>Hope this blogs helps someone to save lots of time in setup and executing streamlit code for implementing RAG architecture based chat model.</em></p><p><em>Thanks for your time, appreciate any feedback/comments !</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab1c00096d6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Run DeepSeek R1 (1.5 B)LLM on your laptop locally]]></title>
            <link>https://rajeshranjancs.medium.com/run-deepseek-ai-locally-on-your-laptop-29686590bee2?source=rss-923ceea63159------2</link>
            <guid isPermaLink="false">https://medium.com/p/29686590bee2</guid>
            <category><![CDATA[deepseek-r1]]></category>
            <category><![CDATA[ai-model]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Rajesh Ranjan]]></dc:creator>
            <pubDate>Fri, 31 Jan 2025 16:28:03 GMT</pubDate>
            <atom:updated>2025-04-01T11:22:12.015Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*6DHrYpiAIrBJTyW7tgbUzA.jpeg" /></figure><p>DeepSeek is making waves on internet in last one week. you can download DeepSeek LLM model on your laptop and run it locally. Here are simple few steps to do the same. I did it on Mac but you should be able to run it on windows and linux also.</p><ol><li>Download Ollama from below website</li></ol><p><a href="https://ollama.com/download">Download Ollama on macOS</a></p><p>it will download file Ollama-darwin.zip. Unzip it and move <em>Ollama</em> into application folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zhnGJjJCAB9WtCMu44cGLA.png" /></figure><p>Then double click file name called <em>Ollama</em>, to run Ollama on your laptop. it should be running in background and Ollama would be appearing in the menu bar like below ( first icon)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tVA5v-lQr6pgHcD1LXYxyQ.png" /></figure><p>2. Open terminal and execute following command to pull and run Ollama server.</p><p><em>ollama run llama3.2</em></p><p>This will launch Ollama on default port 11434. If you want to run on different port, refer this</p><p><a href="https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-expose-ollama-on-my-netwo">https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-expose-ollama-on-my-netwo</a>rk</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*bRCjZGcYAkld58Bup7a06A.png" /></figure><p>3. Visit following link — <a href="https://ollama.com/library/deepseek-r1:1.5b">https://ollama.com/library/deepseek-r1:1.5b</a></p><p><em>I selected LLM model with lower number of parameter which is 1.5 Billion parameter which has size of 1.1 GB to run on mylaptop with following hardware configuration -</em></p><p><em>Processor — 2.3 GHz Quad-Core Intel Core i5</em></p><p><em>Graphics — Intel Iris Plus Graphics 655 1536 MB</em></p><p><em>Memory — 8 GB 2133 MHz LPDDR3</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yd_TKBaxwo8Pm0mIKtZ96w.png" /></figure><p>Open terminal and execute following command to pull the DeepSheek R1 1.5B parameter model as image on laptop which will run inside ollama server.</p><p><em>ollama pull deepseek-r1:1.5b</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f0_osEUJAL6XJ285Jx5-sw.png" /></figure><p>Run DeepSeek model on your laptop with below command. It will initialize the model and allow you ask questions to LLM</p><p><em>ollama run deepseek-r1:1.5b</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ev7JrVzs7kpFmjXWnu4bKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ua0N1k0FfamhAmzaWFUvFg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29686590bee2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy docker container on AWS using Elastic Container Service (ECS) on EC2.]]></title>
            <link>https://rajeshranjancs.medium.com/deploy-docker-container-on-aws-using-elastic-container-service-ecs-on-ec2-653883eacbdb?source=rss-923ceea63159------2</link>
            <guid isPermaLink="false">https://medium.com/p/653883eacbdb</guid>
            <dc:creator><![CDATA[Rajesh Ranjan]]></dc:creator>
            <pubDate>Tue, 10 Jan 2023 03:52:28 GMT</pubDate>
            <atom:updated>2025-02-23T09:12:36.412Z</atom:updated>
            <content:encoded><![CDATA[<p>Origninally was published in my other medium account at below. Please refer below link with screenshots</p><p><a href="https://medium.com/@rajesh.ranjan66/deploying-container-on-amazon-ecs-using-ec2-from-aws-console-e352563a2bf9">Deploy docker container on AWS using Elastic Container Service (ECS) on EC2.</a></p><p>This tutorial demonstrates how to deploy docker container which has Nginx server running from public repository dockerhub.com to Amazon ECS on EC2 instance with application load balancer (ALB). Once this tutorial is completed, you will be able to access nginx home page in browser using public DNS or endpoint of ALB.</p><p>I have used AWS Free tier account in this.</p><p>Later in the document, I have covered little background about Amazon ECS, it’s component and how these components are connected.</p><p>To start with lets create ECS cluster <em>firstcluster</em>. Open ECS service. Click get started.</p><p>Then click create cluster as shown in below</p><p>Select values as per screenshot shown below</p><p>In this tutorial cluster is using EC2 instance for deployment hence select EC2 under infrastructure. By default AWS Fargate (serverless offerning) is selected . \Under autoscaling group, desired capacity is set as 0 initially, later will update to 1 so that one instance spins up with desired task.</p><p>Click create button as shown above image#4 then cluster and Auto scaling group will be created.</p><p>Click on name of the cluster <em>firstcluster in ECS service</em>, click on “ <em>Infrastructure</em> “ tab. There are 3 capacity provider shown below.</p><p>In Auto scaling group, change desired count to 1 to spin 1 EC2 instance. Later after completing tutorial, change it back to 0 to terminate EC2 instance. If you manually try to terminate EC2 instance, auto scaling will keep launching 1 EC2 instance to match desired capacity.</p><p>Below is EC2 instance in auto scaling group.</p><p>And below two screenshots shows EC2 in ECS Cluster.</p><p>Below is the nginx image on docker hub which will be deployed in ECS cluster in EC2 as container.</p><p>Alternatively, you can create your own docker image running some REST API and push that image to Amazon ECR and use that image further steps in ECS.</p><p>After Cluster is setup, create task definition as shown below.</p><p>The task definition functions as a blueprint for your application that describes one or more containers that form your application. It specifies the various parameters for your application.</p><p>Click on create new task definition under ECS.</p><p>Enter details of container and port on which nginx server in side docker container is listening for request. In this case, used 80 because nginx in docker is listening on port 80.</p><p>Will use nginx image from docker hub. Then click next</p><p>Set the values like above, rest leave it to default.</p><p>No role is needed as container is not going to make call to any AWS services. Click next.</p><p>Click create.</p><p>Task definition created successfully as per above configurations.</p><p>Now run the task definition in a service which is running behind load balancer.</p><p>Let’s create 2 security groups as per below screenshots.</p><p>Securitygroup_alb_ecs =&gt; This security group to allow inbound request to ALB from anywhere and internet.</p><p>Click create security group at the bottom of the page.</p><p>Nginx_demo_sg =&gt; This security group will ensure that ECS service which is running the task will allow request from only ALB. This can be done by referencing security group which we created earlier to associate with ALB. See below screenshot.</p><p>Click create security group.</p><p>Now deploy the service using task definition.</p><p>Click deploy and enter configuration as per below.</p><p>Ensure security group selected is not default. It should be nginx_demo_sg which we created earlier.</p><p>Click deploy. Service is deployed, load balancer and target group is created.</p><p>Below screenshot shows ALB.</p><p>Verify security group for ALB is securitygroup_alb_ecs else change to associate ALB with this security group-</p><p>Verify services under cluster is in active status as shown below, observe deployment and task column, showing green bar 1 is expected and 1 is running (1/1).</p><p>This is it ! You have deployed container in ECS on EC2 which is running nginx server.</p><p>Hit end point of ALB — <a href="http://nginxdemoalb-1129480059.us-east-1.elb.amazonaws.com/">http://nginxdemoalb-1129480059.us-east-1.elb.amazonaws.com</a></p><p>If you run into issues, below pointers may help you to debug.</p><p>1.) I choose wrong image from docker hub</p><p>2.) Forgot to save inbound rule in securitygroup_alb_ecs security group as no inbound rule was found there.</p><p>3.) Wrong security group was associated with ALB.</p><p>Below are the repeated screenshots showing updating service under ECS cluster to run desired task as 3 then click task tab , you see 3 tasks are running and due to this autoscaling will spin-up 3 EC2 instance.</p><p>Hit ALB public URL 3 times and below three screenshots shows 3 different IPs that means request is routed to all 3 EC2 instances by ALB.</p><p>Here is some background of Amazon ECS from AWS documentation at <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/welcome-features.html">https://docs.aws.amazon.com/AmazonECS/latest/developerguide/welcome-features.html</a></p><p><strong>Clusters</strong></p><p>An Amazon ECS <em>cluster </em>is a logical grouping of tasks or services. You can use clusters to isolate your applications. This way, they don’t use the same underlying infrastructure. When your tasks are run on Fargate, your cluster resources are also managed by Fargate.</p><p><strong>Containers and images</strong></p><p>To deploy applications on Amazon ECS, your application components must be configured to run in containers. A container is a standardized unit of software development that holds everything that your software application requires to run. This includes relevant code, runtime, system tools, and system libraries. Containers are created from a read-only template that’s called an image.</p><p>Images are typically built from a Dockerfile. A Dockerfile is a plaintext file that specifies all of the components that are included in the container. After they’re built, these images are stored in a registry where they can be downloaded from. Then, after you download them, you can use them to run on your cluster</p><p><strong>Task definitions</strong></p><p>A <em>task definition </em>is a text file that describes one or more containers that form your application. It’s in JSON format. You can use it to describe up to a maximum of ten containers. The task definition functions as a blueprint for your application. It specifies the various parameters for your application. For example, you can use it to specify parameters for the operating system, which containers to use, which ports to open for your application, and what data volumes to use with the containers in the task. The specific parameters available for your task definition depend on the needs of your specific application.</p><p>Your entire application stack doesn’t need to be on a single task definition. In fact, we recommend spanning your application across multiple task definitions. You can do this by combining related containers into their own task definitions, each representing a single component.</p><p><strong>Tasks</strong></p><p>A <em>task </em>is the instantiation of a task definition within a cluster. After you create a task definition for your application within Amazon ECS, you can specify the number of tasks to run on your cluster. You can run a standalone task, or you can run a task as part of a service.</p><p><strong>Services</strong></p><p>You can use an Amazon ECS <em>service </em>to run and maintain your desired number of tasks simultaneously in an Amazon ECS cluster. How it works is that, if any of your tasks fail or stop for any reason, the Amazon ECS service scheduler launches another instance based on your task definition. It does this to replace it and thereby maintain your desired number of tasks in the service.</p><p><strong>Container agent</strong></p><p>The <em>container agent </em>runs on each container instance within an Amazon ECS cluster. The agent sends information about the current running tasks and resource utilization of your containers to Amazon ECS. It starts and stops tasks whenever it receives a request from Amazon ECS.</p><p><strong>Fargate architecture overview</strong></p><p>Amazon ECS is a Regional service that simplifies the management involved with running containers in a highly available manner across multiple Availability Zones within an AWS Region. You can create Amazon ECS clusters within a new or existing VPC. After a cluster is up and running, you can create task definitions that define which container images run across your clusters. Your task definitions are used to run tasks or create services. Container images are stored in and pulled from container registries Amazon ECR.</p><p><em>This is my first AWS related blog, any feedbacks is welcome. Please like and share if you find this useful. Thanks for spending time on this blog. :)</em> <em>Thanks to Mr for being community inspiration and helping many !</em></p><p><em>Originally published at </em><a href="https://medium.com/@rajesh.ranjan66/deploying-container-on-amazon-ecs-using-ec2-from-aws-console-e352563a2bf9"><em>https://medium.com</em></a><em> on January 10, 2023.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=653883eacbdb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configure trigger for Amazon Simple Storage Service (Amazon S3) to generate thumbnails using AWS…]]></title>
            <link>https://rajeshranjancs.medium.com/configure-trigger-for-amazon-simple-storage-service-amazon-s3-to-generate-thumbnails-using-aws-22f4791dc149?source=rss-923ceea63159------2</link>
            <guid isPermaLink="false">https://medium.com/p/22f4791dc149</guid>
            <dc:creator><![CDATA[Rajesh Ranjan]]></dc:creator>
            <pubDate>Mon, 09 Jan 2023 16:42:17 GMT</pubDate>
            <atom:updated>2025-02-23T09:11:52.043Z</atom:updated>
            <content:encoded><![CDATA[<p>Origninally was published in my other medium account at below. Please refer below link with screenshots</p><p><a href="https://medium.com/@rajesh.ranjan66/configure-trigger-for-amazon-simple-storage-service-amazon-s3-to-generate-thumbnails-by-aws-437b6971f5c0">https://medium.com/@rajesh.ranjan66/configure-trigger-for-amazon-simple-storage-service-amazon-s3-to-generate-thumbnails-by-aws-437b6971f5c0</a></p><p>This technical post, I will walk you through 8 steps with screenshots about below tutorial available on AWS Service’s documentation on-</p><p><a href="https://docs.aws.amazon.com/lambda/latest/dg/with-s3-tutorial.html">https://docs.aws.amazon.com/lambda/latest/dg/with-s3-tutorial.html</a></p><p>In this post, you create a Lambda function and configure a trigger for Amazon Simple Storage Service (Amazon S3). Amazon S3 invokes the CreateThumbnail function for each image file that is uploaded to an S3 bucket. The function reads the image object from the source S3 bucket and creates a thumbnail image to save in a target S3 bucket.</p><p><strong>Step 1. Create S3 buckets and upload a sample object</strong></p><p>Create 2 buckets in S3. Bucket 1 named Image31102022 : This is source bucket.</p><p>Bucket 2 named Image31102022-resized: This is resize (target) bucket.</p><p>Upload image in source bucket as shown below</p><p><strong>Step 2. Create the IAM policy</strong></p><p>Create an IAM policy that defines the permissions for the Lambda function. The function must have permissions to:</p><ul><li>* Get the object from the source S3 bucket.</li><li>* Put the resized object into the target S3 bucket.</li><li>* Write logs to Amazon CloudWatch Logs.</li></ul><p>Go to IAM console, click create policy-</p><p>Click on the JSON tab and paste below and replace your source and resize bucket name -</p><p><em>“Version”: “2012–10–17”,</em> <em>“Statement”: [</em> <em>“Effect”: “Allow”,</em> <em>“logs:PutLogEvents”,</em> <em>“logs:CreateLogGroup”,</em> <em>“logs:CreateLogStream”</em> <em>“Resource”: “arn:aws:logs:*:*:*”</em> <em>“Effect”: “Allow”,</em> <em>“s3:GetObject”</em> <em>“Resource”: “arn:aws:s3::: image31102022/*”</em> <em>“Effect”: “Allow”,</em> <em>“s3:PutObject”</em> <em>“Resource”: “arn:aws:s3::: image31102022-resized/*”</em></p><p>Looks like below -</p><p>Choose <strong>Next: Tags</strong>.</p><p>Choose <strong>Next: Review</strong>.</p><p>Under <strong>Review policy</strong>, for <strong>Name</strong>, enter <strong>AWSLambdaS3Policy</strong>.</p><p>Choose <strong>Create policy</strong></p><p><strong>Step 3. Create the execution role</strong></p><p>Create the execution role that gives your Lambda function permission to access AWS resources.</p><p>In IAM console. Click on Role</p><p>Choose <strong>Create role </strong>as per below and click next</p><p>On permission page, select <strong>AWSLambdaS3Policy</strong></p><p>And click next and enter role name <strong>lambda-s3-role</strong></p><p>Click create role.</p><p><strong>Step 4. Create the deployment package</strong></p><p>The deployment package is a .zip file archive containing your Lambda function code and its dependencies</p><p><strong>Prerequisites</strong></p><p><strong>To create a deployment package using the AWS SAM</strong></p><p>Open a command prompt and create a lambda-s3 project directory.</p><p>Navigate to the lambda-s3 project directory.</p><p>mkdir lambda-s3</p><p>cd lambda-s3</p><p>Copy the contents of the following sample Python code and save it in a new file named lambda_function.py:</p><p><em>import boto3</em> <em>import uuid</em> <em>from urllib.parse import unquote_plus</em> <em>from PIL import Image</em> <em>import PIL.Image</em> <em>s3_client = boto3.client(‘s3’)</em> <em>def resize_image(image_path, resized_path):</em></p><p>with Image.open(image_path) as image:</p><p><em>image.thumbnail(tuple(x / 2 for x in image.size))</em></p><p>image.save(resized_path)</p><p><em>def lambda_handler(event, context):</em></p><p>for record in event[‘Records’]:</p><p>bucket = record[‘s3’][‘bucket’][‘name’]</p><p>key = unquote_plus(record[‘s3’][‘object’][‘key’])</p><p><em>tmpkey = key.replace(‘/’, ‘’)</em></p><p>download_path = ‘/tmp/{}{}’.format(uuid.uuid4(), tmpkey)</p><p><em>upload_path = ‘/tmp/resized-{}’.format(tmpkey)</em></p><p>s3_client.download_file(bucket, key, download_path)</p><p>resize_image(download_path, upload_path)</p><p><em>s3_client.upload_file(upload_path, ‘{}-resized’.format(bucket), ‘resized-{}’.format(key))</em> <strong>Install the Pillow library to a new package directory.</strong></p><p>pip install — target ./package pillow</p><p>In the lambda-s3 directory, create a new file called template.yaml. This is the AWS SAM template.</p><p><em>AWSTemplateFormatVersion: ‘2010–09–09’</em> <em>Transform: AWS::Serverless-2016–10–31</em> <em>CreateThumbnail:</em> <em>Type: AWS::Serverless::Function</em> <em>Properties:</em> <em>Handler: lambda_function.lambda_handler</em> <em>Runtime: python3.9</em> <em>Policies: AWSLambdaExecute</em> <em>CreateThumbnailEvent:</em> <em>Properties:</em> <em>Bucket: !Ref SrcBucket</em> <em>Events: s3:ObjectCreated:*</em> <em>Type: AWS::S3::Bucket</em></p><p>Create a file called requirements.txt and add the following content. This is the manifest file that specifies your dependencies. If you installed a different version of Pillow, change the version number.</p><p>Pillow == 9.2.0</p><p>Build the deployment package. The — use-container flag is required. This flag locally compiles your functions in a Docker container that behaves like a Lambda environment, so they’re in the right format when you deploy them.</p><p>sam build — use-container</p><p><strong>Step 5. Create the Lambda function</strong></p><p>Run the following AWS SAM CLI command to deploy the package and create the Lambda function. Follow the on-screen prompts. To accept the default options provided in the interactive experience, respond with Enter.</p><p>sam deploy -guided</p><p><strong>Step 6. Test the Lambda function</strong></p><p>Invoke the Lambda function manually using sample Amazon S3 event data.</p><p>In the project directory that you created earlier, save the following Amazon S3 sample event data in a file named inputFile.txt. Be sure to replace the following values:</p><p>* us-west-2 — The AWS Region where you created the Amazon S3 bucket and the Lambda function.</p><p>* sourcebucket — The Amazon S3 source bucket that you created in step 1.</p><p>* HappyFace.jpg — The object key of the .jpg or .png image that you uploaded to the source bucket.</p><p>“Records”:[</p><p>{</p><p>“eventVersion”:”2.0&quot;,</p><p>“eventSource”:”aws:s3&quot;,</p><p><em>“awsRegion”:”us-east-1&quot;,</em> <em>“eventTime”:”1970–01–01T00:00:00.000Z”,</em> <em>“eventName”:”ObjectCreated:Put”,</em></p><p>“userIdentity”:{</p><p><em>“principalId”:”AIDAJDPLRKLxxxxxxx”</em></p><p>},</p><p>“requestParameters”:{</p><p>“sourceIPAddress”:”127.0.0.1&quot;</p><p>},</p><p>“responseElements”:{</p><p><em>“x-amz-request-id”:”C3D13FE58DE4C810&quot;,</em> <em>“x-amz-id-2”:”FMyUVURIY8/IgAtTv “</em></p><p>},</p><p>“s3”:{</p><p>“s3SchemaVersion”:”1.0&quot;,</p><p>“configurationId”:”testConfigRule”,</p><p>“bucket”:{</p><p>“name”:” <em>image31102022&quot;,</em></p><p>“ownerIdentity”:{</p><p>“principalId”:”A3NL1KOZZKExample”</p><p>},</p><p>“arn”:”arn:aws:s3::: <em>image31102022&quot;</em></p><p>},</p><p>“object”:{</p><p>“key”:”HappyFace.jpg”,</p><p>“size”:1024,</p><p>“eTag”:”d41d8cd98f00b204e9800998ecf8427e”,</p><p><em>“versionId”:”096fKKXTRTtl3on89fVO.nfljtsv6qko”</em></p><p>}</p><p>}</p><p>}</p><p>]</p><p>Invoke the function with the following <strong>invoke </strong>command. Note that the command requests asynchronous execution ( — invocation-type Event). Optionally, you can invoke the function synchronously by specifying RequestResponse as the invocation-type parameter value.</p><p>The cli-binary-format option is required if you’re using AWS CLI version 2. To make this the default setting, run aws configure set cli-binary-format raw-in-base64-out.</p><p><em>aws lambda invoke — function-name CreateThumbnail — cli-binary-format raw-in-base64-out — invocation-type Event — payload file://inputFile.txt outputfile.txt</em></p><p>when I run above command, got invalid option hence removed cli-binary-format.</p><p>I am running awscli verison1 hence removed this option and executed below. Replace lambda function name from AWS console — lambda services</p><p><em>aws lambda invoke — function-name sam-app-CreateThumbnail-hbiUIEvUYJbC \</em> <em>— invocation-type Event \</em> <em>— payload file://inputFile.txt outputfile.txt</em></p><p>Error -</p><p>I get an error in cloudwatch</p><p>Later created correct target bucket name then it worked -</p><p><strong>Step 7. Configure Amazon S3 to publish events</strong></p><p>Complete the configuration so that Amazon S3 can publish object-created events to Lambda and invoke your Lambda function. In this step, you do the following:</p><ul><li>* Add permissions to the function access policy to allow Amazon S3 to invoke the function.</li><li>* Add a notification configuration to your source S3 bucket. In the notification configuration, you provide the following:</li><li>The event type for which you want Amazon S3 to publish events. For this tutorial, specify the s3:ObjectCreated:* event type so that Amazon S3 publishes events when objects are created.</li><li>The function to invoke.</li></ul><p><strong>To add permissions to the function policy</strong></p><p>Run the following add-permission command to grant Amazon S3 service principal (s3.amazonaws.com) permissions to perform the lambda:InvokeFunction action. Note that Amazon S3 is granted permission to invoke the function only if the following conditions are met:</p><ul><li>* An object-created event is detected on a specific S3 bucket.</li><li>* The S3 bucket is owned by your AWS account. If you delete a bucket, it is possible for another AWS account to create a bucket with the same Amazon Resource Name (ARN).</li></ul><p><em>aws lambda add-permission \</em> <em>— function-name sam-app-CreateThumbnail-hbiUIEvUYJbC \</em> <em>— principal s3.amazonaws.com \</em> <em>— statement-id s3invoke \</em> <em>— action “lambda:InvokeFunction” \</em> <em>— source-arn arn:aws:s3:::image31102022 \</em> <em>— source-account XXXXXXXXX</em></p><p>Verify the function’s access policy by running the <strong>get-policy </strong>command.</p><p><em>aws lambda get-policy \</em> <em>— function-name sam-app-CreateThumbnail-hbiUIEvUYJbC</em></p><p>To have Amazon S3 publish object-created events to Lambda, add a notification configuration on the source S3 bucket.</p><p><strong>To configure notifications</strong></p><p>1. Open the Amazon S3 console.</p><p>2. Choose the name of the source S3 bucket which is</p><p>3. Choose the <strong>Properties </strong>tab.</p><p>4. Under <strong>Event notifications</strong>, choose <strong>Create event notification </strong>to configure a notification with the following settings:</p><p>After click on save , notification will be created like below -</p><p><strong>Step 8. Test using the Amazon S3 trigger</strong></p><p>Test the setup as follows:</p><p>2. Verify for each image object that a thumbnail is created in the target S3 bucket using the CreateThumbnail Lambda function.</p><p>3. View logs in the CloudWatch console.</p><p><em>Originally published at </em><a href="https://medium.com/@rajesh.ranjan66/configure-trigger-for-amazon-simple-storage-service-amazon-s3-to-generate-thumbnails-by-aws-437b6971f5c0"><em>https://medium.com</em></a><em> on January 9, 2023.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22f4791dc149" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>