@coti-io/coti-price-rate
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

Description

TypeScript repository to get exchange rate for cryptocurrencies. The rate is determined with an average of four exchanges coinbase, crypto.com, kucoin and coinbase.

Installation

$ npm install

Test

# unit tests
$ npm run test

Usage for coti exchange rate

    const cotiExchangeRate = await getAvgCotiExchangeRate();

Usage for any exchange rate

    // Expected object as input for any other coin or token
    BTC_SYMBOLS_OBJ = {
      binanceSymbol: 'BTCUSDT',
      kuCoinSymbol: 'BTC-USDT',
      cryptoComSymbol: 'btcusdc',
      coinBaseSymbol: 'BTC-USD',
    }
    const cotiExchangeRate = await getAvgSymbolExchangeRate(BTC_SYMBOLS_OBJ);

coti-price-rate

coti-price-rate

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.513latest
1.2.0-beta.11beta

Version History

VersionDownloads (Last 7 Days)Published
1.1.513
1.2.0-beta.111
1.2.0-beta.101
1.2.0-beta.91
1.1.41
1.1.31
1.2.0-beta.81
1.2.0-beta.71
1.2.0-beta.62
1.2.0-beta.51
1.2.0-beta.41
1.2.0-beta.31
1.2.0-beta.21
1.1.21
1.2.0-beta.11
1.2.0-beta.01
1.1.11
1.1.01
1.0.01

Package Sidebar

Install

npm i @coti-io/coti-price-rate

Weekly Downloads

32

Version

1.1.5

License

GPL-3.0

Unpacked Size

29.3 kB

Total Files

15

Last publish

Collaborators

  • smiller-coti
  • eitan-coti
  • yyanivv
  • gmesika-coti
  • yoni_readonly
  • yuval-coti
  • vladi-coti
  • yonine
  • cotitech