This JavaScript implements HTTP and Socket.io API of https://swaprate.finance
API Reference - https://opiumprotocol.github.io/swaprate-js/
HTTP and Socket.io API Specification - https://opiumprotocol.github.io/swaprate-api/
npm i @opiumteam/swaprate-js
import { Api } from '@opiumteam/swaprate-js'
const api = new Api()
api
.getProducts()
.then(products => console.log(products))
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
Generated using TypeDoc