fixed-income
[STUB] Bond pricing, yield curves, duration and convexity analysis, and DeFi lending rate modeling
Skill by Serennity007
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/serennity007-fixed-income
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: finance
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/fixed-income
What's inside
- Skill name
fixed-income- Description
- [STUB] Bond pricing, yield curves, duration and convexity analysis, and DeFi lending rate modeling
- License
- MIT
- Instructions
- 199 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- SKILL.md
- planned_features.md · references/
- bond_calculator.py · scripts/
SKILL.md (first lines)
# Fixed Income
> **Status: STUB** — This skill provides a basic bond calculator and an overview of planned capabilities. Full implementation is awaiting community contribution.
Fixed income analysis bridges traditional bond mathematics with DeFi lending rate modeling. Bond pricing fundamentals — present value of cash flows, yield curves, duration, and convexity — translate directly to analyzing DeFi lending protocols where depositors earn variable or fixed rates on crypto assets.
On Solana, lending protocols like Marginfi, Kamino, and Solend offer variable-rate lending/borrowing. Understanding term structure and rate dynamics helps optimize yield farming strategies and compare opportunities across protocols.
This skill is informational and analytical only. It does not provide financial advice or trading recommendations.
---
## Current Capabilities
This stub includes a working bond calculator with price, yield-to-maturity, duration, and convexity computations. See `scripts/bond_calculator.py` for the implementation.
```python
def bond_price(
face: float, coupon_rate: float, ytm: float, periods: int, freq: int = 2
) -> float:
"""Calculate bond price as present value of all cash flows.
Args:
face: Face (par) value of the bond.
coupon_rate: Annual coupon rate (decimal, e.g., 0.05 for 5%).
ytm: Yield to maturity (annual, decimal).
periods: Number of coupon periods remaining.
freq: Coupon frequency per year (2 = semi-annual).
Returns:
Bond price (dirty price).
"""
coupon = face * coupon_rate / freq
y = ytm / freq
pv_coupons = sum(coupon / (1 + y) ** t for t in range(1, periods + 1))
pv_face = face / (1 + y) ** periods
return pv_coupons + pv_face
```
Run the demo:
```bash
python scripts/bond_calculator.py --demo
```
---
## Planned Capabilities
When fully implemented, this skill will cover:
### Bond Pricing
| Concept | Description |
|---------|-------------|
| Clean/Dirty Price | Price excluding/including accrued interest |
| Accrued Interest | Interest earned since last coupon date |
| Day Count Conventions | 30/360, ACT/360, ACT/365, ACT/ACT |
| Zero-Coupon Bonds | Discount bonds with no periodic coupons |
### Yield Measures
| Yield Measure | Use Case |
|---------------|----------|
| Yield to Maturity (YTM) | Total return if held to maturity |
| Current Yield | Annual coupon / price |
| Yield to Call | Return if called at first call date |
| Spread to Benchmark | Credit risk premium over risk-free rate |
### Duration and Convexity
| Metric | Measures |
|--------|----------|
| Macaulay Duration | Weighted average time to cash flows |
| Modified Duration | Price sensitivity to yield changes |
| Effective Duration | Duration for bonds with embedded options |
| Convexity | Second-order price sensitivity |
| Dollar Duration (DV01) | Dollar change per 1bp yield move |
### Yield Curve Construction
| Method | Description |
|--------|-------------|
| Bootstrap | Extract spot rates from par bond prices |
| Nelson-Siegel | Parametric model with level, slope, curvature |
| Nelson-Siegel-Svensson | Extended model with additional curvature term |
| Cubic Spline | Non-parametric interpolation |
### DeFi Lending Rate Analysis
| Protocol | Chain | Type |
|----------|-------|------|
| Marginfi | Solana | Variable rate |
| Kamino | Solana | Variable rate |
| Solend | Solana | Variable rate |
| Aave | Ethereum/Multi | Variable + stable rate |
| Compound | Ethereum | Variable rate |
Planned DeFi features:
- Lending rate time series analysis
- Supply/borrow APY comparison across protocols
- Utilization rate impact on lending rates
- Fixed vs variable rate comparison (when fixed-rate protocols available)
- Rate arbitrage opportunity detection
---
## Prerequisites
```bash
# For full implementation
uv pip install numpy scipy
# For visualization
uv pip install matplotlib
```
The included `scripts/bond_calculator.py` uses only the Python standard library and runs without any dependencies.From Serennity007/awesome-stock-quant-skills, MIT.
More from Serennity007/awesome-stock-quant-skills
- 0.618score
correlation-analysis
Serennity007
Cross-asset correlation analysis including rolling correlation, hierarchical clustering, tail dependence, and regime-dependent correlation
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
cost-basis-engine
agipro
Multi-method cost basis computation including specific identification, FIFO, LIFO, HIFO, and proportional average cost with partial sell handling
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
crypto-tax-export
agipro
Export trade history and tax calculations in formats compatible with Koinly, CoinTracker, CoinLedger, TokenTax, and IRS Form 8949
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
feature-engineering
Serennity007
Feature construction from market data for ML trading models including price, volume, on-chain, and microstructure features
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
coingecko-api
Serennity007
Broad crypto market data from CoinGecko covering 13,000+ tokens.
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
dex-pool-analysis
Serennity007
AMM pool mechanics comparison across Raydium, Orca, and Meteora including fee structures, pool types, creation patterns, and volume efficiency
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
custom-indicators
Serennity007
Crypto-native indicators including NVT ratio, exchange flow, funding rate signals, holder momentum, and smart money flow
SkillBFreshness: B★ 41Claude Code +9 - 0.617score
ibkr-options-assistant
Serennity007
Interactive Brokers options & stock trading assistant.
SkillBFreshness: B★ 41Claude Code +9 - 0.615score
birdeye-api
Serennity007
Solana token market data via Birdeye — prices, OHLCV, trades, token metadata, security checks, and trader activity
SkillBFreshness: B★ 41Claude Code +9 - 0.615score
cointegration-analysis
Serennity007
Cointegration testing for pairs trading using Engle-Granger, Johansen, and rolling stability analysis
SkillBFreshness: B★ 41Claude Code +9 - 0.615score
defillama-api
Serennity007
Free DeFi analytics across all chains — TVL, token prices, DEX volumes, fees/revenue, stablecoins, and bridges
SkillBFreshness: B★ 41Claude Code +9 - 0.615score
dex-execution
Serennity007
Solana DEX swap execution via Jupiter aggregator including quoting, transaction building, signing, and confirmation
SkillBFreshness: B★ 41Claude Code +9
Signals
- Stars
- 41
- Forks
- 8
- Open issues
- 1
- Last commit (this folder)
- Aug 25, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Serennity007
- 0.618score
dex-pool-analysis
Serennity007
AMM pool mechanics comparison across Raydium, Orca, and Meteora including fee structures, pool types, creation patterns, and volume efficiency
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
custom-indicators
Serennity007
Crypto-native indicators including NVT ratio, exchange flow, funding rate signals, holder momentum, and smart money flow
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
correlation-analysis
Serennity007
Cross-asset correlation analysis including rolling correlation, hierarchical clustering, tail dependence, and regime-dependent correlation
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
coingecko-api
Serennity007
Broad crypto market data from CoinGecko covering 13,000+ tokens.
SkillBFreshness: B★ 41Claude Code +9 - 0.618score
feature-engineering
Serennity007
Feature construction from market data for ML trading models including price, volume, on-chain, and microstructure features
SkillBFreshness: B★ 41Claude Code +9 - 0.617score
ibkr-options-assistant
Serennity007
Interactive Brokers options & stock trading assistant.
SkillBFreshness: B★ 41Claude Code +9
Cite this page
fixed-income skill. Agent Mart. https://agentmart.dev/skills/serennity007-fixed-income (last updated 2026-10-24)