feat: add Credit & Sovereign Risk, Sanctions, Interest Rates APIs (14 endpoints)#74
Open
alexpipipi wants to merge 1 commit into
Open
feat: add Credit & Sovereign Risk, Sanctions, Interest Rates APIs (14 endpoints)#74alexpipipi wants to merge 1 commit into
alexpipipi wants to merge 1 commit into
Conversation
Add three new API families covering 14 GET endpoints: - Credit & Sovereign Risk (/api/credit-risk): sovereign risk-premium, credit-ratings, cds-spreads, default-spreads; corporate cmdi, hqm-yields; cds-market aggregates - Sanctions (/api/sanctions): entities, vessels, programs, sources - Interest Rates (/api/rates, /api/spreads): reference-rates, policy-rates, funding-stress (no pagination) credit-risk and rates/spreads use filter[...] deep-object params; sanctions uses BARE query params (q=, program=, type=, active=, imo=, flag=, vessel_type=, source=, country=) per prometheus-web + live prod. Pagination is page[offset]/page[limit] throughout (except funding-stress: none). Filter/param values are URL-encoded via a shared helper so multi-word values do not corrupt the query string. Sanctions validates source->ofac and type/active enums. Registered in APIs/__init__.py, exposed via APIClient facade, covered by pytest.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New API classes CreditSovereignRiskAPI / SanctionsAPI / InterestRatesAPI (14 methods) + facade + tests. pytest: 105 passed. Filter values URL-encoded.
Part of an updatelibs cross-repo sync adding 3 API families / 14 endpoints — Credit & Sovereign Risk (7), Sanctions/OFAC (4), Interest Rates (3) — across EODHD-openapi, Node SDK, Python SDK, Postman, and the Claude plugin. Sanctions uses bare query params (verified vs prometheus-web request classes + live prod); credit-risk & interest-rates use filter[...]. Bridge pre-push review (Codex + Gemini): no blockers.