JSPM

  • Created
  • Published
  • Downloads 105
  • Score
    100M100P100Q91100F
  • License MIT

Barchart client library for streaming market data from JERQ servers using JavaScript

Package Exports

  • @barchart/marketdata-api-js/lib/utilities/convert/baseCodeToUnitCode
  • @barchart/marketdata-api-js/lib/utilities/format/price

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@barchart/marketdata-api-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@barchart/marketdata-api-js

A JavaScript library for accessing streaming market data from Barchart.

Overview

Include streaming market data in your applications. Asset classes include equities, futures, and forex. All you need is a username/password from Barchart and your app can be live within a matter of minutes. To obtain your credentials, please contact solutions@barchart.com.

Supported Environments

  • Browsers - Your target browser must support WebSockets (which all modern browsers do). Also, the source code is written using ES6, so transpilation (with appropriate polyfills) is recommended before distribution.
  • Node.js - Node.js does not natively support WebSockets. Instead, a third-party library called WS is responsible for maintaining the WebSocket connection to Barchart's servers.

Examples

Browser

Open the following file in your browser:

./example/browser/example.html

Or, visit the hosted page at:

Node.js

Ensure you're running a recent version of Node.js (e.g. v10.16.0) and execute the example script as follows:

> node example/node/example.js {host} {username} {password} {comma-delimited symbol list}

Documentation

Code

JSDoc is used to document the source code. HTML documentation can be generated (into a "docs" folder), as follows:

> gulp document

Package Managers

This library has been published as a public module to NPM as @barchart/marketdata-api-js.

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