Finance keeps numpy and pandas at the core and puts data, models and plots behind extras
Python toolkit for quantitative finance: stock analysis, technical indicators, strategy backtesting, portfolio optimization, and financial modeling.
At a glance
- What is it?
- Finance is a Python quantitative toolkit that installs as finance-toolkit version 0.0.0 and requires Python 3.12 or newer. Only numpy and pandas are mandatory; market data, statistics, plotting, reports and apps are separate extras, examples run on synthetic data unless you pass a live flag, and the repository states that its material is for education rather than investment advice.
- Who is it for?
- Finance fits a Python user who wants the arithmetic of indicators, screens, backtests and portfolio work to happen in explicit code with a small dependency footprint, and who is willing to read the methodology document before believing a result. It does not fit someone who wants a ready made data feed or a brokerage connection out of the box, since providers may throttle or change schemas and order execution needs separate credentials.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 72 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- shashankvemuri/Finance4,398 ★ · +178
| Repository | 2026-09-11 | 2026-11-22 |
|---|---|---|
| shashankvemuri/Finance | 4.2k | 4.4k |
178 Stars in the last 72 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Four extras cover data, models, plots and apps
The base install is deliberately small, and the readme is explicit that you add only the features you need. Core dependencies are numpy and pandas, and everything else arrives through named extras you select at install time. The data extra brings a market data library and an XML parser for public data, Finviz and financial statements. Portfolio and models cover optimisation and the statistical experiments, pulling in scipy, scikit-learn and statsmodels. Plot and sentiment cover charts and VADER text scoring. Apps and reports cover the interactive app and Excel exports, with streamlit, matplotlib and openpyxl. Two more extras exist that the readme does not walk through, neural for torch and prophet for the forecasting library, which is the same message stated differently: the heavy models are optional by design.
The distribution is finance-toolkit at version 0.0.0
The name a pip install produces is not the name on the repository. The project metadata declares the distribution as finance-toolkit at version 0.0.0, with the description of composable quantitative finance calculations, strategies and research tools, while the importable package is the shorter finance name and the wheel is built from a src directory layout. The Python floor is 3.12 or newer, and the build backend is hatchling at a stated minimum version. The core install is four commands:
git clone https://github.com/shashankvemuri/Finance.git
cd Finance
python -m venv .venv
python -m pip install -e .The readme puts an activation step between the third and fourth command, `source .venv/bin/activate`, with `.venv\Scripts\activate` noted for Windows. A version of 0.0.0 is the number to keep in mind when you decide how much to depend on this: there are no GitHub releases to pin against, so an install resolves whatever the branch currently declares.
Fractions for returns, zero to 100 for RSI, missing during warm-up
Three conventions decide how to read anything the library returns, and they are stated together because they trip people up in different ways. Returns and rates are fractions rather than percentages, so a return of 0.05 is five percent. RSI is on a zero to one hundred scale instead, which is the opposite convention in the same library. Warm-up values remain missing rather than being filled, so the first window of a moving average or an oscillator comes back as absent data instead of a zero that would distort a backtest. Indicator calculation needs no network access at all, which means a signal can be computed from data you already hold and compared against a different dataset without a second fetch.
Signals are generated at the close and filled at the next open
The execution convention is the part of a backtester that decides whether a result means anything, and this one is explicit. Signals are generated at close time and executed at the next open, which removes the same bar lookahead that most naive examples have. The engine is described as modest, and the list of what it tracks is the honest part: cash, fractional shares, long and short fills, commission, slippage and borrow costs. Fractional shares and borrow costs together are what make a short position mean something rather than being a sign flip, since a short has a funding cost that a long does not. The backtesting area also covers protective orders, FIFO trade reports, cash accounting and benchmarks. The readme tells you to read the calculation and execution conventions document before interpreting any of it.
Examples run on synthetic data unless you ask for the network
The twenty two files in the examples directory are arranged so that a quick run proves nothing about the market, and that is a feature of the design rather than a limitation. By default they use synthetic inputs, and a live flag switches them to public data, with one exception: the market data download script always uses the network. The distinction means a green run on a fresh checkout verifies that the code executes, not that a strategy works, which keeps the examples fast and deterministic. The readme's example commands also include `streamlit run apps/research.py`, which launches the interactive app from the apps directory. Other examples cover pairs trading, clustering, screening, company research, news, order previews, forecasting time series and plotting indicators.
Fundamentals are snapshots, not point-in-time history
One line near the end of the readme carries a large caveat. Current constituents and fundamentals are snapshots rather than historical point-in-time inputs, which is the standard survivorship problem in equity research: the index membership you can download today is the membership that survived, and the fundamentals attached to it were restated afterwards. A second caveat covers the data layer itself: public providers can throttle or change schemas, and the repository keeps a provider contracts document for exactly that reason. The data area is otherwise broad, covering intraday and daily bars, statements, calendars, analyst data, news, transcripts, insider activity and index universes, with Finviz named as a discovery source. Both caveats point the same way, which is to treat anything downloaded from a public provider as provisional.
Forecasts are scored against baselines and claim nothing
The models area covers forecasts and baselines, ARIMA diagnostics, principal component and factor work, regime analysis, clustering, networks, and optional neural and Prophet experiments. The reporting rule for all of it is stated in one sentence: forecast experiments report held out errors against simple baselines and make no claim of predictive advantage. That is a stronger statement than saying results vary, because it commits the repository to publishing the naive comparison next to the model. The models area is also where the optional extras earn their place, since scikit-learn and statsmodels are installed only when you ask for them. Brokerage is a separate concern again: integrations cover explicit notification transports and order previews with an optional broker client, and delivery requires separate credentials.
Lint and test configuration define what counts as verified
The tooling configuration is part of the project description. Ruff targets Python 3.12 with a line length of 100, selects the pycodestyle, pyflakes, isort, bugbear and pyupgrade rule sets, and ignores long lines. Its include list covers the package source, the tests, the examples, the scripts and the apps, so a lint failure in an example counts. Pytest is configured with the tests directory as its path and a custom marker named integration, documented as explicit live provider checks that are not part of offline continuous integration. A check that needs the network is opt-in rather than something that makes the build flaky. The tree itself is conventional, with source, tests, examples, scripts, apps and docs directories beside the project file.
Editorial conclusion
Finance fits a Python user who wants the arithmetic of indicators, screens, backtests and portfolio work to happen in explicit code with a small dependency footprint, and who is willing to read the methodology document before believing a result. It does not fit someone who wants a ready made data feed or a brokerage connection out of the box, since providers may throttle or change schemas and order execution needs separate credentials. Before building on it, install only the extras you need, run the examples on synthetic data first, and read docs/methodology.md for the conventions behind every number it returns.
Frequently asked questions
What does the Finance toolkit include?
Market data, technical indicators, financial analysis, stock screening, strategy research, backtesting, portfolios and statistical models. The documented areas are data, indicators, analytics, screening, strategies, backtesting, portfolio, models, reports and integrations. The distribution name is finance-toolkit and it is currently at version 0.0.0.
How do I install the Finance toolkit?
You need Python 3.12 or newer. Clone the repository, create a virtual environment, activate it and run python -m pip install -e . for the core, which is numpy and pandas only. Features are added by name, for example the data extra for public data and statements, portfolio and models for optimisation and statistics, and plot, sentiment, apps or reports.
Does the Finance backtester support short positions and costs?
Yes. It generates signals at close time and executes them at the next open, and it tracks cash, fractional shares, long and short fills, commission, slippage and borrow costs. The documentation points you at docs/methodology.md for the calculation and execution conventions before interpreting results.
Is the Finance toolkit investment advice?
No. The repository states that its material is for educational purposes only and should not be considered professional investment advice. It also notes that forecast experiments report held out errors against simple baselines and make no claim of predictive advantage, and that fundamentals are snapshots rather than point-in-time history.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/shashankvemuri-finance)Star history chart for your README
[](https://hysenlabs.com/projects/shashankvemuri-finance)Was this useful?