@api-emulator/yahoo-finance
v0.2.2
Published
Yahoo Finance query APIs provide chart, quote, quote summary, and fundamentals time-series data used by yfinance.
Downloads
165
Readme
@api-emulator/yahoo-finance
Yahoo Finance query APIs provide chart, quote, quote summary, and fundamentals time-series data used by yfinance.
Use this emulator for local tests, CI, and offline agent runs. It keeps your tests separate from the production API.
Start the emulator
- Install the package.
npm install @api-emulator/yahoo-finance- From this registry, start the emulator.
npx -p api-emulator api --plugin ./providers/@yahoo-finance/api-emulator.mjs --service yahoo-financeThe emulator uses the local URL that api-emulator prints. Set your client base URL to this local URL.
Supported API
GET /GET /consentPOST /v2/collectConsentGET /copyConsentGET /v1/test/getcrumbGET /v8/finance/chart/:symbolGET /v10/finance/quoteSummary/:symbolGET /v7/finance/quoteGET /ws/fundamentals-timeseries/v1/finance/timeseries/:symbolGET /v7/finance/options/:symbolGET /v1/finance/searchGET /v1/finance/lookupGET /v1/finance/screener/predefined/savedPOST /v1/finance/screenerGET /v1/finance/sectors/:keyGET /v1/finance/industries/:keyGET /v6/finance/quote/marketSummaryGET /v6/finance/markettimePOST /v1/finance/visualizationPOST /xhr/ncpGET /calendar/earningsGET /quote/:symbol/key-statisticsGET /ajax/SearchController_SuggestGET /inspect/contractGET /inspect/state
Coverage
- Level:
smoke-only - Meaning: A smoke test starts the emulator and checks its main behavior.
- Evidence: a direct smoke test exists, but a conformance manifest does not exist.
Credentials
You do not need production credentials. Use fixed local credentials if your client requires them.
Test data
Add repeatable test data to the provider configuration.
yahoo-finance:
# Add provider-specific seed state here.