Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Stock Trading Python Packages

Python packages with the GitHub topic stock-trading. Sorted by monthly downloads, with stars and forks.
alpacahq
alpaca-py

The Official Python SDK for Alpaca API

1.4M 2K 431
jmfernandes
robin-stocks

This is a library to use with Robinhood Financial App. It currently supports trading crypto-currencies, options, and stocks. In addition, it can be used to get real time ticker information, assess the performance of your portfolio, and can also get tax documents, total dividends paid, and more. More info at

38K 2K 544
AI4Finance-Foundation
finrl

FinRL®: Financial Reinforcement Learning. 🔥

3K 17K 4K
jackson-cmd
risk-aware-trading-agents

AI trading agents for US stocks with news backtesting that can't see the future: a public LLM trading agent leaderboard (rta-bench-1), frozen point-in-time 2020/2022/2026 markets (prices, VIX, news), a look-ahead check on every run, LLM agents over MCP, and paper/live trading on 10 brokers. 风险感知美股交易智能体 · 新闻回测 · LLM 榜单

3K 505 88
gejyn14
kiwoom-cli

키움증권 REST API CLI — 주식 시세·계좌·주문·자동매매·미국주식을 터미널에서 (Kiwoom Securities CLI for Korean & US stocks)

2K 9 1
clear-street
clearstreet

Official Python SDK for the Clear Street API

2K 2 1
alpacahq
alpaca-backtrader-api

Alpaca Trading API integrated with backtrader

905 706 158
Marginpad
marginpad

Free paper-trading API for trading bots and AI agents: 157 markets (crypto perps, US stocks, forex, indices, metals), realistic fills, liquidation data from 12 exchanges, remote MCP server (31 tools). Python + JS, zero dependencies.

871 0 0
krishnavelu
alice-blue

Official Python library for Alice Blue API trading

635 135 79
thammo4
uvatradier

Python wrapper for the Tradier brokerage API

611 28 19
AI4Finance-Foundation
finrl-trading

FinRL-X: An AI-Native Modular Infrastructure for Quantitative Trading

519 4K 1K
financialdatanet
fdnpy

A Python SDK for FinancialData.Net API - Real-time & Historical Stock Market Data

415 72 10
unohee
kis-agent

한국투자증권 OpenAPI Python Wrapper - Korea Investment & Securities Trading API Client

413 52 15
Bhard27
stockerdataframe

A python package for better analysis of the Stock Market.

406 9 1
Joaopeuko
metatrader5easyt

This project is part of a bigger one. I want to make Algo Trading Easy for you! You can find examples and more information in the documentation. easyT, easyTo trade, easyTo use!

370 40 4
Mcamin
cftc-cot

Python library for downloading, storing, and unpacking official CFTC Commitments of Traders (COT) report archives.

298 6 2
antoineviscardi
questradeapi

Python wrapper for the Questrade API (https://www.questrade.com/api/)

229 8 2
ruioaix
snowman

Interactive system for portfolios on xueqiu.com

216 5 1
s4w3d0ff
poloniexapi

Poloniex API wrapper for Python 2.7 & 3

181 565 158
growthquantix
upstox-auth-pro

Automation library for Upstox login and token management

168 2 0
nbsp1221
tossinvest-openapi

⚙️ Unofficial SDK for Toss Securities Open API

134 1 0
sann05
python-currencycom

Currency.com Exchange API python implementation for automated trading

126 33 15
whanyu1212
quantrl-lab

A lightweight Python library for developing and backtesting RL Agents in financial markets

124 54 1
rmbell09-lang
tradesight

Self-hosted AI trading strategy lab — backtest, paper trade, run AI tournaments overnight.

100 171 25
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology