Comparing version 1.0.2 to 1.0.3
@@ -68,4 +68,4 @@ "use strict"; | ||
getOrderbook(params) { | ||
const suffix = params.depth ? `depth=${params.depth}` : ''; | ||
return this.requestWrapper.get(`markets/${params.marketName}/orderbook?${suffix}`); | ||
const suffix = params.depth ? `?depth=${params.depth}` : ''; | ||
return this.requestWrapper.get(`markets/${params.marketName}/orderbook${suffix}`); | ||
} | ||
@@ -115,4 +115,4 @@ getTrades(params) { | ||
getPositions(showAveragePrice) { | ||
const suffix = showAveragePrice ? 'showAvgPrice=true' : ''; | ||
return this.requestWrapper.get(`positions?${suffix}`); | ||
const suffix = showAveragePrice ? '?showAvgPrice=true' : ''; | ||
return this.requestWrapper.get(`positions${suffix}`); | ||
} | ||
@@ -138,4 +138,4 @@ setAccountLeverage(leverage) { | ||
getDepositAddress(params) { | ||
const suffix = params.method ? `method=${params.method}` : ''; | ||
return this.requestWrapper.get(`wallet/deposit_address/${params.coin}?${suffix}`); | ||
const suffix = params.method ? `?method=${params.method}` : ''; | ||
return this.requestWrapper.get(`wallet/deposit_address/${params.coin}${suffix}`); | ||
} | ||
@@ -170,4 +170,4 @@ getDepositHistory(params) { | ||
getOpenOrders(market) { | ||
const suffix = market ? `market=${market}` : ''; | ||
return this.requestWrapper.get(`orders?${suffix}`); | ||
const suffix = market ? `?market=${market}` : ''; | ||
return this.requestWrapper.get(`orders${suffix}`); | ||
} | ||
@@ -233,4 +233,4 @@ getOrderHistory(params) { | ||
getQuoteStatus(quoteId, market) { | ||
const suffix = market ? `market=${market}` : ''; | ||
return this.requestWrapper.get(`otc/quotes/${quoteId}?${suffix}`); | ||
const suffix = market ? `?market=${market}` : ''; | ||
return this.requestWrapper.get(`otc/quotes/${quoteId}${suffix}`); | ||
} | ||
@@ -256,4 +256,4 @@ acceptQuote(quoteId) { | ||
getMarketInfo(market) { | ||
const suffix = market ? `market=${market}` : ''; | ||
return this.requestWrapper.get(`spot_margin/market_info?${suffix}`); | ||
const suffix = market ? `?market=${market}` : ''; | ||
return this.requestWrapper.get(`spot_margin/market_info${suffix}`); | ||
} | ||
@@ -260,0 +260,0 @@ getBorrowHistory() { |
{ | ||
"name": "ftx-api", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Node.js 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