@opiumteam/swaprate-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

SwapRate JS SDK

This JavaScript implements HTTP and Socket.io API of https://swaprate.finance

Documentation

API Reference - https://opiumprotocol.github.io/swaprate-js/

HTTP and Socket.io API Specification - https://opiumprotocol.github.io/swaprate-api/

Installation

npm i @opiumteam/swaprate-js

Examples

Get products list

import { Api } from '@opiumteam/swaprate-js'

const api = new Api()

api
  .getProducts()
  .then(products => console.log(products))

Development

Clone project and install dev dependencies

npm i

Run TS build, linter and docs

npm run build
npm run lint
npm run docs

Submit pull requests

Readme

Keywords

none

Package Sidebar

Install

npm i @opiumteam/swaprate-js

Weekly Downloads

0

Version

1.0.8

License

ISC

Unpacked Size

27.5 kB

Total Files

20

Last publish

Collaborators

  • timur_nss
  • rbiosas
  • alirun
  • metasign