Skip to content

Commit

Permalink
Merge pull request #23 from coinsambacom/fix/novadax-missing-ask-bid
Browse files Browse the repository at this point in the history
Fix: fix novadax missing ask or bid
  • Loading branch information
itxtoledo authored Mar 5, 2024
2 parents cc07761 + de784e2 commit 48d8dd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@coinsamba/js-exchanges-connector",
"description": "Collection of JavaScript implementations of cryptocurrency exchange APIs",
"version": "2.1.15",
"version": "2.1.16",
"repository": "[email protected]:coinsambacom/js-exchanges-connector.git",
"author": "Gustavo <[email protected]>",
"license": "MIT",
Expand Down
12 changes: 6 additions & 6 deletions src/connectors/novadax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ interface INovaDAXBaseApiResponse {
}

interface INovaDAXTicker {
ask: string;
ask?: string;
baseVolume24h: string;
bid: string;
bid?: string;
high24h: string;
lastPrice: string;
low24h: string;
Expand Down Expand Up @@ -60,8 +60,8 @@ export class novadax<T = any> extends Exchange<T> {
base: t.symbol.split("_")[0] as string,
quote: t.symbol.split("_")[1] as string,
last: Number(t.lastPrice),
ask: Number(t.ask),
bid: Number(t.bid),
ask: Number(t.ask ?? 0),
bid: Number(t.bid ?? 0),
vol: Number(t.baseVolume24h),
}));
}
Expand All @@ -76,8 +76,8 @@ export class novadax<T = any> extends Exchange<T> {
base,
quote,
last: Number(res.lastPrice),
ask: Number(res.ask),
bid: Number(res.bid),
ask: Number(res.ask ?? 0),
bid: Number(res.bid ?? 0),
vol: Number(res.baseVolume24h),
};
}
Expand Down

0 comments on commit 48d8dd0

Please sign in to comment.