Skip to content

npezolano/PyTreasuryDirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTreasuryDirect

PyTreasuryDirect is a thin wrapper on top of the Treasury Direct Web API

To Start

PyTreasuryDirect uses the Requests Python package. To install:

pip install PyTreasuryDirect

Example

from pytreasurydirect import TreasuryDirect

td = TreasuryDirect()
cusip = '912796CJ6'

print(td.security_info(cusip, '02/11/2014'))
# or 
print(td.security_info(cusip, datetime.date(2014, 2, 11)))

About

Python API for Treasury Direct

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages