Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ENH: pull data from TreasuryDirect.gov #9

Open
westurner opened this issue Nov 28, 2017 · 0 comments
Open

ENH: pull data from TreasuryDirect.gov #9

westurner opened this issue Nov 28, 2017 · 0 comments
Labels

Comments

@westurner
Copy link
Owner

TreasuryDirect.gov

Homepage: https://www.TreasuryDirect.gov API:
Docs: https://www.treasurydirect.gov/webapis/
Docs: https://www.treasurydirect.gov/webapis/webapisecurities.htm

PyTreasuryDirect

Src: https://github.com/npezolano/PyTreasuryDirect
Src: https://github.com/npezolano/PyTreasuryDirect/blob/master/pytreasurydirect/pytreasurydirect.py

Example:

import datetime
from pytreasurydirect import TreasuryDirect
td = TreasuryDirect()
cusip = '912796CJ6'
print(td.security_info(cusip, datetime.date.today()))
@westurner westurner added the ENH label Nov 28, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant