Catalog npm
PACKAGE EXPLORERView in registry

04_kencrypto

npm

Biblioteca em TypeScript que lidará com a busca e tratamento das informações de cotação e conversão das moedas.

Versions collected5
Direct dependencies3From release 1.0.4
Last observed20 Oct, 17:14 UTC

README

Current package documentation

API CoinMarketCap

Biblioteca em TypeScript que lidará com a busca e tratamento das informações de cotação e conversão das moedas.

Instalando a biblioteca:

$ yarn add 04_kencrypto

Importando a classe "CoinMarketCap":

import {CoinMarketCap} from "04_kencrypto"

const coinMarketCap = new CoinMarketCap('sua Api-Key')

A Biblioteca:

Possui duas funções(quotes e conversion) uma para listar a cotação atual e outra para fazer a conversão entre moedas.

Exemplo e resposta de "quotes"

const quotes_data = coinMarketCap.quotes(['BTC'])

{
    "data": {
        "BTC": {
            "id": 1,
            "name": "Bitcoin",
            "symbol": "BTC",
            "slug": "bitcoin",
            "date_added": "2013-04-28T00:00:00.000Z",
            "last_updated": "2021-08-26T17:44:11.000Z",
            "quote": {
                "USD": {
                    "price": 46963.215165006586,
                    "last_updated": "2021-08-26T17:44:11.000Z"
                }
            }
        }
    }
}

Exemplo e resposta de "conversion"

const conversion_data = coinMarketCap.conversion(0.005, 'BTC', ['ETH'])

{
    "data": {
        "id": 1,
        "symbol": "BTC",
        "name": "Bitcoin",
        "amount": 25.67,
        "last_updated": "2021-08-26T18:30:17.000Z",
        "quote": {
            "ETH": {
                "price": 386.5352847529818,
                "last_updated": "2021-08-26T18:30:16.000Z"
            }
        }
    }
}

Licence

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 5

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.4Registry latest28 Jan 20223
1.0.327 Jan 20223
1.0.227 Jan 20223
1.0.126 Jan 20223
1.0.026 Jan 20223

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

NOT_FOUND
GabrielBuenodev/04_kencrypto

Shared repository data · GitLab

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:14 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d284014257b659cf76790f7b529fd74abbf602f989f0de206d72a67912efd16d