Skip to content

Perajit/nasdaq-scrape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nasdaq-scrape

This project is an application providing timeseries data of NASDAQ's indexes. It has 2 sections:

  • RESTFUL API: for users to query data.
  • Background Process: running to periodically scrape data from NASDAQ website

RESTFUL API

This is the API users can call to get data of any NASDAQ's index at any specific time period using GET method. The url looks like:

  • [host]:[port]/api/nasdaq/[index]?start=[start]&end=[end].

Where:

  • [host] is the host on which the application runs.
  • [port] is the port on which the application runs. (Default is 5555).
  • [index] is the index name you want to retrieve data. If you want to get data of all indexes, use 'all'.
  • [start] is the starting time of interest in ISO format (optional).
  • [end] is the ending time of intererst in ISO format (optional).

Example:

Background Process

The process periodically run to scrape data from NASDAQ website.

Prerequisite

  • NodeJS
  • MongoDB

Install Application

From the project folder, run command:

npm install

Run Application

Run the application including both API and background service. From the project folder, run command:

npm start

Run test

Run testing for the application. From the project folder, run command:

npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors