ccxt 4.1.97 → 4.1.99
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 +3 -3
- package/build.sh +1 -1
- package/dist/ccxt.browser.js +524 -230
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/Exchange.js +29 -0
- package/dist/cjs/src/binance.js +113 -91
- package/dist/cjs/src/bingx.js +58 -9
- package/dist/cjs/src/bitget.js +108 -51
- package/dist/cjs/src/bitmart.js +71 -17
- package/dist/cjs/src/bitvavo.js +52 -14
- package/dist/cjs/src/coinex.js +58 -21
- package/dist/cjs/src/kraken.js +21 -16
- package/dist/cjs/src/phemex.js +3 -3
- package/dist/cjs/src/pro/binance.js +1 -1
- package/dist/cjs/src/pro/bingx.js +6 -3
- package/dist/cjs/src/pro/bitget.js +1 -1
- package/dist/cjs/src/pro/bitmart.js +1 -1
- package/dist/cjs/src/pro/bybit.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/binance.d.ts +16 -0
- package/js/src/abstract/binancecoinm.d.ts +16 -0
- package/js/src/abstract/binanceus.d.ts +16 -0
- package/js/src/abstract/binanceusdm.d.ts +16 -0
- package/js/src/abstract/coinex.d.ts +14 -1
- package/js/src/base/Exchange.d.ts +4 -0
- package/js/src/base/Exchange.js +29 -0
- package/js/src/binance.js +113 -91
- package/js/src/bingx.d.ts +1 -0
- package/js/src/bingx.js +58 -9
- package/js/src/bitget.js +108 -51
- package/js/src/bitmart.js +71 -17
- package/js/src/bitvavo.js +52 -14
- package/js/src/coinex.js +58 -21
- package/js/src/kraken.js +21 -16
- package/js/src/phemex.js +3 -3
- package/js/src/pro/binance.js +1 -1
- package/js/src/pro/bingx.js +6 -3
- package/js/src/pro/bitget.js +1 -1
- package/js/src/pro/bitmart.js +1 -1
- package/js/src/pro/bybit.js +1 -1
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/package.json +13 -13
- package/skip-tests.json +119 -71
- package/run-tests-ws.js +0 -290
|
@@ -169,7 +169,8 @@ class bingx extends bingx$1 {
|
|
|
169
169
|
const data = this.safeValue(message, 'data', []);
|
|
170
170
|
const messageHash = this.safeString(message, 'dataType');
|
|
171
171
|
const marketId = messageHash.split('@')[0];
|
|
172
|
-
const
|
|
172
|
+
const isSwap = client.url.indexOf('swap') >= 0;
|
|
173
|
+
const marketType = isSwap ? 'swap' : 'spot';
|
|
173
174
|
const market = this.safeMarket(marketId, undefined, undefined, marketType);
|
|
174
175
|
const symbol = market['symbol'];
|
|
175
176
|
let trades = undefined;
|
|
@@ -284,7 +285,8 @@ class bingx extends bingx$1 {
|
|
|
284
285
|
const data = this.safeValue(message, 'data', []);
|
|
285
286
|
const messageHash = this.safeString(message, 'dataType');
|
|
286
287
|
const marketId = messageHash.split('@')[0];
|
|
287
|
-
const
|
|
288
|
+
const isSwap = client.url.indexOf('swap') >= 0;
|
|
289
|
+
const marketType = isSwap ? 'swap' : 'spot';
|
|
288
290
|
const market = this.safeMarket(marketId, undefined, undefined, marketType);
|
|
289
291
|
const symbol = market['symbol'];
|
|
290
292
|
let orderbook = this.safeValue(this.orderbooks, symbol);
|
|
@@ -376,7 +378,8 @@ class bingx extends bingx$1 {
|
|
|
376
378
|
const messageHash = this.safeString(message, 'dataType');
|
|
377
379
|
const timeframeId = messageHash.split('_')[1];
|
|
378
380
|
const marketId = messageHash.split('@')[0];
|
|
379
|
-
const
|
|
381
|
+
const isSwap = client.url.indexOf('swap') >= 0;
|
|
382
|
+
const marketType = isSwap ? 'swap' : 'spot';
|
|
380
383
|
const market = this.safeMarket(marketId, undefined, undefined, marketType);
|
|
381
384
|
const symbol = market['symbol'];
|
|
382
385
|
this.ohlcvs[symbol] = this.safeValue(this.ohlcvs, symbol, {});
|
|
@@ -28,7 +28,7 @@ class bitget extends bitget$1 {
|
|
|
28
28
|
'watchBalance': true,
|
|
29
29
|
'watchMyTrades': true,
|
|
30
30
|
'watchOHLCV': true,
|
|
31
|
-
'watchOHLCVForSymbols':
|
|
31
|
+
'watchOHLCVForSymbols': false,
|
|
32
32
|
'watchOrderBook': true,
|
|
33
33
|
'watchOrderBookForSymbols': true,
|
|
34
34
|
'watchOrders': true,
|
|
@@ -435,7 +435,7 @@ class bitmart extends bitmart$1 {
|
|
|
435
435
|
const symbolKeys = Object.keys(symbols);
|
|
436
436
|
for (let i = 0; i < symbolKeys.length; i++) {
|
|
437
437
|
const symbol = symbolKeys[i];
|
|
438
|
-
const symbolSpecificMessageHash = messageHash + '
|
|
438
|
+
const symbolSpecificMessageHash = messageHash + '::' + symbol;
|
|
439
439
|
client.resolve(newOrders, symbolSpecificMessageHash);
|
|
440
440
|
}
|
|
441
441
|
client.resolve(newOrders, messageHash);
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import type { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.1.
|
|
7
|
+
declare const version = "4.1.98";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.1.
|
|
41
|
+
const version = '4.1.99';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -129,6 +129,15 @@ interface Exchange {
|
|
|
129
129
|
sapiGetLendingUnionInterestHistory(params?: {}): Promise<implicitReturnType>;
|
|
130
130
|
sapiGetLendingProjectList(params?: {}): Promise<implicitReturnType>;
|
|
131
131
|
sapiGetLendingProjectPositionList(params?: {}): Promise<implicitReturnType>;
|
|
132
|
+
sapiGetEthStakingEthHistoryStakingHistory(params?: {}): Promise<implicitReturnType>;
|
|
133
|
+
sapiGetEthStakingEthHistoryRedemptionHistory(params?: {}): Promise<implicitReturnType>;
|
|
134
|
+
sapiGetEthStakingEthHistoryRewardsHistory(params?: {}): Promise<implicitReturnType>;
|
|
135
|
+
sapiGetEthStakingEthQuota(params?: {}): Promise<implicitReturnType>;
|
|
136
|
+
sapiGetEthStakingEthHistoryRateHistory(params?: {}): Promise<implicitReturnType>;
|
|
137
|
+
sapiGetEthStakingAccount(params?: {}): Promise<implicitReturnType>;
|
|
138
|
+
sapiGetEthStakingWbethHistoryWrapHistory(params?: {}): Promise<implicitReturnType>;
|
|
139
|
+
sapiGetEthStakingWbethHistoryUnwrapHistory(params?: {}): Promise<implicitReturnType>;
|
|
140
|
+
sapiGetEthStakingEthHistoryWbethRewardsHistory(params?: {}): Promise<implicitReturnType>;
|
|
132
141
|
sapiGetMiningPubAlgoList(params?: {}): Promise<implicitReturnType>;
|
|
133
142
|
sapiGetMiningPubCoinList(params?: {}): Promise<implicitReturnType>;
|
|
134
143
|
sapiGetMiningWorkerDetail(params?: {}): Promise<implicitReturnType>;
|
|
@@ -308,6 +317,11 @@ interface Exchange {
|
|
|
308
317
|
sapiPostStakingPurchase(params?: {}): Promise<implicitReturnType>;
|
|
309
318
|
sapiPostStakingRedeem(params?: {}): Promise<implicitReturnType>;
|
|
310
319
|
sapiPostStakingSetAutoStaking(params?: {}): Promise<implicitReturnType>;
|
|
320
|
+
sapiPostEthStakingEthStake(params?: {}): Promise<implicitReturnType>;
|
|
321
|
+
sapiPostEthStakingEthRedeem(params?: {}): Promise<implicitReturnType>;
|
|
322
|
+
sapiPostEthStakingWbethWrap(params?: {}): Promise<implicitReturnType>;
|
|
323
|
+
sapiPostMiningHashTransferConfig(params?: {}): Promise<implicitReturnType>;
|
|
324
|
+
sapiPostMiningHashTransferConfigCancel(params?: {}): Promise<implicitReturnType>;
|
|
311
325
|
sapiPostPortfolioRepay(params?: {}): Promise<implicitReturnType>;
|
|
312
326
|
sapiPostLoanVipRenew(params?: {}): Promise<implicitReturnType>;
|
|
313
327
|
sapiPostLoanVipBorrow(params?: {}): Promise<implicitReturnType>;
|
|
@@ -350,9 +364,11 @@ interface Exchange {
|
|
|
350
364
|
sapiDeleteAlgoSpotOrder(params?: {}): Promise<implicitReturnType>;
|
|
351
365
|
sapiDeleteAlgoFuturesOrder(params?: {}): Promise<implicitReturnType>;
|
|
352
366
|
sapiDeleteSubAccountSubAccountApiIpRestrictionIpList(params?: {}): Promise<implicitReturnType>;
|
|
367
|
+
sapiV2GetEthStakingAccount(params?: {}): Promise<implicitReturnType>;
|
|
353
368
|
sapiV2GetSubAccountFuturesAccount(params?: {}): Promise<implicitReturnType>;
|
|
354
369
|
sapiV2GetSubAccountFuturesAccountSummary(params?: {}): Promise<implicitReturnType>;
|
|
355
370
|
sapiV2GetSubAccountFuturesPositionRisk(params?: {}): Promise<implicitReturnType>;
|
|
371
|
+
sapiV2PostEthStakingEthStake(params?: {}): Promise<implicitReturnType>;
|
|
356
372
|
sapiV2PostSubAccountSubAccountApiIpRestriction(params?: {}): Promise<implicitReturnType>;
|
|
357
373
|
sapiV3GetSubAccountAssets(params?: {}): Promise<implicitReturnType>;
|
|
358
374
|
sapiV3PostAssetGetUserAsset(params?: {}): Promise<implicitReturnType>;
|
|
@@ -129,6 +129,15 @@ interface binance {
|
|
|
129
129
|
sapiGetLendingUnionInterestHistory(params?: {}): Promise<implicitReturnType>;
|
|
130
130
|
sapiGetLendingProjectList(params?: {}): Promise<implicitReturnType>;
|
|
131
131
|
sapiGetLendingProjectPositionList(params?: {}): Promise<implicitReturnType>;
|
|
132
|
+
sapiGetEthStakingEthHistoryStakingHistory(params?: {}): Promise<implicitReturnType>;
|
|
133
|
+
sapiGetEthStakingEthHistoryRedemptionHistory(params?: {}): Promise<implicitReturnType>;
|
|
134
|
+
sapiGetEthStakingEthHistoryRewardsHistory(params?: {}): Promise<implicitReturnType>;
|
|
135
|
+
sapiGetEthStakingEthQuota(params?: {}): Promise<implicitReturnType>;
|
|
136
|
+
sapiGetEthStakingEthHistoryRateHistory(params?: {}): Promise<implicitReturnType>;
|
|
137
|
+
sapiGetEthStakingAccount(params?: {}): Promise<implicitReturnType>;
|
|
138
|
+
sapiGetEthStakingWbethHistoryWrapHistory(params?: {}): Promise<implicitReturnType>;
|
|
139
|
+
sapiGetEthStakingWbethHistoryUnwrapHistory(params?: {}): Promise<implicitReturnType>;
|
|
140
|
+
sapiGetEthStakingEthHistoryWbethRewardsHistory(params?: {}): Promise<implicitReturnType>;
|
|
132
141
|
sapiGetMiningPubAlgoList(params?: {}): Promise<implicitReturnType>;
|
|
133
142
|
sapiGetMiningPubCoinList(params?: {}): Promise<implicitReturnType>;
|
|
134
143
|
sapiGetMiningWorkerDetail(params?: {}): Promise<implicitReturnType>;
|
|
@@ -308,6 +317,11 @@ interface binance {
|
|
|
308
317
|
sapiPostStakingPurchase(params?: {}): Promise<implicitReturnType>;
|
|
309
318
|
sapiPostStakingRedeem(params?: {}): Promise<implicitReturnType>;
|
|
310
319
|
sapiPostStakingSetAutoStaking(params?: {}): Promise<implicitReturnType>;
|
|
320
|
+
sapiPostEthStakingEthStake(params?: {}): Promise<implicitReturnType>;
|
|
321
|
+
sapiPostEthStakingEthRedeem(params?: {}): Promise<implicitReturnType>;
|
|
322
|
+
sapiPostEthStakingWbethWrap(params?: {}): Promise<implicitReturnType>;
|
|
323
|
+
sapiPostMiningHashTransferConfig(params?: {}): Promise<implicitReturnType>;
|
|
324
|
+
sapiPostMiningHashTransferConfigCancel(params?: {}): Promise<implicitReturnType>;
|
|
311
325
|
sapiPostPortfolioRepay(params?: {}): Promise<implicitReturnType>;
|
|
312
326
|
sapiPostLoanVipRenew(params?: {}): Promise<implicitReturnType>;
|
|
313
327
|
sapiPostLoanVipBorrow(params?: {}): Promise<implicitReturnType>;
|
|
@@ -350,9 +364,11 @@ interface binance {
|
|
|
350
364
|
sapiDeleteAlgoSpotOrder(params?: {}): Promise<implicitReturnType>;
|
|
351
365
|
sapiDeleteAlgoFuturesOrder(params?: {}): Promise<implicitReturnType>;
|
|
352
366
|
sapiDeleteSubAccountSubAccountApiIpRestrictionIpList(params?: {}): Promise<implicitReturnType>;
|
|
367
|
+
sapiV2GetEthStakingAccount(params?: {}): Promise<implicitReturnType>;
|
|
353
368
|
sapiV2GetSubAccountFuturesAccount(params?: {}): Promise<implicitReturnType>;
|
|
354
369
|
sapiV2GetSubAccountFuturesAccountSummary(params?: {}): Promise<implicitReturnType>;
|
|
355
370
|
sapiV2GetSubAccountFuturesPositionRisk(params?: {}): Promise<implicitReturnType>;
|
|
371
|
+
sapiV2PostEthStakingEthStake(params?: {}): Promise<implicitReturnType>;
|
|
356
372
|
sapiV2PostSubAccountSubAccountApiIpRestriction(params?: {}): Promise<implicitReturnType>;
|
|
357
373
|
sapiV3GetSubAccountAssets(params?: {}): Promise<implicitReturnType>;
|
|
358
374
|
sapiV3PostAssetGetUserAsset(params?: {}): Promise<implicitReturnType>;
|
|
@@ -129,6 +129,15 @@ interface binance {
|
|
|
129
129
|
sapiGetLendingUnionInterestHistory(params?: {}): Promise<implicitReturnType>;
|
|
130
130
|
sapiGetLendingProjectList(params?: {}): Promise<implicitReturnType>;
|
|
131
131
|
sapiGetLendingProjectPositionList(params?: {}): Promise<implicitReturnType>;
|
|
132
|
+
sapiGetEthStakingEthHistoryStakingHistory(params?: {}): Promise<implicitReturnType>;
|
|
133
|
+
sapiGetEthStakingEthHistoryRedemptionHistory(params?: {}): Promise<implicitReturnType>;
|
|
134
|
+
sapiGetEthStakingEthHistoryRewardsHistory(params?: {}): Promise<implicitReturnType>;
|
|
135
|
+
sapiGetEthStakingEthQuota(params?: {}): Promise<implicitReturnType>;
|
|
136
|
+
sapiGetEthStakingEthHistoryRateHistory(params?: {}): Promise<implicitReturnType>;
|
|
137
|
+
sapiGetEthStakingAccount(params?: {}): Promise<implicitReturnType>;
|
|
138
|
+
sapiGetEthStakingWbethHistoryWrapHistory(params?: {}): Promise<implicitReturnType>;
|
|
139
|
+
sapiGetEthStakingWbethHistoryUnwrapHistory(params?: {}): Promise<implicitReturnType>;
|
|
140
|
+
sapiGetEthStakingEthHistoryWbethRewardsHistory(params?: {}): Promise<implicitReturnType>;
|
|
132
141
|
sapiGetMiningPubAlgoList(params?: {}): Promise<implicitReturnType>;
|
|
133
142
|
sapiGetMiningPubCoinList(params?: {}): Promise<implicitReturnType>;
|
|
134
143
|
sapiGetMiningWorkerDetail(params?: {}): Promise<implicitReturnType>;
|
|
@@ -308,6 +317,11 @@ interface binance {
|
|
|
308
317
|
sapiPostStakingPurchase(params?: {}): Promise<implicitReturnType>;
|
|
309
318
|
sapiPostStakingRedeem(params?: {}): Promise<implicitReturnType>;
|
|
310
319
|
sapiPostStakingSetAutoStaking(params?: {}): Promise<implicitReturnType>;
|
|
320
|
+
sapiPostEthStakingEthStake(params?: {}): Promise<implicitReturnType>;
|
|
321
|
+
sapiPostEthStakingEthRedeem(params?: {}): Promise<implicitReturnType>;
|
|
322
|
+
sapiPostEthStakingWbethWrap(params?: {}): Promise<implicitReturnType>;
|
|
323
|
+
sapiPostMiningHashTransferConfig(params?: {}): Promise<implicitReturnType>;
|
|
324
|
+
sapiPostMiningHashTransferConfigCancel(params?: {}): Promise<implicitReturnType>;
|
|
311
325
|
sapiPostPortfolioRepay(params?: {}): Promise<implicitReturnType>;
|
|
312
326
|
sapiPostLoanVipRenew(params?: {}): Promise<implicitReturnType>;
|
|
313
327
|
sapiPostLoanVipBorrow(params?: {}): Promise<implicitReturnType>;
|
|
@@ -350,9 +364,11 @@ interface binance {
|
|
|
350
364
|
sapiDeleteAlgoSpotOrder(params?: {}): Promise<implicitReturnType>;
|
|
351
365
|
sapiDeleteAlgoFuturesOrder(params?: {}): Promise<implicitReturnType>;
|
|
352
366
|
sapiDeleteSubAccountSubAccountApiIpRestrictionIpList(params?: {}): Promise<implicitReturnType>;
|
|
367
|
+
sapiV2GetEthStakingAccount(params?: {}): Promise<implicitReturnType>;
|
|
353
368
|
sapiV2GetSubAccountFuturesAccount(params?: {}): Promise<implicitReturnType>;
|
|
354
369
|
sapiV2GetSubAccountFuturesAccountSummary(params?: {}): Promise<implicitReturnType>;
|
|
355
370
|
sapiV2GetSubAccountFuturesPositionRisk(params?: {}): Promise<implicitReturnType>;
|
|
371
|
+
sapiV2PostEthStakingEthStake(params?: {}): Promise<implicitReturnType>;
|
|
356
372
|
sapiV2PostSubAccountSubAccountApiIpRestriction(params?: {}): Promise<implicitReturnType>;
|
|
357
373
|
sapiV3GetSubAccountAssets(params?: {}): Promise<implicitReturnType>;
|
|
358
374
|
sapiV3PostAssetGetUserAsset(params?: {}): Promise<implicitReturnType>;
|
|
@@ -129,6 +129,15 @@ interface binance {
|
|
|
129
129
|
sapiGetLendingUnionInterestHistory(params?: {}): Promise<implicitReturnType>;
|
|
130
130
|
sapiGetLendingProjectList(params?: {}): Promise<implicitReturnType>;
|
|
131
131
|
sapiGetLendingProjectPositionList(params?: {}): Promise<implicitReturnType>;
|
|
132
|
+
sapiGetEthStakingEthHistoryStakingHistory(params?: {}): Promise<implicitReturnType>;
|
|
133
|
+
sapiGetEthStakingEthHistoryRedemptionHistory(params?: {}): Promise<implicitReturnType>;
|
|
134
|
+
sapiGetEthStakingEthHistoryRewardsHistory(params?: {}): Promise<implicitReturnType>;
|
|
135
|
+
sapiGetEthStakingEthQuota(params?: {}): Promise<implicitReturnType>;
|
|
136
|
+
sapiGetEthStakingEthHistoryRateHistory(params?: {}): Promise<implicitReturnType>;
|
|
137
|
+
sapiGetEthStakingAccount(params?: {}): Promise<implicitReturnType>;
|
|
138
|
+
sapiGetEthStakingWbethHistoryWrapHistory(params?: {}): Promise<implicitReturnType>;
|
|
139
|
+
sapiGetEthStakingWbethHistoryUnwrapHistory(params?: {}): Promise<implicitReturnType>;
|
|
140
|
+
sapiGetEthStakingEthHistoryWbethRewardsHistory(params?: {}): Promise<implicitReturnType>;
|
|
132
141
|
sapiGetMiningPubAlgoList(params?: {}): Promise<implicitReturnType>;
|
|
133
142
|
sapiGetMiningPubCoinList(params?: {}): Promise<implicitReturnType>;
|
|
134
143
|
sapiGetMiningWorkerDetail(params?: {}): Promise<implicitReturnType>;
|
|
@@ -308,6 +317,11 @@ interface binance {
|
|
|
308
317
|
sapiPostStakingPurchase(params?: {}): Promise<implicitReturnType>;
|
|
309
318
|
sapiPostStakingRedeem(params?: {}): Promise<implicitReturnType>;
|
|
310
319
|
sapiPostStakingSetAutoStaking(params?: {}): Promise<implicitReturnType>;
|
|
320
|
+
sapiPostEthStakingEthStake(params?: {}): Promise<implicitReturnType>;
|
|
321
|
+
sapiPostEthStakingEthRedeem(params?: {}): Promise<implicitReturnType>;
|
|
322
|
+
sapiPostEthStakingWbethWrap(params?: {}): Promise<implicitReturnType>;
|
|
323
|
+
sapiPostMiningHashTransferConfig(params?: {}): Promise<implicitReturnType>;
|
|
324
|
+
sapiPostMiningHashTransferConfigCancel(params?: {}): Promise<implicitReturnType>;
|
|
311
325
|
sapiPostPortfolioRepay(params?: {}): Promise<implicitReturnType>;
|
|
312
326
|
sapiPostLoanVipRenew(params?: {}): Promise<implicitReturnType>;
|
|
313
327
|
sapiPostLoanVipBorrow(params?: {}): Promise<implicitReturnType>;
|
|
@@ -350,9 +364,11 @@ interface binance {
|
|
|
350
364
|
sapiDeleteAlgoSpotOrder(params?: {}): Promise<implicitReturnType>;
|
|
351
365
|
sapiDeleteAlgoFuturesOrder(params?: {}): Promise<implicitReturnType>;
|
|
352
366
|
sapiDeleteSubAccountSubAccountApiIpRestrictionIpList(params?: {}): Promise<implicitReturnType>;
|
|
367
|
+
sapiV2GetEthStakingAccount(params?: {}): Promise<implicitReturnType>;
|
|
353
368
|
sapiV2GetSubAccountFuturesAccount(params?: {}): Promise<implicitReturnType>;
|
|
354
369
|
sapiV2GetSubAccountFuturesAccountSummary(params?: {}): Promise<implicitReturnType>;
|
|
355
370
|
sapiV2GetSubAccountFuturesPositionRisk(params?: {}): Promise<implicitReturnType>;
|
|
371
|
+
sapiV2PostEthStakingEthStake(params?: {}): Promise<implicitReturnType>;
|
|
356
372
|
sapiV2PostSubAccountSubAccountApiIpRestriction(params?: {}): Promise<implicitReturnType>;
|
|
357
373
|
sapiV3GetSubAccountAssets(params?: {}): Promise<implicitReturnType>;
|
|
358
374
|
sapiV3PostAssetGetUserAsset(params?: {}): Promise<implicitReturnType>;
|
|
@@ -64,6 +64,8 @@ interface Exchange {
|
|
|
64
64
|
privatePostSubAccountFrozen(params?: {}): Promise<implicitReturnType>;
|
|
65
65
|
privatePostSubAccountAuthApi(params?: {}): Promise<implicitReturnType>;
|
|
66
66
|
privatePutBalanceDepositAddressCoinType(params?: {}): Promise<implicitReturnType>;
|
|
67
|
+
privatePutSubAccountUnfrozen(params?: {}): Promise<implicitReturnType>;
|
|
68
|
+
privatePutSubAccountFrozen(params?: {}): Promise<implicitReturnType>;
|
|
67
69
|
privatePutSubAccountAuthApiUserAuthId(params?: {}): Promise<implicitReturnType>;
|
|
68
70
|
privatePutV1AccountSettings(params?: {}): Promise<implicitReturnType>;
|
|
69
71
|
privateDeleteBalanceCoinWithdraw(params?: {}): Promise<implicitReturnType>;
|
|
@@ -71,7 +73,10 @@ interface Exchange {
|
|
|
71
73
|
privateDeleteOrderPending(params?: {}): Promise<implicitReturnType>;
|
|
72
74
|
privateDeleteOrderStopPending(params?: {}): Promise<implicitReturnType>;
|
|
73
75
|
privateDeleteOrderStopPendingId(params?: {}): Promise<implicitReturnType>;
|
|
76
|
+
privateDeleteOrderPendingByClientId(params?: {}): Promise<implicitReturnType>;
|
|
77
|
+
privateDeleteOrderStopPendingByClientId(params?: {}): Promise<implicitReturnType>;
|
|
74
78
|
privateDeleteSubAccountAuthApiUserAuthId(params?: {}): Promise<implicitReturnType>;
|
|
79
|
+
privateDeleteSubAccountAuthorizeId(params?: {}): Promise<implicitReturnType>;
|
|
75
80
|
perpetualPublicGetPing(params?: {}): Promise<implicitReturnType>;
|
|
76
81
|
perpetualPublicGetTime(params?: {}): Promise<implicitReturnType>;
|
|
77
82
|
perpetualPublicGetMarketList(params?: {}): Promise<implicitReturnType>;
|
|
@@ -81,8 +86,8 @@ interface Exchange {
|
|
|
81
86
|
perpetualPublicGetMarketDepth(params?: {}): Promise<implicitReturnType>;
|
|
82
87
|
perpetualPublicGetMarketDeals(params?: {}): Promise<implicitReturnType>;
|
|
83
88
|
perpetualPublicGetMarketFundingHistory(params?: {}): Promise<implicitReturnType>;
|
|
84
|
-
perpetualPublicGetMarketUserDeals(params?: {}): Promise<implicitReturnType>;
|
|
85
89
|
perpetualPublicGetMarketKline(params?: {}): Promise<implicitReturnType>;
|
|
90
|
+
perpetualPrivateGetMarketUserDeals(params?: {}): Promise<implicitReturnType>;
|
|
86
91
|
perpetualPrivateGetAssetQuery(params?: {}): Promise<implicitReturnType>;
|
|
87
92
|
perpetualPrivateGetOrderPending(params?: {}): Promise<implicitReturnType>;
|
|
88
93
|
perpetualPrivateGetOrderFinished(params?: {}): Promise<implicitReturnType>;
|
|
@@ -90,8 +95,13 @@ interface Exchange {
|
|
|
90
95
|
perpetualPrivateGetOrderStopPending(params?: {}): Promise<implicitReturnType>;
|
|
91
96
|
perpetualPrivateGetOrderStatus(params?: {}): Promise<implicitReturnType>;
|
|
92
97
|
perpetualPrivateGetOrderStopStatus(params?: {}): Promise<implicitReturnType>;
|
|
98
|
+
perpetualPrivateGetPositionFinished(params?: {}): Promise<implicitReturnType>;
|
|
93
99
|
perpetualPrivateGetPositionPending(params?: {}): Promise<implicitReturnType>;
|
|
94
100
|
perpetualPrivateGetPositionFunding(params?: {}): Promise<implicitReturnType>;
|
|
101
|
+
perpetualPrivateGetPositionAdlHistory(params?: {}): Promise<implicitReturnType>;
|
|
102
|
+
perpetualPrivateGetMarketPreference(params?: {}): Promise<implicitReturnType>;
|
|
103
|
+
perpetualPrivateGetPositionMarginHistory(params?: {}): Promise<implicitReturnType>;
|
|
104
|
+
perpetualPrivateGetPositionSettleHistory(params?: {}): Promise<implicitReturnType>;
|
|
95
105
|
perpetualPrivatePostMarketAdjustLeverage(params?: {}): Promise<implicitReturnType>;
|
|
96
106
|
perpetualPrivatePostMarketPositionExpect(params?: {}): Promise<implicitReturnType>;
|
|
97
107
|
perpetualPrivatePostOrderPutLimit(params?: {}): Promise<implicitReturnType>;
|
|
@@ -111,6 +121,9 @@ interface Exchange {
|
|
|
111
121
|
perpetualPrivatePostPositionStopLoss(params?: {}): Promise<implicitReturnType>;
|
|
112
122
|
perpetualPrivatePostPositionTakeProfit(params?: {}): Promise<implicitReturnType>;
|
|
113
123
|
perpetualPrivatePostPositionMarketClose(params?: {}): Promise<implicitReturnType>;
|
|
124
|
+
perpetualPrivatePostOrderCancelByClientId(params?: {}): Promise<implicitReturnType>;
|
|
125
|
+
perpetualPrivatePostOrderCancelStopByClientId(params?: {}): Promise<implicitReturnType>;
|
|
126
|
+
perpetualPrivatePostMarketPreference(params?: {}): Promise<implicitReturnType>;
|
|
114
127
|
}
|
|
115
128
|
declare abstract class Exchange extends _Exchange {
|
|
116
129
|
}
|
|
@@ -311,7 +311,9 @@ export default class Exchange {
|
|
|
311
311
|
createOrderWs: any;
|
|
312
312
|
editOrderWs: any;
|
|
313
313
|
fetchOpenOrdersWs: any;
|
|
314
|
+
fetchClosedOrdersWs: any;
|
|
314
315
|
fetchOrderWs: any;
|
|
316
|
+
fetchOrdersWs: any;
|
|
315
317
|
cancelOrderWs: any;
|
|
316
318
|
cancelOrdersWs: any;
|
|
317
319
|
cancelAllOrdersWs: any;
|
|
@@ -779,11 +781,13 @@ export default class Exchange {
|
|
|
779
781
|
cancelAllOrdersWs(symbol?: string, params?: {}): Promise<any>;
|
|
780
782
|
cancelUnifiedOrder(order: any, params?: {}): Promise<any>;
|
|
781
783
|
fetchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
784
|
+
fetchOrdersWs(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
782
785
|
fetchOrderTrades(id: string, symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
783
786
|
watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
784
787
|
fetchOpenOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
785
788
|
fetchOpenOrdersWs(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
786
789
|
fetchClosedOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
790
|
+
fetchClosedOrdersWs(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
787
791
|
fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
788
792
|
fetchMyLiquidations(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Liquidation[]>;
|
|
789
793
|
fetchLiquidations(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Liquidation[]>;
|
package/js/src/base/Exchange.js
CHANGED
|
@@ -367,7 +367,9 @@ export default class Exchange {
|
|
|
367
367
|
'createOrderWs': undefined,
|
|
368
368
|
'editOrderWs': undefined,
|
|
369
369
|
'fetchOpenOrdersWs': undefined,
|
|
370
|
+
'fetchClosedOrdersWs': undefined,
|
|
370
371
|
'fetchOrderWs': undefined,
|
|
372
|
+
'fetchOrdersWs': undefined,
|
|
371
373
|
'cancelOrderWs': undefined,
|
|
372
374
|
'cancelOrdersWs': undefined,
|
|
373
375
|
'cancelAllOrdersWs': undefined,
|
|
@@ -2283,6 +2285,11 @@ export default class Exchange {
|
|
|
2283
2285
|
if ('rate' in tradeFee) {
|
|
2284
2286
|
tradeFee['rate'] = this.safeNumber(tradeFee, 'rate');
|
|
2285
2287
|
}
|
|
2288
|
+
const entryFees = this.safeValue(entry, 'fees', []);
|
|
2289
|
+
for (let j = 0; j < entryFees.length; j++) {
|
|
2290
|
+
entryFees[j]['cost'] = this.safeNumber(entryFees[j], 'cost');
|
|
2291
|
+
}
|
|
2292
|
+
entry['fees'] = entryFees;
|
|
2286
2293
|
entry['fee'] = tradeFee;
|
|
2287
2294
|
}
|
|
2288
2295
|
let timeInForce = this.safeString(order, 'timeInForce');
|
|
@@ -3756,6 +3763,9 @@ export default class Exchange {
|
|
|
3756
3763
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3757
3764
|
throw new NotSupported(this.id + ' fetchOrders() is not supported yet');
|
|
3758
3765
|
}
|
|
3766
|
+
async fetchOrdersWs(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3767
|
+
throw new NotSupported(this.id + ' fetchOrdersWs() is not supported yet');
|
|
3768
|
+
}
|
|
3759
3769
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3760
3770
|
throw new NotSupported(this.id + ' fetchOrderTrades() is not supported yet');
|
|
3761
3771
|
}
|
|
@@ -3763,14 +3773,33 @@ export default class Exchange {
|
|
|
3763
3773
|
throw new NotSupported(this.id + ' watchOrders() is not supported yet');
|
|
3764
3774
|
}
|
|
3765
3775
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3776
|
+
if (this.has['fetchOrders']) {
|
|
3777
|
+
const orders = await this.fetchOrders(symbol, since, limit, params);
|
|
3778
|
+
return this.filterBy(orders, 'status', 'open');
|
|
3779
|
+
}
|
|
3766
3780
|
throw new NotSupported(this.id + ' fetchOpenOrders() is not supported yet');
|
|
3767
3781
|
}
|
|
3768
3782
|
async fetchOpenOrdersWs(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3783
|
+
if (this.has['fetchOrdersWs']) {
|
|
3784
|
+
const orders = await this.fetchOrdersWs(symbol, since, limit, params);
|
|
3785
|
+
return this.filterBy(orders, 'status', 'open');
|
|
3786
|
+
}
|
|
3769
3787
|
throw new NotSupported(this.id + ' fetchOpenOrdersWs() is not supported yet');
|
|
3770
3788
|
}
|
|
3771
3789
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3790
|
+
if (this.has['fetchOrders']) {
|
|
3791
|
+
const orders = await this.fetchOrders(symbol, since, limit, params);
|
|
3792
|
+
return this.filterBy(orders, 'status', 'closed');
|
|
3793
|
+
}
|
|
3772
3794
|
throw new NotSupported(this.id + ' fetchClosedOrders() is not supported yet');
|
|
3773
3795
|
}
|
|
3796
|
+
async fetchClosedOrdersWs(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3797
|
+
if (this.has['fetchOrdersWs']) {
|
|
3798
|
+
const orders = await this.fetchOrdersWs(symbol, since, limit, params);
|
|
3799
|
+
return this.filterBy(orders, 'status', 'closed');
|
|
3800
|
+
}
|
|
3801
|
+
throw new NotSupported(this.id + ' fetchClosedOrdersWs() is not supported yet');
|
|
3802
|
+
}
|
|
3774
3803
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3775
3804
|
throw new NotSupported(this.id + ' fetchMyTrades() is not supported yet');
|
|
3776
3805
|
}
|