binance 3.0.0-beta.0 → 3.0.0-beta.10
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/README.md +305 -75
- package/index.js +1 -1
- package/lib/coinm-client.d.ts +40 -22
- package/lib/coinm-client.js +4 -16
- package/lib/coinm-client.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/main-client.d.ts +94 -30
- package/lib/main-client.js +68 -36
- package/lib/main-client.js.map +1 -1
- package/lib/portfolio-client.js.map +1 -1
- package/lib/types/coin.d.ts +1 -0
- package/lib/types/futures.d.ts +15 -4
- package/lib/types/futures.js.map +1 -1
- package/lib/types/portfolio-margin.d.ts +0 -9
- package/lib/types/shared.d.ts +14 -13
- package/lib/types/spot.d.ts +174 -11
- package/lib/types/spot.js.map +1 -1
- package/lib/types/websockets/ws-api-requests.d.ts +480 -2
- package/lib/types/websockets/ws-api-responses.d.ts +565 -1
- package/lib/types/websockets/ws-api.d.ts +157 -60
- package/lib/types/websockets/ws-api.js +47 -3
- package/lib/types/websockets/ws-api.js.map +1 -1
- package/lib/types/websockets/ws-events-formatted.d.ts +18 -14
- package/lib/types/websockets/ws-events-raw.d.ts +4 -2
- package/lib/types/websockets/ws-general.d.ts +8 -18
- package/lib/usdm-client.d.ts +45 -27
- package/lib/usdm-client.js +7 -19
- package/lib/usdm-client.js.map +1 -1
- package/lib/util/BaseRestClient.js +20 -6
- package/lib/util/BaseRestClient.js.map +1 -1
- package/lib/util/BaseWSClient.d.ts +14 -3
- package/lib/util/BaseWSClient.js +87 -30
- package/lib/util/BaseWSClient.js.map +1 -1
- package/lib/util/beautifier-maps.d.ts +32 -0
- package/lib/util/beautifier-maps.js +41 -0
- package/lib/util/beautifier-maps.js.map +1 -1
- package/lib/util/beautifier.d.ts +1 -0
- package/lib/util/beautifier.js +44 -9
- package/lib/util/beautifier.js.map +1 -1
- package/lib/util/browser-support.d.ts +1 -1
- package/lib/util/browser-support.js +1 -41
- package/lib/util/browser-support.js.map +1 -1
- package/lib/util/node-support.js +7 -5
- package/lib/util/node-support.js.map +1 -1
- package/lib/util/requestUtils.d.ts +22 -4
- package/lib/util/requestUtils.js +76 -25
- package/lib/util/requestUtils.js.map +1 -1
- package/lib/util/rounding.d.ts +8 -0
- package/lib/util/rounding.js +41 -0
- package/lib/util/rounding.js.map +1 -0
- package/lib/util/typeGuards.d.ts +31 -3
- package/lib/util/typeGuards.js +105 -8
- package/lib/util/typeGuards.js.map +1 -1
- package/lib/util/webCryptoAPI.js +20 -45
- package/lib/util/webCryptoAPI.js.map +1 -1
- package/lib/util/websockets/WsStore.js +7 -2
- package/lib/util/websockets/WsStore.js.map +1 -1
- package/lib/util/websockets/enum.d.ts +11 -0
- package/lib/util/websockets/enum.js +24 -0
- package/lib/util/websockets/enum.js.map +1 -0
- package/lib/util/websockets/rest-client-cache.d.ts +3 -3
- package/lib/util/websockets/rest-client-cache.js +9 -9
- package/lib/util/websockets/rest-client-cache.js.map +1 -1
- package/lib/util/websockets/user-data-stream-manager.js +7 -8
- package/lib/util/websockets/user-data-stream-manager.js.map +1 -1
- package/lib/util/websockets/websocket-util.d.ts +27 -6
- package/lib/util/websockets/websocket-util.js +147 -52
- package/lib/util/websockets/websocket-util.js.map +1 -1
- package/lib/websocket-api-client.d.ts +401 -0
- package/lib/websocket-api-client.js +647 -0
- package/lib/websocket-api-client.js.map +1 -0
- package/lib/websocket-client-legacy.d.ts +5 -3
- package/lib/websocket-client-legacy.js +11 -10
- package/lib/websocket-client-legacy.js.map +1 -1
- package/lib/websocket-client.d.ts +26 -11
- package/lib/websocket-client.js +185 -139
- package/lib/websocket-client.js.map +1 -1
- package/package.json +3 -3
package/lib/coinm-client.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { ClassicPortfolioMarginAccount, ClassicPortfolioMarginNotionalLimit, CoinMAccountTradeParams, CoinMOpenInterest, CoinMPositionTrade, CoinMSymbolOrderBookTicker, FundingRate, FuturesTransactionHistoryDownloadLink, GetClassicPortfolioMarginNotionalLimitParams, PositionRisk
|
|
2
|
+
import { ClassicPortfolioMarginAccount, ClassicPortfolioMarginNotionalLimit, CoinMAccountTradeParams, CoinMOpenInterest, CoinMPositionTrade, CoinMSymbolOrderBookTicker, FundingRate, FuturesTransactionHistoryDownloadLink, GetClassicPortfolioMarginNotionalLimitParams, PositionRisk } from './types/coin';
|
|
3
3
|
import { AggregateFuturesTrade, CancelAllOpenOrdersResult, CancelFuturesOrderResult, CancelMultipleOrdersParams, CancelOrdersTimeoutParams, ChangeStats24hr, ContinuousContractKlinesParams, ForceOrderResult, FundingRateHistory, FuturesCoinMAccountBalance, FuturesCoinMAccountInformation, FuturesCoinMBasisParams, FuturesCoinMTakerBuySellVolumeParams, FuturesDataPaginatedParams, FuturesExchangeInfo, FuturesOrderBook, GetForceOrdersParams, GetIncomeHistoryParams, GetPositionMarginChangeHistoryParams, IncomeHistory, IndexPriceConstituents, IndexPriceKlinesParams, MarkPrice, ModeChangeResult, ModifyFuturesOrderParams, ModifyFuturesOrderResult, NewFuturesOrderParams, NewOrderError, NewOrderResult, OrderAmendment, OrderResult, PositionModeParams, PositionModeResponse, QuarterlyContractSettlementPrice, RawFuturesTrade, RebateDataOverview, SetCancelTimeoutResult, SetIsolatedMarginParams, SetIsolatedMarginResult, SetLeverageParams, SetLeverageResult, SetMarginTypeParams, SymbolKlinePaginatedParams, SymbolLeverageBracketsResult, UserCommissionRate } from './types/futures';
|
|
4
|
-
import { BasicSymbolPaginatedParams,
|
|
4
|
+
import { BasicSymbolPaginatedParams, CancelOrderParams, GenericCodeMsgError, GetAllOrdersParams, GetOrderModifyHistoryParams, GetOrderParams, HistoricalTradesParams, Kline, KlinesParams, OrderBookParams, RecentTradesParams, SymbolFromPaginatedRequestFromId, SymbolPrice } from './types/shared';
|
|
5
5
|
import BaseRestClient from './util/BaseRestClient';
|
|
6
6
|
import { RestClientOptions } from './util/requestUtils';
|
|
7
7
|
export declare class CoinMClient extends BaseRestClient {
|
|
8
8
|
private clientId;
|
|
9
|
-
constructor(restClientOptions?: RestClientOptions, requestOptions?: AxiosRequestConfig
|
|
9
|
+
constructor(restClientOptions?: RestClientOptions, requestOptions?: AxiosRequestConfig);
|
|
10
10
|
/**
|
|
11
11
|
* Abstraction required by each client to aid with time sync / drift handling
|
|
12
12
|
*/
|
|
@@ -25,7 +25,9 @@ export declare class CoinMClient extends BaseRestClient {
|
|
|
25
25
|
/**
|
|
26
26
|
* Index Price and Mark Price
|
|
27
27
|
*/
|
|
28
|
-
getMarkPrice(params?:
|
|
28
|
+
getMarkPrice(params?: {
|
|
29
|
+
symbol?: string;
|
|
30
|
+
}): Promise<MarkPrice | MarkPrice[]>;
|
|
29
31
|
getFundingRateHistory(params?: Partial<BasicSymbolPaginatedParams>): Promise<FundingRateHistory[]>;
|
|
30
32
|
getFundingRate(params?: {
|
|
31
33
|
symbol?: string;
|
|
@@ -35,19 +37,26 @@ export declare class CoinMClient extends BaseRestClient {
|
|
|
35
37
|
getIndexPriceKlines(params: IndexPriceKlinesParams): Promise<Kline[]>;
|
|
36
38
|
getMarkPriceKlines(params: SymbolKlinePaginatedParams): Promise<Kline[]>;
|
|
37
39
|
getPremiumIndexKlines(params: KlinesParams): Promise<Kline[]>;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
get24hrChangeStatistics(params?: {
|
|
41
|
+
symbol?: string;
|
|
42
|
+
pair?: string;
|
|
43
|
+
}): Promise<ChangeStats24hr | ChangeStats24hr[]>;
|
|
44
|
+
getSymbolPriceTicker(params?: {
|
|
45
|
+
symbol?: string;
|
|
46
|
+
pair?: string;
|
|
47
|
+
}): Promise<SymbolPrice | SymbolPrice[]>;
|
|
48
|
+
getSymbolOrderBookTicker(params?: {
|
|
49
|
+
symbol?: string;
|
|
50
|
+
pair?: string;
|
|
51
|
+
}): Promise<CoinMSymbolOrderBookTicker[]>;
|
|
45
52
|
getOpenInterest(params: {
|
|
46
53
|
symbol: string;
|
|
47
54
|
}): Promise<CoinMOpenInterest>;
|
|
48
55
|
getOpenInterestStatistics(params: FuturesDataPaginatedParams): Promise<any>;
|
|
49
56
|
getTopTradersLongShortAccountRatio(params: FuturesDataPaginatedParams): Promise<any>;
|
|
50
|
-
getTopTradersLongShortPositionRatio(params: FuturesDataPaginatedParams
|
|
57
|
+
getTopTradersLongShortPositionRatio(params: FuturesDataPaginatedParams & {
|
|
58
|
+
pair?: string;
|
|
59
|
+
}): Promise<any>;
|
|
51
60
|
getGlobalLongShortAccountRatio(params: FuturesDataPaginatedParams): Promise<any>;
|
|
52
61
|
getTakerBuySellVolume(params: FuturesCoinMTakerBuySellVolumeParams): Promise<any>;
|
|
53
62
|
getCompositeSymbolIndex(params: FuturesCoinMBasisParams): Promise<any>;
|
|
@@ -88,21 +97,30 @@ export declare class CoinMClient extends BaseRestClient {
|
|
|
88
97
|
getOrderModifyHistory(params: GetOrderModifyHistoryParams): Promise<OrderAmendment[]>;
|
|
89
98
|
cancelOrder(params: CancelOrderParams): Promise<CancelFuturesOrderResult>;
|
|
90
99
|
cancelMultipleOrders(params: CancelMultipleOrdersParams): Promise<(CancelFuturesOrderResult | GenericCodeMsgError)[]>;
|
|
91
|
-
cancelAllOpenOrders(params:
|
|
100
|
+
cancelAllOpenOrders(params: {
|
|
101
|
+
symbol?: string;
|
|
102
|
+
}): Promise<CancelAllOpenOrdersResult>;
|
|
92
103
|
setCancelOrdersOnTimeout(params: CancelOrdersTimeoutParams): Promise<SetCancelTimeoutResult>;
|
|
93
104
|
getOrder(params: GetOrderParams): Promise<OrderResult>;
|
|
94
105
|
getAllOrders(params: GetAllOrdersParams): Promise<OrderResult[]>;
|
|
95
|
-
getAllOpenOrders(params?:
|
|
106
|
+
getAllOpenOrders(params?: {
|
|
107
|
+
symbol?: string;
|
|
108
|
+
}): Promise<OrderResult[]>;
|
|
96
109
|
getCurrentOpenOrder(params: GetOrderParams): Promise<OrderResult>;
|
|
97
110
|
getForceOrders(params?: GetForceOrdersParams): Promise<ForceOrderResult[]>;
|
|
98
111
|
getAccountTrades(params: CoinMAccountTradeParams & {
|
|
99
112
|
orderId?: number;
|
|
100
113
|
}): Promise<CoinMPositionTrade[]>;
|
|
101
|
-
getPositions(
|
|
114
|
+
getPositions(params?: {
|
|
115
|
+
marginAsset?: string;
|
|
116
|
+
pair?: string;
|
|
117
|
+
}): Promise<PositionRisk[]>;
|
|
102
118
|
setPositionMode(params: PositionModeParams): Promise<ModeChangeResult>;
|
|
103
119
|
setMarginType(params: SetMarginTypeParams): Promise<ModeChangeResult>;
|
|
104
120
|
setLeverage(params: SetLeverageParams): Promise<SetLeverageResult>;
|
|
105
|
-
getADLQuantileEstimation(params?:
|
|
121
|
+
getADLQuantileEstimation(params?: {
|
|
122
|
+
symbol?: string;
|
|
123
|
+
}): Promise<any>;
|
|
106
124
|
setIsolatedPositionMargin(params: SetIsolatedMarginParams): Promise<SetIsolatedMarginResult>;
|
|
107
125
|
getPositionMarginChangeHistory(params: GetPositionMarginChangeHistoryParams): Promise<any>;
|
|
108
126
|
/**
|
|
@@ -111,16 +129,16 @@ export declare class CoinMClient extends BaseRestClient {
|
|
|
111
129
|
*
|
|
112
130
|
**/
|
|
113
131
|
getBalance(): Promise<FuturesCoinMAccountBalance[]>;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
getAccountComissionRate(params: BasicSymbolParam): Promise<UserCommissionRate>;
|
|
118
|
-
getAccountCommissionRate(params: BasicSymbolParam): Promise<UserCommissionRate>;
|
|
132
|
+
getAccountCommissionRate(params: {
|
|
133
|
+
symbol?: string;
|
|
134
|
+
}): Promise<UserCommissionRate>;
|
|
119
135
|
getAccountInformation(): Promise<FuturesCoinMAccountInformation>;
|
|
120
136
|
/**
|
|
121
137
|
* Notional Bracket for Symbol (NOT "pair")
|
|
122
138
|
*/
|
|
123
|
-
getNotionalAndLeverageBrackets(params?:
|
|
139
|
+
getNotionalAndLeverageBrackets(params?: {
|
|
140
|
+
symbol?: string;
|
|
141
|
+
}): Promise<SymbolLeverageBracketsResult[] | SymbolLeverageBracketsResult>;
|
|
124
142
|
getCurrentPositionMode(): Promise<PositionModeResponse>;
|
|
125
143
|
getIncomeHistory(params?: GetIncomeHistoryParams): Promise<IncomeHistory[]>;
|
|
126
144
|
getDownloadIdForFuturesTransactionHistory(params: {
|
package/lib/coinm-client.js
CHANGED
|
@@ -16,8 +16,8 @@ exports.CoinMClient = void 0;
|
|
|
16
16
|
const BaseRestClient_1 = __importDefault(require("./util/BaseRestClient"));
|
|
17
17
|
const requestUtils_1 = require("./util/requestUtils");
|
|
18
18
|
class CoinMClient extends BaseRestClient_1.default {
|
|
19
|
-
constructor(restClientOptions = {}, requestOptions = {}
|
|
20
|
-
const clientId =
|
|
19
|
+
constructor(restClientOptions = {}, requestOptions = {}) {
|
|
20
|
+
const clientId = restClientOptions.testnet ? 'coinmtest' : 'coinm';
|
|
21
21
|
super(clientId, restClientOptions, requestOptions);
|
|
22
22
|
this.clientId = clientId;
|
|
23
23
|
return this;
|
|
@@ -80,12 +80,6 @@ class CoinMClient extends BaseRestClient_1.default {
|
|
|
80
80
|
getPremiumIndexKlines(params) {
|
|
81
81
|
return this.get('dapi/v1/premiumIndexKlines', params);
|
|
82
82
|
}
|
|
83
|
-
/**
|
|
84
|
-
* @deprecated use get24hrChangeStatistics() instead (method without the typo)
|
|
85
|
-
*/
|
|
86
|
-
get24hrChangeStatististics(params) {
|
|
87
|
-
return this.get24hrChangeStatistics(params);
|
|
88
|
-
}
|
|
89
83
|
get24hrChangeStatistics(params) {
|
|
90
84
|
return this.get('dapi/v1/ticker/24hr', params);
|
|
91
85
|
}
|
|
@@ -215,8 +209,8 @@ class CoinMClient extends BaseRestClient_1.default {
|
|
|
215
209
|
getAccountTrades(params) {
|
|
216
210
|
return this.getPrivate('dapi/v1/userTrades', params);
|
|
217
211
|
}
|
|
218
|
-
getPositions() {
|
|
219
|
-
return this.getPrivate('dapi/v1/positionRisk');
|
|
212
|
+
getPositions(params) {
|
|
213
|
+
return this.getPrivate('dapi/v1/positionRisk', params);
|
|
220
214
|
}
|
|
221
215
|
setPositionMode(params) {
|
|
222
216
|
return this.postPrivate('dapi/v1/positionSide/dual', params);
|
|
@@ -244,12 +238,6 @@ class CoinMClient extends BaseRestClient_1.default {
|
|
|
244
238
|
getBalance() {
|
|
245
239
|
return this.getPrivate('dapi/v1/balance');
|
|
246
240
|
}
|
|
247
|
-
/**
|
|
248
|
-
* @deprecated Please use `getAccountCommissionRate()` instead. This will be removed in the next major release.
|
|
249
|
-
*/
|
|
250
|
-
getAccountComissionRate(params) {
|
|
251
|
-
return this.getPrivate('dapi/v1/commissionRate', params);
|
|
252
|
-
}
|
|
253
241
|
getAccountCommissionRate(params) {
|
|
254
242
|
return this.getPrivate('dapi/v1/commissionRate', params);
|
|
255
243
|
}
|
package/lib/coinm-client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coinm-client.js","sourceRoot":"","sources":["../src/coinm-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"coinm-client.js","sourceRoot":"","sources":["../src/coinm-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAgFA,2EAAmD;AACnD,sDAO6B;AAE7B,MAAa,WAAY,SAAQ,wBAAc;IAG7C,YACE,oBAAuC,EAAE,EACzC,iBAAqC,EAAE;QAEvC,MAAM,QAAQ,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC;QAEnE,KAAK,CAAC,QAAQ,EAAE,iBAAiB,EAAE,cAAc,CAAC,CAAC;QAEnD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IA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AAM,CAAC,eAAe,CAAC,EAAE,CAAC;YAC7B,MAAM,CAAC,eAAe,CAAC,GAAG,IAAA,iCAAkB,EAAC,WAAW,CAAC,CAAC;YAC1D,OAAO;QACT,CAAC;QAED,MAAM,qBAAqB,GAAG,KAAK,IAAA,+BAAgB,EAAC,WAAW,CAAC,EAAE,CAAC;QACnE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,UAAU,CAAC,qBAAqB,CAAC,EAAE,CAAC;YAC/D,IAAA,gCAAiB,EAAC,eAAe,EAAE,qBAAqB,EAAE,MAAM,CAAC,CAAC;QACpE,CAAC;IACH,CAAC;CACF;AA7lBD,kCA6lBC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -14,9 +14,11 @@ export * from './types/websockets/ws-general';
|
|
|
14
14
|
export * from './usdm-client';
|
|
15
15
|
export * from './util/logger';
|
|
16
16
|
export * from './util/requestUtils';
|
|
17
|
+
export * from './util/rounding';
|
|
17
18
|
export * from './util/typeGuards';
|
|
18
19
|
export * from './util/usdm';
|
|
19
20
|
export * from './util/websockets/websocket-util';
|
|
20
21
|
export * from './util/websockets/WsStore';
|
|
22
|
+
export * from './websocket-api-client';
|
|
21
23
|
export * from './websocket-client';
|
|
22
24
|
export * from './websocket-client-legacy';
|
package/lib/index.js
CHANGED
|
@@ -30,10 +30,12 @@ __exportStar(require("./types/websockets/ws-general"), exports);
|
|
|
30
30
|
__exportStar(require("./usdm-client"), exports);
|
|
31
31
|
__exportStar(require("./util/logger"), exports);
|
|
32
32
|
__exportStar(require("./util/requestUtils"), exports);
|
|
33
|
+
__exportStar(require("./util/rounding"), exports);
|
|
33
34
|
__exportStar(require("./util/typeGuards"), exports);
|
|
34
35
|
__exportStar(require("./util/usdm"), exports);
|
|
35
36
|
__exportStar(require("./util/websockets/websocket-util"), exports);
|
|
36
37
|
__exportStar(require("./util/websockets/WsStore"), exports);
|
|
38
|
+
__exportStar(require("./websocket-api-client"), exports);
|
|
37
39
|
__exportStar(require("./websocket-client"), exports);
|
|
38
40
|
__exportStar(require("./websocket-client-legacy"), exports);
|
|
39
41
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,+CAA6B;AAC7B,kDAAgC;AAChC,2DAAyC;AACzC,iDAA+B;AAC/B,+CAA6B;AAC7B,4DAA0C;AAC1C,sEAAoD;AACpD,yEAAuD;AACvD,mEAAiD;AACjD,gEAA8C;AAC9C,gDAA8B;AAC9B,gDAA8B;AAC9B,sDAAoC;AACpC,oDAAkC;AAClC,8CAA4B;AAC5B,mEAAiD;AACjD,4DAA0C;AAC1C,qDAAmC;AACnC,4DAA0C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,+CAA6B;AAC7B,kDAAgC;AAChC,2DAAyC;AACzC,iDAA+B;AAC/B,+CAA6B;AAC7B,4DAA0C;AAC1C,sEAAoD;AACpD,yEAAuD;AACvD,mEAAiD;AACjD,gEAA8C;AAC9C,gDAA8B;AAC9B,gDAA8B;AAC9B,sDAAoC;AACpC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,mEAAiD;AACjD,4DAA0C;AAC1C,yDAAuC;AACvC,qDAAmC;AACnC,4DAA0C"}
|
package/lib/main-client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { BasicAssetPaginatedParams, BasicAssetParam, BasicSymbolParam, BinanceBaseUrlKey, CancelOCOParams, CancelOrderParams, CoinStartEndLimit, ExchangeSymbol, GetAllOrdersParams, GetOrderParams, HistoricalTradesParams, Kline, KlinesParams, NewOCOParams, NewOrderListParams, OrderBookParams, OrderResponseType, OrderType, RecentTradesParams, RowsWithTotal,
|
|
3
|
-
import { AcceptQuoteRequestParams, AccountInfo, AccountInformation, AddBSwapLiquidityParams, AddIpRestriction, AdjustCryptoLoanLTVParams, AdjustCryptoLoanLTVResponse, AdjustFlexibleCryptoLoanLTVParams, AdjustFlexibleCryptoLoanLTVResponse, AggregateTrade, AlgoOrder, AllCoinsInformationResponse, AllocationsParams, ApiKeyBrokerSubAccount, APIPermissions, APITradingStatus, ApplicationStatus, AssetDetail, BasicFromPaginatedParams, BasicFuturesSubAccountParams, BasicMarginAssetParams, BasicSubAccount, BasicTimeRangeParam, BethRewardsHistory, BlvtRedemptionRecord, BlvtSubscriptionRecord, BlvtUserLimitInfo, BNBBurnResponse, BnbTransferParams, BnsolRateHistoryRecord, BnsolRewardHistoryRecord, BorrowCryptoLoanParams, BorrowCryptoLoanResponse, BorrowFlexibleLoanParams, BorrowFlexibleLoanResponse, BorrowInterestRate, BrokerCommissionRebate, BrokerSubAccount, BrokerSubAccountCoinFuturesCommission, BrokerSubAccountFuturesCommission, BrokerSubAccountHistory, BrokerUniversalTransfer, BSwapLiquidity, BSwapOperations, BSwapOperationsParams, BUSDConversionRecord, CancelAlgoOrderResponse, CancelHashrateResaleConfigParams, CancelOrderListResult, CancelSpotAlgoOrderResponse, CancelSpotOrderResult, ChangeAutoCompoundStatusParams, ChangeAutoCompoundStatusResponse, ChangePermissionApiKeyBrokerSubAccountParams, ChangePermissionApiKeyBrokerSubAccountResponse, ChangePlanStatusParams, ChangePlanStatusResponse, ChangeSubAccountCoinFuturesCommissionParams, ChangeSubAccountCommissionParams, ChangeSubAccountCommissionResponse, ChangeSubAccountFuturesCommissionParams, ChangeSubAccountFuturesCommissionResponse, CheckCollateralRepayRateParams, CheckCollateralRepayRateResponse, CheckDualInvestmentAccountsResponse, CheckVipCollateralAccountParams, CloudMining, CloudMiningHistoryParams, CoinMarginedFuturesResponse, Collateral, CollateralAssetData, CollateralRecord, CommissionRates, ConvertDustParams, ConvertibleCoinsParams, ConvertibleCoinsResponse, ConvertLimitOpenOrder, ConvertQuoteRequestParams, ConvertTransfer, ConvertTransferResponse, CreateApiKeyBrokerSubAccountParams, CreateApiKeyBrokerSubAccountResponse, CreateBrokerSubAccountParams, CreateDualTokenGiftCardParams, CreateGiftCardParams, CreateInvestmentPlanParams, CreateInvestmentPlanResponse, CreateSpecialLowLatencyKeyParams, CreateSubAccountParams, CrossMarginFeeData, CrossMarginTransferHistory, CurrentAvgPrice, CustomizeMarginCall, CustomizeMarginCallParams, DailyAccountSnapshot, DailyAccountSnapshotParams, DailyChangeStatistic, DelegationHistory, DelegationHistoryParams, DeleteApiKeyBrokerSubAccountParams, DelistScheduleResponse, DepositAddress, DepositAddressListParams, DepositAddressParams, DepositAddressResponse, DepositHistory, DepositHistoryParams, DualInvestmentPosition, DualInvestmentProduct, DustConversion, DustInfo, DustLog, EditInvestmentPlanParams, EditInvestmentPlanResponse, EnableConvertSubAccountParams, EnableFuturesBrokerSubAccountParams, EnableFuturesBrokerSubAccountResponse, EnableMarginApiKeyBrokerSubAccountParams, EnableMarginBrokerSubAccountParams, EnableMarginBrokerSubAccountResponse, EnableOptionsForSubAccountResponse, EnableOrDisableIPRestrictionForSubAccountParams, EnableUniversalTransferApiKeyBrokerSubAccountParams, EnableUniversalTransferApiKeyBrokerSubAccountResponse, ETHRateHistory, EthRedemptionHistory, EthStakingHistory, ExchangeInfo, ExchangeInfoParams, FixedAndActivityProjectParams, FixedAndActivityProjectPositionParams, FlexibleCryptoLoanBorrowHistory, FlexibleLoanAssetData, FlexibleLoanCollateralAssetData, FlexibleLoanLiquidationHistoryRecord, FlexibleLoanLTVAdjustmentHistory, FlexibleLoanOngoingOrder, FlexibleRedemptionRecord, FlexibleRewardsHistory, FlexibleSubscriptionPreview, ForceLiquidationRecord, FundingAsset, FutureAccountTransfer, FuturesPositionRisk, GetAlgoHistoricalOrdersParams, GetAlgoSubOrdersParams, GetAlgoSubOrdersResponse, GetAllConvertPairsParams, GetApiKeyBrokerSubAccountParams, GetApplicationStatusParams, GetAssetParams, GetBethRewardsHistoryParams, GetBlvtRedemptionRecordParams, GetBlvtSubscriptionRecordParams, GetBnsolRateHistoryReq, GetBnsolRewardsHistoryReq, GetBrokerInfoResponse, GetBrokerSubAccountDepositHistoryParams, GetBrokerSubAccountHistoryParams, GetBrokerSubAccountParams, GetC2CTradeHistoryParams, GetC2CTradeHistoryResponse, GetCollateralAssetDataParams, GetCollateralRecordParams, GetConvertBUSDHistoryParams, GetConvertTradeHistoryParams, GetCrossMarginTransferHistoryParams, GetCryptoLoansIncomeHistoryParams, GetCryptoLoansIncomeHistoryResponse, GetDualInvestmentPositionsParams, GetDualInvestmentProductListParams, GetEarningsListParams, GetEarningsListResponse, GetETHRateHistoryParams, GetEthRedemptionHistoryParams, GetEthStakingAccountResponse, GetEthStakingAccountV2Response, GetEthStakingHistoryParams, GetEthStakingQuotaResponse, GetExtraBonusListParams, GetExtraBonusListResponse, GetFiatOrderHistoryParams, GetFiatOrderHistoryResponse, GetFiatPaymentsHistoryResponse, GetFlexibleCryptoLoanBorrowHistoryParams, GetFlexibleLoanLiquidationHistoryParams, GetFlexibleLoanLTVAdjustmentHistoryParams, GetFlexibleLoanOngoingOrdersParams, GetFlexibleRedemptionRecordParams, GetFlexibleRewardsHistoryParams, GetFlexibleSubscriptionPreviewParams, GetFlexibleSubscriptionRecordParams, GetFlexibleSubscriptionRecordResponse, GetForceLiquidationRecordParams, GetFutureAccountTransferHistoryParams, GetFuturesLeadTraderStatusResponse, GetFuturesLeadTradingSymbolWhitelistResponse, GetFutureTickLevelOrderbookDataLinkParams, GetHashrateResaleDetailParams, GetHashrateResaleDetailResponse, GetHashrateResaleListParams, GetHashrateResaleListResponse, GetIndexDetailsResponse, GetIndexLinkedPlanPositionDetailsResponse, GetIndexLinkedPlanRebalanceHistoryParams, GetIndexLinkedPlanRedemptionHistoryParams, GetLoanableAssetsDataParams, GetLoanBorrowHistoryParams, GetLoanCoinPaginatedHistoryParams, GetLoanLTVAdjustmentHistoryParams, GetLoanOngoingOrdersParams, GetLoanRepaymentHistoryParams, GetLockedRedemptionRecordParams, GetLockedRewardsHistory, GetLockedRewardsHistoryParams, GetLockedSubscriptionPreviewParams, GetLockedSubscriptionRecordParams, GetMarginAccountBorrowRepayRecordsParams, GetMarginCapitalFlowParams, GetMarginInterestHistoryParams, GetMarginOrderCountUsageParams, GetMinerDetailsParams, GetMinerDetailsResponse, GetMinerListParams, GetMinerListResponse, GetMiningAccountEarningParams, GetMiningAccountEarningResponse, getMiningAccountsListParams, getMiningAccountsListResponse, GetMiningAlgoListResponse, GetMiningCoinListResponse, GetNextHourlyInterestRateParams, GetNftAssetParams, GetNftDepositHistoryParams, GetNftTransactionHistoryParams, GetNftWithdrawHistoryParams, GetOCOParams, GetOneTimeTransactionStatusParams, GetOneTimeTransactionStatusResponse, GetOrderStatusParams, GetPayTradeHistoryParams, GetPlanDetailsParams, GetPortfolioMarginAssetIndexPriceResponse, GetPortfolioMarginAssetLeverageResponse, GetPortfolioMarginProAccountInfoResponse, GetPortfolioMarginProBankruptcyLoanAmountResponse, GetPortfolioMarginProCollateralRateResponse, GetPortfolioMarginProInterestHistoryParams, GetPortfolioMarginProInterestHistoryResponse, GetRateHistory, GetRateHistoryParams, GetSmallLiabilityExchangeHistoryParams, GetSolStakingHistoryReq, GetSourceAssetListParams, GetSourceAssetListResponse, GetSpotAlgoHistoricalOrdersParams, GetSpotAlgoSubOrdersParams, GetSpotAlgoSubOrdersResponse, GetSpotRebateHistoryRecordsParams, GetSpotRebateHistoryRecordsResponse, GetStatisticListParams, GetStatisticListResponse, GetSubAccountDepositHistoryParams, GetSubscriptionTransactionHistoryParams, GetTargetAssetListParams, GetTargetAssetListResponse, GetTargetAssetROIParams, GetTravelRuleDepositHistoryParams, GetTravelRuleWithdrawHistoryParams, GetTravelRuleWithdrawHistoryV2Params, GetUniversalTransferBrokerParams, GetVipLoanOngoingOrdersParams, GetVipLoanRepaymentHistoryParams, GetWbethRewardsHistoryResponse, GetWrapHistoryParams, HistoricalAlgoOrder, HistoricalDataLink, HistoricalSpotAlgoOrder, IndexLinkedPlanRedemptionRecord, IsolatedMarginAccountInfo, IsolatedMarginAccountTransferParams, IsolatedMarginFeeData, IsolatedMarginSymbol, IsolatedMarginTierData, LeftDailyPurchaseQuotaFlexibleProductResponse, LiabilityCoinLeverageBracket, LoanableAssetData, LoanBorrowHistory, LoanLTVAdjustmentHistory, LoanOngoingOrder, LoanRepaymentHistory, LockedRedemptionRecord, LockedSubscriptionPreview, LockedSubscriptionRecord, ManagedSubAccountDepositAddress, ManagedSubAccountDepositAddressParams, ManagedSubAccountFuturesAssetsResponse, ManagedSubAccountListParams, ManagedSubAccountMarginAssetsResponse, ManagedSubAccountSnapshot, ManagedSubAccountSnapshotParams, ManagedSubAccountTransferLogParams, ManagedSubAccountTransferTTLogParams, ManagerSubTransferHistoryVos, ManagerSubUserInfoVo, ManualLiquidationParams, ManualLiquidationResponse, MarginAccountLoanParams, MarginAccountRecord, MarginAvailableInventoryResponse, MarginCapitalFlow, MarginDelistSchedule, MarginInterestHistory, MarginInterestRateHistory, MarginOrderCountUsageResponse, MarginOTOCOOrder, MarginOTOOrder, MarginTransactionResponse, NewFutureAccountTransferParams, NewOrderListOTOCOParams, NewOrderListOTOCOResponse, NewOrderListOTOParams, NewOrderListOTOResponse, NewSpotOrderParams, NewSpotSOROrderParams, NextHourlyInterestRate, NftAsset, NftDeposit, NftTransaction, NftWithdraw, OrderBookResponse, OrderList, OrderListResponse, OrderRateLimitUsage, OrderResponseTypeFor, PMProMintBFUSDParams, PMProMintBFUSDResponse, PMProRedeemBFUSDResponse, PortfolioMarginProAccountBalance, PortfolioMarginProSpanAccountInfo, PreventedMatch, PreventedMatchesParams, PurchaseFlexibleProductResponse, PurchaseRecordParams, QueryBrokerFuturesCommissionRebateParams, QueryBrokerSpotCommissionRebateParams, QueryCrossMarginAccountDetailsParams, QueryCrossMarginFeeDataParams, QueryCrossMarginPairResponse, QueryIsolatedMarginTierDataParams, QueryMarginAccountAllOCOParams, QueryMarginAccountTradeListParams, QueryMarginAssetResponse, QueryMarginInterestRateHistoryParams, QueryMarginPriceIndexResponse, QueryMarginRecordParams, QueryMaxBorrowResponse, QueryMaxTransferOutAmountResponse, QuerySubAccountCoinFuturesCommissionParams, QuerySubAccountFuturesAssetInfoParams, QuerySubAccountFuturesCommissionParams, QuerySubAccountSpotMarginAssetInfoParams, RawAccountTrade, RawTrade, RedeemBlvtParams, RedeemBlvtResponse, RedeemEthParams, RedeemEthResponse, RedeemGiftCardParams, RedeemSolResponse, RemoveBSwapLiquidityParams, RepayCryptoFlexibleLoanParams, RepayCryptoFlexibleLoanResponse, RepayCryptoLoanFlexibleWithCollateralParams, RepayCryptoLoanFlexibleWithCollateralResponse, RepayCryptoLoanParams, RepayCryptoLoanResponse, ReplaceSpotOrderParams, ReplaceSpotOrderResultSuccess, RollingWindowTickerParams, SetAutoSubscribeParams, SimpleEarnAccountResponse, SimpleEarnFlexibleProduct, SimpleEarnFlexibleProductPositionParams, SimpleEarnLockedProduct, SimpleEarnLockedProductPosition, SimpleEarnLockedProductPositionParams, SimpleEarnProductListParams, SimpleEarnRedeemFlexibleProductParams, SimpleEarnRedeemResponse, SimpleEarnSubscribeFlexibleProductResponse, SimpleEarnSubscribeLockedProductResponse, SimpleEarnSubscribeProductParams, SmallLiabilityExchangeCoin, SmallLiabilityExchangeHistory, SolBoostRewardsHistoryRecord, SolBoostRewardsHistoryReq, SolRedemptionHistoryRecord, SolStakingAccount, SolStakingHistoryRecord, SolStakingQuota, SOROrderResponseFull, SORTestOrderResponse, SpecialLowLatencyKeyInfo, SpecialLowLatencyKeyResponse, SpotAlgoOrder, SpotOrder, StakingBasicParams, StakingHistory, StakingHistoryParams, StakingPersonalLeftQuota, StakingProduct, StakingProductPosition, StakingProductType, SubAccountAddOrDeleteIPList, SubAccountAssetDetails, SubAccountAssets, SubAccountAssetsParams, SubaccountBalances, SubAccountBrokerMarginAsset, SubaccountBrokerSpotAsset, SubAccountCOINMDetail, SubAccountCOINMPositionRisk, SubAccountCOINMSummary, SubAccountDeposit, SubAccountDepositAddress, SubAccountDepositAddressParams, SubAccountDepositHistoryList, SubAccountDepositHistoryParams, SubAccountEnableFutures, SubAccountEnableLeverageToken, SubAccountEnableMargin, SubAccountEnableOrDisableIPRestriction, SubAccountFuturesAccountDetail, SubAccountFuturesAccountSummary, SubAccountFuturesAssetTransfer, SubAccountFuturesAssetTransferHistory, SubAccountFuturesAssetTransferHistoryParams, SubAccountFuturesAssetTransferParams, SubAccountListParams, SubAccountListResponse, SubAccountMarginAccountDetail, SubAccountsMarginAccountSummary, SubAccountSpotAssetsSummary, SubAccountSpotAssetsSummaryParams, SubAccountSpotAssetTransferHistory, SubAccountSpotAssetTransferHistoryParams, SubAccountStatus, SubAccountSummaryOnFuturesAccountV2Params, SubAccountTransactionStatistics, SubAccountTransfer, SubAccountTransferHistory, SubAccountTransferHistoryParams, SubAccountTransferParams, SubAccountTransferToMasterParams, SubAccountTransferToSameMasterParams, SubAccountUniversalTransfer, SubAccountUniversalTransferHistoryParams, SubAccountUniversalTransferHistoryResponse, SubAccountUniversalTransferParams, SubAccountUSDMDetail, SubAccountUSDMPositionRisk, SubAccountUSDMSummary, SubmitConvertLimitOrderParams, SubmitDepositCreditParams, SubmitDepositCreditResponse, SubmitHashrateResaleParams, SubmitIndexLinkedPlanRedemptionParams, SubmitMarginOTOCOOrderParams, SubmitMarginOTOOrderParams, SubmitOneTimeTransactionParams, SubmitOneTimeTransactionResponse, SubmitSpotTwapNewOrderParams, SubmitSpotTwapNewOrderResponse, SubmitTravelRuleDepositQuestionnaireParams, SubmitTravelRuleDepositQuestionnaireResponse, SubmitTwapNewOrderParams, SubmitTwapNewOrderResponse, SubmitVpNewOrderParams, SubmitVpNewOrderResponse, SubscribeBlvtParams, SubscribeBlvtResponse, SubscribeDualInvestmentProductParams, SubscribeDualInvestmentProductResponse, SubscribeEthStakingV2Response, SubscribeSolStakingResponse, SymbolOrderBookTicker, SymbolTradeFee, SystemStatusResponse, TargetAssetROI, ToggleBNBBurnParams, TradingDayTickerFull, TradingDayTickerMini, TradingDayTickerParams, TransferBrokerSubAccount, TransferBrokerSubAccountParams, TravelRuleDepositHistoryRecord, TravelRuleWithdrawHistoryRecord, UniversalTransferBrokerParams, UniversalTransferHistoryParams, UniversalTransferParams, UpdateIpRestrictionForSubApiKey, UsdtMarginedFuturesResponse, UserAsset, VASPInfo, VipCollateralAccount, VipLoanAccruedInterestParams, VipLoanAccruedInterestRecord, VipLoanBorrowParams, VipLoanBorrowResponse, VipLoanInterestRateHistoryParams, VipLoanInterestRateRecord, VipLoanRenewParams, VipLoanRenewResponse, VipLoanRepaymentHistory, VipLoanRepayParams, VipLoanRepayResponse, VipOngoingOrder, VirtualSubAccount, WalletBalance, WithdrawAddress, WithdrawAssetsFromManagedSubAccountParams, WithdrawHistory, WithdrawHistoryParams, WithdrawParams, WithdrawTravelRuleParams, WrapBethResponse, WrapHistory } from './types/spot';
|
|
2
|
+
import { AmendKeepPriorityParams, BasicAssetPaginatedParams, BasicAssetParam, BasicSymbolParam, BinanceBaseUrlKey, CancelOCOParams, CancelOrderParams, CoinStartEndLimit, ExchangeSymbol, GetAllOrdersParams, GetOrderParams, HistoricalTradesParams, Kline, KlinesParams, NewOCOParams, NewOrderListParams, OrderBookParams, OrderResponseType, OrderType, RecentTradesParams, RowsWithTotal, SymbolFromPaginatedRequestFromId, SymbolPrice } from './types/shared';
|
|
3
|
+
import { AcceptQuoteRequestParams, AccountInfo, AccountInformation, AddBSwapLiquidityParams, AddIpRestriction, AdjustCryptoLoanLTVParams, AdjustCryptoLoanLTVResponse, AdjustFlexibleCryptoLoanLTVParams, AdjustFlexibleCryptoLoanLTVResponse, AggregateTrade, AlgoOrder, AllCoinsInformationResponse, Allocation, AllocationsParams, ApiKeyBrokerSubAccount, APIPermissions, APITradingStatus, ApplicationStatus, AssetDetail, BasicFromPaginatedParams, BasicFuturesSubAccountParams, BasicMarginAssetParams, BasicSubAccount, BasicTimeRangeParam, BethRewardsHistory, BlvtRedemptionRecord, BlvtSubscriptionRecord, BlvtUserLimitInfo, BNBBurnResponse, BnbTransferParams, BnsolRateHistoryRecord, BnsolRewardHistoryRecord, BorrowCryptoLoanParams, BorrowCryptoLoanResponse, BorrowFlexibleLoanParams, BorrowFlexibleLoanResponse, BorrowInterestRate, BrokerCommissionRebate, BrokerSubAccount, BrokerSubAccountCoinFuturesCommission, BrokerSubAccountFuturesCommission, BrokerSubAccountHistory, BrokerUniversalTransfer, BSwapLiquidity, BSwapOperations, BSwapOperationsParams, BUSDConversionRecord, CancelAlgoOrderResponse, CancelHashrateResaleConfigParams, CancelOrderListResult, CancelSpotAlgoOrderResponse, CancelSpotOrderResult, ChangeAutoCompoundStatusParams, ChangeAutoCompoundStatusResponse, ChangePermissionApiKeyBrokerSubAccountParams, ChangePermissionApiKeyBrokerSubAccountResponse, ChangePlanStatusParams, ChangePlanStatusResponse, ChangeSubAccountCoinFuturesCommissionParams, ChangeSubAccountCommissionParams, ChangeSubAccountCommissionResponse, ChangeSubAccountFuturesCommissionParams, ChangeSubAccountFuturesCommissionResponse, CheckCollateralRepayRateParams, CheckCollateralRepayRateResponse, CheckDualInvestmentAccountsResponse, CheckVipCollateralAccountParams, CloudMining, CloudMiningHistoryParams, CoinMarginedFuturesResponse, Collateral, CollateralAssetData, CollateralRecord, CommissionRates, ConvertDustParams, ConvertibleCoinsParams, ConvertibleCoinsResponse, ConvertLimitOpenOrder, ConvertQuoteRequestParams, ConvertTransfer, ConvertTransferResponse, CreateApiKeyBrokerSubAccountParams, CreateApiKeyBrokerSubAccountResponse, CreateBrokerSubAccountParams, CreateDualTokenGiftCardParams, CreateGiftCardParams, CreateInvestmentPlanParams, CreateInvestmentPlanResponse, CreateSpecialLowLatencyKeyParams, CreateSubAccountParams, CrossMarginFeeData, CrossMarginTransferHistory, CurrentAvgPrice, CustomizeMarginCall, CustomizeMarginCallParams, DailyAccountSnapshot, DailyAccountSnapshotParams, DelegationHistory, DelegationHistoryParams, DeleteApiKeyBrokerSubAccountParams, DelistScheduleResponse, DepositAddress, DepositAddressListParams, DepositAddressParams, DepositAddressResponse, DepositHistory, DepositHistoryParams, DualInvestmentPosition, DualInvestmentProduct, DustConversion, DustInfo, DustLog, EditInvestmentPlanParams, EditInvestmentPlanResponse, EnableConvertSubAccountParams, EnableFuturesBrokerSubAccountParams, EnableFuturesBrokerSubAccountResponse, EnableMarginApiKeyBrokerSubAccountParams, EnableMarginBrokerSubAccountParams, EnableMarginBrokerSubAccountResponse, EnableOptionsForSubAccountResponse, EnableOrDisableIPRestrictionForSubAccountParams, EnableUniversalTransferApiKeyBrokerSubAccountParams, EnableUniversalTransferApiKeyBrokerSubAccountResponse, ETHRateHistory, EthRedemptionHistory, EthStakingHistory, ExchangeInfo, ExchangeInfoParams, FixedAndActivityProjectParams, FixedAndActivityProjectPositionParams, FlexibleCryptoLoanBorrowHistory, FlexibleLoanAssetData, FlexibleLoanCollateralAssetData, FlexibleLoanLiquidationHistoryRecord, FlexibleLoanLTVAdjustmentHistory, FlexibleLoanOngoingOrder, FlexibleRedemptionRecord, FlexibleRewardsHistory, FlexibleSubscriptionPreview, ForceLiquidationRecord, FundingAsset, FutureAccountTransfer, FuturesPositionRisk, GetAlgoHistoricalOrdersParams, GetAlgoSubOrdersParams, GetAlgoSubOrdersResponse, GetAllConvertPairsParams, GetApiKeyBrokerSubAccountParams, GetApplicationStatusParams, GetAssetParams, GetBethRewardsHistoryParams, GetBlvtRedemptionRecordParams, GetBlvtSubscriptionRecordParams, GetBnsolRateHistoryReq, GetBnsolRewardsHistoryReq, GetBrokerInfoResponse, GetBrokerSubAccountDepositHistoryParams, GetBrokerSubAccountHistoryParams, GetBrokerSubAccountParams, GetC2CTradeHistoryParams, GetC2CTradeHistoryResponse, GetCollateralAssetDataParams, GetCollateralRecordParams, GetConvertBUSDHistoryParams, GetConvertTradeHistoryParams, GetCrossMarginTransferHistoryParams, GetCryptoLoansIncomeHistoryParams, GetCryptoLoansIncomeHistoryResponse, GetDualInvestmentPositionsParams, GetDualInvestmentProductListParams, GetEarningsListParams, GetEarningsListResponse, GetETHRateHistoryParams, GetEthRedemptionHistoryParams, GetEthStakingAccountResponse, GetEthStakingAccountV2Response, GetEthStakingHistoryParams, GetEthStakingQuotaResponse, GetExtraBonusListParams, GetExtraBonusListResponse, GetFiatOrderHistoryParams, GetFiatOrderHistoryResponse, GetFiatPaymentsHistoryResponse, GetFlexibleCryptoLoanBorrowHistoryParams, GetFlexibleLoanLiquidationHistoryParams, GetFlexibleLoanLTVAdjustmentHistoryParams, GetFlexibleLoanOngoingOrdersParams, GetFlexibleRedemptionRecordParams, GetFlexibleRewardsHistoryParams, GetFlexibleSubscriptionPreviewParams, GetFlexibleSubscriptionRecordParams, GetFlexibleSubscriptionRecordResponse, GetForceLiquidationRecordParams, GetFutureAccountTransferHistoryParams, GetFuturesLeadTraderStatusResponse, GetFuturesLeadTradingSymbolWhitelistResponse, GetFutureTickLevelOrderbookDataLinkParams, GetHashrateResaleDetailParams, GetHashrateResaleDetailResponse, GetHashrateResaleListParams, GetHashrateResaleListResponse, GetIndexDetailsResponse, GetIndexLinkedPlanPositionDetailsResponse, GetIndexLinkedPlanRebalanceHistoryParams, GetIndexLinkedPlanRedemptionHistoryParams, GetLoanableAssetsDataParams, GetLoanBorrowHistoryParams, GetLoanCoinPaginatedHistoryParams, GetLoanLTVAdjustmentHistoryParams, GetLoanOngoingOrdersParams, GetLoanRepaymentHistoryParams, GetLockedRedemptionRecordParams, GetLockedRewardsHistory, GetLockedRewardsHistoryParams, GetLockedSubscriptionPreviewParams, GetLockedSubscriptionRecordParams, GetMarginAccountBorrowRepayRecordsParams, GetMarginCapitalFlowParams, GetMarginInterestHistoryParams, GetMarginOrderCountUsageParams, GetMinerDetailsParams, GetMinerDetailsResponse, GetMinerListParams, GetMinerListResponse, GetMiningAccountEarningParams, GetMiningAccountEarningResponse, getMiningAccountsListParams, getMiningAccountsListResponse, GetMiningAlgoListResponse, GetMiningCoinListResponse, GetNextHourlyInterestRateParams, GetNftAssetParams, GetNftDepositHistoryParams, GetNftTransactionHistoryParams, GetNftWithdrawHistoryParams, GetOCOParams, GetOneTimeTransactionStatusParams, GetOneTimeTransactionStatusResponse, GetOrderStatusParams, GetPayTradeHistoryParams, GetPlanDetailsParams, GetPortfolioMarginAssetIndexPriceResponse, GetPortfolioMarginAssetLeverageResponse, GetPortfolioMarginProAccountInfoResponse, GetPortfolioMarginProBankruptcyLoanAmountResponse, GetPortfolioMarginProCollateralRateResponse, GetPortfolioMarginProInterestHistoryParams, GetPortfolioMarginProInterestHistoryResponse, GetRateHistory, GetRateHistoryParams, GetSmallLiabilityExchangeHistoryParams, GetSolStakingHistoryReq, GetSourceAssetListParams, GetSourceAssetListResponse, GetSpotAlgoHistoricalOrdersParams, GetSpotAlgoSubOrdersParams, GetSpotAlgoSubOrdersResponse, GetSpotRebateHistoryRecordsParams, GetSpotRebateHistoryRecordsResponse, GetStatisticListParams, GetStatisticListResponse, GetSubAccountDepositHistoryParams, GetSubscriptionTransactionHistoryParams, GetTargetAssetListParams, GetTargetAssetListResponse, GetTargetAssetROIParams, GetTravelRuleDepositHistoryParams, GetTravelRuleWithdrawHistoryParams, GetTravelRuleWithdrawHistoryV2Params, GetUniversalTransferBrokerParams, GetVipLoanOngoingOrdersParams, GetVipLoanRepaymentHistoryParams, GetWbethRewardsHistoryResponse, GetWrapHistoryParams, HistoricalAlgoOrder, HistoricalDataLink, HistoricalSpotAlgoOrder, IndexLinkedPlanRedemptionRecord, IsolatedMarginAccountInfo, IsolatedMarginAccountTransferParams, IsolatedMarginFeeData, IsolatedMarginSymbol, IsolatedMarginTierData, LeftDailyPurchaseQuotaFlexibleProductResponse, LiabilityCoinLeverageBracket, LoanableAssetData, LoanBorrowHistory, LoanLTVAdjustmentHistory, LoanOngoingOrder, LoanRepaymentHistory, LockedRedemptionRecord, LockedSubscriptionPreview, LockedSubscriptionRecord, ManagedSubAccountDepositAddress, ManagedSubAccountDepositAddressParams, ManagedSubAccountFuturesAssetsResponse, ManagedSubAccountListParams, ManagedSubAccountMarginAssetsResponse, ManagedSubAccountSnapshot, ManagedSubAccountSnapshotParams, ManagedSubAccountTransferLogParams, ManagedSubAccountTransferTTLogParams, ManagerSubTransferHistoryVos, ManagerSubUserInfoVo, ManualLiquidationParams, ManualLiquidationResponse, MarginAccountLoanParams, MarginAccountRecord, MarginAvailableInventoryResponse, MarginCapitalFlow, MarginDelistSchedule, MarginInterestHistory, MarginInterestRateHistory, MarginOrderCountUsageResponse, MarginOTOCOOrder, MarginOTOOrder, MarginTransactionResponse, NewFutureAccountTransferParams, NewOrderListOTOCOParams, NewOrderListOTOCOResponse, NewOrderListOTOParams, NewOrderListOTOResponse, NewSpotOrderParams, NewSpotSOROrderParams, NextHourlyInterestRate, NftAsset, NftDeposit, NftTransaction, NftWithdraw, OrderBookResponse, OrderList, OrderListResponse, OrderRateLimitUsage, OrderResponseTypeFor, PMProBankruptcyLoanRepaymentHistory, PMProMintBFUSDParams, PMProMintBFUSDResponse, PMProRedeemBFUSDResponse, PortfolioMarginProAccountBalance, PortfolioMarginProSpanAccountInfo, PreventedMatch, PreventedMatchesParams, PurchaseFlexibleProductResponse, PurchaseRecordParams, QueryBrokerFuturesCommissionRebateParams, QueryBrokerSpotCommissionRebateParams, QueryCrossMarginAccountDetailsParams, QueryCrossMarginFeeDataParams, QueryCrossMarginPairResponse, QueryIsolatedMarginTierDataParams, QueryMarginAccountAllOCOParams, QueryMarginAccountTradeListParams, QueryMarginAssetResponse, QueryMarginInterestRateHistoryParams, QueryMarginPriceIndexResponse, QueryMarginRecordParams, QueryMaxBorrowResponse, QueryMaxTransferOutAmountResponse, QuerySubAccountCoinFuturesCommissionParams, QuerySubAccountFuturesAssetInfoParams, QuerySubAccountFuturesCommissionParams, QuerySubAccountSpotMarginAssetInfoParams, RawAccountTrade, RawTrade, RedeemBlvtParams, RedeemBlvtResponse, RedeemEthParams, RedeemEthResponse, RedeemGiftCardParams, RedeemSolResponse, RemoveBSwapLiquidityParams, RepayCryptoFlexibleLoanParams, RepayCryptoFlexibleLoanResponse, RepayCryptoLoanFlexibleWithCollateralParams, RepayCryptoLoanFlexibleWithCollateralResponse, RepayCryptoLoanParams, RepayCryptoLoanResponse, ReplaceSpotOrderParams, ReplaceSpotOrderResultSuccess, RollingWindowTickerParams, SetAutoSubscribeParams, SimpleEarnAccountResponse, SimpleEarnFlexibleProduct, SimpleEarnFlexibleProductPositionParams, SimpleEarnLockedProduct, SimpleEarnLockedProductPosition, SimpleEarnLockedProductPositionParams, SimpleEarnProductListParams, SimpleEarnRedeemFlexibleProductParams, SimpleEarnRedeemResponse, SimpleEarnSubscribeFlexibleProductResponse, SimpleEarnSubscribeLockedProductResponse, SimpleEarnSubscribeProductParams, SmallLiabilityExchangeCoin, SmallLiabilityExchangeHistory, SolBoostRewardsHistoryRecord, SolBoostRewardsHistoryReq, SolRedemptionHistoryRecord, SolStakingAccount, SolStakingHistoryRecord, SolStakingQuota, SOROrderResponseFull, SORTestOrderResponse, SpecialLowLatencyKeyInfo, SpecialLowLatencyKeyResponse, SpotAlgoOrder, SpotAmendKeepPriorityResult, SpotOrder, StakingBasicParams, StakingHistory, StakingHistoryParams, StakingPersonalLeftQuota, StakingProduct, StakingProductPosition, StakingProductType, SubAccountAddOrDeleteIPList, SubAccountAssetDetails, SubAccountAssets, SubAccountAssetsParams, SubaccountBalances, SubAccountBrokerMarginAsset, SubaccountBrokerSpotAsset, SubAccountCOINMDetail, SubAccountCOINMPositionRisk, SubAccountCOINMSummary, SubAccountDeposit, SubAccountDepositAddress, SubAccountDepositAddressParams, SubAccountDepositHistoryList, SubAccountDepositHistoryParams, SubAccountEnableFutures, SubAccountEnableLeverageToken, SubAccountEnableMargin, SubAccountEnableOrDisableIPRestriction, SubAccountFuturesAccountDetail, SubAccountFuturesAccountSummary, SubAccountFuturesAssetTransfer, SubAccountFuturesAssetTransferHistory, SubAccountFuturesAssetTransferHistoryParams, SubAccountFuturesAssetTransferParams, SubAccountListParams, SubAccountListResponse, SubAccountMarginAccountDetail, SubAccountMovePosition, SubAccountMovePositionHistory, SubAccountMovePositionHistoryParams, SubAccountMovePositionParams, SubAccountsMarginAccountSummary, SubAccountSpotAssetsSummary, SubAccountSpotAssetsSummaryParams, SubAccountSpotAssetTransferHistory, SubAccountSpotAssetTransferHistoryParams, SubAccountStatus, SubAccountSummaryOnFuturesAccountV2Params, SubAccountTransactionStatistics, SubAccountTransfer, SubAccountTransferHistory, SubAccountTransferHistoryParams, SubAccountTransferParams, SubAccountTransferToMasterParams, SubAccountTransferToSameMasterParams, SubAccountUniversalTransfer, SubAccountUniversalTransferHistoryParams, SubAccountUniversalTransferHistoryResponse, SubAccountUniversalTransferParams, SubAccountUSDMDetail, SubAccountUSDMPositionRisk, SubAccountUSDMSummary, SubmitConvertLimitOrderParams, SubmitDepositCreditParams, SubmitDepositCreditResponse, SubmitHashrateResaleParams, SubmitIndexLinkedPlanRedemptionParams, SubmitMarginOTOCOOrderParams, SubmitMarginOTOOrderParams, SubmitOneTimeTransactionParams, SubmitOneTimeTransactionResponse, SubmitSpotTwapNewOrderParams, SubmitSpotTwapNewOrderResponse, SubmitTravelRuleDepositQuestionnaireParams, SubmitTravelRuleDepositQuestionnaireResponse, SubmitTwapNewOrderParams, SubmitTwapNewOrderResponse, SubmitVpNewOrderParams, SubmitVpNewOrderResponse, SubscribeBlvtParams, SubscribeBlvtResponse, SubscribeDualInvestmentProductParams, SubscribeDualInvestmentProductResponse, SubscribeEthStakingV2Response, SubscribeSolStakingResponse, SymbolOrderBookTicker, SymbolTradeFee, SystemStatusResponse, TargetAssetROI, Ticker24hrResponse, ToggleBNBBurnParams, TradingDayTickerArray, TradingDayTickerFull, TradingDayTickerMini, TradingDayTickerParams, TradingDayTickerSingle, TransferBrokerSubAccount, TransferBrokerSubAccountParams, TravelRuleDepositHistoryRecord, TravelRuleWithdrawHistoryRecord, UniversalTransferBrokerParams, UniversalTransferHistoryParams, UniversalTransferParams, UpdateIpRestrictionForSubApiKey, UsdtMarginedFuturesResponse, UserAsset, VASPInfo, VipCollateralAccount, VipLoanAccruedInterestParams, VipLoanAccruedInterestRecord, VipLoanBorrowParams, VipLoanBorrowResponse, VipLoanInterestRateHistoryParams, VipLoanInterestRateRecord, VipLoanRenewParams, VipLoanRenewResponse, VipLoanRepaymentHistory, VipLoanRepayParams, VipLoanRepayResponse, VipOngoingOrder, VirtualSubAccount, WalletBalance, WithdrawAddress, WithdrawAssetsFromManagedSubAccountParams, WithdrawHistory, WithdrawHistoryParams, WithdrawParams, WithdrawTravelRuleParams, WrapBethResponse, WrapHistory } from './types/spot';
|
|
4
4
|
import BaseRestClient from './util/BaseRestClient';
|
|
5
5
|
import { RestClientOptions } from './util/requestUtils';
|
|
6
6
|
export declare class MainClient extends BaseRestClient {
|
|
@@ -35,12 +35,26 @@ export declare class MainClient extends BaseRestClient {
|
|
|
35
35
|
getAggregateTrades(params: SymbolFromPaginatedRequestFromId): Promise<AggregateTrade[]>;
|
|
36
36
|
getKlines(params: KlinesParams): Promise<Kline[]>;
|
|
37
37
|
getUIKlines(params: KlinesParams): Promise<Kline[]>;
|
|
38
|
-
getAvgPrice(params:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
getAvgPrice(params: {
|
|
39
|
+
symbol: string;
|
|
40
|
+
}): Promise<CurrentAvgPrice>;
|
|
41
|
+
get24hrChangeStatistics(params?: {
|
|
42
|
+
symbols?: string[];
|
|
43
|
+
type?: 'FULL' | 'MINI';
|
|
44
|
+
}): Promise<Ticker24hrResponse[]>;
|
|
45
|
+
get24hrChangeStatistics(params: {
|
|
46
|
+
symbol: string;
|
|
47
|
+
type?: 'FULL' | 'MINI';
|
|
48
|
+
}): Promise<Ticker24hrResponse>;
|
|
49
|
+
getTradingDayTicker(params: TradingDayTickerParams): Promise<TradingDayTickerSingle | TradingDayTickerArray[]>;
|
|
50
|
+
getSymbolPriceTicker(params?: {
|
|
51
|
+
symbol?: string;
|
|
52
|
+
symbols?: string[];
|
|
53
|
+
}): Promise<SymbolPrice | SymbolPrice[]>;
|
|
54
|
+
getSymbolOrderBookTicker(params?: {
|
|
55
|
+
symbol?: string;
|
|
56
|
+
symbols?: string[];
|
|
57
|
+
}): Promise<SymbolOrderBookTicker | SymbolOrderBookTicker[]>;
|
|
44
58
|
getRollingWindowTicker(params: RollingWindowTickerParams): Promise<TradingDayTickerFull[] | TradingDayTickerMini[]>;
|
|
45
59
|
/**
|
|
46
60
|
*
|
|
@@ -51,9 +65,19 @@ export declare class MainClient extends BaseRestClient {
|
|
|
51
65
|
testNewOrder<T extends OrderType, RT extends OrderResponseType | undefined = undefined>(params: NewSpotOrderParams<T, RT>): Promise<object>;
|
|
52
66
|
getOrder(params: GetOrderParams): Promise<SpotOrder>;
|
|
53
67
|
cancelOrder(params: CancelOrderParams): Promise<CancelSpotOrderResult>;
|
|
54
|
-
cancelAllSymbolOrders(params:
|
|
68
|
+
cancelAllSymbolOrders(params: {
|
|
69
|
+
symbol: string;
|
|
70
|
+
}): Promise<CancelSpotOrderResult[]>;
|
|
55
71
|
replaceOrder<T extends OrderType, RT extends OrderResponseType | undefined = undefined>(params: ReplaceSpotOrderParams<T, RT>): Promise<ReplaceSpotOrderResultSuccess<T, RT>>;
|
|
56
|
-
|
|
72
|
+
/**
|
|
73
|
+
* Reduce the quantity of an existing open order while keeping its priority in the order book.
|
|
74
|
+
* The new quantity must be less than the current quantity.
|
|
75
|
+
* https://binance-docs.github.io/apidocs/futures/en/#order-amend-keep-priority-trade
|
|
76
|
+
*/
|
|
77
|
+
amendOrderKeepPriority(params: AmendKeepPriorityParams): Promise<SpotAmendKeepPriorityResult>;
|
|
78
|
+
getOpenOrders(params?: {
|
|
79
|
+
symbol?: string;
|
|
80
|
+
}): Promise<SpotOrder[]>;
|
|
57
81
|
getAllOrders(params: GetAllOrdersParams): Promise<SpotOrder[]>;
|
|
58
82
|
/**
|
|
59
83
|
* @deprecated
|
|
@@ -88,13 +112,15 @@ export declare class MainClient extends BaseRestClient {
|
|
|
88
112
|
/**
|
|
89
113
|
* Get current account information
|
|
90
114
|
*/
|
|
91
|
-
getAccountInformation(
|
|
115
|
+
getAccountInformation(params?: {
|
|
116
|
+
omitZeroBalances?: boolean;
|
|
117
|
+
}): Promise<AccountInformation>;
|
|
92
118
|
getAccountTradeList(params: SymbolFromPaginatedRequestFromId & {
|
|
93
119
|
orderId?: number;
|
|
94
120
|
}): Promise<RawAccountTrade[]>;
|
|
95
121
|
getOrderRateLimit(): Promise<OrderRateLimitUsage[]>;
|
|
96
122
|
getPreventedMatches(params: PreventedMatchesParams): Promise<PreventedMatch[]>;
|
|
97
|
-
getAllocations(params: AllocationsParams): Promise<
|
|
123
|
+
getAllocations(params: AllocationsParams): Promise<Allocation[]>;
|
|
98
124
|
getCommissionRates(params: {
|
|
99
125
|
symbol: string;
|
|
100
126
|
}): Promise<CommissionRates>;
|
|
@@ -302,17 +328,23 @@ export declare class MainClient extends BaseRestClient {
|
|
|
302
328
|
*
|
|
303
329
|
**/
|
|
304
330
|
getAssetDetail(params?: Partial<BasicAssetParam>): Promise<Record<ExchangeSymbol, AssetDetail>>;
|
|
305
|
-
getWalletBalances(
|
|
331
|
+
getWalletBalances(params?: {
|
|
332
|
+
quoteAsset?: string;
|
|
333
|
+
}): Promise<WalletBalance[]>;
|
|
306
334
|
getUserAsset(params: GetAssetParams): Promise<UserAsset[]>;
|
|
307
335
|
submitUniversalTransfer(params: UniversalTransferParams): Promise<{
|
|
308
336
|
tranId: number;
|
|
309
337
|
}>;
|
|
310
338
|
getUniversalTransferHistory(params: UniversalTransferHistoryParams): Promise<any>;
|
|
311
|
-
getDust(
|
|
339
|
+
getDust(params: {
|
|
340
|
+
accountType?: 'SPOT' | 'MARGIN';
|
|
341
|
+
}): Promise<DustInfo>;
|
|
312
342
|
convertDustToBnb(params: ConvertDustParams): Promise<DustConversion>;
|
|
313
343
|
getDustLog(params?: BasicTimeRangeParam): Promise<DustLog>;
|
|
314
344
|
getAssetDividendRecord(params?: BasicAssetPaginatedParams): Promise<any>;
|
|
315
|
-
getTradeFee(params?:
|
|
345
|
+
getTradeFee(params?: {
|
|
346
|
+
symbol?: string;
|
|
347
|
+
}): Promise<SymbolTradeFee[]>;
|
|
316
348
|
getFundingAsset(params: GetAssetParams): Promise<FundingAsset[]>;
|
|
317
349
|
getCloudMiningHistory(params: CloudMiningHistoryParams): Promise<{
|
|
318
350
|
total: number;
|
|
@@ -502,6 +534,13 @@ export declare class MainClient extends BaseRestClient {
|
|
|
502
534
|
subAccountTransferToMaster(params: SubAccountTransferToMasterParams): Promise<SubAccountTransfer>;
|
|
503
535
|
subAccountTransferToSameMaster(params: SubAccountTransferToSameMasterParams): Promise<SubAccountTransfer>;
|
|
504
536
|
subAccountUniversalTransfer(params: SubAccountUniversalTransferParams): Promise<SubAccountUniversalTransfer>;
|
|
537
|
+
subAccountMovePosition(params: SubAccountMovePositionParams): Promise<{
|
|
538
|
+
movePositionOrders: SubAccountMovePosition[];
|
|
539
|
+
}>;
|
|
540
|
+
getSubAccountFuturesPositionMoveHistory(params: SubAccountMovePositionHistoryParams): Promise<{
|
|
541
|
+
total: number;
|
|
542
|
+
futureMovePositionOrderVoList: SubAccountMovePositionHistory[];
|
|
543
|
+
}>;
|
|
505
544
|
/**
|
|
506
545
|
*
|
|
507
546
|
* SUB ACCOUNT Endpoints - Managed Sub Account
|
|
@@ -567,23 +606,12 @@ export declare class MainClient extends BaseRestClient {
|
|
|
567
606
|
*/
|
|
568
607
|
submitAutoInvestOneTimeTransaction(params: SubmitOneTimeTransactionParams): Promise<SubmitOneTimeTransactionResponse>;
|
|
569
608
|
updateAutoInvestPlanStatus(params: ChangePlanStatusParams): Promise<ChangePlanStatusResponse>;
|
|
570
|
-
/**
|
|
571
|
-
*
|
|
572
|
-
* @deprecated , use updateAutoInvestmentPlan instead
|
|
573
|
-
*
|
|
574
|
-
**/
|
|
575
|
-
updateAutoInvestmentPlanOld(params: EditInvestmentPlanParams): Promise<EditInvestmentPlanResponse>;
|
|
576
609
|
updateAutoInvestmentPlan(params: EditInvestmentPlanParams): Promise<EditInvestmentPlanResponse>;
|
|
577
610
|
submitAutoInvestRedemption(params: SubmitIndexLinkedPlanRedemptionParams): Promise<{
|
|
578
611
|
redemptionId: number;
|
|
579
612
|
}>;
|
|
580
613
|
getAutoInvestSubscriptionTransactions(params: GetSubscriptionTransactionHistoryParams): Promise<any>;
|
|
581
614
|
getOneTimeTransactionStatus(params: GetOneTimeTransactionStatusParams): Promise<GetOneTimeTransactionStatusResponse>;
|
|
582
|
-
/**
|
|
583
|
-
* @deprecated , use submitAutoInvestmentPlan instead
|
|
584
|
-
*
|
|
585
|
-
**/
|
|
586
|
-
submitAutoInvestmentPlanOld(params: CreateInvestmentPlanParams): Promise<CreateInvestmentPlanResponse>;
|
|
587
615
|
submitAutoInvestmentPlan(params: CreateInvestmentPlanParams): Promise<CreateInvestmentPlanResponse>;
|
|
588
616
|
getAutoInvestRedemptionHistory(params: GetIndexLinkedPlanRedemptionHistoryParams): Promise<IndexLinkedPlanRedemptionRecord[]>;
|
|
589
617
|
getAutoInvestPlan(params: GetPlanDetailsParams): Promise<any>;
|
|
@@ -1220,6 +1248,35 @@ export declare class MainClient extends BaseRestClient {
|
|
|
1220
1248
|
targetAsset: string;
|
|
1221
1249
|
amount: number;
|
|
1222
1250
|
}): Promise<PMProRedeemBFUSDResponse>;
|
|
1251
|
+
getPortfolioMarginBankruptcyLoanRepayHistory(params?: {
|
|
1252
|
+
startTime?: number;
|
|
1253
|
+
endTime?: number;
|
|
1254
|
+
current?: number;
|
|
1255
|
+
size?: number;
|
|
1256
|
+
}): Promise<{
|
|
1257
|
+
total: number;
|
|
1258
|
+
rows: PMProBankruptcyLoanRepaymentHistory[];
|
|
1259
|
+
}>;
|
|
1260
|
+
/**
|
|
1261
|
+
* Transfer LDUSDT as collateral for all types of Portfolio Margin account
|
|
1262
|
+
*/
|
|
1263
|
+
transferLDUSDTPortfolioMargin(params: {
|
|
1264
|
+
asset: string;
|
|
1265
|
+
transferType: 'EARN_TO_FUTURE' | 'FUTURE_TO_EARN';
|
|
1266
|
+
amount: number;
|
|
1267
|
+
}): Promise<{
|
|
1268
|
+
msg: string;
|
|
1269
|
+
}>;
|
|
1270
|
+
/**
|
|
1271
|
+
* Get transferable earn asset balance for all types of Portfolio Margin account
|
|
1272
|
+
*/
|
|
1273
|
+
getTransferableEarnAssetBalanceForPortfolioMargin(params: {
|
|
1274
|
+
asset: string;
|
|
1275
|
+
transferType: 'EARN_TO_FUTURE' | 'FUTURE_TO_EARN';
|
|
1276
|
+
}): Promise<{
|
|
1277
|
+
asset: string;
|
|
1278
|
+
amount: string;
|
|
1279
|
+
}>;
|
|
1223
1280
|
/**
|
|
1224
1281
|
*
|
|
1225
1282
|
* DERIVATIVES - Futures Data - Market
|
|
@@ -1312,6 +1369,17 @@ export declare class MainClient extends BaseRestClient {
|
|
|
1312
1369
|
spotBNBBurn: boolean;
|
|
1313
1370
|
interestBNBBurn: boolean;
|
|
1314
1371
|
}>;
|
|
1372
|
+
/**
|
|
1373
|
+
* Caution:
|
|
1374
|
+
* The operation will delete a sub account under your brokerage master account.
|
|
1375
|
+
* Please transfer out all funds from the sub account and delete API key of the sub account before deleting it.
|
|
1376
|
+
* The deleted sub account CANNOT be reverted.
|
|
1377
|
+
* The daily deletion limit for a broker Master is 20 sub accounts.
|
|
1378
|
+
* You need to enable "trade" option for the api key which requests this endpoint.
|
|
1379
|
+
*/
|
|
1380
|
+
deleteBrokerSubAccount(params: {
|
|
1381
|
+
subAccountId: string;
|
|
1382
|
+
}): Promise<any>;
|
|
1315
1383
|
/**
|
|
1316
1384
|
*
|
|
1317
1385
|
* EXCHANGE LINK - Account Endpoints
|
|
@@ -1564,7 +1632,3 @@ export declare class MainClient extends BaseRestClient {
|
|
|
1564
1632
|
rows: BUSDConversionRecord[];
|
|
1565
1633
|
}>;
|
|
1566
1634
|
}
|
|
1567
|
-
/**
|
|
1568
|
-
* @deprecated use MainClient instead of SpotClient (it is the same)
|
|
1569
|
-
*/
|
|
1570
|
-
export declare const SpotClient: typeof MainClient;
|