parent
9a94fccf40
commit
1fc4e9530d
@ -139,7 +139,7 @@ class Bisq {
|
|||||||
|
|
||||||
private updatePrice() {
|
private updatePrice() {
|
||||||
request('https://markets.bisq.network/api/trades/?market=bsq_btc', { json: true }, (err, res, trades: BisqTrade[]) => {
|
request('https://markets.bisq.network/api/trades/?market=bsq_btc', { json: true }, (err, res, trades: BisqTrade[]) => {
|
||||||
if (err) { return logger.err('Error updating Bisq market price: ' + err); }
|
if (err || !Array.isArray(trades)) { return logger.err('Error updating Bisq market price: ' + err); }
|
||||||
|
|
||||||
const prices: number[] = [];
|
const prices: number[] = [];
|
||||||
trades.forEach((trade) => {
|
trades.forEach((trade) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user