Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

e-04-kencrypto

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

e-04-kencrypto

Get the current quote and conversions of your favorite cryptos, based on the [coinmarketcap api](https://coinmarketcap.com/api/).

  • 1.0.3
  • npm
  • Socket score

Version published
Weekly downloads
8
Maintainers
1
Weekly downloads
 
Created
Source

KenCrypto

Get the current quote and conversions of your favorite cryptos, based on the coinmarketcap api.

Description

First of all, you need to go to their website, sign in and get your personal key. Then put it on the .env fileOfficial Site.

Instalation

$ npm i KenCrypto

or

$ yarn add KenCrypto

How to use

js import { Kencrypto } from "kencryto";

Create an instance:

js const hcryptocvn = new hCryptoCvn(API_KEY)

With that instance u can use two methods:

  • quotes

Inside an array you can use an string with the crypto sign.

js hcryptocvn.quotes(['BTC'])

The return is a promise where u can get the response with then()

example:

js hcryptocvn.quotes(['BTC']).then((response) => { const { data, status } = response console.log(data) });

  • conversion

The conversion receive 3 parameters: first parameter is the crypto sign to conversion, the second is the value of the conversion and e the third is an array with the signs to be converted.

js hcryptocvn.conversion('BTC', 0.010, ['ETC'])

Also the response is a promise where u can get the response with then()

example:

js hcryptocvn.conversion('BTC', 0.010, ['ETC']).then((response) => { const { data, status } = response console.log(data) });

Tecnologies

-TypeScript

FAQs

Package last updated on 27 Jan 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc