From de6c19e877bd4c1b99d0deed61246bd429a7c437 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Tue, 3 Aug 2021 09:23:10 -0700 Subject: [PATCH] fix(eCash): Fixing price feed --- package.json | 2 +- src/routes/v4/price.js | 2 +- src/routes/v5/price.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 717fded..7f0e24a 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "scripts": { "start": "node ./src/app.js", "dev": "nodemon ./dist/app.js", - "test": "npm run lint && npm run test-v4", + "test": "npm run lint && npm run test-v5", "lint": "standard --env mocha --fix", "test-v4": "export NETWORK=mainnet && nyc --reporter=text mocha --exit --timeout 60000 test/v4/", "test-v5": "export NETWORK=mainnet && nyc --reporter=text mocha --exit --timeout 60000 test/v5/", diff --git a/src/routes/v4/price.js b/src/routes/v4/price.js index 5156458..7a2aef3 100644 --- a/src/routes/v4/price.js +++ b/src/routes/v4/price.js @@ -25,7 +25,7 @@ class Price { this.priceUrl = 'https://api.coinbase.com/v2/exchange-rates?currency=BCH' this.coinexPriceUrl = - 'https://api.coinex.com/v1/market/ticker?market=bchausdt' + 'https://api.coinex.com/v1/market/ticker?market=xecusdt' this.bchCoinexPriceUrl = 'https://api.coinex.com/v1/market/ticker?market=bchusdt' diff --git a/src/routes/v5/price.js b/src/routes/v5/price.js index c426475..8053eee 100644 --- a/src/routes/v5/price.js +++ b/src/routes/v5/price.js @@ -25,7 +25,7 @@ class Price { this.priceUrl = 'https://api.coinbase.com/v2/exchange-rates?currency=BCH' this.coinexPriceUrl = - 'https://api.coinex.com/v1/market/ticker?market=bchausdt' + 'https://api.coinex.com/v1/market/ticker?market=xecusdt' this.bchCoinexPriceUrl = 'https://api.coinex.com/v1/market/ticker?market=bchusdt'