Logo : Convertible Bond Arbitrage Data Requirements

Convertible Bond Arbitrage Data Requirements

Communauté
HimanshuJ16
convertible-bond-arbitrage-data-requirements

Use when defining the data contract for a convertible bond arbitrage strategy and computing the screening metrics on top of it: parity, conversion premium, bond floor from the issuer credit spread, delta hedge size and net carry.

Présentation

ÉditeurHimanshuJ16
DépôtAlgo-Trading-Skills
Nom de la compétenceconvertible-bond-arbitrage-data-requirements
Étoiles
50
Forks
7
Fichiers inclus
5
LicenceApache-2.0
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 5

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par HimanshuJ16 sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Convertible Bond Arbitrage Data Requirements dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/convertible-bond-arbitrage-data-requirements
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HimanshuJ16/Algo-Trading-Skills.git /tmp/Algo-Trading-Skills
mkdir -p .claude/skills
cp -r /tmp/Algo-Trading-Skills/skills/convertible-bond-arbitrage-data-requirements .claude/skills/convertible-bond-arbitrage-data-requirements
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Convertible Bond Arbitrage Data Requirements dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Convertible Bond Arbitrage Data Requirements dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Convertible Bond Arbitrage Data Requirements n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

When to Use

Use this skill when defining the data contract for a Convertible Bond (CB) arbitrage strategy, or when computing the screening metrics that sit on top of it: parity, conversion premium, bond floor, delta hedge size, and net carry. CB arbitrage buys a convertible (a hybrid of straight debt plus an equity conversion option) and shorts the underlying equity to isolate cheap implied volatility, carry, or credit mispricing while holding the package delta-neutral.

When NOT to Use

  • As a convertible pricing model. Delta and implied volatility are inputs here. Producing them requires a CB model (binomial / Tsiveriotis-Fernandes style) that handles credit-risky conversion, issuer calls, puts and soft-call triggers. This module deliberately does not implement one.
  • For busted (credit-like) converts. When parity sits far below the bond floor, the position is a credit trade, not a volatility trade; the screening logic flags this case and refuses to call it attractive.
  • For live order routing. The short leg has its own regulatory and borrow-side obligations that this module does not enforce — see Related Skills.

Prerequisites

  • Bond static terms: par value, conversion ratio (per the same nominal as par value), coupon rate, coupon frequency, maturity date.
  • CB market data: clean price (points of par) and accrued interest.
  • Equity market data: spot price, borrow fee, expected dividend yield.
  • Credit data: issuer credit spread in basis points (required for the bond floor).
  • Model/vendor analytics: equity delta and implied volatility.
  • Funding terms: repo financing rate for the long CB leg, and the rate and haircut your prime broker applies to short-sale proceeds.
  • Python 3.10+ (standard library only).

Workflow

  1. Audit data completeness before computing anything. audit_data_completeness() separates missing inputs from present but invalid ones (NaN, infinite, negative, delta outside [0, 1]). evaluate_arbitrage() raises on a failed audit rather than screening on partial data — a single NaN price would otherwise propagate into every metric and surface as a silent "not attractive".
  2. Compute parity and conversion premium, and state the basis. Parity = conversion ratio x stock price. Conversion premium % = (CB price - parity) / parity x 100. The CB price may be the quoted clean price (market convention, the default) or the full price including accrued interest. The two differ by up to a full coupon period, so a premium reported without its basis is not comparable across sources; configure it explicitly with premium_basis.
  3. Size the short equity leg — check the delta convention first. Short shares = CB quantity x conversion ratio x delta, where delta is the per-share delta in [0, 1]. Desks and vendors also quote CB delta as shares per bond in [0, conversion_ratio]; passing that value into the same formula over-hedges by a factor of the conversion ratio. The [0, 1] bound is enforced to catch it. Round to the venue's lot size and carry the rounding residual as known open exposure.
  4. Compute the bond floor from the issuer credit spread. The floor is the PV of the straight-bond cash flows discounted at risk-free + credit spread. It is the downside protection the trade is being paid for; it moves with the spread, so it must be recomputed on spread updates, not treated as a constant. If parity has fallen far below the floor, the convert is busted and equity-vol screening no longer applies.
  5. Compute carry over the whole package, not the bond alone. `Net carry = coupon + interest on short proceeds - repo financing - stock borrow fee
    • dividends payable in lieu on the short. The last three hedge-leg terms scale with the **short position market value** (delta x parity`), not with bond notional — applying a borrow rate directly to bond notional misstates the drag whenever delta or the parity/price ratio is away from 1.
  6. Screen, then decide. Cheap vol (HV - IV above threshold), a tolerable premium and acceptable carry make a candidate, not a trade. All thresholds are configurable (ScreenThresholds) and their defaults are desk heuristics with no authoritative basis — calibrate them against your own book before trading on them.

Full procedure: see references/workflows.md. Standards reference: see references/standards.md. Printable pre-flight checklist: see assets/checklist.md.

Common Pitfalls

  • Charging the borrow fee against bond notional. The stock loan fee and the dividends owed in lieu are charged on the short equity market value (delta x parity). At delta 0.60 with parity 900 against a 1,000 bond, that base is 540, not 1,000 — a fee applied to bond notional overstates the drag by ~85% here, and the sign of net carry can flip.
  • Forgetting dividends on the short leg. A short seller owes the lender substitute payments equal to any dividends paid. On a dividend-paying underlying this is often larger than the borrow fee and turns a positive-carry screen negative.
  • Ignoring the stock borrow fee entirely. A hard-to-borrow underlying at a 15% fee wipes out coupon carry and volatility edge outright; borrow recall additionally forces an unplanned unwind of the hedge at the worst moment.
  • Mixing up the two delta conventions. See workflow step 3 — the failure mode is a short position sized conversion_ratio times too large, which is a directional bet, not a hedge.
  • Comparing conversion premiums computed on different price bases. Clean-basis and full-basis premiums are not the same number; vendor screens do not always say which they use.
  • Static delta hedging. The package is long gamma: delta moves with spot, so an un-rebalanced hedge silently accumulates directional equity risk.
  • Treating the convertible as risk-free debt. The bond floor is only a floor while the issuer performs. Spread widening lowers the floor and hits the long CB leg at the same time the equity leg is usually gaining least — the 2005 GM episode is the standard example of both legs losing together.

Verification

  • ConvertibleBondArbitrageEngine().calculate_parity(20.0, 45.0) must return 900.0 (par 1,000, conversion ratio 20, spot 45).
  • With a CB clean price of 99.0 (990 per bond), the clean-basis conversion premium must be 10.0% — independently: market conversion price 990 / 20 = 49.50, premium per share 4.50, ratio 4.50 / 45.00 = 10%.
  • calculate_delta_hedge_quantity(100, 20.0, 0.60) must return 1200 shares, and passing 12.0 (the shares-per-bond form of the same delta) must raise ValueError.
  • With par 1,000, a 4% annual coupon paid semi-annually, 3 years to maturity, a 4% risk-free rate and a 300bp credit spread, the bond floor must equal the closed-form annuity value 20 x (1 - 1.035^-6)/0.035 + 1000 x 1.035^-6 = 920.07.
  • With accrued 10 (full price 1,000), parity 900, delta 0.60, borrow 1%, dividend yield 2%, repo 4.5% and 4% on short proceeds, net carry must be 40 + 21.6 - 45 - 5.4 - 10.8 = +0.40 per bond (+4bp on the full price).
  • Run python -m unittest discover -s skills/convertible-bond-arbitrage-data-requirements/scripts.

Related Skills

  • options-implied-volatility-surface-construction
  • cross-asset-hedge-execution-synchronization
  • short-selling-borrow-cost-and-availability-modeling
  • us-reg-sho-short-sale-locate-requirements
  • counterparty-credit-risk-for-otc-derivatives

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Convertible Bond Arbitrage Data Requirements ?

Use when defining the data contract for a convertible bond arbitrage strategy and computing the screening metrics on top of it: parity, conversion premium, bond floor from the issuer credit spread, delta hedge size and net carry.

Pourquoi utiliser Convertible Bond Arbitrage Data Requirements sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Convertible Bond Arbitrage Data Requirements se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Convertible Bond Arbitrage Data Requirements dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/convertible-bond-arbitrage-data-requirements. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Convertible Bond Arbitrage Data Requirements ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Convertible Bond Arbitrage Data Requirements ?

Autant que vous le souhaitez. Vous pouvez utiliser Convertible Bond Arbitrage Data Requirements avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Convertible Bond Arbitrage Data Requirements est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par HimanshuJ16 sous licence Apache-2.0. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇