Giter Site home page Giter Site logo

finance-websocket-api's Introduction

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), GBPUSD (forex), AAPL (apple - nasdaq), MSFT (microsoft - nasdaq) and MC.PA (lvmh - cac40)

const WebSocket = require('ws');
const ws = new WebSocket("wss://api.realtimefinance.io", {
  rejectUnauthorized: false // use only if you are behind a firewall
});

const message = {
  event: "subscribe",
  data: ['EURUSD','GBPUSD','AAPL','MSFT','MC.PA']
};
ws.on("open", function open() {
  ws.send(JSON.stringify(message));
});

ws.on("message", function incoming(data) {
  console.log(data);
});

Available for stocks and forex

Here after you can find JSON list with symbols :

Further infos: https://realtimefinance.io

finance-websocket-api's People

Contributors

adwulfran avatar recursif avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.