Package for quantitative finance.
Project description
Table of contents
Introduction
Quant Alchemy
provide a
Installation
This package requires some dependencies to be installed.
Dependencies
To install the package, run the following command in your terminal.
pip install quant_alchemy
To install all the dependencies, run the following command in your terminal.
pip install -r requirements.txt
Usage
A simple example of how to use the package is shown below.
from quant_alchemy import Timeseries, Portfolio
"""
Suppose we have a dataframe with the following columns:
- date: date of the stock price
- close: opening price of the stock
"""
df = pd.read_csv("data/stock.csv")
# Create a timeseries object
ts = Timeseries(df)
# To see all the methods available
print([t for t in dir(ts) if not t.startswith('__')])
# To see how to use a method
help(ts.annualized_return)
Contributing
For any bug reports or recommendations, please visit our issue tracker and create a new issue. If you're reporting a bug, it would be great if you can provide a minimal reproducible example.
Thank you for your contribution!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quant-alchemy-0.1.8.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for quant_alchemy-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f8a1c9e226dc51616e9317410629f03a463fdeebebd0d6f6f1e17a6a9da2686 |
|
MD5 | a344e691c8257beada5bb2b69e2194f5 |
|
BLAKE2b-256 | 5a8dd382b7be5eab05d98e633b7cc02b8dc2a1c99db242f99467b865922ca019 |