Some swap suggestions

Aperta
#177 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
12/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
fintech-quant

Direzione di ricerca

The issue proposes three design changes to the swap code: a notional schedule for rolling or amortizing swaps, splitting the SwapLeg class into a common base with Fixed and Floating subclasses, and exposing protected attributes such as the swap's legs through properties. Start by reading the existing SwapLeg and swap classes to see how coupons and notional are computed. Maintainer agreement on the API design is needed before any patch, since the issue has no comments and no linked pull request.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

A few swap suggestions (I have implemented most of these locally, happy to contribute into a pull request):

  • notional schedule. Allows for swaps with rolling/amortizing notional. Can be backwards compatible, where notional passed into constructor is (float,list)
  • refactor SwapLeg classes into a SwapLeg as a common object, and subclasses Fixed and Floating. Apart from string representation, the major difference is how the coupon for a period is calculated. Clearer separating IMO allows for easier implementations of things like libor-in-arrears or compounding swaps.
  • expose some more protected attributes via properties, including exposing the legs from the swap class.
Lingua principale
Python
Stelle
3.2k
Fork
457
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di domokane/FinancePy

Tutte le issue di domokane/FinancePy

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.