Skip to main content

Finalysis

A python library for financial instrument payoff analysis.

Open in Streamlit

🚀 Quickstart

pip install finalysis
from finalysis import Spot, Option, plot

current_price = 100
strategy = Spot(price=current_price) + Option(premium=5, strike=100, kind='put')
plot.payoff(strategy, current_price)

Payoff Diagram

📦 Features

  • Core primitives: Spot, Option, Future
  • Strategy composition using +, -, * operators
  • Streamlit UI to build strategies interactively (https://finalysis-python.streamlit.app/)
  • Plotting payoff diagrams

📈 Examples

Strategy Code Payoff
Butterfly Option(strike=98, premium=4, kind='call') -2*Option(strike=100, premium=2.5, kind='call') + Option(strike=102, premium=1.5, kind='call') Butterfly
Bull Call Option(strike=95, premium=6, kind='call') - Option(strike=105, premium=2, kind='call') Bull Call
Protective Put Spot(price=100) + Option(strike=95, premium=3, kind='put') Protective Put
Iron Condor Option(strike=96, premium=1.5, kind='put') -Option(strike=98, premium=2, kind='put') -Option(strike=102, premium=2, kind='call') + Option(strike=104, premium=1.5, kind='call') Iron Condor

Metadata

Release files for finalysis 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for finalysis 0.1.9
File Size Uploaded Provenance Actions
finalysis-0.1.9.tar.gz 4.9 kB Without provenance Details for finalysis-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for finalysis 0.1.9
File Interpreter ABI Platform Actions
finalysis-0.1.9-py3-none-any.whl Python 3 none any Details for finalysis-0.1.9-py3-none-any.whl

Total release size: 10.7 kB

Release files / finalysis-0.1.9.tar.gz

Download URL finalysis-0.1.9.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6afd5c886fa2da5034e5800f9cbc72920259117cb70aa67e28e7038fd2f80e08
BLAKE2b-256 checksum
How to use checksums
4e1172ea9bf2f75f6747291b0e963cdfa03e69156e42e85183e8f0dcffb5ba7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / finalysis-0.1.9-py3-none-any.whl

Download URL finalysis-0.1.9-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fa4acb5d5647fe5c429fe66e3f310c92f1f5459b61a20c001a5850c2e470da7
BLAKE2b-256 checksum
How to use checksums
62ce61822c23861358f22fe35b136ded099d06d92db3519a68329af379141327
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Security for finalysis 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page