Comparing version 1.0.18 to 1.0.19
@@ -123,3 +123,3 @@ "use strict"; | ||
getPositions(showAveragePrice) { | ||
const suffix = showAveragePrice ? '?showAvgPrice=true' : ''; | ||
const suffix = showAveragePrice !== undefined ? `?showAvgPrice=${showAveragePrice}` : ''; | ||
return this.requestWrapper.get(`positions${suffix}`); | ||
@@ -126,0 +126,0 @@ } |
{ | ||
"name": "ftx-api", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"description": "Node.js/typescript connector for FTX's REST APIs and WebSockets", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
128810