New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ftx-api

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ftx-api - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

24

lib/rest-client.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc