Some swap suggestions

Đang mở
#177 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
12/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
fintech-quant

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Python
Star
3.2k
Fork
457
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của domokane/FinancePy

Tất cả issue của domokane/FinancePy

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.