npm install
gulp serve
GET <BASE_URL>/symbol/:SYMBOL/premarket OBJECT
- BASE_URL = server base path
- SYMBOL = market stock symbol
Examples:
http://localhost:3000/symbol/jd/premarket
http://localhost:3000/symbol/tsla/premarket
http://localhost:3000/symbol/amd/premarket
Response:
{
"name": "Tesla, Inc. Pre-Market Trading",
"sale": "$314.57",
"net": "-0.83",
"pct": "-0.83"
}
GET <BASE_URL>/symbol/:SYMBOL/fundamental ARRAY
- BASE_URL = server base path
- SYMBOL = market stock symbol
Examples:
http://localhost:3000/symbol/jd/fundamental
http://localhost:3000/symbol/tsla/fundamental
http://localhost:3000/symbol/amd/fundamental
Response:
[
{
"key": "Market Cap (intraday) 5",
"value": "483.66B"
},
{
"key": "Enterprise Value 3",
"value": "467.88B"
},
{
"key": "Trailing P/E ",
"value": "46.37"
}
// data...
]
Note: Use valid symbols
GET <BASE_URL>/oportunidades ARRAY
NOTE: please change your apikey on //src/stock/config.json Claim your API Key please change your list of stoks on //src/stock/symbol.json
Response:
[
{
"symbol": "GE",
"rsi": "28.1159"
},
{
"symbol": "AAPL",
"rsi": "28.2566"
},
{
"symbol": "AA",
"rsi": "33.8401"
}
]
It's time to use Gulp tasks:
- $ gulp serve to start server on your source files with live reload