Git Product home page Git Product logo

cnbc-market's Introduction

cnbc-market

Stock market information from CNBC

Usage

const { cnbcMarket } = require("cnbc-market")

cnbcMarket().then( data => console.log(data) )

Example Output

[ 
  { symbol: '.SPX',
    name: 'S&P 500 Index',
    value: '2886.31',
    change: '38.71',
    changePcnt: '1.36' },
  { symbol: '.IXIC',
    name: 'NASDAQ Composite',
    value: '7895.45',
    change: '128.83',
    changePcnt: '1.66' },
  { symbol: '.FTSE',
    name: 'FTSE 100',
    value: '7117.15',
    change: '50.14',
    changePcnt: '0.71' },
  { symbol: '.N225',
    name: 'Nikkei 225 Index',
    value: '20418.81',
    change: '13.16',
    changePcnt: '0.06' },
  { symbol: '.HSI',
    name: 'Hang Seng Index',
    value: '25734.22',
    change: '238.76',
    changePcnt: '0.94' },
  { symbol: '.SSEC',
    name: 'Shanghai',
    value: '2823.82',
    change: '8.03',
    changePcnt: '0.29' },
  { symbol: '.VIX',
    name: 'CBOE Volatility Index',
    value: '19.02',
    change: '-2.16',
    changePcnt: '-10.20' },
  { symbol: '.GDAXI',
    name: 'DAX',
    value: '11562.74',
    change: '150.07',
    changePcnt: '1.31' },
  { symbol: 'US10Y',
    name: 'U.S. 10 Year Treasury',
    value: '1.539',
    change: '0.012',
    changePcnt: '0.00' },
  { symbol: 'US30Y',
    name: 'U.S. 30 Year Treasury',
    value: '1.999',
    change: '0.019',
    changePcnt: '0.00' },
  { symbol: 'US5Y',
    name: 'U.S. 5 Year Treasury',
    value: '1.414',
    change: '-0.008',
    changePcnt: '0.00' },
  { symbol: 'US2Y',
    name: 'U.S. 2 Year Treasury',
    value: '1.478',
    change: '-0.018',
    changePcnt: '0.00' },
  { symbol: 'US3M',
    name: 'U.S. 3 Month Treasury',
    value: '1.871',
    change: '-0.031',
    changePcnt: '0.00' },
  { symbol: 'DE10Y-DE',
    name: 'Bund 10-YR',
    value: '-0.688',
    change: '-0.008',
    changePcnt: '0.00' },
  { symbol: 'JP10Y-JP',
    name: 'Japan 10 Year Treasury',
    value: '-0.237',
    change: '0.002',
    changePcnt: '0.00' },
  { symbol: '@CL.1',
    name: "WTI Crude (Sep'19)",
    value: '54.92',
    change: '0.45',
    changePcnt: '0.83' },
  { symbol: '@NG.1',
    name: "Natural Gas (Sep'19)",
    value: '2.198',
    change: '-0.034',
    changePcnt: '-1.52' },
  { symbol: '@GC.1',
    name: "Gold COMEX (Dec'19)",
    value: '1526.80',
    change: '-4.3999',
    changePcnt: '-0.2873' },
  { symbol: '@SI.1',
    name: "Silver COMEX (Sep'19)",
    value: '17.16',
    change: '-0.054',
    changePcnt: '-0.31' },
  { symbol: '@W.1',
    name: "Wheat (Sep'19)",
    value: '470.25',
    change: '1.25',
    changePcnt: '0.27' },
  { symbol: '@HG.1',
    name: "Copper (Sep'19)",
    value: '2.5895',
    change: '-0.0055',
    changePcnt: '-0.21' },
  { symbol: 'JPYUSD=',
    name: 'Japanese Yen/US Dollar FX Cross Rate',
    value: '0.9408',
    change: '-0.0014',
    changePcnt: '-0.1486' },
  { symbol: '.DXY',
    name: 'DXY US Dollar Currency Index',
    value: '98.15',
    change: '0.00',
    changePcnt: '0.01' },
  { symbol: 'JPY=',
    name: 'USD/JPY',
    value: '106.27',
    change: '0.16',
    changePcnt: '0.15' },
  { symbol: 'GBP=',
    name: 'GBP/USD',
    value: '1.2149',
    change: '0.0065',
    changePcnt: '0.54' },
  { symbol: 'EUR=',
    name: 'EUR/USD',
    value: '1.1097',
    change: '-0.0009',
    changePcnt: '-0.081' },
  { symbol: 'USDCAD',
    name: 'US Dollar/Canadian Dollar FX Spot Rate',
    value: '1.327',
    change: '-0.0038',
    changePcnt: '-0.2855' },
  { symbol: 'AUD=',
    name: 'Australian Dollar/US Dollar FX Spot Rate',
    value: '0.6783',
    change: '0.0008',
    changePcnt: '0.12' },
  { symbol: '.RUT',
    name: 'Russell 2000 Index',
    value: '1493.30',
    change: '31.65',
    changePcnt: '2.17' },
  { symbol: '.GSPTSE',
    name: 'TSX COMP',
    value: '16139.64',
    change: '127.11',
    changePcnt: '0.79' } 
]

cnbc-market's People

Contributors

dependabot[bot] avatar madnight avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

leodev87

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.