Open patakijv opened 2 years ago
https://github.com/mcdallas/wallstreet/blob/master/wallstreet/constants.py
uses
TREASURY_URL = "https://home.treasury.gov/sites/default/files/interest-rates/yield.xml"
You'll have to dig a little, but it's a start.
Great little library to use. When calculating delta, there is a
r
argument required which is labeled as 'Annual risk-free interest rate as a decimal'. What reference or benchmark or whatever to use to know what this should be for delta? Should it be the 10-year treasury rate?