1.1.5 • Published 5 days ago

@coti-io/coti-price-rate v1.1.5

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
5 days ago

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

1.2.0-beta.9

5 days ago

1.2.0-beta.8

6 days ago

1.2.0-beta.11

5 days ago

1.2.0-beta.10

5 days ago

1.1.5

5 days ago

1.1.4

5 days ago

1.1.3

5 days ago

1.1.2

6 days ago

1.2.0-beta.3

6 days ago

1.2.0-beta.2

6 days ago

1.2.0-beta.5

6 days ago

1.2.0-beta.4

6 days ago

1.2.0-beta.7

6 days ago

1.2.0-beta.6

6 days ago

1.2.0-beta.1

2 years ago

1.2.0-beta.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago