Search A-Share/HK/US stock tickers and retrieve historical price data (OHLCV).
Use scripts/stock_tools.py via StockTools.
search_ticker(query)
{code, name}.get_stock_price(ticker, start_date, end_date)
get_stock_fundamentals(ticker)
pandas, requests, akshare, yfinance
scripts/database_manager.py (stock tables)yfinance), you may need to set environment variables if your network cannot reach Yahoo Finance directly:
export HTTP_PROXY="http://<proxy_ip>:<port>"
export HTTPS_PROXY="http://<proxy_ip>:<port>"
akshare (EastMoney), which usually works best with a direct connection in China. The tool automatically detects proxy issues and attempts direct connection for these markets.