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.7.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: portfolio-analysis-library-0.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 8ffa0d831ff76c7a72198b7556dbb87a3bacb184f6351274f31a55cf3aa2a461
MD5 466f90f5ea39de4e94326adc0d41f0a8
BLAKE2b-256 e8e2c036cd8ee934ea583fc0c22722586ba367b6202da972734a408c047eb615

See more details on using hashes here.

File details

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

File metadata

  • Download URL: portfolio_analysis_library-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d2cf7250f7c1a0a6faf12c077f6cc375debefd3ea091d3cb2c96810f40dbad93
MD5 bf1b1367ba80f0efaa7c06cb8a5952e2
BLAKE2b-256 d4b3f062a0cfe0823e286975ec969ee5de6ae55ad77cd4c566bed5c1f862169b

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