$ npm start
$ npm run dev
Fetches the top 10 gainers
Request: GET /api/topgainers
Response (example):
[
{
"series": "EQ",
"symbol": "CIPLA",
"percentChange": "3.48",
"lastTradedPrice": "955.00",
"volume": "36,88,123"
},
...
]
Request: GET /api/stockslist
Fetches all the stocks' symbols & company names listed on NSE
Response (example): keys are the symbol names and values are the company names
{
"21STCENMGM": "Twentyfirst Century Management Services Ltd.",
"A2ZINFRA": "A2Z Infra Engineering Ltd.",
"AARTIDRUGS": "Aarti Drugs Ltd.",
...
}
Request: GET /api/stockslist/nifty50
Fetches all the stocks' symbols & company names listed in Nifty 50
Response (example): keys are the symbol names and values are the company names
{
"ADANIPORTS": "Adani Ports & Special Economic Zone Ltd.",
"ASIANPAINT": "Asian Paints Ltd.",
"AXISBANK": "Axis Bank Ltd.",
"BAJAJ-AUTO": "Bajaj Auto Ltd.",
"BAJFINANCE": "Bajaj Finance Ltd.",
...
}
Request: GET /api/news/:symbol
Fetches recent news of a particular stock given it's symbol
Response:
An array of articles' metadata
[
{
"title":"",
"link":"",
"guid":"",
"pubDate":"",
"description":"",
"source":""
},
...
]