Định giá và Phân tích Trái phiếu bằng Python
Joshua Mayhew
Options Trader
Duration = % thay đổi giá trái phiếu khi lợi suất thay đổi 1%
Dollar duration = thay đổi $ của giá trái phiếu khi lợi suất thay đổi 1%:
Cho biết lãi/lỗ khi lãi suất thay đổi
$ \text{Dollar Duration} = \text{Duration} \times \text{Bond Price} \times 0.01$
DV01 = thay đổi $ của giá trái phiếu khi lợi suất thay đổi 0,01%.
0,01% = 1% của 1% = 1 điểm cơ bản (bp)
Viết tắt của "giá trị đô-la của một điểm cơ bản"
$ \text{DV01} = \text{Duration} \times \text{Bond Price} \times 0.0001$
Trái phiếu giá 92,28 USD và duration 7,98%:
dollar_duration = 92.28 * 7.98 * 0.01
print("Dollar Duration: ", dollar_duration)
Dollar Duration: 7.36
DV01 = 92.28 * 7.98 * 0.0001
print("DV01: ", DV01)
DV01: 0.0736
portfolio_dv01 = 10000
bond_dv01 = 0.0736
hedge_quantity = portfolio_dv01 / bond_dv01
print("Number of bonds to sell: ", hedge_quantity)
Number of bonds to sell: 135,869
bond_price = 92.28
hedge_amount = hedge_quantity * bond_price
print("Dollar amount to sell: USD", hedge_amount)
Dollar amount to sell: USD 12,538,043
$ \text{Price Change} = -100 \times \text{Dollar Duration} \times \Delta y$
Ước tính biến động giá nếu lãi suất giảm 3%:
-100 * 7.36 * -0.03
22.08
Thay đổi thực tế khi định giá lại trái phiếu:
-npf.pv(rate=0.02, nper=10, pmt=4, fv=100) - 92.28
25.69
Định giá và Phân tích Trái phiếu bằng Python