binance 3.5.6 → 3.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/types/futures.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BooleanString,
|
|
1
|
+
import { BooleanString, ExchangeFilter, KlineInterval, numberInString, OrderBookRow, OrderSide, OrderStatus, OrderTimeInForce, OrderType, RateLimiter, SelfTradePreventionMode, SymbolIcebergPartsFilter, SymbolLotSizeFilter, SymbolMarketLotSizeFilter, SymbolMaxIcebergOrdersFilter, SymbolMaxPositionFilter, SymbolPriceFilter } from './shared';
|
|
2
2
|
export type FuturesContractType = 'PERPETUAL' | 'CURRENT_MONTH' | 'NEXT_MONTH' | 'CURRENT_QUARTER' | 'NEXT_QUARTER';
|
|
3
3
|
export interface ContinuousContractKlinesParams {
|
|
4
4
|
pair: string;
|
|
@@ -76,7 +76,7 @@ export interface NewFuturesOrderParams<numberType = number> {
|
|
|
76
76
|
activationPrice?: numberType;
|
|
77
77
|
callbackRate?: numberType;
|
|
78
78
|
workingType?: WorkingType;
|
|
79
|
-
priceProtect?:
|
|
79
|
+
priceProtect?: BooleanString;
|
|
80
80
|
newOrderRespType?: 'ACK' | 'RESULT';
|
|
81
81
|
selfTradePreventionMode?: SelfTradePreventionMode;
|
|
82
82
|
priceMatch?: PriceMatchMode;
|
|
@@ -813,7 +813,7 @@ export interface FuturesNewAlgoOrderParams {
|
|
|
813
813
|
workingType?: WorkingType;
|
|
814
814
|
priceMatch?: PriceMatchMode;
|
|
815
815
|
closePosition?: BooleanString;
|
|
816
|
-
priceProtect?:
|
|
816
|
+
priceProtect?: BooleanString;
|
|
817
817
|
reduceOnly?: BooleanString;
|
|
818
818
|
activatePrice?: numberInString;
|
|
819
819
|
callbackRate?: numberInString;
|
package/lib/types/futures.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"futures.js","sourceRoot":"","sources":["../../src/types/futures.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"futures.js","sourceRoot":"","sources":["../../src/types/futures.ts"],"names":[],"mappings":";;;AA+EA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,sCAAkB,CAAA;IAClB,wCAAoB,CAAA;AACtB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAID,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,8CAAwB,CAAA;IACxB,gDAA0B,CAAA;AAC5B,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AA+DD,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACtC,yGAAqB,CAAA;IACrB,+GAAwB,CAAA;AAC1B,CAAC,EAHW,4BAA4B,4CAA5B,4BAA4B,QAGvC"}
|
package/lib/types/shared.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export type numberInString = string | number;
|
|
2
2
|
export type ExchangeSymbol = string;
|
|
3
3
|
export type BooleanString = 'true' | 'false';
|
|
4
|
-
export type BooleanStringCapitalised = 'TRUE' | 'FALSE';
|
|
5
4
|
export type BinanceBaseUrlKey = 'spot' | 'spot1' | 'spot2' | 'spot3' | 'spot4' | 'spottest' | 'usdmtest' | 'usdm' | 'coinm' | 'coinmtest' | 'voptions' | 'voptionstest' | 'papi' | 'www';
|
|
6
5
|
/**
|
|
7
6
|
* Time in force. Note: `GTE_GTC` is not officially documented, use at your own risk.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FuturesAlgoConditionalOrderTypes, FuturesAlgoOrderType, FuturesOrderType, PositionSide, PriceMatchMode, WorkingType } from '../futures';
|
|
2
|
-
import { BooleanString,
|
|
2
|
+
import { BooleanString, KlineInterval, numberInString, OrderResponseType, OrderSide, OrderTimeInForce, OrderType, SelfTradePreventionMode } from '../shared';
|
|
3
3
|
/**
|
|
4
4
|
* Simple request params with timestamp (required) & recv window (optional)
|
|
5
5
|
*/
|
|
@@ -528,7 +528,7 @@ export interface WSAPINewFuturesOrderRequest<numberType = numberInString> {
|
|
|
528
528
|
activationPrice?: numberType;
|
|
529
529
|
callbackRate?: numberType;
|
|
530
530
|
workingType?: WorkingType;
|
|
531
|
-
priceProtect?:
|
|
531
|
+
priceProtect?: BooleanString;
|
|
532
532
|
newOrderRespType?: 'ACK' | 'RESULT';
|
|
533
533
|
selfTradePreventionMode?: SelfTradePreventionMode;
|
|
534
534
|
priceMatch?: PriceMatchMode;
|
|
@@ -600,7 +600,7 @@ export interface WSAPINewFuturesAlgoOrderRequest<numberType = numberInString> {
|
|
|
600
600
|
activatePrice?: numberInString;
|
|
601
601
|
callbackRate?: numberInString;
|
|
602
602
|
workingType?: WorkingType;
|
|
603
|
-
priceProtect?:
|
|
603
|
+
priceProtect?: BooleanString;
|
|
604
604
|
newOrderRespType?: OrderResponseType;
|
|
605
605
|
priceMatch?: PriceMatchMode;
|
|
606
606
|
selfTradePreventionMode?: SelfTradePreventionMode;
|
package/package.json
CHANGED