binance-api-node
Advanced tools
Comparing version 0.10.47 to 0.10.48
@@ -254,3 +254,3 @@ "use strict"; | ||
var url = arguments.length > 2 ? arguments[2] : undefined; | ||
var newPayload = ['LIMIT'].includes(payload.type) || !payload.type ? _objectSpread({ | ||
var newPayload = ['LIMIT', 'STOP_LOSS_LIMIT', 'TAKE_PROFIT_LIMIT'].includes(payload.type) || !payload.type ? _objectSpread({ | ||
timeInForce: 'GTC' | ||
@@ -257,0 +257,0 @@ }, payload) : payload; |
@@ -671,3 +671,4 @@ "use strict"; | ||
walletBalance: b.wb, | ||
crossWalletBalance: b.cw | ||
crossWalletBalance: b.cw, | ||
balanceChange: b.bc | ||
}; | ||
@@ -674,0 +675,0 @@ }), |
@@ -191,2 +191,6 @@ // tslint:disable:interface-name | ||
export type GetOrderOcoOptions = | ||
| { orderListId: number } | ||
| { listClientOrderId: string } | ||
export interface GetInfo { | ||
@@ -283,2 +287,3 @@ spot: GetInfoDetails | ||
getOrder(options: GetOrderOptions & { useServerTime?: boolean }): Promise<QueryOrderResult> | ||
getOrderOco(options: GetOrderOcoOptions & { useServerTime?: boolean }): Promise<QueryOrderOcoResult> | ||
cancelOrder(options: { | ||
@@ -289,2 +294,7 @@ symbol: string | ||
}): Promise<CancelOrderResult> | ||
cancelOrderOco(options: { | ||
symbol: string | ||
orderListId: number | ||
useServerTime?: boolean | ||
}): Promise<CancelOrderOcoResult> | ||
cancelOpenOrders(options: { | ||
@@ -777,4 +787,6 @@ symbol: string | ||
| 'STOP' | ||
| 'STOP_LOSS_LIMIT' | ||
| 'STOP_MARKET' | ||
| 'TAKE_PROFIT_MARKET' | ||
| 'TAKE_PROFIT_LIMIT' | ||
| 'TRAILING_STOP_MARKET' | ||
@@ -1041,2 +1053,13 @@ | ||
export interface QueryOrderOcoResult { | ||
orderListId: number | ||
contingencyType: ContingencyType | ||
listStatusType: ListStatusType | ||
listOrderStatus: ListOrderStatus | ||
listClientOrderId: string | ||
transactionTime: number | ||
symbol: string | ||
orders: Order[] | ||
} | ||
export interface CancelOrderResult { | ||
@@ -1058,2 +1081,14 @@ symbol: string | ||
export interface CancelOrderOcoResult { | ||
orderListId: number | ||
contingencyType: ContingencyType | ||
listStatusType: ListStatusType | ||
listOrderStatus: ListOrderStatus | ||
listClientOrderId: string | ||
transactionTime: number | ||
symbol: string | ||
orders: Order[] | ||
orderReports: Order[] | ||
} | ||
export interface AvgPriceResult { | ||
@@ -1060,0 +1095,0 @@ mins: number |
{ | ||
"name": "binance-api-node", | ||
"version": "0.10.47", | ||
"version": "0.10.48", | ||
"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
185733
2740
3582