Socket
Socket
Sign inDemoInstall

node-quites-lib

Package Overview
Dependencies
51
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-quites-lib

Official library for working with [API Quites](http://quites.site/)


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

node-quites-lib

Official library for working with API Quites

Install

npm init 

npm i node-quites-lib

Basic Usage

const Quites = require("node-quites-lib");

const client = new Quites();

client.getList().then(data => console.log(data));

client.on("message", message => {
  console.log(message);
});

Methods

  • client.getQuotes(...param);

    • Get quotes for a specific cryptocurrency pair.
    • Options:
      • param (Any available cryptocurrency in our API)
  • client.convert({ from, to, amount });

    • Convert from one cryptocurrency to another.
    • Options:
      • from (What cryptocurrency to convert from)
      • to (What cryptocurrency to convert to)
      • amount (Optional. The amount of received cryptocurrency)
  • client.getList({ pair, above, below });

    • Get a list of available cryptocurrency pairs.
    • Options:
      • above (Optional. Sorting cryptocurrencies by a price higher than the specified one)
      • below (Optional. Sorting cryptocurrencies at a price below the specified one)

Examples

client.getQuotes("BTC", "eth", "Xrp").then(data => console.log(data));

client.convert({ from: "BTC", to: "ETH", amount: 100 }).then(data => console.log(data));

client.getList({ above: 10, below: 20 }).then(data => console.log(data));

Keywords

FAQs

Last updated on 11 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc