0.5.1 • Published 5 years ago
@reactivemarkets/platform-sdk v0.5.1
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-sdkBuilding
To install all dependencies and build run:
git clone https://github.com/reactivemarkets/platform-js.git
cd platform-js
npm ci
npm run buildVersioning
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.