12 Best Python Stock Indicator Libraries in 2023

share link

by aswini1 dot icon Updated: Apr 7, 2023

technology logo
technology logo

Guide Kit Guide Kit  

Python Stock Indicator Library helps analyze and visualize financial market data. It will help analyze the performance of a particular index or stock. These libraries offer technical indicators like Bollinger Bands, Moving Averages, RSI, and MACD. These libraries offer easy-to-use APIs. Libraries help fetch stock prices and other financial data from different sources.   


Some libraries can help create visualizations like scatter plots, line, and candlestick charts. These charts will help investors and traders to understand the data better. Libraries that can be used for deep learning and machine learning models. These will help predict future stock prices depending on historical data. Some libraries help test trading strategies using historical data to determine profitability.   


Here are the 12 best Python Stock Indicator libraries to help developers: 

examples-of-web-crawlers: 

  • The ability to manage the crawled URLs and follow links to new pages.   
  • The ability to handle many requests to many web pages to improve efficiency and speed.   
  • The ability to use proxy servers to hide the IP address and avoid being detected or blocked by websites. 

examples-of-web-crawlersby shengqiangzhang

Python doticonstar image 12136 doticonVersion:Currentdoticon
License: Permissive (MIT)

一些非常有趣的python爬虫例子,对新手比较友好,主要爬取淘宝、天猫、微信、微信读书、豆瓣、QQ等网站。(Some interesting examples of python crawlers that are friendly to beginners. )

Support
    Quality
      Security
        License
          Reuse

            examples-of-web-crawlersby shengqiangzhang

            Python doticon star image 12136 doticonVersion:Currentdoticon License: Permissive (MIT)

            一些非常有趣的python爬虫例子,对新手比较友好,主要爬取淘宝、天猫、微信、微信读书、豆瓣、QQ等网站。(Some interesting examples of python crawlers that are friendly to beginners. )
            Support
              Quality
                Security
                  License
                    Reuse

                      abu: 

                      • Offers a simple and user-friendly interface for data extraction and web crawling.  
                      • Offers built-in data processing and storage functions like data filtering, cleaning, and storage.  
                      • Offers data analysis functions like correlation analysis, trend analysis, and data visualization. 

                      abuby bbfamily

                      Python doticonstar image 10063 doticonVersion:1.3.0doticon
                      License: Strong Copyleft (GPL-3.0)

                      阿布量化交易系统(股票,期权,期货,比特币,机器学习) 基于python的开源量化交易,量化投资架构

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                abuby bbfamily

                                Python doticon star image 10063 doticonVersion:1.3.0doticon License: Strong Copyleft (GPL-3.0)

                                阿布量化交易系统(股票,期权,期货,比特币,机器学习) 基于python的开源量化交易,量化投资架构
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          akshare: 

                                          • Help users easily acquire financial data and information from different sources. 
                                          • Offers various financial data like economic indicators, corporate financial statements, and stock prices.  
                                          • Offers real time data updates for many financial instruments. 

                                          akshareby akfamily

                                          Python doticonstar image 6666 doticonVersion:release-v1.10.25doticon
                                          License: Permissive (MIT)

                                          AKShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    akshareby akfamily

                                                    Python doticon star image 6666 doticonVersion:release-v1.10.25doticon License: Permissive (MIT)

                                                    AKShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              rqalpha: 

                                                              • Allows users to backtest and trade using historical and real time data.    
                                                              • Offers a trading simulator to simulate trading activities in a real trading environment.   
                                                              • Offers real time market data from Yahoo Finance, Wind, and RQData. 

                                                              rqalphaby ricequant

                                                              Python doticonstar image 4870 doticonVersion:release/4.16.2doticon
                                                              License: Others (Non-SPDX)

                                                              A extendable, replaceable Python algorithmic backtest && trading framework supporting multiple securities

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        rqalphaby ricequant

                                                                        Python doticon star image 4870 doticonVersion:release/4.16.2doticon License: Others (Non-SPDX)

                                                                        A extendable, replaceable Python algorithmic backtest && trading framework supporting multiple securities
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  stock: 

                                                                                  • Is a Python library designed for working with stock data from the Chinese stock market.  
                                                                                  • Offers access to financial statements, market news, and stock prices. 
                                                                                  • Allows users to aggregate data from different sources. 
                                                                                  • Customize the data in different ways like format, calculation, and frequency. 

                                                                                  stockby Rockyzsu

                                                                                  Python doticonstar image 4171 doticonVersion:Currentdoticon
                                                                                  License: Permissive (BSD-3-Clause)

                                                                                  30 days to master quantitative trading (continuously updated)

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            stockby Rockyzsu

                                                                                            Python doticon star image 4171 doticonVersion:Currentdoticon License: Permissive (BSD-3-Clause)

                                                                                            30 days to master quantitative trading (continuously updated)
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      alpha_vantage: 

                                                                                                      • Offers financial data APIs for developers and is a Python wrapper for these APIs. 
                                                                                                      • Offers historical and real time data for many financial instruments. 
                                                                                                      • Offers a simple and user-friendly interface for accessing financial data. 

                                                                                                      alpha_vantageby RomelTorres

                                                                                                      Python doticonstar image 3939 doticonVersion:2.3.1doticon
                                                                                                      License: Permissive (MIT)

                                                                                                      A python wrapper for Alpha Vantage API for financial data.

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                alpha_vantageby RomelTorres

                                                                                                                Python doticon star image 3939 doticonVersion:2.3.1doticon License: Permissive (MIT)

                                                                                                                A python wrapper for Alpha Vantage API for financial data.
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse

                                                                                                                          zvt: 

                                                                                                                          • Is designed for analysis, trading strategy development, and financial data collection.  
                                                                                                                          • Allows users to aggregate data from different sources. 
                                                                                                                          • Customize the data in different ways like format, calculation, and frequency.  
                                                                                                                          • Offers a backtesting engine to test their trading strategies using historical data. 

                                                                                                                          zvtby zvtvz

                                                                                                                          Python doticonstar image 2515 doticonVersion:v0.10.5doticon
                                                                                                                          License: Permissive (MIT)

                                                                                                                          modular quant framework.

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    zvtby zvtvz

                                                                                                                                    Python doticon star image 2515 doticonVersion:v0.10.5doticon License: Permissive (MIT)

                                                                                                                                    modular quant framework.
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              MachineLearningStocks: 

                                                                                                                                              • Is designed to be highly extensible. 
                                                                                                                                              • Is an intuitive template project applying machine learning to making stock predictions.    
                                                                                                                                              • Allows to acquire fundamental historical data like predictors or features.   
                                                                                                                                              • Can use a machine learning model to learn from and preprocess data.    

                                                                                                                                              MachineLearningStocksby robertmartin8

                                                                                                                                              Python doticonstar image 1482 doticonVersion:Currentdoticon
                                                                                                                                              License: Permissive (MIT)

                                                                                                                                              Using python and scikit-learn to make stock predictions

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        MachineLearningStocksby robertmartin8

                                                                                                                                                        Python doticon star image 1482 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                        Using python and scikit-learn to make stock predictions
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  Personae: 

                                                                                                                                                                  • Helps with implementation of Supervised Learning and Deep Reinforcement Learning for Quantitative Trading.   
                                                                                                                                                                  • Helps create and manage character profiles in novels, role-playing games, or other projects.   
                                                                                                                                                                  • Help writers create well-rounded characters with motivations, behaviors, and consistent traits. 

                                                                                                                                                                  Personaeby Ceruleanacg

                                                                                                                                                                  Python doticonstar image 1249 doticonVersion:Currentdoticon
                                                                                                                                                                  License: Permissive (MIT)

                                                                                                                                                                  📈 Personae is a repo of implements and environment of Deep Reinforcement Learning & Supervised Learning for Quantitative Trading.

                                                                                                                                                                  Support
                                                                                                                                                                    Quality
                                                                                                                                                                      Security
                                                                                                                                                                        License
                                                                                                                                                                          Reuse

                                                                                                                                                                            Personaeby Ceruleanacg

                                                                                                                                                                            Python doticon star image 1249 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                                            📈 Personae is a repo of implements and environment of Deep Reinforcement Learning & Supervised Learning for Quantitative Trading.
                                                                                                                                                                            Support
                                                                                                                                                                              Quality
                                                                                                                                                                                Security
                                                                                                                                                                                  License
                                                                                                                                                                                    Reuse

                                                                                                                                                                                      stockstats: 

                                                                                                                                                                                      • Offers a collection of methods for calculating different technical indicators for financial data.    
                                                                                                                                                                                      • Supports different financial data formats like pandas dataframe, numpy array, and CSV.  
                                                                                                                                                                                      • Is a useful tool for financial analysts and traders who want to analyze financial data. 
                                                                                                                                                                                      • Also, it can help make informed decisions based on technical analysis. 

                                                                                                                                                                                      stockstatsby jealous

                                                                                                                                                                                      Python doticonstar image 1139 doticonVersion:v0.5.2doticon
                                                                                                                                                                                      License: Others (Non-SPDX)

                                                                                                                                                                                      Supply a wrapper ``StockDataFrame`` based on the ``pandas.DataFrame`` with inline stock statistics/indicators support.

                                                                                                                                                                                      Support
                                                                                                                                                                                        Quality
                                                                                                                                                                                          Security
                                                                                                                                                                                            License
                                                                                                                                                                                              Reuse

                                                                                                                                                                                                stockstatsby jealous

                                                                                                                                                                                                Python doticon star image 1139 doticonVersion:v0.5.2doticon License: Others (Non-SPDX)

                                                                                                                                                                                                Supply a wrapper ``StockDataFrame`` based on the ``pandas.DataFrame`` with inline stock statistics/indicators support.
                                                                                                                                                                                                Support
                                                                                                                                                                                                  Quality
                                                                                                                                                                                                    Security
                                                                                                                                                                                                      License
                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                          openctp: 

                                                                                                                                                                                                          • Is used to develop trading systems that use the CTP protocol.   
                                                                                                                                                                                                          • Offers an easy-to-use interface to connect to the CTP trading platform. 
                                                                                                                                                                                                          • Helps retrieve real-time market data and send and manage orders.    
                                                                                                                                                                                                          • Robust logging and error handling capabilities to help identify and resolve issues. 

                                                                                                                                                                                                          openctpby openctp

                                                                                                                                                                                                          Python doticonstar image 1208 doticonVersion:Currentdoticon
                                                                                                                                                                                                          License: Permissive (BSD-3-Clause)

                                                                                                                                                                                                          The CTP open platform provides A-shares, Hong Kong stocks, U.S. stocks, futures, options and other access channels for all varieties, through providing various channels such as Zhongtai Securities XTP, Huaxin Securities Singularity, Orient Securities OST, Orient Fortune Securities EMT, Interactive Brokers TWS, etc. CTP API interface, the CTP program can seamlessly connect to each stock counter. The platform also provides a simulation environment based on the TTS trading system, and also provides a CTPAPI compatible interface, which can replace Simnow and provide a 7x24 available simulation environment for CTP quantitative trading developers.

                                                                                                                                                                                                          Support
                                                                                                                                                                                                            Quality
                                                                                                                                                                                                              Security
                                                                                                                                                                                                                License
                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                    openctpby openctp

                                                                                                                                                                                                                    Python doticon star image 1208 doticonVersion:Currentdoticon License: Permissive (BSD-3-Clause)

                                                                                                                                                                                                                    The CTP open platform provides A-shares, Hong Kong stocks, U.S. stocks, futures, options and other access channels for all varieties, through providing various channels such as Zhongtai Securities XTP, Huaxin Securities Singularity, Orient Securities OST, Orient Fortune Securities EMT, Interactive Brokers TWS, etc. CTP API interface, the CTP program can seamlessly connect to each stock counter. The platform also provides a simulation environment based on the TTS trading system, and also provides a CTPAPI compatible interface, which can replace Simnow and provide a 7x24 available simulation environment for CTP quantitative trading developers.
                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                          License
                                                                                                                                                                                                                            Reuse

                                                                                                                                                                                                                              fooltrader: 

                                                                                                                                                                                                                              • Is a Python library for retrieving, processing, and analyzing financial market data.  
                                                                                                                                                                                                                              • Helps collect and process data from company filings, stock prices, and news articles. 
                                                                                                                                                                                                                              • Support for backtesting trading strategies using historical market data. 

                                                                                                                                                                                                                              fooltraderby foolcage

                                                                                                                                                                                                                              Python doticonstar image 1057 doticonVersion:0.1.0doticon
                                                                                                                                                                                                                              License: Permissive (MIT)

                                                                                                                                                                                                                              quant framework for stock

                                                                                                                                                                                                                              Support
                                                                                                                                                                                                                                Quality
                                                                                                                                                                                                                                  Security
                                                                                                                                                                                                                                    License
                                                                                                                                                                                                                                      Reuse

                                                                                                                                                                                                                                        fooltraderby foolcage

                                                                                                                                                                                                                                        Python doticon star image 1057 doticonVersion:0.1.0doticon License: Permissive (MIT)

                                                                                                                                                                                                                                        quant framework for stock
                                                                                                                                                                                                                                        Support
                                                                                                                                                                                                                                          Quality
                                                                                                                                                                                                                                            Security
                                                                                                                                                                                                                                              License
                                                                                                                                                                                                                                                Reuse