ccxt 4.3.87 → 4.3.88
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/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/kucoin.js +2 -0
- package/dist/cjs/src/pro/bitfinex.js +1 -0
- package/dist/cjs/src/pro/bitfinex2.js +1 -0
- package/dist/cjs/src/pro/bitopro.js +1 -0
- package/dist/cjs/src/pro/bitstamp.js +1 -0
- package/dist/cjs/src/pro/blockchaincom.js +1 -0
- package/dist/cjs/src/pro/cex.js +1 -0
- package/dist/cjs/src/pro/coincheck.js +1 -0
- package/dist/cjs/src/pro/coinone.js +1 -0
- package/dist/cjs/src/pro/hashkey.js +1 -0
- package/dist/cjs/src/pro/hitbtc.js +1 -0
- package/dist/cjs/src/pro/hollaex.js +1 -0
- package/dist/cjs/src/pro/htx.js +1 -0
- package/dist/cjs/src/pro/huobijp.js +1 -0
- package/dist/cjs/src/pro/hyperliquid.js +7 -0
- package/dist/cjs/src/pro/independentreserve.js +1 -0
- package/dist/cjs/src/pro/lbank.js +1 -0
- package/dist/cjs/src/pro/luno.js +1 -0
- package/dist/cjs/src/pro/ndax.js +5 -0
- package/dist/cjs/src/pro/okcoin.js +7 -0
- package/dist/cjs/src/pro/onetrading.js +1 -0
- package/dist/cjs/src/pro/paradex.js +1 -0
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/kucoin.d.ts +1 -0
- package/js/src/abstract/kucoinfutures.d.ts +1 -0
- package/js/src/base/Exchange.d.ts +1 -1
- package/js/src/base/Exchange.js +2 -2
- package/js/src/coinex.d.ts +1 -1
- package/js/src/kucoin.js +2 -0
- package/js/src/pro/bitfinex.js +1 -0
- package/js/src/pro/bitfinex2.js +1 -0
- package/js/src/pro/bitopro.js +1 -0
- package/js/src/pro/bitstamp.js +1 -0
- package/js/src/pro/blockchaincom.js +1 -0
- package/js/src/pro/cex.js +1 -0
- package/js/src/pro/coincheck.js +1 -0
- package/js/src/pro/coinone.js +1 -0
- package/js/src/pro/hashkey.js +1 -0
- package/js/src/pro/hitbtc.js +1 -0
- package/js/src/pro/hollaex.js +1 -0
- package/js/src/pro/htx.js +1 -0
- package/js/src/pro/huobijp.js +1 -0
- package/js/src/pro/hyperliquid.js +7 -0
- package/js/src/pro/independentreserve.js +1 -0
- package/js/src/pro/lbank.js +1 -0
- package/js/src/pro/luno.js +1 -0
- package/js/src/pro/ndax.js +5 -0
- package/js/src/pro/okcoin.js +7 -0
- package/js/src/pro/onetrading.js +1 -0
- package/js/src/pro/paradex.js +1 -0
- package/package.json +1 -1
package/dist/cjs/ccxt.js
CHANGED
|
@@ -196,7 +196,7 @@ var xt$1 = require('./src/pro/xt.js');
|
|
|
196
196
|
|
|
197
197
|
//-----------------------------------------------------------------------------
|
|
198
198
|
// this is updated by vss.js when building
|
|
199
|
-
const version = '4.3.
|
|
199
|
+
const version = '4.3.88';
|
|
200
200
|
Exchange["default"].ccxtVersion = version;
|
|
201
201
|
const exchanges = {
|
|
202
202
|
'ace': ace,
|
|
@@ -5999,7 +5999,7 @@ class Exchange {
|
|
|
5999
5999
|
errors$1 = 0;
|
|
6000
6000
|
result = this.arrayConcat(result, response);
|
|
6001
6001
|
const last = this.safeValue(response, responseLength - 1);
|
|
6002
|
-
paginationTimestamp = this.safeInteger(last, 'timestamp')
|
|
6002
|
+
paginationTimestamp = this.safeInteger(last, 'timestamp') + 1;
|
|
6003
6003
|
if ((until !== undefined) && (paginationTimestamp >= until)) {
|
|
6004
6004
|
break;
|
|
6005
6005
|
}
|
|
@@ -6449,7 +6449,7 @@ class Exchange {
|
|
|
6449
6449
|
*/
|
|
6450
6450
|
if (this.has['fetchPositionsHistory']) {
|
|
6451
6451
|
const positions = await this.fetchPositionsHistory([symbol], since, limit, params);
|
|
6452
|
-
return
|
|
6452
|
+
return positions;
|
|
6453
6453
|
}
|
|
6454
6454
|
else {
|
|
6455
6455
|
throw new errors.NotSupported(this.id + ' fetchPositionHistory () is not supported yet');
|
package/dist/cjs/src/kucoin.js
CHANGED
|
@@ -395,6 +395,7 @@ class kucoin extends kucoin$1 {
|
|
|
395
395
|
'broker/nd/account': 2,
|
|
396
396
|
'broker/nd/account/apikey': 2,
|
|
397
397
|
'broker/nd/rebase/download': 3,
|
|
398
|
+
'asset/ndbroker/deposit/list': 1,
|
|
398
399
|
'broker/nd/transfer/detail': 1,
|
|
399
400
|
'broker/nd/deposit/detail': 1,
|
|
400
401
|
'broker/nd/withdraw/detail': 1,
|
|
@@ -686,6 +687,7 @@ class kucoin extends kucoin$1 {
|
|
|
686
687
|
'purchase/orders': 'v3',
|
|
687
688
|
'margin/symbols': 'v3',
|
|
688
689
|
'affiliate/inviter/statistics': 'v2',
|
|
690
|
+
'asset/ndbroker/deposit/list': 'v1',
|
|
689
691
|
},
|
|
690
692
|
'POST': {
|
|
691
693
|
// account
|
package/dist/cjs/src/pro/cex.js
CHANGED
package/dist/cjs/src/pro/htx.js
CHANGED
|
@@ -22,6 +22,7 @@ class hyperliquid extends hyperliquid$1 {
|
|
|
22
22
|
'watchTicker': false,
|
|
23
23
|
'watchTickers': true,
|
|
24
24
|
'watchTrades': true,
|
|
25
|
+
'watchTradesForSymbols': false,
|
|
25
26
|
'watchPosition': false,
|
|
26
27
|
},
|
|
27
28
|
'urls': {
|
|
@@ -137,6 +138,7 @@ class hyperliquid extends hyperliquid$1 {
|
|
|
137
138
|
* @method
|
|
138
139
|
* @name hyperliquid#watchOrderBook
|
|
139
140
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
141
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
140
142
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
141
143
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
142
144
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -210,6 +212,7 @@ class hyperliquid extends hyperliquid$1 {
|
|
|
210
212
|
* @method
|
|
211
213
|
* @name hyperliquid#watchTickers
|
|
212
214
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
215
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
213
216
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
214
217
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
215
218
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -236,6 +239,7 @@ class hyperliquid extends hyperliquid$1 {
|
|
|
236
239
|
* @method
|
|
237
240
|
* @name hyperliquid#watchMyTrades
|
|
238
241
|
* @description watches information on multiple trades made by the user
|
|
242
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
239
243
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
240
244
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
241
245
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -403,6 +407,7 @@ class hyperliquid extends hyperliquid$1 {
|
|
|
403
407
|
* @method
|
|
404
408
|
* @name hyperliquid#watchTrades
|
|
405
409
|
* @description watches information on multiple trades made in a market
|
|
410
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
406
411
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
407
412
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
408
413
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
@@ -533,6 +538,7 @@ class hyperliquid extends hyperliquid$1 {
|
|
|
533
538
|
* @method
|
|
534
539
|
* @name hyperliquid#watchOHLCV
|
|
535
540
|
* @description watches historical candlestick data containing the open, high, low, close price, and the volume of a market
|
|
541
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
536
542
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
537
543
|
* @param {string} timeframe the length of time each candle represents
|
|
538
544
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -618,6 +624,7 @@ class hyperliquid extends hyperliquid$1 {
|
|
|
618
624
|
* @method
|
|
619
625
|
* @name hyperliquid#watchOrders
|
|
620
626
|
* @description watches information on multiple orders made by the user
|
|
627
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
621
628
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
622
629
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
623
630
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
package/dist/cjs/src/pro/luno.js
CHANGED
package/dist/cjs/src/pro/ndax.js
CHANGED
|
@@ -12,6 +12,7 @@ class ndax extends ndax$1 {
|
|
|
12
12
|
'ws': true,
|
|
13
13
|
'watchOrderBook': true,
|
|
14
14
|
'watchTrades': true,
|
|
15
|
+
'watchTradesForSymbols': false,
|
|
15
16
|
'watchTicker': true,
|
|
16
17
|
'watchOHLCV': true,
|
|
17
18
|
},
|
|
@@ -40,6 +41,7 @@ class ndax extends ndax$1 {
|
|
|
40
41
|
* @method
|
|
41
42
|
* @name ndax#watchTicker
|
|
42
43
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
44
|
+
* @see https://apidoc.ndax.io/#subscribelevel1
|
|
43
45
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
44
46
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
45
47
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -105,6 +107,7 @@ class ndax extends ndax$1 {
|
|
|
105
107
|
* @method
|
|
106
108
|
* @name ndax#watchTrades
|
|
107
109
|
* @description get the list of most recent trades for a particular symbol
|
|
110
|
+
* @see https://apidoc.ndax.io/#subscribetrades
|
|
108
111
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
109
112
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
110
113
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -186,6 +189,7 @@ class ndax extends ndax$1 {
|
|
|
186
189
|
* @method
|
|
187
190
|
* @name ndax#watchOHLCV
|
|
188
191
|
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
192
|
+
* @see https://apidoc.ndax.io/#subscribeticker
|
|
189
193
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
190
194
|
* @param {string} timeframe the length of time each candle represents
|
|
191
195
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -318,6 +322,7 @@ class ndax extends ndax$1 {
|
|
|
318
322
|
* @method
|
|
319
323
|
* @name ndax#watchOrderBook
|
|
320
324
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
325
|
+
* @see https://apidoc.ndax.io/#subscribelevel2
|
|
321
326
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
322
327
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
323
328
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -17,6 +17,7 @@ class okcoin extends okcoin$1 {
|
|
|
17
17
|
'watchOrderBook': true,
|
|
18
18
|
'watchOrders': true,
|
|
19
19
|
'watchTrades': true,
|
|
20
|
+
'watchTradesForSymbols': false,
|
|
20
21
|
'watchBalance': true,
|
|
21
22
|
'watchOHLCV': true,
|
|
22
23
|
},
|
|
@@ -67,6 +68,7 @@ class okcoin extends okcoin$1 {
|
|
|
67
68
|
* @method
|
|
68
69
|
* @name okcoin#watchTrades
|
|
69
70
|
* @description get the list of most recent trades for a particular symbol
|
|
71
|
+
* @see https://www.okcoin.com/docs-v5/en/#websocket-api-public-channel-trades-channel
|
|
70
72
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
71
73
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
72
74
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -86,6 +88,7 @@ class okcoin extends okcoin$1 {
|
|
|
86
88
|
* @method
|
|
87
89
|
* @name okcoin#watchOrders
|
|
88
90
|
* @description watches information on multiple orders made by the user
|
|
91
|
+
* @see https://www.okcoin.com/docs-v5/en/#websocket-api-private-channel-order-channel
|
|
89
92
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
90
93
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
91
94
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -172,6 +175,7 @@ class okcoin extends okcoin$1 {
|
|
|
172
175
|
* @method
|
|
173
176
|
* @name okcoin#watchTicker
|
|
174
177
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
178
|
+
* @see https://www.okcoin.com/docs-v5/en/#websocket-api-public-channel-tickers-channel
|
|
175
179
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
176
180
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
177
181
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -252,6 +256,7 @@ class okcoin extends okcoin$1 {
|
|
|
252
256
|
* @method
|
|
253
257
|
* @name okcoin#watchOHLCV
|
|
254
258
|
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
259
|
+
* @see https://www.okcoin.com/docs-v5/en/#websocket-api-public-channel-candlesticks-channel
|
|
255
260
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
256
261
|
* @param {string} timeframe the length of time each candle represents
|
|
257
262
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -319,6 +324,7 @@ class okcoin extends okcoin$1 {
|
|
|
319
324
|
* @method
|
|
320
325
|
* @name okcoin#watchOrderBook
|
|
321
326
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
327
|
+
* @see https://www.okcoin.com/docs-v5/en/#websocket-api-public-channel-order-book-channel
|
|
322
328
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
323
329
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
324
330
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -482,6 +488,7 @@ class okcoin extends okcoin$1 {
|
|
|
482
488
|
* @method
|
|
483
489
|
* @name okcoin#watchBalance
|
|
484
490
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
491
|
+
* @see https://www.okcoin.com/docs-v5/en/#websocket-api-private-channel-account-channel
|
|
485
492
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
486
493
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
487
494
|
*/
|
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 { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.3.
|
|
7
|
+
declare const version = "4.3.87";
|
|
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, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.3.
|
|
41
|
+
const version = '4.3.88';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -197,6 +197,7 @@ interface Exchange {
|
|
|
197
197
|
brokerGetBrokerNdAccount(params?: {}): Promise<implicitReturnType>;
|
|
198
198
|
brokerGetBrokerNdAccountApikey(params?: {}): Promise<implicitReturnType>;
|
|
199
199
|
brokerGetBrokerNdRebaseDownload(params?: {}): Promise<implicitReturnType>;
|
|
200
|
+
brokerGetAssetNdbrokerDepositList(params?: {}): Promise<implicitReturnType>;
|
|
200
201
|
brokerGetBrokerNdTransferDetail(params?: {}): Promise<implicitReturnType>;
|
|
201
202
|
brokerGetBrokerNdDepositDetail(params?: {}): Promise<implicitReturnType>;
|
|
202
203
|
brokerGetBrokerNdWithdrawDetail(params?: {}): Promise<implicitReturnType>;
|
|
@@ -218,6 +218,7 @@ interface kucoin {
|
|
|
218
218
|
brokerGetBrokerNdAccount(params?: {}): Promise<implicitReturnType>;
|
|
219
219
|
brokerGetBrokerNdAccountApikey(params?: {}): Promise<implicitReturnType>;
|
|
220
220
|
brokerGetBrokerNdRebaseDownload(params?: {}): Promise<implicitReturnType>;
|
|
221
|
+
brokerGetAssetNdbrokerDepositList(params?: {}): Promise<implicitReturnType>;
|
|
221
222
|
brokerGetBrokerNdTransferDetail(params?: {}): Promise<implicitReturnType>;
|
|
222
223
|
brokerGetBrokerNdDepositDetail(params?: {}): Promise<implicitReturnType>;
|
|
223
224
|
brokerGetBrokerNdWithdrawDetail(params?: {}): Promise<implicitReturnType>;
|
|
@@ -1143,7 +1143,7 @@ export default class Exchange {
|
|
|
1143
1143
|
convertExpireDate(date: string): string;
|
|
1144
1144
|
convertExpireDateToMarketIdDate(date: string): string;
|
|
1145
1145
|
convertMarketIdExpireDate(date: string): string;
|
|
1146
|
-
fetchPositionHistory(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Position>;
|
|
1146
|
+
fetchPositionHistory(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
|
|
1147
1147
|
fetchPositionsHistory(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
|
|
1148
1148
|
parseMarginModification(data: Dict, market?: Market): MarginModification;
|
|
1149
1149
|
parseMarginModifications(response: object[], symbols?: Strings, symbolKey?: Str, marketType?: MarketType): MarginModification[];
|
package/js/src/base/Exchange.js
CHANGED
|
@@ -5982,7 +5982,7 @@ export default class Exchange {
|
|
|
5982
5982
|
errors = 0;
|
|
5983
5983
|
result = this.arrayConcat(result, response);
|
|
5984
5984
|
const last = this.safeValue(response, responseLength - 1);
|
|
5985
|
-
paginationTimestamp = this.safeInteger(last, 'timestamp')
|
|
5985
|
+
paginationTimestamp = this.safeInteger(last, 'timestamp') + 1;
|
|
5986
5986
|
if ((until !== undefined) && (paginationTimestamp >= until)) {
|
|
5987
5987
|
break;
|
|
5988
5988
|
}
|
|
@@ -6432,7 +6432,7 @@ export default class Exchange {
|
|
|
6432
6432
|
*/
|
|
6433
6433
|
if (this.has['fetchPositionsHistory']) {
|
|
6434
6434
|
const positions = await this.fetchPositionsHistory([symbol], since, limit, params);
|
|
6435
|
-
return
|
|
6435
|
+
return positions;
|
|
6436
6436
|
}
|
|
6437
6437
|
else {
|
|
6438
6438
|
throw new NotSupported(this.id + ' fetchPositionHistory () is not supported yet');
|
package/js/src/coinex.d.ts
CHANGED
|
@@ -157,7 +157,7 @@ export default class coinex extends Exchange {
|
|
|
157
157
|
parseDepositWithdrawFee(fee: any, currency?: Currency): Dict;
|
|
158
158
|
fetchLeverage(symbol: string, params?: {}): Promise<Leverage>;
|
|
159
159
|
parseLeverage(leverage: Dict, market?: Market): Leverage;
|
|
160
|
-
fetchPositionHistory(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Position>;
|
|
160
|
+
fetchPositionHistory(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
|
|
161
161
|
handleMarginModeAndParams(methodName: any, params?: {}, defaultValue?: any): any[];
|
|
162
162
|
nonce(): number;
|
|
163
163
|
sign(path: any, api?: any[], method?: string, params?: {}, headers?: any, body?: any): {
|
package/js/src/kucoin.js
CHANGED
|
@@ -398,6 +398,7 @@ export default class kucoin extends Exchange {
|
|
|
398
398
|
'broker/nd/account': 2,
|
|
399
399
|
'broker/nd/account/apikey': 2,
|
|
400
400
|
'broker/nd/rebase/download': 3,
|
|
401
|
+
'asset/ndbroker/deposit/list': 1,
|
|
401
402
|
'broker/nd/transfer/detail': 1,
|
|
402
403
|
'broker/nd/deposit/detail': 1,
|
|
403
404
|
'broker/nd/withdraw/detail': 1,
|
|
@@ -689,6 +690,7 @@ export default class kucoin extends Exchange {
|
|
|
689
690
|
'purchase/orders': 'v3',
|
|
690
691
|
'margin/symbols': 'v3',
|
|
691
692
|
'affiliate/inviter/statistics': 'v2',
|
|
693
|
+
'asset/ndbroker/deposit/list': 'v1',
|
|
692
694
|
},
|
|
693
695
|
'POST': {
|
|
694
696
|
// account
|
package/js/src/pro/bitfinex.js
CHANGED
package/js/src/pro/bitfinex2.js
CHANGED
package/js/src/pro/bitopro.js
CHANGED
package/js/src/pro/bitstamp.js
CHANGED
package/js/src/pro/cex.js
CHANGED
package/js/src/pro/coincheck.js
CHANGED
package/js/src/pro/coinone.js
CHANGED
package/js/src/pro/hashkey.js
CHANGED
package/js/src/pro/hitbtc.js
CHANGED
package/js/src/pro/hollaex.js
CHANGED
package/js/src/pro/htx.js
CHANGED