Skip to content

Real-time-finance/finance-websocket-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Real Time Finance : a Financial WebSocket public API

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)

Get started

Installing

npm install ws

Usage example

Use stock symbol to receive datas. In this example we use EURUSD (forex), AAPL (apple - nasdaq), MSFT (microsoft - nasdaq) and MC.PA (lvmh - cac40)

const WebSocket = require('ws');
const ws = new WebSocket("ws:https://realtimefinance.io, {
  headers: {
    "API-X-KEY": "demo",
    "symbol" : "EURUSD,AAPL,MSFT,MC.PA"
  }
});

ws.on('message', function incoming(msg) {
  console.log(msg);
});

Available stocks and forex

You can find here after JSON stocks list with symbol :

https://realtimefinance.io