binance-api-node
Advanced tools
Comparing version 0.11.33 to 0.11.34
@@ -667,4 +667,4 @@ "use strict"; | ||
eventType: 'MARGIN_CALL', | ||
positions: m.p.reduce(function (out, cur) { | ||
out[cur.a] = { | ||
positions: m.p.map(function (cur) { | ||
return { | ||
symbol: cur.s, | ||
@@ -679,4 +679,3 @@ positionSide: cur.ps, | ||
}; | ||
return out; | ||
}, {}) | ||
}) | ||
}; | ||
@@ -683,0 +682,0 @@ }, |
@@ -188,13 +188,13 @@ // tslint:disable:interface-name | ||
} | ||
export interface CoinInformation { | ||
coin: string, | ||
depositAllEnable: boolean, | ||
free: number, | ||
freeze: number, | ||
ipoable: number, | ||
ipoing: number, | ||
isLegalMoney: boolean, | ||
locked: number, | ||
name: string, | ||
coin: string | ||
depositAllEnable: boolean | ||
free: number | ||
freeze: number | ||
ipoable: number | ||
ipoing: number | ||
isLegalMoney: boolean | ||
locked: number | ||
name: string | ||
networkList: NetworkInformation[] | ||
@@ -309,7 +309,7 @@ } | ||
| { | ||
symbol: string | ||
origClientOrderId: string | ||
useServerTime?: boolean | ||
newClientOrderId?: string | ||
} | ||
symbol: string | ||
origClientOrderId: string | ||
useServerTime?: boolean | ||
newClientOrderId?: string | ||
} | ||
@@ -323,7 +323,7 @@ export type GetOrderOcoOptions = | ||
| { | ||
symbol: string | ||
listClientOrderId: string | ||
useServerTime?: boolean | ||
newClientOrderId?: string | ||
} | ||
symbol: string | ||
listClientOrderId: string | ||
useServerTime?: boolean | ||
newClientOrderId?: string | ||
} | ||
@@ -526,4 +526,8 @@ export type cancelOpenOrdersOptions = { | ||
}): Promise<TradeResult[]> | ||
capitalConfigs(options?: { recvWindow?: number }): Promise<CoinInformation[]>; | ||
depositAddress(options: { coin: string, network?: string, recvWindow?: number }): Promise<DepositAddress> | ||
capitalConfigs(options?: { recvWindow?: number }): Promise<CoinInformation[]> | ||
depositAddress(options: { | ||
coin: string | ||
network?: string | ||
recvWindow?: number | ||
}): Promise<DepositAddress> | ||
withdraw(options: { | ||
@@ -1426,19 +1430,8 @@ coin: string | ||
| 'ACCOUNT_UPDATE' | ||
| 'ORDER_TRADE_UPDATE' | ||
| 'MARGIN_CALL' | ||
| 'ACCOUNT_CONFIG_UPDATE' | ||
export const enum EventType { | ||
ACCOUNT = 'account', | ||
BALANCE_UPDATE = 'balanceUpdate', | ||
OUTBOUND_ACCOUNT_POSITION = 'outboundAccountPosition', | ||
EXECUTION_REPORT = 'executionReport', | ||
ACCOUNT_UPDATE = 'ACCOUNT_UPDATE', | ||
ORDER_TRADE_UPDATE = 'ORDER_TRADE_UPDATE', | ||
MARGIN_CALL = 'MARGIN_CALL', | ||
ACCOUNT_CONFIG_UPDATE = 'ACCOUNT_CONFIG_UPDATE', | ||
} | ||
export interface MarginCall { | ||
eventType: EventType.MARGIN_CALL | ||
eventType: 'MARGIN_CALL' | ||
eventTime: number | ||
@@ -1469,3 +1462,3 @@ crossWalletBalance: string | ||
lastAccountUpdate: number | ||
eventType: EventType.ACCOUNT | ||
eventType: 'account' | ||
eventTime: number | ||
@@ -1479,3 +1472,3 @@ } | ||
eventTime: number | ||
eventType: EventType.BALANCE_UPDATE | ||
eventType: 'balanceUpdate' | ||
} | ||
@@ -1486,3 +1479,3 @@ | ||
eventTime: number | ||
eventType: EventType.OUTBOUND_ACCOUNT_POSITION | ||
eventType: 'outboundAccountPosition' | ||
lastAccountUpdate: number | ||
@@ -1496,3 +1489,3 @@ } | ||
eventTime: number | ||
eventType: EventType.EXECUTION_REPORT | ||
eventType: 'executionReport' | ||
executionType: ExecutionType_LT // Current execution type | ||
@@ -1562,3 +1555,3 @@ icebergQuantity: string // Iceberg quantity | ||
eventTime: number | ||
eventType: EventType.ACCOUNT_UPDATE | ||
eventType: 'ACCOUNT_UPDATE' | ||
transactionTime: number | ||
@@ -1571,4 +1564,4 @@ eventReasonType: EventReasonType | ||
export interface AccountConfigUpdateBase { | ||
eventTime: string | ||
eventType: EventType.ACCOUNT_CONFIG_UPDATE | ||
eventTime: number | ||
eventType: 'ACCOUNT_CONFIG_UPDATE' | ||
transactionTime: number | ||
@@ -1592,3 +1585,3 @@ type: 'ACCOUNT_CONFIG' | 'MULTI_ASSETS' | ||
export interface OrderUpdate { | ||
eventType: EventType.ORDER_TRADE_UPDATE | ||
eventType: 'ORDER_TRADE_UPDATE' | ||
eventTime: number | ||
@@ -1595,0 +1588,0 @@ transactionTime: number |
{ | ||
"name": "binance-api-node", | ||
"version": "0.11.33", | ||
"version": "0.11.34", | ||
"description": "A node API wrapper for Binance", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
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
225489
3645