1.0.0-beta.22 • Published 7 years ago
deriv-api v1.0.0-beta.22
deriv-api
Async Websocket API for deriv.app
Usage
There are two ways to establish a connection:
Use a previously opened connection:
import DerivAPI from 'DerivAPI'; const connection = new WebSocket('ws://...'); const api = new DerivAPI({ connection });Pass the arguments needed to create a connection:
import DerivAPI from 'DerivAPI'; const api = new DerivAPI({ endpoint: 'ws://...', appId: 1003, lang: 'EN' });
For more detailed examples see the wiki See also: DerivAPI reference
Development
npm installTo run the tests
npm testRun tests automatically on source code edits
npm run develRun linter
npm run syntaxRun all tests (lint + js tests)
npm run test_allPrettify the code (done automatically on commit)
npm run prettifyGenerate documentations
npm run docsRegenerate docs automatically on source code edit
Needs inotify to work.
npm run devel_docsServe docs on localhost and update on source code changes
npm run serve_docsGenerate html version of the docs and publish it to gh-pages
npm run gh-pagesBuild the package
npm run buildRun examples
DERIV_TOKEN=YourTokenHere npm run examples1.0.0-beta.22
7 years ago
1.0.0-beta.21-development
7 years ago
1.0.0-beta.21
7 years ago
1.0.0-beta.20
7 years ago
1.0.0-beta.19
7 years ago
1.0.0-beta.18
7 years ago
1.0.0-beta.17
7 years ago
1.0.0-beta.16
7 years ago
1.0.0-beta.15-development
7 years ago
1.0.0-beta.15
7 years ago
1.0.0-beta.14-development
7 years ago
1.0.0-beta.14
7 years ago
1.0.0-beta.13
7 years ago
1.0.0-beta.12
7 years ago
1.0.0-beta.11
7 years ago
1.0.0-beta.10
7 years ago
1.0.0-beta.9
7 years ago
1.0.0-beta.8-development
7 years ago
1.0.0-beta.8
7 years ago
1.0.0-beta.7-large
7 years ago
1.0.0-beta.7
7 years ago
1.0.0-beta.6
7 years ago
1.0.0-beta.4
7 years ago
1.0.0-beta.3
7 years ago
1.0.0-beta.2
7 years ago
1.0.0-beta.1
7 years ago
1.0.0-beta.0
7 years ago
1.0.0-beta
7 years ago