{"id":23968620,"url":"https://github.com/vutran/yahoo-stocks","last_synced_at":"2025-04-13T15:40:43.564Z","repository":{"id":57402882,"uuid":"84389755","full_name":"vutran/yahoo-stocks","owner":"vutran","description":"Fetch stock data from Yahoo! Finance","archived":false,"fork":false,"pushed_at":"2019-02-12T18:33:57.000Z","size":356,"stargazers_count":24,"open_issues_count":2,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-09T11:50:44.635Z","etag":null,"topics":["data","finance","scaper","stocks","trade","yahoo"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vutran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-09T02:40:46.000Z","updated_at":"2023-03-24T05:44:00.000Z","dependencies_parsed_at":"2022-09-12T23:02:19.898Z","dependency_job_id":null,"html_url":"https://github.com/vutran/yahoo-stocks","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fyahoo-stocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fyahoo-stocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fyahoo-stocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fyahoo-stocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vutran","download_url":"https://codeload.github.com/vutran/yahoo-stocks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248739820,"owners_count":21154247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","finance","scaper","stocks","trade","yahoo"],"created_at":"2025-01-07T00:15:22.960Z","updated_at":"2025-04-13T15:40:43.544Z","avatar_url":"https://github.com/vutran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yahoo-stocks\n\n[![Travis](https://img.shields.io/travis/vutran/yahoo-stocks/develop.svg?maxAge=2592000\u0026style=flat-square)](https://travis-ci.org/vutran/yahoo-stocks) [![Coveralls branch](https://img.shields.io/coveralls/vutran/yahoo-stocks/develop.svg?maxAge=2592000\u0026style=flat-square)](https://coveralls.io/github/vutran/yahoo-stocks) [![license](https://img.shields.io/github/license/vutran/yahoo-stocks.svg?maxAge=2592000\u0026style=flat-square)](LICENSE)\n\n\u003e Fetch stock data from Yahoo! Finance\n\n## Install\n\n```\n$ npm install --save yahoo-stocks\n```\n\n## Usage\n\n```\nimport { lookup, history } from 'yahoo-stocks';\n\nlookup('AAPL').then(response =\u003e {\n    console.log(response);\n});\n\nhistory('AAPL').then(response =\u003e {\n    console.log(response);\n});\n```\n\n## API\n\n### lookup(symbol)\n\nReturns a `Promise` that resolves the data for the symbol.\n\n#### symbol\n\nType: `String`\n\nThe stock symbol.\n\n### history(symbol, [options])\n\nReturns a `Promise` that resolves the price history for the symbol.\n\n#### symbol\n\nType: `String`\n\nThe stock symbol.\n\n#### options\n\nType: `Object`\n\nA dictionary of customizable options\n\n*   `interval` - Set the interval for the price changes, e.g. `1m`, `1d`, `5d`, `1mo`, `1y`.\n*   `range` - Set the range of dates to include in the output, value values are: `1d`, `5d`, `1mo`, `3mo`, `6mo`, `1y`, `2y`, `5y`, `10y`, `ytd`, `max`\n\n## License\n\nMIT © [Vu Tran](https://github.com/vutran/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvutran%2Fyahoo-stocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvutran%2Fyahoo-stocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvutran%2Fyahoo-stocks/lists"}