@kava-labs/kava-tools
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -40,2 +40,6 @@ const util = require('util'); | ||
return 'kava'; | ||
case 'hard:usd': | ||
return 'hard-protocol'; | ||
case 'hard:usd:30': | ||
return 'hard-protocol'; | ||
default: | ||
@@ -115,2 +119,4 @@ throw `invalid market id ${marketID}`; | ||
return calculateAveragePriceCoinGecko(data); | ||
case 'hard:usd:30': | ||
return calculateAveragePriceCoinGecko(data); | ||
default: | ||
@@ -152,2 +158,6 @@ const market = loadCoinGeckoMarket(marketID); | ||
return 'KAVAUSDT'; | ||
case 'hard:usd': | ||
return 'HARDUSDT'; | ||
case 'hard:usd:30': | ||
return 'HARDUSDT'; | ||
case 'atom:usd': | ||
@@ -178,2 +188,6 @@ return 'ATOMUSDT'; | ||
return util.format(BINANCE_V3_KLINES_REQUEST, 'KAVAUSDT'); | ||
case 'hard:usd': | ||
return util.format(BINANCE_V3_TICKER_REQUEST, 'HARDUSDT'); | ||
case 'hard:usd:30': | ||
return util.format(BINANCE_V3_KLINES_REQUEST, 'HARDUSDT'); | ||
case 'atom:usd': | ||
@@ -200,2 +214,4 @@ return util.format(BINANCE_V3_TICKER_REQUEST, 'ATOMUSDT'); | ||
return calculateAveragePriceBinance(data); | ||
case 'hard:usd:30': | ||
return calculateAveragePriceBinance(data); | ||
default: | ||
@@ -202,0 +218,0 @@ return data.lastPrice; |
{ | ||
"name": "@kava-labs/kava-tools", | ||
"description": "Tools for interacting with the Kava blockchain", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
411570
25
1346