Skip to main content

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


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.10.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

quant_alchemy-0.1.10-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file quant-alchemy-0.1.10.tar.gz.

File metadata

  • Download URL: quant-alchemy-0.1.10.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.5

File hashes

Hashes for quant-alchemy-0.1.10.tar.gz
Algorithm Hash digest
SHA256 47e739cc3342bce2ddef4fc4c7036b1872d00862092fb067992b343704fff3ec
MD5 09fb0e009b571e0e34714caa4466543b
BLAKE2b-256 4952865e4981b236cc6ec53fa4df513e591c3aabc7b612b02a18623ec8710226

See more details on using hashes here.

File details

Details for the file quant_alchemy-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for quant_alchemy-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 3f9bf3ccf6f0916e6607d5c246f4e8e23e865fc84ec1e05cdb1cc2bf5db88c31
MD5 4194e8c66e77e650ef07b6e17403729f
BLAKE2b-256 17ff95f0bdc6372f121dd4b0bc72872f663b201d482e822b0352002259bdea4d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page