Bisq markets: Volume and other fixes.

This commit is contained in:
softsimon
2021-03-10 23:02:55 +07:00
parent d99fd5d59a
commit 1d4ed85d50
9 changed files with 57 additions and 26 deletions

View File

@@ -401,12 +401,12 @@ class Routes {
}
}
public getBisqMarket24hVolumes(req: Request, res: Response) {
const result = bisqMarket.get24hVolumes();
public getBisqMarketVolumes7d(req: Request, res: Response) {
const result = bisqMarket.getVolumesByTime(604800);
if (result) {
res.json(result);
} else {
res.status(500).json(this.getBisqMarketErrorResponse('getBisqMarket24hVolumes error'));
res.status(500).json(this.getBisqMarketErrorResponse('getBisqMarketVolumes7d error'));
}
}