Real Time Finance is a simple websocket public API to get real-time stock prices. The following markets are available at the moment :
- Forex
- US and European stocks companies (around 10K stocks)
npm install ws
const WebSocket = require('ws');
const ws = new WebSocket("ws:https://realtimefinance.io, {
headers: {
"api_key": "demo",
"symbol" : "AUDUSD", "AAPL", "^DJI"
}
});
ws.on('message', function incoming(msg) {
console.log(msg);
});
You can find here after JSON stocks list with symbol :