Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @barchart/marketdata-api-js with all npm packages installed. Try it out:

@barchart/marketdata-api-js lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("@barchart/marketdata-api-js/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@barchart/marketdata-api-js v5.7.1

SDK for streaming market data from


AWS CodeBuild


Barchart offers an exhaustive array of market data for multiple asset classes from exchanges around the world. This SDK enables your applications to consume real-time market data, as follows:

  • A WebSocket connection is established between your application and Barchart's quote servers, then
  • Your application requests market data for one or more symbols, then
  • Your application receives a market data stream for subscribed symbols.


Complete documentation for this SDK can be accessed at either of the following:


Working demos are available for web browser and Node.js environments. Please refer to the documentation.

Package Managers

This library has been published to NPM as @barchart/marketdata-api-js. Install as follows:

npm install @barchart/marketdata-api-js -S


Source code is written in ES2018. Consequently, transpilation (or polyfill use) is recommended for use in web browsers.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free