Finalysis
A python library for financial instrument payoff analysis.
🚀 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)
📦 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') |
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)
| File | Size | Uploaded | |
|---|---|---|---|
| finalysis-0.1.9.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| finalysis-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
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
|