{"id":15668487,"url":"https://github.com/junajan/nasdaq-finance","last_synced_at":"2025-03-30T04:43:51.768Z","repository":{"id":57308137,"uuid":"93790655","full_name":"junajan/nasdaq-finance","owner":"junajan","description":"Download actual price and daily tick data for given tickers from www.nasdaq.com","archived":false,"fork":false,"pushed_at":"2017-08-04T14:07:10.000Z","size":30,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T14:50:38.951Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/junajan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-08T20:49:17.000Z","updated_at":"2020-05-20T08:50:48.000Z","dependencies_parsed_at":"2022-09-09T06:23:05.382Z","dependency_job_id":null,"html_url":"https://github.com/junajan/nasdaq-finance","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junajan%2Fnasdaq-finance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junajan%2Fnasdaq-finance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junajan%2Fnasdaq-finance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junajan%2Fnasdaq-finance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junajan","download_url":"https://codeload.github.com/junajan/nasdaq-finance/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246277351,"owners_count":20751548,"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":[],"created_at":"2024-10-03T14:08:46.829Z","updated_at":"2025-03-30T04:43:51.751Z","avatar_url":"https://github.com/junajan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nasdaq Finance [![Build Status](https://travis-ci.org/junajan/nasdaq-finance.svg)](https://travis-ci.org/junajan/nasdaq-finance)\nThis tool will help to download informations like an actual price, stock info or daily tick prices and volumes for a given ticker(s).\n\n## Install\n```bash\n$ npm install --save nasdaq-finance\n```\n\n## Configuration\n`NasdaqFinance` class takes one argument with a configuration object containing these values:\n```js\n{\n  logLevel: 'info',\n  tickerConcurrency: 4,\n  requestConcurrency: 4,\n  requestDelay: 50\n}\n```\n\n## API\n`NasdaqFinance` object has three main methods:\n- getInfo - will return an object with basic info about ticker(s)\n- getPrice - will return a current price displayed on a Nasdaq page.\n- getTicks - get ticks data (time, price, volume) for a given ticker(s)\n\n## Example usage\nAll three methods accepts two arguments. First is a single ticker or an array of all tickers which should be fetched. The second argument is a boolean which modifies the result from array to object indexed by tickers. More info bellow in the usage examples.\n\n### Stock info\nWill return a stock info about a requested \n```js\nimport nf from 'nasdaq-finance'\nconst nf = new NasdaqFinance()\nnf.getInfo('TSLA')\n.then((res) =\u003e {\n//  res == {\n//    name: 'Tesla, Inc.  (TSLA)',\n//    exchange: 'NASDAQ',\n//    industry: 'Capital Goods',\n//    image: 'http://www.nasdaq.com/logos/TSLA.gif',\n//    price: 357.32,\n//    priceChange: '12.68',\n//    priceChangePercent: '3.43'\n//  }\n})\n.catch(console.error)\n```\n\n### Stock price\nWill return a current stock price listed on nasdaq page.\n```js\nimport nf from 'nasdaq-finance'\nconst nf = new NasdaqFinance()\nnf.getPrice('TSLA')\n.then((res) =\u003e {\n//  res === 357.32\n})\n.catch(console.error)\n```\n\n### Stock ticks\n\n## Contribution\nTests: npm test\nAnd as always .. PRs more than welcomed :-)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunajan%2Fnasdaq-finance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunajan%2Fnasdaq-finance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunajan%2Fnasdaq-finance/lists"}