ccxt 4.3.91 → 4.3.92
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 +16 -16
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/hyperliquid.js +2 -1
- package/dist/cjs/src/kucoin.js +11 -8
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/hyperliquid.js +2 -1
- package/js/src/kucoin.js +11 -8
- 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.92';
|
|
200
200
|
Exchange["default"].ccxtVersion = version;
|
|
201
201
|
const exchanges = {
|
|
202
202
|
'ace': ace,
|
|
@@ -1784,9 +1784,10 @@ class hyperliquid extends hyperliquid$1 {
|
|
|
1784
1784
|
[userAddress, params] = this.handlePublicAddress('fetchOrder', params);
|
|
1785
1785
|
await this.loadMarkets();
|
|
1786
1786
|
const market = this.safeMarket(symbol);
|
|
1787
|
+
const isClientOrderId = id.length >= 34;
|
|
1787
1788
|
const request = {
|
|
1788
1789
|
'type': 'orderStatus',
|
|
1789
|
-
'oid': this.parseToNumeric(id),
|
|
1790
|
+
'oid': isClientOrderId ? id : this.parseToNumeric(id),
|
|
1790
1791
|
'user': userAddress,
|
|
1791
1792
|
};
|
|
1792
1793
|
const response = await this.publicPostInfo(this.extend(request, params));
|
package/dist/cjs/src/kucoin.js
CHANGED
|
@@ -1211,7 +1211,7 @@ class kucoin extends kucoin$1 {
|
|
|
1211
1211
|
return result;
|
|
1212
1212
|
}
|
|
1213
1213
|
async loadMigrationStatus(force = false) {
|
|
1214
|
-
if (!('hfMigrated' in this.options) || force) {
|
|
1214
|
+
if (!('hfMigrated' in this.options) || (this.options['hfMigrated'] === undefined) || force) {
|
|
1215
1215
|
const result = await this.privateGetMigrateUserAccountStatus();
|
|
1216
1216
|
const data = this.safeDict(result, 'data', {});
|
|
1217
1217
|
const status = this.safeInteger(data, 'status');
|
|
@@ -1777,7 +1777,8 @@ class kucoin extends kucoin$1 {
|
|
|
1777
1777
|
// }
|
|
1778
1778
|
// }
|
|
1779
1779
|
//
|
|
1780
|
-
|
|
1780
|
+
const data = this.safeDict(response, 'data', {});
|
|
1781
|
+
return this.parseTicker(data, market);
|
|
1781
1782
|
}
|
|
1782
1783
|
parseOHLCV(ohlcv, market = undefined) {
|
|
1783
1784
|
//
|
|
@@ -3675,8 +3676,9 @@ class kucoin extends kucoin$1 {
|
|
|
3675
3676
|
// }
|
|
3676
3677
|
// }
|
|
3677
3678
|
//
|
|
3678
|
-
const
|
|
3679
|
-
|
|
3679
|
+
const data = this.safeDict(response, 'data', {});
|
|
3680
|
+
const items = this.safeList(data, 'items', []);
|
|
3681
|
+
return this.parseTransactions(items, currency, since, limit, { 'type': 'deposit' });
|
|
3680
3682
|
}
|
|
3681
3683
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3682
3684
|
/**
|
|
@@ -3760,8 +3762,9 @@ class kucoin extends kucoin$1 {
|
|
|
3760
3762
|
// }
|
|
3761
3763
|
// }
|
|
3762
3764
|
//
|
|
3763
|
-
const
|
|
3764
|
-
|
|
3765
|
+
const data = this.safeDict(response, 'data', {});
|
|
3766
|
+
const items = this.safeList(data, 'items', []);
|
|
3767
|
+
return this.parseTransactions(items, currency, since, limit, { 'type': 'withdrawal' });
|
|
3765
3768
|
}
|
|
3766
3769
|
parseBalanceHelper(entry) {
|
|
3767
3770
|
const account = this.account();
|
|
@@ -4623,7 +4626,7 @@ class kucoin extends kucoin$1 {
|
|
|
4623
4626
|
// }
|
|
4624
4627
|
//
|
|
4625
4628
|
const data = this.safeDict(response, 'data');
|
|
4626
|
-
const rows = this.safeList(data, 'items');
|
|
4629
|
+
const rows = this.safeList(data, 'items', []);
|
|
4627
4630
|
return this.parseBorrowRateHistories(rows, codes, since, limit);
|
|
4628
4631
|
}
|
|
4629
4632
|
async fetchBorrowRateHistory(code, since = undefined, limit = undefined, params = {}) {
|
|
@@ -4678,7 +4681,7 @@ class kucoin extends kucoin$1 {
|
|
|
4678
4681
|
// }
|
|
4679
4682
|
//
|
|
4680
4683
|
const data = this.safeDict(response, 'data');
|
|
4681
|
-
const rows = this.safeList(data, 'items');
|
|
4684
|
+
const rows = this.safeList(data, 'items', []);
|
|
4682
4685
|
return this.parseBorrowRateHistory(rows, code, since, limit);
|
|
4683
4686
|
}
|
|
4684
4687
|
parseBorrowRateHistories(response, codes, since, limit) {
|
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.91";
|
|
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.92';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
package/js/src/hyperliquid.js
CHANGED
|
@@ -1787,9 +1787,10 @@ export default class hyperliquid extends Exchange {
|
|
|
1787
1787
|
[userAddress, params] = this.handlePublicAddress('fetchOrder', params);
|
|
1788
1788
|
await this.loadMarkets();
|
|
1789
1789
|
const market = this.safeMarket(symbol);
|
|
1790
|
+
const isClientOrderId = id.length >= 34;
|
|
1790
1791
|
const request = {
|
|
1791
1792
|
'type': 'orderStatus',
|
|
1792
|
-
'oid': this.parseToNumeric(id),
|
|
1793
|
+
'oid': isClientOrderId ? id : this.parseToNumeric(id),
|
|
1793
1794
|
'user': userAddress,
|
|
1794
1795
|
};
|
|
1795
1796
|
const response = await this.publicPostInfo(this.extend(request, params));
|
package/js/src/kucoin.js
CHANGED
|
@@ -1214,7 +1214,7 @@ export default class kucoin extends Exchange {
|
|
|
1214
1214
|
return result;
|
|
1215
1215
|
}
|
|
1216
1216
|
async loadMigrationStatus(force = false) {
|
|
1217
|
-
if (!('hfMigrated' in this.options) || force) {
|
|
1217
|
+
if (!('hfMigrated' in this.options) || (this.options['hfMigrated'] === undefined) || force) {
|
|
1218
1218
|
const result = await this.privateGetMigrateUserAccountStatus();
|
|
1219
1219
|
const data = this.safeDict(result, 'data', {});
|
|
1220
1220
|
const status = this.safeInteger(data, 'status');
|
|
@@ -1780,7 +1780,8 @@ export default class kucoin extends Exchange {
|
|
|
1780
1780
|
// }
|
|
1781
1781
|
// }
|
|
1782
1782
|
//
|
|
1783
|
-
|
|
1783
|
+
const data = this.safeDict(response, 'data', {});
|
|
1784
|
+
return this.parseTicker(data, market);
|
|
1784
1785
|
}
|
|
1785
1786
|
parseOHLCV(ohlcv, market = undefined) {
|
|
1786
1787
|
//
|
|
@@ -3678,8 +3679,9 @@ export default class kucoin extends Exchange {
|
|
|
3678
3679
|
// }
|
|
3679
3680
|
// }
|
|
3680
3681
|
//
|
|
3681
|
-
const
|
|
3682
|
-
|
|
3682
|
+
const data = this.safeDict(response, 'data', {});
|
|
3683
|
+
const items = this.safeList(data, 'items', []);
|
|
3684
|
+
return this.parseTransactions(items, currency, since, limit, { 'type': 'deposit' });
|
|
3683
3685
|
}
|
|
3684
3686
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3685
3687
|
/**
|
|
@@ -3763,8 +3765,9 @@ export default class kucoin extends Exchange {
|
|
|
3763
3765
|
// }
|
|
3764
3766
|
// }
|
|
3765
3767
|
//
|
|
3766
|
-
const
|
|
3767
|
-
|
|
3768
|
+
const data = this.safeDict(response, 'data', {});
|
|
3769
|
+
const items = this.safeList(data, 'items', []);
|
|
3770
|
+
return this.parseTransactions(items, currency, since, limit, { 'type': 'withdrawal' });
|
|
3768
3771
|
}
|
|
3769
3772
|
parseBalanceHelper(entry) {
|
|
3770
3773
|
const account = this.account();
|
|
@@ -4626,7 +4629,7 @@ export default class kucoin extends Exchange {
|
|
|
4626
4629
|
// }
|
|
4627
4630
|
//
|
|
4628
4631
|
const data = this.safeDict(response, 'data');
|
|
4629
|
-
const rows = this.safeList(data, 'items');
|
|
4632
|
+
const rows = this.safeList(data, 'items', []);
|
|
4630
4633
|
return this.parseBorrowRateHistories(rows, codes, since, limit);
|
|
4631
4634
|
}
|
|
4632
4635
|
async fetchBorrowRateHistory(code, since = undefined, limit = undefined, params = {}) {
|
|
@@ -4681,7 +4684,7 @@ export default class kucoin extends Exchange {
|
|
|
4681
4684
|
// }
|
|
4682
4685
|
//
|
|
4683
4686
|
const data = this.safeDict(response, 'data');
|
|
4684
|
-
const rows = this.safeList(data, 'items');
|
|
4687
|
+
const rows = this.safeList(data, 'items', []);
|
|
4685
4688
|
return this.parseBorrowRateHistory(rows, code, since, limit);
|
|
4686
4689
|
}
|
|
4687
4690
|
parseBorrowRateHistories(response, codes, since, limit) {
|
package/package.json
CHANGED