8000 GitHub - sudfud/soupstock: A simple Node app for retrieving stock information
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A simple Node app for retrieving stock information

Notifications You must be signed in to change notification settings

sudfud/soupstock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

soupstock

A simple Node app for retrieving stock information

Build and Run using Docker

  1. Get a free API key from Alpha Vantage.

  2. Clone the repository and move to the soupstock directory.

git clone https://github.com/sudfud/soupstock
cd soupstock
  1. Build a Docker image.
docker build -t soupstock .
  1. Run a Docker container with the newly created image.
docker run -dp 3000:3000 -e AV_API_KEY=[Your API key] soupstock
  1. Try it out!
curl localhost:3000/stock/MSFT

Available Endpoints

GET /stock/{symbol}

Retrieve the stock information of a given symbol [ex. MSFT].

Returns a JSON object with the following attributes if the given symbol is valid. Otherwise, returns a 400 status code.

  • prices: The closing prices of this symbol from the past 11 days.
  • average: The average closing price of this symbol over the past 11 days.

About

A simple Node app for retrieving stock information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0