numpy - NumPy is the fundamental package for scientific computing with Python.
scipy - SciPy (pronounced “Sigh Pie”) is a Python-based ecosystem of open-source software for mathematics, science, and engineering.
pandas - pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language.
quantdsl - Domain specific language for quantitative analytics in finance and trading.
statistics - Builtin Python library for all basic statistical calculations.
sympy - SymPy is a Python library for symbolic mathematics.
pymc3 - Probabilistic Programming in Python: Bayesian Modeling and Probabilistic Machine Learning with Theano.
hasura/base-python-dash - Hasura quickstart to deploy Dash framework. Written on top of Flask, Plotly.js, and React.js, Dash is ideal for building data visualization apps with highly custom user interfaces in pure Python.
FinancePy - A Python Finance Library that focuses on the pricing and risk-management of Financial Derivatives, including fixed-income, equity, FX and credit derivatives.
gs-quant - Python toolkit for quantitative finance
willowtree - Robust and flexible Python implementation of the willow tree lattice for derivatives pricing.
financial-engineering - Applications of Monte Carlo methods to financial engineering projects, in Python.
optlib - A library for financial options pricing written in Python.
tf-quant-finance - High-performance TensorFlow library for quantitative finance.
finoptions - Complete python implementation of R package fOptions with partial implementation of fExoticOptions for pricing various options.
Indicators
pandas_talib - A Python Pandas implementation of technical analysis indicators.
finta - Common financial technical analysis indicators implemented in Pandas.
tradingWithPython - A collection of functions and classes for Quantitative trading.
Pandas TA - Pandas TA is an easy to use Python 3 Pandas Extension with 115+ Indicators. Easily build Custom Strategies.
ta - Technical Analysis Library using Pandas (Python)
algobroker - This is an execution engine for algo trading.
pysentosa - Python API for sentosa trading system.
finmarketpy - Python library for backtesting trading strategies and analyzing financial markets.
binary-martingale - Computer program to automatically trade binary options martingale style.
fooltrader - the project using big-data technology to provide an uniform way to analyze the whole market.
zvt - the project using sql,pandas to provide an uniform and extendable way to record data,computing factors,select securites, backtesting,realtime trading and it could show all of them in clearly charts in realtime.
pylivetrader - zipline-compatible live trading library.
pipeline-live - zipline's pipeline capability with IEX for live trading.
moonshot - Vectorized backtester and trading engine for QuantRocket based on Pandas.
PyPortfolioOpt - Financial portfolio optimisation in python, including classical efficient frontier and advanced methods.
Eiten - Eiten is an open source toolkit by Tradytics that implements various statistical and algorithmic investing strategies such as Eigen Portfolios, Minimum Variance Portfolios, Maximum Sharpe Ratio Portfolios, and Genetic Algorithms based Portfolios.
riskparity.py - fast and scalable design of risk parity portfolios with TensorFlow 2.0
mlfinlab - Implementations regarding "Advances in Financial Machine Learning" by Marcos Lopez de Prado. (Feature Engineering, Financial Data Structures, Meta-Labeling)
pyqstrat - A fast, extensible, transparent python library for backtesting quantitative strategies.
NowTrade - Python library for backtesting technical/mechanical strategies in the stock and currency markets.
pinkfish - A backtester and spreadsheet library for security analysis.
algorithmic-trading-with-python - Free pandas and scikit-learn resources for trading simulation, backtesting, and machine learning on financial data.
DeepDow - Portfolio optimization with deep learning
Qlib - An AI-oriented Quantitative Investment Platform by Microsoft. Full ML pipeline of data processing, model training, back-testing; and covers the entire chain of quantitative investment: alpha seeking, risk modeling, portfolio optimization, and order execution.
statsmodels - Python module that allows users to explore data, estimate statistical models, and perform statistical tests.
dynts - Python package for timeseries analysis and manipulation.
PyFlux - Python library for timeseries modelling and inference (frequentist and Bayesian) on models.
tsfresh - Automatic extraction of relevant features from time series.
hasura/quandl-metabase - Hasura quickstart to visualize Quandl's timeseries datasets with Metabase.
Facebook Prophet - Tool for producing high quality forecasts for time series data that has multiple seasonality with linear or non-linear growth.
tsmoothie - A python library for time-series smoothing and outlier detection in a vectorized way.
pmdarima - A statistical library designed to fill the void in Python's time series analysis capabilities, including the equivalent of R's auto.arima function.
yfinance - Yahoo! Finance market data downloader (+faster Pandas Datareader)
findatapy - Python library to download market data via Bloomberg, Quandl, Yahoo etc.
googlefinance - Python module to get real-time stock data from Google Finance API.
yahoo-finance - Python module to get stock data from Yahoo! Finance.
pandas-datareader - Python module to get data from various sources (Google Finance, Yahoo Finance, FRED, OECD, Fama/French, World Bank, Eurostat...) into Pandas datastructures such as DataFrame, Panel with a caching mechanism.
pandas-finance - High level API for access to and analysis of financial data.
pyhoofinance - Rapidly queries Yahoo Finance for multiple tickers and returns typed data for analysis.
pytdx - Python Interface for retrieving chinese stock realtime quote data from TongDaXin Nodes.
pdblp - A simple interface to integrate pandas and the Bloomberg Open API.
tiingo - Python interface for daily composite prices/OHLC/Volume + Real-time News Feeds, powered by the Tiingo Data Platform.
iexfinance - Python Interface for retrieving real-time and historical prices and equities data from The Investor's Exchange.
pyEX - Python interface to IEX with emphasis on pandas, support for streaming data, premium data, points data (economic, rates, commodities), and technical indicators.
alpaca-trade-api - Python interface for retrieving real-time and historical prices from Alpaca API as well as trade execution.
metatrader5 - API Connector to MetaTrader 5 Terminal
xlrd - Library for developers to extract data from Microsoft Excel spreadsheet files.
xlsxwriter - Write files in the Excel 2007+ XLSX file format.
xlwt - Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files, on any platform.
DataNitro - DataNitro also offers full-featured Python-Excel integration, including UDFs. Trial downloads are available, but users must purchase a license.
xlloop - XLLoop is an open source framework for implementing Excel user-defined functions (UDFs) on a centralised server (a function server).
expy - The ExPy add-in allows easy use of Python directly from within an Microsoft Excel spreadsheet, both to execute arbitrary code and to define new Excel functions.
pyxll - PyXLL is an Excel add-in that enables you to extend Excel using nothing but Python code.
Visualization
D-Tale - Visualizer for pandas dataframes and xarray datasets.
mplfinance - matplotlib utilities for the visualization, and visual analysis, of financial data.
finplot - Performant and effortless finance plotting for Python.
전체 지표 계산코드. 한번에 계산할 수 있는 모든 지표를 처리하는데, 지표가 많다보니 경고가 나옵니다.
계산 시간도 있을 테고, 비효율적이라 추천하지는 않습니다.
import pandas as pd
from ta import add_all_ta_features
from ta.utils import dropna
# Load datas
df = pd.read_csv('ta/tests/data/datas.csv', sep=',')
# Clean NaN values
df = dropna(df)
# Add all ta features
df = add_all_ta_features(
df, open="Open", high="High", low="Low", close="Close", volume="Volume_BTC")