The StockWatchJa: JamStockEx API v2 serves up stock details info as JSON at this URL. The data is pulled from StockWatchJa: JamStockEx Scraper.
{
"stocks": [
{
"id": "5f4efd8b77435e97079e95bb",
"lastUpdatedDate": "1995-06-22T18:31:18.362Z",
"instrumentName": "SOME STOCK NAME",
"symbol": "SYMBOL",
"currency": "JMD",
"sector": "TOURISM",
"type": "ORDINARY",
"website": null,
"isListed": true,
"market": "Main Market",
"corporateActionUrl": "https://www.jamstockex.com/market-data/listed-companies/corporate-actions/SYMBOL/latest",
"dividends": [],
"tradeInfo": {
"volumeTraded": 955,
"dollarChange": 0,
"marketPrice": 0.3,
"percentageChange": 0,
"lastUpdatedDate": "1995-06-22T18:31:18.345Z"
}
},
.....
],
"results": 10,
"total": 245,
}
Click here to view the API documentation.
Tool | Version | Source |
---|---|---|
NodeJs | 10.16.2 (includes npm 6.9.0) | Nodejs v10.x Releases |
Heroku | - | Getting Started on Heroku with Python |
Windows OS | 10 | - |
- Install GIT
- Install Heroku
- Login using the following command
heroku login
Create ".env" in application root folder
DB="<MongoDB-node-2.2.12-connection-string>"
PORT=5000
heroku create jamstockex-api
heroku config:set DB="<MongoDB-node-2.2.12-connection-string>"
heroku config:set PORT=5000
git push heroku your_local_branch_name:master
Validate that the application is live
heroku ps:scale web=1
heroku local web