RSISignalSenderNode is a Node.js application designed to fetch the weekly Relative Strength Index (RSI) of specified stocks using the Alpha Vantage API. It also features functionality for sending email alerts when certain RSI criteria are met.
- Node.js
- npm (Node Package Manager)
- Access to Alpha Vantage API (API key required)
- (Optional) Email service credentials for sending alerts
-
Clone the Repository git clone https://github.com/yourusername/RSISignalSenderNode.git cd RSISignalSenderNode
-
Install Dependencies
npm install
-
Set Up Environment Variables
- Create a
.env
file in the root directory. - Add the following variables:
ALPHA_VANTAGE_API_KEY=your_alpha_vantage_api_key PORT=3000 EMAIL_USER=your_email@example.com EMAIL_PASS=your_email_password
- Start the server:
npm start
- The server will be running on
http://localhost:24001
(or the port you've specified in the.env
file).
- Endpoint:
GET /api/stocks/rsi/:ticker
- Replace
:ticker
with the stock symbol you want to check. - Example using
curl
:curl http://localhost:24001/api/stocks/rsi/AMZN
Contributions to this project are welcome. Please fork the repository and submit a pull request for any enhancements or bug fixes.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.