ccxt 4.5.30 → 4.5.32
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 +4 -4
- package/dist/ccxt.browser.min.js +18 -18
- package/dist/cjs/ccxt.js +6 -4
- package/dist/cjs/src/aster.js +3802 -0
- package/dist/cjs/src/backpack.js +1 -1
- package/dist/cjs/src/base/Exchange.js +35 -2
- package/dist/cjs/src/base/ws/WsClient.js +1 -0
- package/dist/cjs/src/bigone.js +1 -1
- package/dist/cjs/src/binance.js +1 -0
- package/dist/cjs/src/bingx.js +73 -0
- package/dist/cjs/src/cryptomus.js +1 -1
- package/dist/cjs/src/gate.js +52 -6
- package/dist/cjs/src/hyperliquid.js +9 -1
- package/dist/cjs/src/kucoin.js +63 -64
- package/dist/cjs/src/okx.js +14 -5
- package/dist/cjs/src/pro/apex.js +2 -2
- package/dist/cjs/src/pro/ascendex.js +1 -1
- package/dist/cjs/src/pro/aster.js +1046 -0
- package/dist/cjs/src/pro/bingx.js +1 -1
- package/dist/cjs/src/pro/bybit.js +1 -1
- package/dist/cjs/src/pro/cryptocom.js +1 -1
- package/dist/cjs/src/pro/dydx.js +1 -1
- package/dist/cjs/src/pro/htx.js +1 -1
- package/dist/cjs/src/pro/hyperliquid.js +1 -1
- package/dist/cjs/src/pro/p2b.js +1 -1
- package/dist/cjs/src/pro/toobit.js +1 -1
- package/js/ccxt.d.ts +8 -5
- package/js/ccxt.js +6 -4
- package/js/src/abstract/aster.d.ts +88 -0
- package/js/src/abstract/binance.d.ts +1 -0
- package/js/src/abstract/binancecoinm.d.ts +1 -0
- package/js/src/abstract/binanceus.d.ts +1 -0
- package/js/src/abstract/binanceusdm.d.ts +1 -0
- package/js/src/abstract/kucoin.d.ts +2 -0
- package/js/src/abstract/kucoinfutures.d.ts +2 -0
- package/js/src/aster.d.ts +563 -0
- package/js/src/aster.js +3801 -0
- package/js/src/backpack.js +1 -1
- package/js/src/base/Exchange.d.ts +4 -0
- package/js/src/base/Exchange.js +35 -1
- package/js/src/base/ws/WsClient.js +1 -0
- package/js/src/bigone.js +1 -1
- package/js/src/binance.d.ts +1 -1
- package/js/src/binance.js +1 -0
- package/js/src/bingx.d.ts +12 -1
- package/js/src/bingx.js +73 -0
- package/js/src/cryptomus.js +1 -1
- package/js/src/exmo.d.ts +1 -1
- package/js/src/gate.js +52 -6
- package/js/src/hyperliquid.d.ts +1 -0
- package/js/src/hyperliquid.js +9 -1
- package/js/src/kucoin.d.ts +5 -3
- package/js/src/kucoin.js +63 -64
- package/js/src/okx.js +14 -5
- package/js/src/pro/apex.js +2 -2
- package/js/src/pro/ascendex.js +1 -1
- package/js/src/pro/aster.d.ts +273 -0
- package/js/src/pro/aster.js +1045 -0
- package/js/src/pro/bingx.js +1 -1
- package/js/src/pro/bybit.js +1 -1
- package/js/src/pro/cryptocom.js +1 -1
- package/js/src/pro/dydx.js +1 -1
- package/js/src/pro/htx.js +1 -1
- package/js/src/pro/hyperliquid.js +1 -1
- package/js/src/pro/p2b.js +1 -1
- package/js/src/pro/toobit.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/src/oceanex.js +0 -1125
- package/js/src/abstract/oceanex.d.ts +0 -30
- package/js/src/oceanex.d.ts +0 -231
- package/js/src/oceanex.js +0 -1124
- /package/dist/cjs/src/abstract/{oceanex.js → aster.js} +0 -0
- /package/js/src/abstract/{oceanex.js → aster.js} +0 -0
|
@@ -1226,7 +1226,7 @@ class bingx extends bingx$1["default"] {
|
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
1228
|
catch (e) {
|
|
1229
|
-
const error = new errors.NetworkError(this.id + ' pong failed with error ' + this.
|
|
1229
|
+
const error = new errors.NetworkError(this.id + ' pong failed with error ' + this.exceptionMessage(e));
|
|
1230
1230
|
client.reset(error);
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
@@ -2480,7 +2480,7 @@ class bybit extends bybit$1["default"] {
|
|
|
2480
2480
|
// "conn_id": "d266o6hqo29sqmnq4vk0-1yus1"
|
|
2481
2481
|
// }
|
|
2482
2482
|
//
|
|
2483
|
-
client.lastPong = this.safeInteger(message, 'pong');
|
|
2483
|
+
client.lastPong = this.safeInteger(message, 'pong', this.milliseconds());
|
|
2484
2484
|
return message;
|
|
2485
2485
|
}
|
|
2486
2486
|
handleAuthenticate(client, message) {
|
|
@@ -65,7 +65,7 @@ class cryptocom extends cryptocom$1["default"] {
|
|
|
65
65
|
await client.send({ 'id': this.safeInteger(message, 'id'), 'method': 'public/respond-heartbeat' });
|
|
66
66
|
}
|
|
67
67
|
catch (e) {
|
|
68
|
-
const error = new errors.NetworkError(this.id + ' pong failed with error ' + this.
|
|
68
|
+
const error = new errors.NetworkError(this.id + ' pong failed with error ' + this.exceptionMessage(e));
|
|
69
69
|
client.reset(error);
|
|
70
70
|
}
|
|
71
71
|
}
|
package/dist/cjs/src/pro/dydx.js
CHANGED
|
@@ -97,7 +97,7 @@ class dydx extends dydx$1["default"] {
|
|
|
97
97
|
// "size": "0.024",
|
|
98
98
|
// "price": "114581",
|
|
99
99
|
// "type": "LIMIT",
|
|
100
|
-
// "createdAt": "2025-08-04T00:42:07.
|
|
100
|
+
// "createdAt": "2025-08-04T00:42:07.119Z",
|
|
101
101
|
// "createdAtHeight": "45487245"
|
|
102
102
|
// }
|
|
103
103
|
// ]
|
package/dist/cjs/src/pro/htx.js
CHANGED
|
@@ -2033,7 +2033,7 @@ class htx extends htx$1["default"] {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
2035
2035
|
catch (e) {
|
|
2036
|
-
const error = new errors.NetworkError(this.id + ' pong failed ' + this.
|
|
2036
|
+
const error = new errors.NetworkError(this.id + ' pong failed ' + this.exceptionMessage(e));
|
|
2037
2037
|
client.reset(error);
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
@@ -1261,7 +1261,7 @@ class hyperliquid extends hyperliquid$1["default"] {
|
|
|
1261
1261
|
// "channel": "pong"
|
|
1262
1262
|
// }
|
|
1263
1263
|
//
|
|
1264
|
-
client.lastPong = this.safeInteger(message, 'pong');
|
|
1264
|
+
client.lastPong = this.safeInteger(message, 'pong', this.milliseconds());
|
|
1265
1265
|
return message;
|
|
1266
1266
|
}
|
|
1267
1267
|
requestId() {
|
package/dist/cjs/src/pro/p2b.js
CHANGED
|
@@ -491,7 +491,7 @@ class p2b extends p2b$1["default"] {
|
|
|
491
491
|
// id: 1706539608030
|
|
492
492
|
// }
|
|
493
493
|
//
|
|
494
|
-
client.lastPong = this.safeInteger(message, 'id');
|
|
494
|
+
client.lastPong = this.safeInteger(message, 'id', this.milliseconds());
|
|
495
495
|
return message;
|
|
496
496
|
}
|
|
497
497
|
onError(client, error) {
|
|
@@ -1105,7 +1105,7 @@ class toobit extends toobit$1["default"] {
|
|
|
1105
1105
|
this.delay(listenKeyRefreshRate, this.keepAliveListenKey, params);
|
|
1106
1106
|
}
|
|
1107
1107
|
catch (e) {
|
|
1108
|
-
const err = new errors.AuthenticationError(this.id + ' ' + this.
|
|
1108
|
+
const err = new errors.AuthenticationError(this.id + ' ' + this.exceptionMessage(e));
|
|
1109
1109
|
client.reject(err, messageHash);
|
|
1110
1110
|
if (messageHash in client.subscriptions) {
|
|
1111
1111
|
delete client.subscriptions[messageHash];
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,11 +4,12 @@ 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, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarketMarginModes, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio, OrderBooks, OpenInterests, ConstructorArgs } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, 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.5.
|
|
7
|
+
declare const version = "4.5.31";
|
|
8
8
|
import alpaca from './src/alpaca.js';
|
|
9
9
|
import apex from './src/apex.js';
|
|
10
10
|
import arkham from './src/arkham.js';
|
|
11
11
|
import ascendex from './src/ascendex.js';
|
|
12
|
+
import aster from './src/aster.js';
|
|
12
13
|
import backpack from './src/backpack.js';
|
|
13
14
|
import bequant from './src/bequant.js';
|
|
14
15
|
import bigone from './src/bigone.js';
|
|
@@ -92,7 +93,6 @@ import modetrade from './src/modetrade.js';
|
|
|
92
93
|
import myokx from './src/myokx.js';
|
|
93
94
|
import ndax from './src/ndax.js';
|
|
94
95
|
import novadax from './src/novadax.js';
|
|
95
|
-
import oceanex from './src/oceanex.js';
|
|
96
96
|
import okx from './src/okx.js';
|
|
97
97
|
import okxus from './src/okxus.js';
|
|
98
98
|
import onetrading from './src/onetrading.js';
|
|
@@ -120,6 +120,7 @@ import alpacaPro from './src/pro/alpaca.js';
|
|
|
120
120
|
import apexPro from './src/pro/apex.js';
|
|
121
121
|
import arkhamPro from './src/pro/arkham.js';
|
|
122
122
|
import ascendexPro from './src/pro/ascendex.js';
|
|
123
|
+
import asterPro from './src/pro/aster.js';
|
|
123
124
|
import backpackPro from './src/pro/backpack.js';
|
|
124
125
|
import bequantPro from './src/pro/bequant.js';
|
|
125
126
|
import binancePro from './src/pro/binance.js';
|
|
@@ -198,6 +199,7 @@ declare const exchanges: {
|
|
|
198
199
|
apex: typeof apex;
|
|
199
200
|
arkham: typeof arkham;
|
|
200
201
|
ascendex: typeof ascendex;
|
|
202
|
+
aster: typeof aster;
|
|
201
203
|
backpack: typeof backpack;
|
|
202
204
|
bequant: typeof bequant;
|
|
203
205
|
bigone: typeof bigone;
|
|
@@ -281,7 +283,6 @@ declare const exchanges: {
|
|
|
281
283
|
myokx: typeof myokx;
|
|
282
284
|
ndax: typeof ndax;
|
|
283
285
|
novadax: typeof novadax;
|
|
284
|
-
oceanex: typeof oceanex;
|
|
285
286
|
okx: typeof okx;
|
|
286
287
|
okxus: typeof okxus;
|
|
287
288
|
onetrading: typeof onetrading;
|
|
@@ -311,6 +312,7 @@ declare const pro: {
|
|
|
311
312
|
apex: typeof apexPro;
|
|
312
313
|
arkham: typeof arkhamPro;
|
|
313
314
|
ascendex: typeof ascendexPro;
|
|
315
|
+
aster: typeof asterPro;
|
|
314
316
|
backpack: typeof backpackPro;
|
|
315
317
|
bequant: typeof bequantPro;
|
|
316
318
|
binance: typeof binancePro;
|
|
@@ -395,6 +397,7 @@ declare const ccxt: {
|
|
|
395
397
|
apex: typeof apexPro;
|
|
396
398
|
arkham: typeof arkhamPro;
|
|
397
399
|
ascendex: typeof ascendexPro;
|
|
400
|
+
aster: typeof asterPro;
|
|
398
401
|
backpack: typeof backpackPro;
|
|
399
402
|
bequant: typeof bequantPro;
|
|
400
403
|
binance: typeof binancePro;
|
|
@@ -474,6 +477,7 @@ declare const ccxt: {
|
|
|
474
477
|
apex: typeof apex;
|
|
475
478
|
arkham: typeof arkham;
|
|
476
479
|
ascendex: typeof ascendex;
|
|
480
|
+
aster: typeof aster;
|
|
477
481
|
backpack: typeof backpack;
|
|
478
482
|
bequant: typeof bequant;
|
|
479
483
|
bigone: typeof bigone;
|
|
@@ -557,7 +561,6 @@ declare const ccxt: {
|
|
|
557
561
|
myokx: typeof myokx;
|
|
558
562
|
ndax: typeof ndax;
|
|
559
563
|
novadax: typeof novadax;
|
|
560
|
-
oceanex: typeof oceanex;
|
|
561
564
|
okx: typeof okx;
|
|
562
565
|
okxus: typeof okxus;
|
|
563
566
|
onetrading: typeof onetrading;
|
|
@@ -582,5 +585,5 @@ declare const ccxt: {
|
|
|
582
585
|
zebpay: typeof zebpay;
|
|
583
586
|
zonda: typeof zonda;
|
|
584
587
|
} & typeof functions & typeof errors;
|
|
585
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, 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, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, alpaca, apex, arkham, ascendex, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bullish, bybit, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax,
|
|
588
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, 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, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, alpaca, apex, arkham, ascendex, aster, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bullish, bybit, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
|
|
586
589
|
export default ccxt;
|
package/js/ccxt.js
CHANGED
|
@@ -38,13 +38,14 @@ 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, RestrictedLocation, 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.5.
|
|
41
|
+
const version = '4.5.31';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import alpaca from './src/alpaca.js';
|
|
45
45
|
import apex from './src/apex.js';
|
|
46
46
|
import arkham from './src/arkham.js';
|
|
47
47
|
import ascendex from './src/ascendex.js';
|
|
48
|
+
import aster from './src/aster.js';
|
|
48
49
|
import backpack from './src/backpack.js';
|
|
49
50
|
import bequant from './src/bequant.js';
|
|
50
51
|
import bigone from './src/bigone.js';
|
|
@@ -128,7 +129,6 @@ import modetrade from './src/modetrade.js';
|
|
|
128
129
|
import myokx from './src/myokx.js';
|
|
129
130
|
import ndax from './src/ndax.js';
|
|
130
131
|
import novadax from './src/novadax.js';
|
|
131
|
-
import oceanex from './src/oceanex.js';
|
|
132
132
|
import okx from './src/okx.js';
|
|
133
133
|
import okxus from './src/okxus.js';
|
|
134
134
|
import onetrading from './src/onetrading.js';
|
|
@@ -157,6 +157,7 @@ import alpacaPro from './src/pro/alpaca.js';
|
|
|
157
157
|
import apexPro from './src/pro/apex.js';
|
|
158
158
|
import arkhamPro from './src/pro/arkham.js';
|
|
159
159
|
import ascendexPro from './src/pro/ascendex.js';
|
|
160
|
+
import asterPro from './src/pro/aster.js';
|
|
160
161
|
import backpackPro from './src/pro/backpack.js';
|
|
161
162
|
import bequantPro from './src/pro/bequant.js';
|
|
162
163
|
import binancePro from './src/pro/binance.js';
|
|
@@ -235,6 +236,7 @@ const exchanges = {
|
|
|
235
236
|
'apex': apex,
|
|
236
237
|
'arkham': arkham,
|
|
237
238
|
'ascendex': ascendex,
|
|
239
|
+
'aster': aster,
|
|
238
240
|
'backpack': backpack,
|
|
239
241
|
'bequant': bequant,
|
|
240
242
|
'bigone': bigone,
|
|
@@ -318,7 +320,6 @@ const exchanges = {
|
|
|
318
320
|
'myokx': myokx,
|
|
319
321
|
'ndax': ndax,
|
|
320
322
|
'novadax': novadax,
|
|
321
|
-
'oceanex': oceanex,
|
|
322
323
|
'okx': okx,
|
|
323
324
|
'okxus': okxus,
|
|
324
325
|
'onetrading': onetrading,
|
|
@@ -348,6 +349,7 @@ const pro = {
|
|
|
348
349
|
'apex': apexPro,
|
|
349
350
|
'arkham': arkhamPro,
|
|
350
351
|
'ascendex': ascendexPro,
|
|
352
|
+
'aster': asterPro,
|
|
351
353
|
'backpack': backpackPro,
|
|
352
354
|
'bequant': bequantPro,
|
|
353
355
|
'binance': binancePro,
|
|
@@ -434,6 +436,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
434
436
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
435
437
|
//-----------------------------------------------------------------------------
|
|
436
438
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
437
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, 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, alpaca, apex, arkham, ascendex, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bullish, bybit, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax,
|
|
439
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, 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, alpaca, apex, arkham, ascendex, aster, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bullish, bybit, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
|
|
438
440
|
export default ccxt;
|
|
439
441
|
//-----------------------------------------------------------------------------
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
fapiPublicGetV1Ping(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
fapiPublicGetV1Time(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
fapiPublicGetV1ExchangeInfo(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
fapiPublicGetV1Depth(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
fapiPublicGetV1Trades(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
fapiPublicGetV1HistoricalTrades(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
fapiPublicGetV1AggTrades(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
fapiPublicGetV1Klines(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
fapiPublicGetV1IndexPriceKlines(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
fapiPublicGetV1MarkPriceKlines(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
fapiPublicGetV1PremiumIndex(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
fapiPublicGetV1FundingRate(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
fapiPublicGetV1FundingInfo(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
fapiPublicGetV1Ticker24hr(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
fapiPublicGetV1TickerPrice(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
fapiPublicGetV1TickerBookTicker(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
fapiPublicGetV1AdlQuantile(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
fapiPublicGetV1ForceOrders(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
fapiPublicPostV1ListenKey(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
fapiPublicPutV1ListenKey(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
fapiPublicDeleteV1ListenKey(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
fapiPrivateGetV1PositionSideDual(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
fapiPrivateGetV1MultiAssetsMargin(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
fapiPrivateGetV1Order(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
fapiPrivateGetV1OpenOrder(params?: {}): Promise<implicitReturnType>;
|
|
29
|
+
fapiPrivateGetV1OpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
fapiPrivateGetV1AllOrders(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
fapiPrivateGetV2Balance(params?: {}): Promise<implicitReturnType>;
|
|
32
|
+
fapiPrivateGetV3Balance(params?: {}): Promise<implicitReturnType>;
|
|
33
|
+
fapiPrivateGetV3Account(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
fapiPrivateGetV4Account(params?: {}): Promise<implicitReturnType>;
|
|
35
|
+
fapiPrivateGetV1PositionMarginHistory(params?: {}): Promise<implicitReturnType>;
|
|
36
|
+
fapiPrivateGetV2PositionRisk(params?: {}): Promise<implicitReturnType>;
|
|
37
|
+
fapiPrivateGetV3PositionRisk(params?: {}): Promise<implicitReturnType>;
|
|
38
|
+
fapiPrivateGetV1UserTrades(params?: {}): Promise<implicitReturnType>;
|
|
39
|
+
fapiPrivateGetV1Income(params?: {}): Promise<implicitReturnType>;
|
|
40
|
+
fapiPrivateGetV1LeverageBracket(params?: {}): Promise<implicitReturnType>;
|
|
41
|
+
fapiPrivateGetV1CommissionRate(params?: {}): Promise<implicitReturnType>;
|
|
42
|
+
fapiPrivatePostV1PositionSideDual(params?: {}): Promise<implicitReturnType>;
|
|
43
|
+
fapiPrivatePostV1MultiAssetsMargin(params?: {}): Promise<implicitReturnType>;
|
|
44
|
+
fapiPrivatePostV1Order(params?: {}): Promise<implicitReturnType>;
|
|
45
|
+
fapiPrivatePostV1OrderTest(params?: {}): Promise<implicitReturnType>;
|
|
46
|
+
fapiPrivatePostV1BatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
47
|
+
fapiPrivatePostV1AssetWalletTransfer(params?: {}): Promise<implicitReturnType>;
|
|
48
|
+
fapiPrivatePostV1CountdownCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
49
|
+
fapiPrivatePostV1Leverage(params?: {}): Promise<implicitReturnType>;
|
|
50
|
+
fapiPrivatePostV1MarginType(params?: {}): Promise<implicitReturnType>;
|
|
51
|
+
fapiPrivatePostV1PositionMargin(params?: {}): Promise<implicitReturnType>;
|
|
52
|
+
fapiPrivateDeleteV1Order(params?: {}): Promise<implicitReturnType>;
|
|
53
|
+
fapiPrivateDeleteV1AllOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
54
|
+
fapiPrivateDeleteV1BatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
55
|
+
sapiPublicGetV1Ping(params?: {}): Promise<implicitReturnType>;
|
|
56
|
+
sapiPublicGetV1Time(params?: {}): Promise<implicitReturnType>;
|
|
57
|
+
sapiPublicGetV1ExchangeInfo(params?: {}): Promise<implicitReturnType>;
|
|
58
|
+
sapiPublicGetV1Depth(params?: {}): Promise<implicitReturnType>;
|
|
59
|
+
sapiPublicGetV1Trades(params?: {}): Promise<implicitReturnType>;
|
|
60
|
+
sapiPublicGetV1HistoricalTrades(params?: {}): Promise<implicitReturnType>;
|
|
61
|
+
sapiPublicGetV1AggTrades(params?: {}): Promise<implicitReturnType>;
|
|
62
|
+
sapiPublicGetV1Klines(params?: {}): Promise<implicitReturnType>;
|
|
63
|
+
sapiPublicGetV1Ticker24hr(params?: {}): Promise<implicitReturnType>;
|
|
64
|
+
sapiPublicGetV1TickerPrice(params?: {}): Promise<implicitReturnType>;
|
|
65
|
+
sapiPublicGetV1TickerBookTicker(params?: {}): Promise<implicitReturnType>;
|
|
66
|
+
sapiPublicGetV1AsterWithdrawEstimateFee(params?: {}): Promise<implicitReturnType>;
|
|
67
|
+
sapiPublicPostV1GetNonce(params?: {}): Promise<implicitReturnType>;
|
|
68
|
+
sapiPublicPostV1CreateApiKey(params?: {}): Promise<implicitReturnType>;
|
|
69
|
+
sapiPublicPostV1ListenKey(params?: {}): Promise<implicitReturnType>;
|
|
70
|
+
sapiPublicPutV1ListenKey(params?: {}): Promise<implicitReturnType>;
|
|
71
|
+
sapiPublicDeleteV1ListenKey(params?: {}): Promise<implicitReturnType>;
|
|
72
|
+
sapiPrivateGetV1CommissionRate(params?: {}): Promise<implicitReturnType>;
|
|
73
|
+
sapiPrivateGetV1Order(params?: {}): Promise<implicitReturnType>;
|
|
74
|
+
sapiPrivateGetV1OpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
75
|
+
sapiPrivateGetV1AllOrders(params?: {}): Promise<implicitReturnType>;
|
|
76
|
+
sapiPrivateGetV1TransactionHistory(params?: {}): Promise<implicitReturnType>;
|
|
77
|
+
sapiPrivateGetV1Account(params?: {}): Promise<implicitReturnType>;
|
|
78
|
+
sapiPrivateGetV1UserTrades(params?: {}): Promise<implicitReturnType>;
|
|
79
|
+
sapiPrivatePostV1Order(params?: {}): Promise<implicitReturnType>;
|
|
80
|
+
sapiPrivatePostV1AssetWalletTransfer(params?: {}): Promise<implicitReturnType>;
|
|
81
|
+
sapiPrivatePostV1AssetSendToAddress(params?: {}): Promise<implicitReturnType>;
|
|
82
|
+
sapiPrivatePostV1AsterUserWithdraw(params?: {}): Promise<implicitReturnType>;
|
|
83
|
+
sapiPrivateDeleteV1Order(params?: {}): Promise<implicitReturnType>;
|
|
84
|
+
sapiPrivateDeleteV1AllOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
85
|
+
}
|
|
86
|
+
declare abstract class Exchange extends _Exchange {
|
|
87
|
+
}
|
|
88
|
+
export default Exchange;
|
|
@@ -617,6 +617,7 @@ interface Exchange {
|
|
|
617
617
|
eapiPrivateGetBlockOrderExecute(params?: {}): Promise<implicitReturnType>;
|
|
618
618
|
eapiPrivateGetBlockUserTrades(params?: {}): Promise<implicitReturnType>;
|
|
619
619
|
eapiPrivateGetBlockTrades(params?: {}): Promise<implicitReturnType>;
|
|
620
|
+
eapiPrivateGetComission(params?: {}): Promise<implicitReturnType>;
|
|
620
621
|
eapiPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
|
|
621
622
|
eapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
622
623
|
eapiPrivatePostListenKey(params?: {}): Promise<implicitReturnType>;
|
|
@@ -617,6 +617,7 @@ interface binance {
|
|
|
617
617
|
eapiPrivateGetBlockOrderExecute(params?: {}): Promise<implicitReturnType>;
|
|
618
618
|
eapiPrivateGetBlockUserTrades(params?: {}): Promise<implicitReturnType>;
|
|
619
619
|
eapiPrivateGetBlockTrades(params?: {}): Promise<implicitReturnType>;
|
|
620
|
+
eapiPrivateGetComission(params?: {}): Promise<implicitReturnType>;
|
|
620
621
|
eapiPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
|
|
621
622
|
eapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
622
623
|
eapiPrivatePostListenKey(params?: {}): Promise<implicitReturnType>;
|
|
@@ -669,6 +669,7 @@ interface binance {
|
|
|
669
669
|
eapiPrivateGetBlockOrderExecute(params?: {}): Promise<implicitReturnType>;
|
|
670
670
|
eapiPrivateGetBlockUserTrades(params?: {}): Promise<implicitReturnType>;
|
|
671
671
|
eapiPrivateGetBlockTrades(params?: {}): Promise<implicitReturnType>;
|
|
672
|
+
eapiPrivateGetComission(params?: {}): Promise<implicitReturnType>;
|
|
672
673
|
eapiPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
|
|
673
674
|
eapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
674
675
|
eapiPrivatePostListenKey(params?: {}): Promise<implicitReturnType>;
|
|
@@ -617,6 +617,7 @@ interface binance {
|
|
|
617
617
|
eapiPrivateGetBlockOrderExecute(params?: {}): Promise<implicitReturnType>;
|
|
618
618
|
eapiPrivateGetBlockUserTrades(params?: {}): Promise<implicitReturnType>;
|
|
619
619
|
eapiPrivateGetBlockTrades(params?: {}): Promise<implicitReturnType>;
|
|
620
|
+
eapiPrivateGetComission(params?: {}): Promise<implicitReturnType>;
|
|
620
621
|
eapiPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
|
|
621
622
|
eapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
622
623
|
eapiPrivatePostListenKey(params?: {}): Promise<implicitReturnType>;
|
|
@@ -25,6 +25,7 @@ interface Exchange {
|
|
|
25
25
|
publicGetConvertCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
26
26
|
publicPostBulletPublic(params?: {}): Promise<implicitReturnType>;
|
|
27
27
|
privateGetUserInfo(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
privateGetUserApiKey(params?: {}): Promise<implicitReturnType>;
|
|
28
29
|
privateGetAccounts(params?: {}): Promise<implicitReturnType>;
|
|
29
30
|
privateGetAccountsAccountId(params?: {}): Promise<implicitReturnType>;
|
|
30
31
|
privateGetAccountsLedgers(params?: {}): Promise<implicitReturnType>;
|
|
@@ -103,6 +104,7 @@ interface Exchange {
|
|
|
103
104
|
privateGetConvertLimitOrderDetail(params?: {}): Promise<implicitReturnType>;
|
|
104
105
|
privateGetConvertLimitOrders(params?: {}): Promise<implicitReturnType>;
|
|
105
106
|
privateGetAffiliateInviterStatistics(params?: {}): Promise<implicitReturnType>;
|
|
107
|
+
privateGetEarnRedeemPreview(params?: {}): Promise<implicitReturnType>;
|
|
106
108
|
privatePostSubUserCreated(params?: {}): Promise<implicitReturnType>;
|
|
107
109
|
privatePostSubApiKey(params?: {}): Promise<implicitReturnType>;
|
|
108
110
|
privatePostSubApiKeyUpdate(params?: {}): Promise<implicitReturnType>;
|
|
@@ -25,6 +25,7 @@ interface kucoin {
|
|
|
25
25
|
publicGetConvertCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
26
26
|
publicPostBulletPublic(params?: {}): Promise<implicitReturnType>;
|
|
27
27
|
privateGetUserInfo(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
privateGetUserApiKey(params?: {}): Promise<implicitReturnType>;
|
|
28
29
|
privateGetAccounts(params?: {}): Promise<implicitReturnType>;
|
|
29
30
|
privateGetAccountsAccountId(params?: {}): Promise<implicitReturnType>;
|
|
30
31
|
privateGetAccountsLedgers(params?: {}): Promise<implicitReturnType>;
|
|
@@ -103,6 +104,7 @@ interface kucoin {
|
|
|
103
104
|
privateGetConvertLimitOrderDetail(params?: {}): Promise<implicitReturnType>;
|
|
104
105
|
privateGetConvertLimitOrders(params?: {}): Promise<implicitReturnType>;
|
|
105
106
|
privateGetAffiliateInviterStatistics(params?: {}): Promise<implicitReturnType>;
|
|
107
|
+
privateGetEarnRedeemPreview(params?: {}): Promise<implicitReturnType>;
|
|
106
108
|
privatePostSubUserCreated(params?: {}): Promise<implicitReturnType>;
|
|
107
109
|
privatePostSubApiKey(params?: {}): Promise<implicitReturnType>;
|
|
108
110
|
privatePostSubApiKeyUpdate(params?: {}): Promise<implicitReturnType>;
|