binance-api-node
Advanced tools
Comparing version 0.11.6 to 0.11.7
@@ -279,4 +279,4 @@ // tslint:disable:interface-name | ||
exchangeInfo(): Promise<ExchangeInfo> | ||
order(options: NewOrder): Promise<Order> | ||
orderTest(options: NewOrder): Promise<Order> | ||
order(options: NewOrderSpot): Promise<Order> | ||
orderTest(options: NewOrderSpot): Promise<Order> | ||
orderOco(options: NewOcoOrder): Promise<OcoOrder> | ||
@@ -458,3 +458,3 @@ ping(): Promise<boolean> | ||
}): Promise<FuturesIncomeResult[]> | ||
marginOrder(options: NewOrder): Promise<Order> | ||
marginOrder(options: NewOrderMargin): Promise<Order> | ||
marginGetOrder(options: { | ||
@@ -751,23 +751,2 @@ symbol: string | ||
export interface NewOrder { | ||
icebergQty?: string | ||
newClientOrderId?: string | ||
price?: string | ||
quantity?: string | ||
recvWindow?: number | ||
side: OrderSide | ||
stopPrice?: string | ||
symbol: string | ||
timeInForce?: TimeInForce | ||
useServerTime?: boolean | ||
type: OrderType | ||
newOrderRespType?: NewOrderRespType | ||
isIsolated?: string | boolean | ||
quoteOrderQty?: string | ||
sideEffectType?: SideEffectType | ||
reduceOnly?: string | ||
activationPrice?: string | ||
callbackRate?: string | ||
} | ||
export interface NewFuturesOrder { | ||
@@ -811,2 +790,46 @@ symbol: string | ||
export interface NewOrderParent { | ||
symbol: string | ||
side: OrderSide | ||
type: OrderType | ||
newClientOrderId?: string | ||
newOrderRespType?: NewOrderRespType | ||
recvWindow?: number | ||
} | ||
export interface NewOrderMarketBase extends NewOrderParent { | ||
type: OrderType.MARKET | ||
quantity: string | ||
} | ||
export interface NewOrderMarketQuote extends NewOrderParent { | ||
type: OrderType.MARKET | ||
quoteOrderQty: string | ||
} | ||
export interface NewOrderLimit extends NewOrderParent { | ||
type: OrderType.LIMIT | ||
quantity: string | ||
price: string | ||
icebergQty?: string | ||
} | ||
export interface NewOrderSL extends NewOrderParent { | ||
type: OrderType.STOP_LOSS_LIMIT | OrderType.TAKE_PROFIT_LIMIT | ||
quantity: string | ||
price: string | ||
stopPrice: string | ||
icebertQty?: string | ||
} | ||
export interface NewMarginOrderParent { | ||
isIsolated?: 'TRUE' | 'FALSE' | boolean | ||
sideEffectType?: SideEffectType | ||
timeInForce?: TimeInForce | ||
} | ||
export type NewOrderSpot = NewOrderMarketBase | NewOrderMarketQuote | NewOrderLimit | NewOrderSL | ||
export type NewOrderMargin = NewOrderSpot & NewMarginOrderParent | ||
export enum SideEffectType { | ||
@@ -813,0 +836,0 @@ NO_SIDE_EFFECT = 'NO_SIDE_EFFECT', |
{ | ||
"name": "binance-api-node", | ||
"version": "0.11.6", | ||
"version": "0.11.7", | ||
"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
195961
3739
3063