Skip to main content

#WIP: Analysing Stock Returns & Constructing Portfolios with Python

Project description

Portfolio-Analysis-Library (PAL)

WORK IN PROGRESS (WIP)

Usage:

pip install portfolio-analysis-library

in python:

import pal
import pandas as pd

portfolio = pal.Portfolio(pd.Series([0.2, 0.3, -0.1, 0.2, -0.5]), 12)
portfolio.get_annual_sharpe(risk_free_rate=0.02)
print(portfolio.annual_sharpe)

Development

pip install -r .[dev]

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

portfolio-analysis-library-0.0.7b0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

File details

Details for the file portfolio-analysis-library-0.0.7b0.tar.gz.

File metadata

  • Download URL: portfolio-analysis-library-0.0.7b0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for portfolio-analysis-library-0.0.7b0.tar.gz
Algorithm Hash digest
SHA256 6d5fc7dd35154fcbe8eeb659b8510ef5746ad124ad5159ab3043c2acfa6b353d
MD5 edea36edd6c96754f65e610203a5f158
BLAKE2b-256 7438015486b978e673200fb51bb88332082eb3b5bb092b2adc99d73c7d07f5bc

See more details on using hashes here.

File details

Details for the file portfolio_analysis_library-0.0.7b0-py3-none-any.whl.

File metadata

  • Download URL: portfolio_analysis_library-0.0.7b0-py3-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for portfolio_analysis_library-0.0.7b0-py3-none-any.whl
Algorithm Hash digest
SHA256 d237ac2da97f834246e548d9e020b28431c5e287036c96dc1d13a243ada94ac4
MD5 76a2e1be615559d1bd55831e0977a772
BLAKE2b-256 37a0f3ed9c4af03804f2da73aaafce788369ad10b7bbad8348b56ad5725c300a

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