Skip to main content

A python library for financial instrument payoff analysis

Project description

Finalysis

A python library for financial instrument payoff analysis.

Open in Streamlit

🚀 Quickstart

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, and structured products like DualInvestment, SmartLeverage
  • Strategy composition using +, -, * operators
  • Streamlit UI to build strategies interactively (https://finalysis-python.streamlit.app/)
  • Plotting payoff diagrams

📈 Examples

Strategy Code Payoff
Butterfly Spot() + 2 * Option(strike=100) - Option(strike=110) Butterfly

🔧 Other Instruments

from finalysis.instruments import (
  SellHighDI,
  BuyLowDI,
  SmartLeverage,
  SpotGrid,
  SpotLimit
)

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

finalysis-0.1.3.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

finalysis-0.1.3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file finalysis-0.1.3.tar.gz.

File metadata

  • Download URL: finalysis-0.1.3.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for finalysis-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f722fff9017efd90319ffaafc8ddca0c6d9e46ea18d5674b1daae0e6c7f44296
MD5 d1abf279a80734588c95e1d638fb754a
BLAKE2b-256 b50340bc62db85c8e5052c82931e688baf03a03b65074faf2a60073b1f11c747

See more details on using hashes here.

File details

Details for the file finalysis-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: finalysis-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for finalysis-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e7d9503b0459205e4120a8cdab4f87c3ddcb5a963dbcfb0c030cc2ce7785fe73
MD5 d9b4b665e47fae5e48e8155f394bf8d9
BLAKE2b-256 47f974e58ed53c7d3621af231cb013fc3cf677a7aae1ed5735f0dde7cee7f9c8

See more details on using hashes here.

Supported by

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