PythonFinance
basic Python Finance Package
Install / Use
/learn @danielfrg/PythonFinanceREADME
PythonFinance
basic Finance Utilities for Python
Requirements
- Python >= 3
- numpy
- scipy
- pandas
Features
- Data Manager
- Automatic download data from Yahoo! Finance
- Get only interested information: dates and fields (Adj Close, Volume, ...)
- Serialization (pickle) of data with custom names
- Calculator Utils
- Present Value, Future Value
- Rates (Annual Rate)
- Efective Annual Return
- Number of Periods
- Total return
- Daily returns
- Sharpe ratio
- Date Utils: to handle open NYSE Dates
- open dates between two dates + back and forward windows
- add and substract dates
- Market Simulator: Simulates a list of orders
- Automatically download necessary data
- Can load the trades from a CSV file
- Can use custom list of orders (usually from the EventFinder)
Event Study
-
PastEvent: Analysis of an specific event:
- Allows specific event window and estimation period
- Expected Returns
- Abnormal Returns
- Cumulative Abnormal Returns
-
EventFinder: Find events on data
-
MultipleEvent: Analysis of a list of events
- Allows specific event window and estimation period
- Expected Returns
- Abnormal Returns
- Cumulative Abnormal Returns
- Plot with error bars
How to use it
Set the envvars:
FINANCEPATH to where you want the data to live.
ALPHAVANTAGEKEY to the Alpha Vantage API Key.
Related Skills
valuecell
10.2kValueCell is a community-driven, multi-agent platform for financial applications.
beanquery-mcp
45Beancount MCP Server is an experimental implementation that utilizes the Model Context Protocol (MCP) to enable AI assistants to query and analyze Beancount ledger files using Beancount Query Language (BQL) and the beanquery tool.
teya
Teya payment integration guide covering POSLink (cloud-based terminal integration), All-In-One (single-device Android), E-Commerce APIs (hosted checkout, payment links), and Payments Gateway. Includes decision trees, authentication patterns, test cards, and certification guidance.
reconcile-bank
Experimental MCP server for Estonian e-arveldaja (RIK e-Financials) API. Not affiliated with RIK. Use at your own risk.
