A python library for financial instrument payoff analysis
Project description
Finalysis
A python library for financial instrument payoff analysis.
🚀 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)
📦 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') |
|
| Bull Call | Option(strike=95, premium=6, kind='call') - Option(strike=105, premium=2, kind='call') |
|
| Protective Put | Spot(price=100) + Option(strike=95, premium=3, kind='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') |
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.8.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file finalysis-0.1.8.tar.gz.
File metadata
- Download URL: finalysis-0.1.8.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0beb64fea93faa37942645897ecec1aeb47ab5b856b6f33bd3435fb1f32849fe
|
|
| MD5 |
89a3ede75dae9d8a22026ae8b9665313
|
|
| BLAKE2b-256 |
729a45de72786c176facf83ccbd17874ea68f0746bd97c25a4691f44e99c5914
|
File details
Details for the file finalysis-0.1.8-py3-none-any.whl.
File metadata
- Download URL: finalysis-0.1.8-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64a60e8f413841f1e7f771364c2dccf60377ea8f82d7d194ac5a04b5f124ec94
|
|
| MD5 |
d9e79ae5a3c67fad8a1f7de2bd94c485
|
|
| BLAKE2b-256 |
1bda6fcb614ac8be654ab0fe071138c7dddb43195171a7545a722c1928586cd5
|