# jedellender/convertible_bond_arb architecture

> Architecture diagram of the GitHub repository jedellender/convertible_bond_arb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jedellender/convertible_bond_arb
- Repository: https://github.com/jedellender/convertible_bond_arb

## Overview

This is a small Python financial-pricing library. Its implemented workflow is a caller supplying option inputs to calculate a Black–Scholes call price, Greeks, or implied volatility; these calculations share the d1/d2 helper. Implied volatility solves for volatility by repeatedly evaluating the call-price function. The README is empty, and bond.py, convertible.py, and trees.py are empty in the supplied excerpts, so their possible roles are not represented as implemented capabilities.

Main entry points: [`pricing.py`](https://github.com/jedellender/convertible_bond_arb/blob/master/pricing.py) (Option pricing)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_caller(("Library caller"))
node_option_pricing["Option pricing<br/>[pricing.py]"]
node_greeks["Greeks<br/>[pricing.py]"]
node_implied_vol["Implied volatility<br/>[pricing.py]"]
node_d1_d2["d1/d2 helper<br/>[pricing.py]"]
node_numpy["NumPy"]
node_scipy_stats["SciPy stats"]
node_scipy_solver["SciPy solver"]

node_caller -->|"requests price"| node_option_pricing
node_caller -->|"requests Greeks"| node_greeks
node_caller -->|"requests volatility"| node_implied_vol
node_option_pricing -->|"computes inputs"| node_d1_d2
node_greeks -->|"computes inputs"| node_d1_d2
node_implied_vol -->|"evaluates price"| node_option_pricing
node_implied_vol -->|"solves root"| node_scipy_solver
node_option_pricing -->|"uses arrays/math"| node_numpy
node_greeks -->|"uses arrays/math"| node_numpy
node_d1_d2 -->|"uses math"| node_numpy
node_option_pricing -->|"uses normal CDF"| node_scipy_stats
node_greeks -->|"uses normal functions"| node_scipy_stats

click node_option_pricing "https://github.com/jedellender/convertible_bond_arb/blob/master/pricing.py"
click node_greeks "https://github.com/jedellender/convertible_bond_arb/blob/master/pricing.py"
click node_implied_vol "https://github.com/jedellender/convertible_bond_arb/blob/master/pricing.py"
click node_d1_d2 "https://github.com/jedellender/convertible_bond_arb/blob/master/pricing.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_caller,node_numpy,node_scipy_stats,node_scipy_solver toneIndigo
class node_option_pricing,node_greeks,node_implied_vol,node_d1_d2 toneTeal
```

## Components

### Other components

- **Library caller**
- [Option pricing](https://github.com/jedellender/convertible_bond_arb/blob/master/pricing.py): `pricing.py`
- [Greeks](https://github.com/jedellender/convertible_bond_arb/blob/master/pricing.py): `pricing.py`
- [Implied volatility](https://github.com/jedellender/convertible_bond_arb/blob/master/pricing.py): `pricing.py`
- [d1/d2 helper](https://github.com/jedellender/convertible_bond_arb/blob/master/pricing.py): `pricing.py`
- **NumPy**
- **SciPy stats**
- **SciPy solver**

## Connections

- Library caller → Option pricing: requests price (evidence: `pricing.py`)
- Library caller → Greeks: requests Greeks (evidence: `pricing.py`)
- Library caller → Implied volatility: requests volatility (evidence: `pricing.py`)
- Option pricing → d1/d2 helper: computes inputs (evidence: `pricing.py`)
- Greeks → d1/d2 helper: computes inputs (evidence: `pricing.py`)
- Implied volatility → Option pricing: evaluates price (evidence: `pricing.py`)
- Implied volatility → SciPy solver: solves root (evidence: `pricing.py`)
- Option pricing → NumPy: uses arrays/math (evidence: `pricing.py`)
- Greeks → NumPy: uses arrays/math (evidence: `pricing.py`)
- d1/d2 helper → NumPy: uses math (evidence: `pricing.py`)
- Option pricing → SciPy stats: uses normal CDF (evidence: `pricing.py`)
- Greeks → SciPy stats: uses normal functions (evidence: `pricing.py`)
