binance-api-node
Advanced tools
Comparing version 0.10.24 to 0.10.25
@@ -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 () { |
@@ -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 | ||
} | ||
} |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152507
2356
2986