Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

binance-api-node

Package Overview
Dependencies
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binance-api-node - npm Package Compare versions

Comparing version 0.10.24 to 0.10.25

9

dist/http-client.js

@@ -519,2 +519,11 @@ "use strict";

},
marginCreateIsolated: function marginCreateIsolated(payload) {
return privCall('/sapi/v1/margin/isolated/create', payload, 'POST');
},
marginIsolatedTransfer: function marginIsolatedTransfer(payload) {
return privCall('/sapi/v1/margin/isolated/transfer', payload, 'POST');
},
marginIsolatedTransferHistory: function marginIsolatedTransferHistory(payload) {
return privCall('/sapi/v1/margin/isolated/transfer', payload);
},
futuresPing: function futuresPing() {

@@ -521,0 +530,0 @@ return pubCall('/fapi/v1/ping').then(function () {

51

index.d.ts

@@ -361,4 +361,7 @@ // tslint:disable:interface-name

marginLoan(options: { asset: string; amount:number; useServerTime?: boolean }): Promise<{tranId:number}>
marginIsolatedAccount(options?: { symbol?: string; recvWindow?: number }): Promise<IsolatedMarginAccount>
marginIsolatedAccount(options?: { symbols?: string; recvWindow?: number }): Promise<IsolatedMarginAccount>
marginMaxBorrow(options: {asset: string, isolatedSymbol?: string, recvWindow?: number}): Promise<{amount: string, borrowLimit: string}>
marginCreateIsolated(options: {base: string, quote: string, recvWindow?: number}): Promise<{success: boolean, symbol: string}>
marginIsolatedTransfer(options: marginIsolatedTransfer): Promise<{tranId: string}>
marginIsolatedTransferHistory(options: marginIsolatedTransferHistory): Promise<marginIsolatedTransferHistoryResponse>
}

@@ -377,7 +380,19 @@

callback: (depth: Depth) => void,
transform?: boolean
) => ReconnectingWebSocketHandler
futuresDepth: (
pair: string | string[],
callback: (depth: Depth) => void,
transform?: boolean
) => ReconnectingWebSocketHandler
partialDepth: (
options: { symbol: string; level: number } | { symbol: string; level: number }[],
callback: (depth: PartialDepth) => void,
transform?: boolean
) => ReconnectingWebSocketHandler
futuresPartialDepth: (
options: { symbol: string; level: number } | { symbol: string; level: number }[],
callback: (depth: PartialDepth) => void,
transform?: boolean
) => ReconnectingWebSocketHandler
ticker: (

@@ -1035,2 +1050,36 @@ pair: string | string[],

}
export interface marginIsolatedTransfer {
asset: string
symbol: string
transFrom: "SPOT" | "ISOLATED_MARGIN"
transTo: "SPOT" | "ISOLATED_MARGIN"
amount: number
recvWindow?: number
}
export interface marginIsolatedTransferHistory {
asset?: string
symbol: string
transFrom?: "SPOT" | "ISOLATED_MARGIN"
transTo?: "SPOT" | "ISOLATED_MARGIN"
startTime?: number
endTime?: number
current?: number
size?: number
recvWindow?: number
}
export interface marginIsolatedTransferHistoryResponse {
rows: {
amount: string
asset: string
status: string
timestamp: number
txId: number
transFrom: "SPOT" | "ISOLATED_MARGIN"
transTo: "SPOT" | "ISOLATED_MARGIN"
}[]
total: number
}
}

2

package.json
{
"name": "binance-api-node",
"version": "0.10.24",
"version": "0.10.25",
"description": "A node API wrapper for Binance",

@@ -5,0 +5,0 @@ "main": "dist",

Sorry, the diff of this file is too big to display

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