$> git clone [email protected]:o2t/tutorial-node-stock-server.git
$> yarn$> yarn startTo load the last 10 stock value samples :
$> curl http://localhost:8000?count=10To load all available stock value samples :
$> curl http://localhost:8000Queries return a JSON array of stock samples :
[{
"timestamp": 1457372998901,
"index": 0,
"stocks": {
"NASDAQ": 14.362588925287127,
"CAC40": 7.564775763312355
}
}, {
"timestamp": 1457372999903,
"index": 1,
"stocks": {
"NASDAQ": 13.27388069476001,
"CAC40": 13.011122498428449
}
}]