From ddca85b6ddbf52c862f2ae578364f3b610b98725 Mon Sep 17 00:00:00 2001 From: Gustavo Date: Mon, 18 Jul 2022 21:11:23 -0300 Subject: [PATCH] fix huobi ticker volume --- package.json | 2 +- src/connectors/huobi.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c619382..345e23a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@coinsamba/js-exchanges-connector", "description": "Collection of JavaScript implementations of cryptocurrency exchange APIs", - "version": "1.1.6", + "version": "1.1.7", "repository": "git@github.com:coinsambacom/js-exchanges-connector.git", "author": "Gustavo ", "license": "MIT", diff --git a/src/connectors/huobi.ts b/src/connectors/huobi.ts index bfd4e7e..843a280 100644 --- a/src/connectors/huobi.ts +++ b/src/connectors/huobi.ts @@ -76,7 +76,7 @@ export class huobi extends Exchange { last: t.close, ask: t.ask, bid: t.bid, - vol: t.vol, + vol: t.amount, }); } } @@ -98,7 +98,7 @@ export class huobi extends Exchange { last: res.close, ask: res.ask[0], bid: res.bid[0], - vol: res.vol, + vol: res.amount, }; }