shashankvemuri/Finance
shashankvemuri/Finance has 4,382 GitHub stars and 387 forks. GitHot measured +5 stars in 24 hours, +16 in 7 days, and +23 in 15 days. Last checked 2026-11-14 13:52 UTC. Last push 2026-09-12.
측정된 스타 증가
- in 24h
- +5
- in 7 days
- +16
- in 15 days
- +23
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
퀀트 금융을 위한 Python 툴킷: 주식 분석, 기술적 지표, 전략 백테스팅, 포트폴리오 최적화 및 금융 모델링.
머신러닝README.md
OriginalFinance
Finance is a Python toolkit for market data, technical indicators, financial analysis, stock screening, strategy research, backtesting, portfolios and statistical models. Calculations use explicit inputs, a small dependency set and tested execution conventions. Models and trading rules are research tools; runnable examples are the starting point.
Install
Python 3.12 or newer:
git clone https://github.com/shashankvemuri/Finance.git
cd Finance
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
python -m pip install -e .
Core dependencies are NumPy and pandas. Add only the features you need:
python -m pip install -e '.[data]' # Public data, Finviz and financial statements
python -m pip install -e '.[portfolio,models]' # Optimization and statistical/ML experiments
python -m pip install -e '.[plot,sentiment]' # Charts and VADER text scoring
python -m pip install -e '.[apps,reports]' # Interactive app and Excel exports
Use
Download normalized, consistently adjusted OHLCV with the data extra:
from finance.data import YahooFinance
prices = YahooFinance().history('AAPL', '2023-01-01', '2025-01-01')
Calculate indicators without any network access:
from finance.indicators import bollinger_bands, rsi
strength = rsi(prices['close'], window=14)
bands = bollinger_bands(prices['close'], window=20)
Generate close-time signals and execute them at the next open:
from finance.backtesting import backtest
from finance.strategies import moving_average
targets = moving_average(prices['close'], fast=20, slow=50)
result = backtest(prices['open'], prices['close'], targets, commission=0.001)
print(result.metrics)
Returns and rates are fractions; RSI is 0–100. Warm-up values remain missing. The modest backtester tracks cash, fractional shares, long/short fills, commission, slippage and borrow costs. Read the calculation and execution conventions before interpreting results.
Explore
| Area | Capabilities |
|---|---|
data |
OHLCV/intraday, Finviz discovery, statements, calendars, analysts, news, transcripts, insiders and universes |
indicators |
Moving averages, momentum, volatility/channels, volume, rolling statistics, pivots and breadth |
analytics |
Returns, CAPM/OLS, risk, statement ratios, company/index valuation, seasonal studies and sentiment |
screening |
Relative strength, Minervini, Green Line, RSI/trend, growth/ownership and dividend screens |
strategies |
Crossovers, MACD, Keltner, Ichimoku, oscillator reversion, pairs and chronological strategy selection |
backtesting |
Next-open execution, long/short protective orders, FIFO trade reports, cash accounting and benchmarks |
portfolio |
Allocation, constrained optimization/frontier, correlated simulation and lump sum versus DCA |
models |
Forecasts/baselines, ARIMA diagnostics, PCA/factors, regimes, clustering, networks and optional neural/Prophet experiments |
reports |
Candlesticks, heatmaps, equity charts, CSV/Excel, HTML reports and graph exports |
integrations |
Explicit notification transports, order previews and an optional Alpaca client |
Examples use synthetic inputs by default. Add --live for public data;
download_market_data.py always uses the network.
python examples/calculate_indicators.py
python examples/backtest_moving_average.py --live
python examples/optimize_portfolio.py
python examples/research_watchlist.py --live
python examples/research_models.py
streamlit run apps/research.py
Current constituents and fundamentals are snapshots, not historical point-in-time inputs. Public providers can throttle or change schemas; see provider contracts. Forecast experiments report held-out errors against simple baselines and make no claim of predictive advantage. Heavy models and apps are optional; brokerage and delivery require separate credentials. See research workflows for full examples, optional installs and provider limitations.
Created by Shashank Vemuri. MIT License. Technical-indicator references include Stock_Analysis_For_Quant by LastAncientOne.
Disclaimer
The material in this repository is for educational purposes only and should not be considered professional investment advice.
관련 프로젝트 살펴보기
tensorflow/tensorflow
모두를 위한 오픈소스 머신러닝 프레임워크
201,595 스타huggingface/transformers
🤗 Transformers: 텍스트, 비전, 오디오, 멀티모달 분야의 최첨단 머신러닝 모델을 위한 모델 정의 프레임워크로, 추론과 학습을 모두 지원합니다.
168,963 스타AUTOMATIC1111/stable-diffusion-webui
Stable Diffusion 웹 UI
165,311 스타Comfy-Org/ComfyUI
그래프와 노드로 구성된 인터페이스를 갖춘, 가장 강력하고 모듈성이 뛰어난 확산 모델 GUI, API, 백엔드입니다. 세계에서 가장 빠른 로컬 추론 엔진입니다.
146,770 스타