Turkey-specific finance library. A yfinance-like Python package for BIST stock data, forex, crypto, TEFAS and more.


While building Borsa MCP, we realized there was no Turkey-specific finance library like yfinance, and Yahoo Finance had incomplete or incorrect data for Turkish markets. We had to build everything from scratch.
So we extracted the data sources from Borsa MCP into a yfinance-like Python library. Introducing borsapy!
pip install borsapy
from borsapy import Stock
# Get stock info
stock = Stock("THYAO") # THYAO = Turkish Airlines
print(stock.price)
print(stock.info)
# Historical data
history = stock.history(period="1y")
print(history)
We believe this will make life much easier for developers working with Turkish financial data. Problems with existing solutions:
borsapy solves all these problems, offering an open-source gift to the Turkish developer community.
The project is open source and welcomes community contributions. You can open issues or submit pull requests on GitHub.
borsapy is open source. If your organization needs something similar for its own data sources, let's talk.