rsisignalsendernode
v1.0.0
Published
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.
Downloads
2
Readme
RSISignalSenderNode
Overview
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.
Prerequisites
- Node.js
- npm (Node Package Manager)
- Access to Alpha Vantage API (API key required)
- (Optional) Email service credentials for sending alerts
Installation
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 protected] EMAIL_PASS=your_email_password
Running the Application
- Start the server:
npm start
- The server will be running on
http://localhost:24001
(or the port you've specified in the.env
file).
Usage
Fetch RSI Data
- 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
Contributing
Contributions to this project are welcome. Please fork the repository and submit a pull request for any enhancements or bug fixes.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.