Search the archive

14,369 indexed articles, 13,297 of them summarised by us.

Articles
14,369
Research papers
91,965
Models priced
2,253
Providers
163

2 results for “yfinance”

Newest and most relevant first

Financial Machine Learning

Developers and quants get a free, runnable collection of notebooks covering financial ML tasks from volatility forecasting to portfolio optimisation, lowering the barrier between generic ML skills and finance applications.

A GitHub repository called financial-machine-learning (from the firmai account) collects ready-to-run Python notebooks showing how machine learning is applied to money problems. Unlike typical tutorials, it uses real market data from free APIs like yfinance and reports concrete results such as Sharpe ratio and F1 scores. It covers tasks like fraud detection, stock clustering and trading bots. Anyone who knows basic machine learning but not finance can clone it and start with a time-series forecasting notebook.

This is a free, maintained open-source codebase rather than a product, so the cost is only time: Python 3.8+ and optionally free API keys from yfinance, Quandl or AlphaVantage. It matters for firms and individuals wanting working reference code for fraud detection, portfolio optimisation or trading agents without paid terminals. It is educational tooling, not a deployable trading system, and the article offers no performance benchmarks versus commercial alternatives.

The firmai/financial-machine-learning repo is a curated set of standalone Python notebooks and scripts using pandas, scikit-learn, torch and xgboost. It spans ARIMA and Prophet baselines through LSTM and Transformer price-prediction models, plus clustering for portfolio construction and reinforcement-learning trading agents. Each notebook explains the math in comments and reports Sharpe ratio, maximum drawdown or F1. No benchmark comparisons against production systems are given, and some data sources require signup.

GitHub Opensource Projects →

Building a MCP-powered Financial Analyst

A working tutorial lets engineers turn natural-language stock queries into executed Python charts using CrewAI agents wrapped as an MCP tool server.

This is a tutorial that shows how to build a personal stock-market analyst using AI agents. A reader types a request like "Plot Apple's stock performance for the last 6 months" and gets a ready-made chart with no coding, because agents parse the question, write Python code, run it, and return results. It relies on an open standard called MCP that lets AI assistants call external tools. Developers and finance hobbyists who want quick stock charts are the audience.

A concrete recipe for automating financial analysis with multi-agent AI: queries like "Show me Tesla's stock performance over the past year" become executed Python visualisations without a human analyst writing code. Companies using MCP-based tooling could replace some analyst turnaround time with automated pipelines. The build uses free open-source libraries, so cost is minimal. Rival teams not adopting agentic tooling will concede speed in routine market reporting, though no production readiness, accuracy figures or regulatory considerations are discussed.

The tutorial wires three CrewAI agents, query parser, code writer, code executor, into a sequential pipeline that converts a natural-language query into structured Pydantic output, generates Python using yfinance, and saves it as stock_analysis.py. A FastMCP server exposes the run_financial_analysis function as an "financial-analyst" tool over stdio for plugging into any MCP-compatible AI client. No benchmarks, error rates or performance figures are given, and it is a local prototype, not a production system.

Analytics Vidhya Gen AI Blog →