This package has been deprecated

Author message:

Use @reactivemarkets/switchboard-sdk

@reactivemarkets/platform-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

Reactive Platform JavaScript SDK

The Reactive Platform SDK for JavaScript. See Developer Docs for full documentation

Quick Start

import { FeedClient, toJS } from "@reactivemarkets/platform-sdk";

const feedClient = new FeedClient({
    apiKey: MY_API_KEY,
});

feedClient
    .on("open", () => {
        feedClient.subscribeMarketData({
            markets: ["BTCUSD-CNB"],
        });
    })
    .on("md-snapshot-l2", (snapshot) => {
        console.log(toJS(snapshot));
    });

Installing

npm i @reactivemarkets/platform-sdk

Building

To install all dependencies and build run:

git clone https://github.com/reactivemarkets/platform-js.git
cd platform-js
npm ci
npm run build

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

Readme

Keywords

Package Sidebar

Install

npm i @reactivemarkets/platform-sdk

Weekly Downloads

0

Version

0.5.1

License

Apache-2.0

Unpacked Size

138 kB

Total Files

29

Last publish

Collaborators

  • mmcdowell