1.4.15 • Published 1 year ago

@grvt/client v1.4.15

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
1 year ago

GRVT

Node.js & JavaScript client for GRVT REST APIs & WebSockets

Installing

Using npm:

npm install @grvt/client

Using yarn:

yarn add @grvt/client

Using pnpm:

pnpm add @grvt/client

Once the package is installed, you can import the library using import or require approach:

import GRVT from '@grvt/client'

You can also use the default export, since the named export is just a re-export from the GRVT factory:

import GRVT from '@grvt/client'
console.log(
  new GRVT.MDG({
    host: 'https://market-data.dev.gravitymarkets.io',
    version: 'v1'
  })
)

If you use require for importing:

const GRVT =  require('@grvt/client')
console.log(
  new GRVT.MDG({
    host: 'https://market-data.dev.gravitymarkets.io',
    version: 'v1'
  })
)

To use WebSocket (available only in browsers/platforms that support WebSocket)

Browsers supported

import { EStreamEndpoints, WS } from '@grvt/client/ws'
console.log(new WS('wss://market-data.dev.gravitymarkets.io/ws'))
1.4.15

1 year ago

1.4.14

1 year ago

1.4.13

1 year ago

1.4.12

1 year ago

1.4.11

1 year ago

1.4.10

1 year ago

1.4.9

1 year ago

1.4.8

1 year ago

1.4.7

1 year ago

1.4.6

1 year ago

1.4.5

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.3.0

1 year ago

1.4.0

1 year ago