binance-api-node
Advanced tools
Comparing version 0.10.19 to 0.10.20
@@ -506,2 +506,5 @@ "use strict"; | ||
}, | ||
marginIsolatedAccount: function marginIsolatedAccount(payload) { | ||
return privCall('/sapi/v1/margin/isolated/account', payload); | ||
}, | ||
futuresPing: function futuresPing() { | ||
@@ -508,0 +511,0 @@ return pubCall('/fapi/v1/ping').then(function () { |
@@ -298,2 +298,3 @@ // tslint:disable:interface-name | ||
marginLoan(options: { asset: string; amount:number; useServerTime?: boolean }): Promise<{tranId:number}> | ||
marginIsolatedAccount(options?: { symbol?: string; recvWindow?: number }): Promise<IsolatedMarginAccount> | ||
} | ||
@@ -935,2 +936,36 @@ | ||
} | ||
export interface IsolatedMarginAccount { | ||
assets: IsolatedAsset[] | ||
totalAssetOfBtc: string | ||
totalLiabilityOfBtc: string | ||
totalNetAssetOfBtc: string | ||
} | ||
export interface IsolatedAsset { | ||
baseAsset: IsolatedAssetSingle | ||
quoteAsset: IsolatedAssetSingle | ||
symbol: string | ||
isolatedCreated: boolean | ||
marginLevel: string | ||
marginLevelStatus: 'EXCESSIVE' | 'NORMAL' | 'MARGIN_CALL' | 'PRE_LIQUIDATION' | 'FORCE_LIQUIDATION' | ||
marginRatio: string | ||
indexPrice: string | ||
liquidatePrice: string | ||
liquidateRate: string | ||
tradeEnabled: boolean | ||
} | ||
export interface IsolatedAssetSingle { | ||
asset: string | ||
borrowEnabled: boolean | ||
borrowed: string | ||
free: string | ||
interest: string | ||
locked: string | ||
netAsset: string | ||
netAssetOfBtc: string | ||
repayEnabled: boolean | ||
totalAsset: string | ||
} | ||
} |
{ | ||
"name": "binance-api-node", | ||
"version": "0.10.19", | ||
"version": "0.10.20", | ||
"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
143379
2233
2785