binance-api-node
Advanced tools
Comparing version 0.10.12 to 0.10.13
@@ -223,3 +223,9 @@ "use strict"; | ||
}, payload) : payload; | ||
return checkParams('order', newPayload, ['symbol', 'side', 'quantity']) && privCall(url, _objectSpread({ | ||
var requires = ['symbol', 'side']; | ||
if (!(newPayload.type === 'MARKET' && newPayload.quoteOrderQty)) { | ||
requires.push('quantity'); | ||
} | ||
return checkParams('order', newPayload, requires) && privCall(url, _objectSpread({ | ||
type: 'LIMIT' | ||
@@ -226,0 +232,0 @@ }, newPayload), 'POST'); |
@@ -277,2 +277,10 @@ // tslint:disable:interface-name | ||
futuresAccountBalance(options?: { recvWindow: number }): Promise<FuturesBalanceResult[]> | ||
marginOrder(options: NewOrder): Promise<Order> | ||
marginAllOrders(options: { symbol: string, useServerTime?: boolean }): Promise<QueryOrderResult[]> | ||
marginCancelOrder(options: { | ||
symbol: string | ||
orderId?: number | ||
useServerTime?: boolean | ||
}): Promise<CancelOrderResult> | ||
marginOpenOrders(options: { symbol?: string; useServerTime?: boolean }): Promise<QueryOrderResult[]> | ||
} | ||
@@ -279,0 +287,0 @@ |
{ | ||
"name": "binance-api-node", | ||
"version": "0.10.12", | ||
"version": "0.10.13", | ||
"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
112270
1913