Skip to main content

Commercial Paper


Implementation details​

Class names​

Model nameParameters classData class
CommercialPaperCommercialPaperQueryParamsCommercialPaperData

Import Statement​

from openbb_core.provider.standard_models.cp import (
CommercialPaperData,
CommercialPaperQueryParams,
)

Parameters​

NameTypeDescriptionDefaultOptional
start_dateUnion[str, date]Start date of the data, in YYYY-MM-DD format.NoneTrue
end_dateUnion[str, date]End date of the data, in YYYY-MM-DD format.NoneTrue
maturityLiteral['overnight', '7d', '15d', '30d', '60d', '90d']The maturity.30dTrue
categoryLiteral['asset_backed', 'financial', 'nonfinancial']The category.financialTrue
gradeLiteral['aa', 'a2_p2']The grade.aaTrue
providerLiteral['fred']The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'fred' if there is no default.fredTrue

Data​

NameTypeDescription
datedateThe date of the data.
ratefloatCommercial Paper Rate.