ccxt 4.4.77 → 4.4.80
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 +8 -10
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +8 -4
- package/dist/cjs/src/abstract/ace.js +1 -1
- package/dist/cjs/src/abstract/apex.js +9 -0
- package/dist/cjs/src/ace.js +1 -1
- package/dist/cjs/src/apex.js +1949 -0
- package/dist/cjs/src/ascendex.js +25 -4
- package/dist/cjs/src/base/Exchange.js +42 -2
- package/dist/cjs/src/binance.js +9 -1
- package/dist/cjs/src/bingx.js +3 -3
- package/dist/cjs/src/bitfinex.js +64 -36
- package/dist/cjs/src/bitget.js +191 -138
- package/dist/cjs/src/bitmart.js +7 -2
- package/dist/cjs/src/bitmex.js +16 -8
- package/dist/cjs/src/bitopro.js +5 -1
- package/dist/cjs/src/bitrue.js +2 -1
- package/dist/cjs/src/bitso.js +1 -1
- package/dist/cjs/src/bitteam.js +2 -0
- package/dist/cjs/src/bitvavo.js +28 -10
- package/dist/cjs/src/btcalpha.js +1 -1
- package/dist/cjs/src/btcmarkets.js +1 -1
- package/dist/cjs/src/btcturk.js +1 -1
- package/dist/cjs/src/bybit.js +32 -16
- package/dist/cjs/src/cex.js +1 -1
- package/dist/cjs/src/coinbase.js +18 -2
- package/dist/cjs/src/coincatch.js +68 -0
- package/dist/cjs/src/coinex.js +1 -0
- package/dist/cjs/src/coinlist.js +1 -0
- package/dist/cjs/src/coinone.js +1 -0
- package/dist/cjs/src/delta.js +4 -0
- package/dist/cjs/src/deribit.js +1 -0
- package/dist/cjs/src/hitbtc.js +3 -0
- package/dist/cjs/src/hollaex.js +1 -0
- package/dist/cjs/src/htx.js +7 -3
- package/dist/cjs/src/huobijp.js +1 -0
- package/dist/cjs/src/hyperliquid.js +14 -4
- package/dist/cjs/src/kraken.js +2 -0
- package/dist/cjs/src/mexc.js +50 -57
- package/dist/cjs/src/okx.js +1 -1
- package/dist/cjs/src/phemex.js +2 -1
- package/dist/cjs/src/poloniex.js +2 -1
- package/dist/cjs/src/pro/apex.js +1043 -0
- package/dist/cjs/src/pro/binance.js +3 -3
- package/dist/cjs/src/pro/coinbase.js +45 -68
- package/dist/cjs/src/pro/gate.js +27 -2
- package/dist/cjs/src/pro/hollaex.js +2 -2
- package/dist/cjs/src/pro/p2b.js +2 -2
- package/dist/cjs/src/pro/tradeogre.js +283 -0
- package/dist/cjs/src/pro/upbit.js +43 -0
- package/dist/cjs/src/probit.js +1 -0
- package/dist/cjs/src/static_dependencies/zklink/zklink-sdk-web.js +2639 -0
- package/dist/cjs/src/timex.js +2 -2
- package/dist/cjs/src/tradeogre.js +2 -1
- package/dist/cjs/src/upbit.js +277 -67
- package/dist/cjs/src/whitebit.js +66 -12
- package/dist/cjs/src/woo.js +3 -1
- package/dist/cjs/src/xt.js +9 -0
- package/js/ccxt.d.ts +11 -5
- package/js/ccxt.js +8 -4
- package/js/src/abstract/apex.d.ts +34 -0
- package/js/src/abstract/bitmart.d.ts +1 -0
- package/js/src/apex.d.ts +333 -0
- package/js/src/apex.js +1945 -0
- package/js/src/ascendex.d.ts +3 -3
- package/js/src/ascendex.js +25 -4
- package/js/src/base/Exchange.d.ts +2 -0
- package/js/src/base/Exchange.js +42 -1
- package/js/src/binance.d.ts +7 -7
- package/js/src/binance.js +9 -1
- package/js/src/bingx.js +3 -3
- package/js/src/bitfinex.d.ts +3 -3
- package/js/src/bitfinex.js +64 -36
- package/js/src/bitflyer.d.ts +2 -2
- package/js/src/bitget.d.ts +2 -0
- package/js/src/bitget.js +191 -138
- package/js/src/bitmart.d.ts +5 -4
- package/js/src/bitmart.js +7 -2
- package/js/src/bitmex.d.ts +3 -3
- package/js/src/bitmex.js +16 -8
- package/js/src/bitopro.js +5 -1
- package/js/src/bitrue.js +2 -1
- package/js/src/bitso.js +1 -1
- package/js/src/bitteam.js +2 -0
- package/js/src/bitvavo.js +28 -10
- package/js/src/btcalpha.js +1 -1
- package/js/src/btcmarkets.js +1 -1
- package/js/src/btcturk.js +1 -1
- package/js/src/bybit.js +32 -16
- package/js/src/cex.js +1 -1
- package/js/src/coinbase.d.ts +4 -4
- package/js/src/coinbase.js +18 -2
- package/js/src/coinbaseexchange.d.ts +1 -1
- package/js/src/coincatch.d.ts +11 -0
- package/js/src/coincatch.js +68 -0
- package/js/src/coinex.js +1 -0
- package/js/src/coinlist.js +1 -0
- package/js/src/coinone.js +1 -0
- package/js/src/cryptocom.d.ts +4 -4
- package/js/src/delta.js +4 -0
- package/js/src/deribit.d.ts +4 -4
- package/js/src/deribit.js +1 -0
- package/js/src/derive.d.ts +3 -3
- package/js/src/digifinex.d.ts +4 -4
- package/js/src/hitbtc.js +3 -0
- package/js/src/hollaex.js +1 -0
- package/js/src/htx.d.ts +4 -4
- package/js/src/htx.js +7 -3
- package/js/src/huobijp.js +1 -0
- package/js/src/hyperliquid.d.ts +1 -0
- package/js/src/hyperliquid.js +14 -4
- package/js/src/kraken.d.ts +3 -3
- package/js/src/kraken.js +2 -0
- package/js/src/krakenfutures.d.ts +2 -2
- package/js/src/kucoinfutures.d.ts +5 -5
- package/js/src/mexc.d.ts +1 -0
- package/js/src/mexc.js +50 -57
- package/js/src/okx.js +1 -1
- package/js/src/oxfun.d.ts +3 -3
- package/js/src/phemex.d.ts +3 -3
- package/js/src/phemex.js +2 -1
- package/js/src/poloniex.d.ts +3 -3
- package/js/src/poloniex.js +2 -1
- package/js/src/pro/apex.d.ts +160 -0
- package/js/src/pro/apex.js +1038 -0
- package/js/src/pro/binance.js +3 -3
- package/js/src/pro/coinbase.d.ts +4 -3
- package/js/src/pro/coinbase.js +45 -66
- package/js/src/pro/gate.js +27 -2
- package/js/src/pro/hollaex.js +2 -2
- package/js/src/pro/p2b.js +2 -2
- package/js/src/pro/tradeogre.d.ts +49 -0
- package/js/src/pro/tradeogre.js +278 -0
- package/js/src/pro/upbit.d.ts +16 -1
- package/js/src/pro/upbit.js +43 -0
- package/js/src/probit.js +1 -0
- package/js/src/static_dependencies/zklink/zklink-sdk-web.d.ts +1279 -0
- package/js/src/static_dependencies/zklink/zklink-sdk-web.js +4276 -0
- package/js/src/timex.js +2 -2
- package/js/src/tradeogre.js +2 -1
- package/js/src/upbit.d.ts +75 -23
- package/js/src/upbit.js +277 -67
- package/js/src/vertex.d.ts +3 -3
- package/js/src/whitebit.js +66 -12
- package/js/src/woo.d.ts +4 -4
- package/js/src/woo.js +3 -1
- package/js/src/woofipro.d.ts +4 -4
- package/js/src/xt.d.ts +4 -4
- package/js/src/xt.js +9 -0
- package/package.json +2 -2
- package/js/src/abstract/ace.d.ts +0 -18
- package/js/src/ace.d.ts +0 -158
- package/js/src/ace.js +0 -1175
- /package/js/src/abstract/{ace.js → apex.js} +0 -0
package/dist/cjs/src/whitebit.js
CHANGED
|
@@ -544,18 +544,69 @@ class whitebit extends whitebit$1 {
|
|
|
544
544
|
async fetchCurrencies(params = {}) {
|
|
545
545
|
const response = await this.v4PublicGetAssets(params);
|
|
546
546
|
//
|
|
547
|
-
//
|
|
548
|
-
//
|
|
549
|
-
//
|
|
550
|
-
//
|
|
551
|
-
//
|
|
552
|
-
//
|
|
553
|
-
//
|
|
554
|
-
//
|
|
555
|
-
//
|
|
556
|
-
//
|
|
557
|
-
//
|
|
558
|
-
//
|
|
547
|
+
// {
|
|
548
|
+
// BTC: {
|
|
549
|
+
// name: "Bitcoin",
|
|
550
|
+
// unified_cryptoasset_id: "1",
|
|
551
|
+
// can_withdraw: true,
|
|
552
|
+
// can_deposit: true,
|
|
553
|
+
// min_withdraw: "0.0003",
|
|
554
|
+
// max_withdraw: "0",
|
|
555
|
+
// maker_fee: "0.1",
|
|
556
|
+
// taker_fee: "0.1",
|
|
557
|
+
// min_deposit: "0.0001",
|
|
558
|
+
// max_deposit: "0",
|
|
559
|
+
// networks: {
|
|
560
|
+
// deposits: [ "BTC", ],
|
|
561
|
+
// withdraws: [ "BTC", ],
|
|
562
|
+
// default: "BTC",
|
|
563
|
+
// },
|
|
564
|
+
// confirmations: {
|
|
565
|
+
// BTC: "2",
|
|
566
|
+
// },
|
|
567
|
+
// limits: {
|
|
568
|
+
// deposit: {
|
|
569
|
+
// BTC: { min: "0.0001", },
|
|
570
|
+
// },
|
|
571
|
+
// withdraw: {
|
|
572
|
+
// BTC: { min: "0.0003", },
|
|
573
|
+
// },
|
|
574
|
+
// },
|
|
575
|
+
// currency_precision: "8",
|
|
576
|
+
// is_memo: false,
|
|
577
|
+
// },
|
|
578
|
+
// USD: {
|
|
579
|
+
// name: "United States Dollar",
|
|
580
|
+
// unified_cryptoasset_id: "6955",
|
|
581
|
+
// can_withdraw: true,
|
|
582
|
+
// can_deposit: true,
|
|
583
|
+
// min_withdraw: "10",
|
|
584
|
+
// max_withdraw: "10000",
|
|
585
|
+
// maker_fee: "0.1",
|
|
586
|
+
// taker_fee: "0.1",
|
|
587
|
+
// min_deposit: "10",
|
|
588
|
+
// max_deposit: "10000",
|
|
589
|
+
// networks: {
|
|
590
|
+
// deposits: [ "USD", ],
|
|
591
|
+
// withdraws: [ "USD", ],
|
|
592
|
+
// default: "USD",
|
|
593
|
+
// },
|
|
594
|
+
// providers: {
|
|
595
|
+
// deposits: [ "ADVCASH", ],
|
|
596
|
+
// withdraws: [ "ADVCASH", ],
|
|
597
|
+
// },
|
|
598
|
+
// limits: {
|
|
599
|
+
// deposit: {
|
|
600
|
+
// USD: { max: "10000", min: "10", },
|
|
601
|
+
// },
|
|
602
|
+
// withdraw: {
|
|
603
|
+
// USD: { max: "10000", min: "10", },
|
|
604
|
+
// },
|
|
605
|
+
// },
|
|
606
|
+
// currency_precision: "2",
|
|
607
|
+
// is_memo: false,
|
|
608
|
+
// }
|
|
609
|
+
// }
|
|
559
610
|
//
|
|
560
611
|
const ids = Object.keys(response);
|
|
561
612
|
const result = {};
|
|
@@ -568,6 +619,7 @@ class whitebit extends whitebit$1 {
|
|
|
568
619
|
const canWithdraw = this.safeBool(currency, 'can_withdraw', true);
|
|
569
620
|
const active = canDeposit && canWithdraw;
|
|
570
621
|
const code = this.safeCurrencyCode(id);
|
|
622
|
+
const hasProvider = ('providers' in currency);
|
|
571
623
|
result[code] = {
|
|
572
624
|
'id': id,
|
|
573
625
|
'code': code,
|
|
@@ -577,6 +629,8 @@ class whitebit extends whitebit$1 {
|
|
|
577
629
|
'deposit': canDeposit,
|
|
578
630
|
'withdraw': canWithdraw,
|
|
579
631
|
'fee': undefined,
|
|
632
|
+
'networks': undefined,
|
|
633
|
+
'type': hasProvider ? 'fiat' : 'crypto',
|
|
580
634
|
'precision': undefined,
|
|
581
635
|
'limits': {
|
|
582
636
|
'amount': {
|
package/dist/cjs/src/woo.js
CHANGED
|
@@ -571,6 +571,7 @@ class woo extends woo$1 {
|
|
|
571
571
|
linear = true;
|
|
572
572
|
inverse = false;
|
|
573
573
|
}
|
|
574
|
+
const active = this.safeString(market, 'is_trading') === '1';
|
|
574
575
|
return {
|
|
575
576
|
'id': marketId,
|
|
576
577
|
'symbol': symbol,
|
|
@@ -586,7 +587,7 @@ class woo extends woo$1 {
|
|
|
586
587
|
'swap': swap,
|
|
587
588
|
'future': false,
|
|
588
589
|
'option': false,
|
|
589
|
-
'active':
|
|
590
|
+
'active': active,
|
|
590
591
|
'contract': contract,
|
|
591
592
|
'linear': linear,
|
|
592
593
|
'inverse': inverse,
|
|
@@ -930,6 +931,7 @@ class woo extends woo$1 {
|
|
|
930
931
|
'networks': resultingNetworks,
|
|
931
932
|
'deposit': undefined,
|
|
932
933
|
'withdraw': undefined,
|
|
934
|
+
'type': 'crypto',
|
|
933
935
|
'limits': {
|
|
934
936
|
'deposit': {
|
|
935
937
|
'min': undefined,
|
package/dist/cjs/src/xt.js
CHANGED
|
@@ -950,6 +950,14 @@ class xt extends xt$1 {
|
|
|
950
950
|
},
|
|
951
951
|
};
|
|
952
952
|
}
|
|
953
|
+
const typeRaw = this.safeString(entry, 'type');
|
|
954
|
+
let type = undefined;
|
|
955
|
+
if (typeRaw === 'FT') {
|
|
956
|
+
type = 'crypto';
|
|
957
|
+
}
|
|
958
|
+
else {
|
|
959
|
+
type = 'other';
|
|
960
|
+
}
|
|
953
961
|
result[code] = {
|
|
954
962
|
'info': entry,
|
|
955
963
|
'id': currencyId,
|
|
@@ -961,6 +969,7 @@ class xt extends xt$1 {
|
|
|
961
969
|
'deposit': deposit,
|
|
962
970
|
'withdraw': withdraw,
|
|
963
971
|
'networks': networks,
|
|
972
|
+
'type': type,
|
|
964
973
|
'limits': {
|
|
965
974
|
'amount': {
|
|
966
975
|
'min': undefined,
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ 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, 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.4.
|
|
8
|
-
import ace from './src/ace.js';
|
|
7
|
+
declare const version = "4.4.79";
|
|
9
8
|
import alpaca from './src/alpaca.js';
|
|
9
|
+
import apex from './src/apex.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
|
11
11
|
import bequant from './src/bequant.js';
|
|
12
12
|
import bigone from './src/bigone.js';
|
|
@@ -113,6 +113,7 @@ import yobit from './src/yobit.js';
|
|
|
113
113
|
import zaif from './src/zaif.js';
|
|
114
114
|
import zonda from './src/zonda.js';
|
|
115
115
|
import alpacaPro from './src/pro/alpaca.js';
|
|
116
|
+
import apexPro from './src/pro/apex.js';
|
|
116
117
|
import ascendexPro from './src/pro/ascendex.js';
|
|
117
118
|
import bequantPro from './src/pro/bequant.js';
|
|
118
119
|
import binancePro from './src/pro/binance.js';
|
|
@@ -176,6 +177,7 @@ import paradexPro from './src/pro/paradex.js';
|
|
|
176
177
|
import phemexPro from './src/pro/phemex.js';
|
|
177
178
|
import poloniexPro from './src/pro/poloniex.js';
|
|
178
179
|
import probitPro from './src/pro/probit.js';
|
|
180
|
+
import tradeogrePro from './src/pro/tradeogre.js';
|
|
179
181
|
import upbitPro from './src/pro/upbit.js';
|
|
180
182
|
import vertexPro from './src/pro/vertex.js';
|
|
181
183
|
import whitebitPro from './src/pro/whitebit.js';
|
|
@@ -183,8 +185,8 @@ import wooPro from './src/pro/woo.js';
|
|
|
183
185
|
import woofiproPro from './src/pro/woofipro.js';
|
|
184
186
|
import xtPro from './src/pro/xt.js';
|
|
185
187
|
declare const exchanges: {
|
|
186
|
-
ace: typeof ace;
|
|
187
188
|
alpaca: typeof alpaca;
|
|
189
|
+
apex: typeof apex;
|
|
188
190
|
ascendex: typeof ascendex;
|
|
189
191
|
bequant: typeof bequant;
|
|
190
192
|
bigone: typeof bigone;
|
|
@@ -293,6 +295,7 @@ declare const exchanges: {
|
|
|
293
295
|
};
|
|
294
296
|
declare const pro: {
|
|
295
297
|
alpaca: typeof alpacaPro;
|
|
298
|
+
apex: typeof apexPro;
|
|
296
299
|
ascendex: typeof ascendexPro;
|
|
297
300
|
bequant: typeof bequantPro;
|
|
298
301
|
binance: typeof binancePro;
|
|
@@ -356,6 +359,7 @@ declare const pro: {
|
|
|
356
359
|
phemex: typeof phemexPro;
|
|
357
360
|
poloniex: typeof poloniexPro;
|
|
358
361
|
probit: typeof probitPro;
|
|
362
|
+
tradeogre: typeof tradeogrePro;
|
|
359
363
|
upbit: typeof upbitPro;
|
|
360
364
|
vertex: typeof vertexPro;
|
|
361
365
|
whitebit: typeof whitebitPro;
|
|
@@ -370,6 +374,7 @@ declare const ccxt: {
|
|
|
370
374
|
exchanges: string[];
|
|
371
375
|
pro: {
|
|
372
376
|
alpaca: typeof alpacaPro;
|
|
377
|
+
apex: typeof apexPro;
|
|
373
378
|
ascendex: typeof ascendexPro;
|
|
374
379
|
bequant: typeof bequantPro;
|
|
375
380
|
binance: typeof binancePro;
|
|
@@ -433,6 +438,7 @@ declare const ccxt: {
|
|
|
433
438
|
phemex: typeof phemexPro;
|
|
434
439
|
poloniex: typeof poloniexPro;
|
|
435
440
|
probit: typeof probitPro;
|
|
441
|
+
tradeogre: typeof tradeogrePro;
|
|
436
442
|
upbit: typeof upbitPro;
|
|
437
443
|
vertex: typeof vertexPro;
|
|
438
444
|
whitebit: typeof whitebitPro;
|
|
@@ -441,8 +447,8 @@ declare const ccxt: {
|
|
|
441
447
|
xt: typeof xtPro;
|
|
442
448
|
};
|
|
443
449
|
} & {
|
|
444
|
-
ace: typeof ace;
|
|
445
450
|
alpaca: typeof alpaca;
|
|
451
|
+
apex: typeof apex;
|
|
446
452
|
ascendex: typeof ascendex;
|
|
447
453
|
bequant: typeof bequant;
|
|
448
454
|
bigone: typeof bigone;
|
|
@@ -549,5 +555,5 @@ declare const ccxt: {
|
|
|
549
555
|
zaif: typeof zaif;
|
|
550
556
|
zonda: typeof zonda;
|
|
551
557
|
} & typeof functions & typeof errors;
|
|
552
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, 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, 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,
|
|
558
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, 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, 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, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, mercado, mexc, myokx, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
553
559
|
export default ccxt;
|
package/js/ccxt.js
CHANGED
|
@@ -32,11 +32,11 @@ import * as errors from './src/base/errors.js';
|
|
|
32
32
|
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';
|
|
33
33
|
//-----------------------------------------------------------------------------
|
|
34
34
|
// this is updated by vss.js when building
|
|
35
|
-
const version = '4.4.
|
|
35
|
+
const version = '4.4.79';
|
|
36
36
|
Exchange.ccxtVersion = version;
|
|
37
37
|
//-----------------------------------------------------------------------------
|
|
38
|
-
import ace from './src/ace.js';
|
|
39
38
|
import alpaca from './src/alpaca.js';
|
|
39
|
+
import apex from './src/apex.js';
|
|
40
40
|
import ascendex from './src/ascendex.js';
|
|
41
41
|
import bequant from './src/bequant.js';
|
|
42
42
|
import bigone from './src/bigone.js';
|
|
@@ -144,6 +144,7 @@ import zaif from './src/zaif.js';
|
|
|
144
144
|
import zonda from './src/zonda.js';
|
|
145
145
|
// pro exchanges
|
|
146
146
|
import alpacaPro from './src/pro/alpaca.js';
|
|
147
|
+
import apexPro from './src/pro/apex.js';
|
|
147
148
|
import ascendexPro from './src/pro/ascendex.js';
|
|
148
149
|
import bequantPro from './src/pro/bequant.js';
|
|
149
150
|
import binancePro from './src/pro/binance.js';
|
|
@@ -207,6 +208,7 @@ import paradexPro from './src/pro/paradex.js';
|
|
|
207
208
|
import phemexPro from './src/pro/phemex.js';
|
|
208
209
|
import poloniexPro from './src/pro/poloniex.js';
|
|
209
210
|
import probitPro from './src/pro/probit.js';
|
|
211
|
+
import tradeogrePro from './src/pro/tradeogre.js';
|
|
210
212
|
import upbitPro from './src/pro/upbit.js';
|
|
211
213
|
import vertexPro from './src/pro/vertex.js';
|
|
212
214
|
import whitebitPro from './src/pro/whitebit.js';
|
|
@@ -214,8 +216,8 @@ import wooPro from './src/pro/woo.js';
|
|
|
214
216
|
import woofiproPro from './src/pro/woofipro.js';
|
|
215
217
|
import xtPro from './src/pro/xt.js';
|
|
216
218
|
const exchanges = {
|
|
217
|
-
'ace': ace,
|
|
218
219
|
'alpaca': alpaca,
|
|
220
|
+
'apex': apex,
|
|
219
221
|
'ascendex': ascendex,
|
|
220
222
|
'bequant': bequant,
|
|
221
223
|
'bigone': bigone,
|
|
@@ -324,6 +326,7 @@ const exchanges = {
|
|
|
324
326
|
};
|
|
325
327
|
const pro = {
|
|
326
328
|
'alpaca': alpacaPro,
|
|
329
|
+
'apex': apexPro,
|
|
327
330
|
'ascendex': ascendexPro,
|
|
328
331
|
'bequant': bequantPro,
|
|
329
332
|
'binance': binancePro,
|
|
@@ -387,6 +390,7 @@ const pro = {
|
|
|
387
390
|
'phemex': phemexPro,
|
|
388
391
|
'poloniex': poloniexPro,
|
|
389
392
|
'probit': probitPro,
|
|
393
|
+
'tradeogre': tradeogrePro,
|
|
390
394
|
'upbit': upbitPro,
|
|
391
395
|
'vertex': vertexPro,
|
|
392
396
|
'whitebit': whitebitPro,
|
|
@@ -406,6 +410,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
406
410
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
407
411
|
//-----------------------------------------------------------------------------
|
|
408
412
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
409
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, 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,
|
|
413
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, 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, alpaca, apex, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, mercado, mexc, myokx, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
410
414
|
export default ccxt;
|
|
411
415
|
//-----------------------------------------------------------------------------
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
publicGetV3Symbols(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicGetV3HistoryFunding(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
publicGetV3Ticker(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
publicGetV3Klines(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
publicGetV3Trades(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
publicGetV3Depth(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
publicGetV3Time(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
publicGetV3DataAllTickerInfo(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
privateGetV3Account(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
privateGetV3AccountBalance(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
privateGetV3Fills(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
privateGetV3OrderFills(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
privateGetV3Order(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
privateGetV3HistoryOrders(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
privateGetV3OrderByClientOrderId(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
privateGetV3Funding(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
privateGetV3HistoricalPnl(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
privateGetV3OpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
privateGetV3Transfers(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
privateGetV3Transfer(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
privatePostV3DeleteOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
privatePostV3DeleteClientOrderId(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
privatePostV3DeleteOrder(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
privatePostV3Order(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
privatePostV3SetInitialMarginRate(params?: {}): Promise<implicitReturnType>;
|
|
29
|
+
privatePostV3TransferOut(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
privatePostV3ContractTransferOut(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
}
|
|
32
|
+
declare abstract class Exchange extends _Exchange {
|
|
33
|
+
}
|
|
34
|
+
export default Exchange;
|
|
@@ -60,6 +60,7 @@ interface Exchange {
|
|
|
60
60
|
privateGetContractPrivateOrder(params?: {}): Promise<implicitReturnType>;
|
|
61
61
|
privateGetContractPrivateOrderHistory(params?: {}): Promise<implicitReturnType>;
|
|
62
62
|
privateGetContractPrivatePosition(params?: {}): Promise<implicitReturnType>;
|
|
63
|
+
privateGetContractPrivatePositionV2(params?: {}): Promise<implicitReturnType>;
|
|
63
64
|
privateGetContractPrivateGetOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
64
65
|
privateGetContractPrivateCurrentPlanOrder(params?: {}): Promise<implicitReturnType>;
|
|
65
66
|
privateGetContractPrivateTrades(params?: {}): Promise<implicitReturnType>;
|