binance-api-node
Advanced tools
Comparing version 0.8.13 to 0.8.14
@@ -317,2 +317,5 @@ 'use strict'; | ||
}, | ||
assetDetail: function assetDetail(payload) { | ||
return pCall('/wapi/v3/assetDetail.html', payload); | ||
}, | ||
@@ -319,0 +322,0 @@ getDataStream: function getDataStream() { |
@@ -42,2 +42,70 @@ // tslint:disable:interface-name | ||
export interface DepositAddress { | ||
address: string, | ||
addressTag: string, | ||
asset: string, | ||
success: boolean, | ||
} | ||
export interface WithrawResponse { | ||
id: string; | ||
msg: string; | ||
success: boolean; | ||
} | ||
export enum DepositStatus { | ||
PENDING = 0, | ||
SUCCESS = 1, | ||
} | ||
export interface DepositHistoryResponse { | ||
depositList: | ||
{ | ||
insertTime: number, | ||
amount: number; | ||
asset: string; | ||
address: string; | ||
txId: string; | ||
status: DepositStatus; | ||
}[]; | ||
success: boolean, | ||
} | ||
export enum WithdrawStatus { | ||
EMAIL_SENT = 0, | ||
CANCELLED = 1, | ||
AWAITING_APPROVAL = 2, | ||
REJECTED = 3, | ||
PROCESSING = 4, | ||
FAILURE = 5, | ||
COMPLETED = 6, | ||
} | ||
export interface WithdrawHistoryResponse { | ||
withdrawList: | ||
{ | ||
id: string; | ||
amount: number; | ||
address: string; | ||
asset: string; | ||
txId: string; | ||
applyTime: number; | ||
status: WithdrawStatus; | ||
}[]; | ||
success: boolean, | ||
} | ||
export interface AssetDetail { | ||
success: boolean, | ||
assetDetail: { | ||
[asset: string]: { | ||
minWithdrawAmount: string; | ||
depositStatus: boolean; | ||
withdrawFee: number; | ||
withdrawStatus: boolean; | ||
depositTip: string; | ||
} | ||
} | ||
} | ||
export interface Binance { | ||
@@ -65,2 +133,7 @@ accountInfo(options?: { useServerTime: boolean }): Promise<Account>; | ||
tradesHistory(options: { symbol: string, limit?: number, fromId?: number }): Promise<Trade[]>; | ||
depositAddress(options: { asset: string }): Promise<DepositAddress>; | ||
withdraw(options: { asset: string, address: string, amount: number; name?: string }): Promise<WithrawResponse>; | ||
assetDetail(): Promise<AssetDetail>; | ||
withdrawHistory(options: { asset: string, status?: number, startTime?: number, endTime?: number }): Promise<WithdrawHistoryResponse>; | ||
depositHistory(options: { asset: string, status?: number, startTime?: number, endTime?: number }): Promise<DepositHistoryResponse>; | ||
} | ||
@@ -75,3 +148,3 @@ | ||
depth: (pair: string | string[], callback: (depth: Depth) => void) => Function; | ||
partialDepth: (options: { symbol: string, level: number }, callback: (depth: PartialDepth) => void) => Function; | ||
partialDepth: (options: { symbol: string, level: number } | [{ symbol: string, level: number }], callback: (depth: PartialDepth) => void) => Function; | ||
ticker: (pair: string, callback: (ticker: Ticker) => void) => Function; | ||
@@ -82,3 +155,3 @@ allTickers: (callback: (tickers: Ticker[]) => void) => Function; | ||
aggTrades: (pairs: string[], callback: (trade: Trade) => void) => Function; | ||
user: ( callback: (msg: OutboundAccountInfo|ExecutionReport) => void) => Function; | ||
user: (callback: (msg: OutboundAccountInfo | ExecutionReport) => void) => Function; | ||
} | ||
@@ -85,0 +158,0 @@ |
{ | ||
"name": "binance-api-node", | ||
"version": "0.8.13", | ||
"version": "0.8.14", | ||
"description": "A node API wrapper for Binance", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
@@ -247,2 +247,3 @@ import crypto from 'crypto' | ||
tradeFee: payload => pCall('/wapi/v3/tradeFee.html', payload), | ||
assetDetail: payload => pCall('/wapi/v3/assetDetail.html', payload), | ||
@@ -249,0 +250,0 @@ getDataStream: () => pCall('/v1/userDataStream', null, 'POST', true), |
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
250006
3739
2269