ccxt 4.5.1 → 4.5.2
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 +110 -112
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -9
- package/dist/cjs/src/ascendex.js +1 -1
- package/dist/cjs/src/binance.js +20 -14
- package/dist/cjs/src/bitget.js +1 -1
- package/dist/cjs/src/indodax.js +11 -12
- package/dist/cjs/src/okx.js +2 -2
- package/dist/cjs/src/poloniex.js +1 -1
- package/dist/cjs/src/pro/bitget.js +161 -26
- package/dist/cjs/src/pro/bitmart.js +1 -1
- package/dist/cjs/src/pro/gemini.js +7 -2
- package/dist/cjs/src/pro/hyperliquid.js +5 -0
- package/dist/cjs/src/pro/kraken.js +4 -6
- package/dist/cjs/src/zonda.js +12 -0
- package/js/ccxt.d.ts +2 -11
- package/js/ccxt.js +2 -8
- package/js/src/ascendex.js +1 -1
- package/js/src/binance.d.ts +1 -1
- package/js/src/binance.js +20 -14
- package/js/src/bitget.js +1 -1
- package/js/src/indodax.js +11 -12
- package/js/src/okx.js +2 -2
- package/js/src/poloniex.js +1 -1
- package/js/src/pro/bitget.d.ts +4 -0
- package/js/src/pro/bitget.js +167 -26
- package/js/src/pro/bitmart.js +1 -1
- package/js/src/pro/gemini.d.ts +1 -1
- package/js/src/pro/gemini.js +7 -2
- package/js/src/pro/hyperliquid.js +5 -0
- package/js/src/pro/kraken.js +4 -6
- package/js/src/zonda.js +12 -0
- package/package.json +2 -1
- package/js/src/abstract/ellipx.d.ts +0 -28
- package/js/src/abstract/ellipx.js +0 -11
- package/js/src/abstract/vertex.d.ts +0 -22
- package/js/src/abstract/vertex.js +0 -11
- package/js/src/ellipx.d.ts +0 -237
- package/js/src/ellipx.js +0 -2071
- package/js/src/pro/vertex.d.ts +0 -104
- package/js/src/pro/vertex.js +0 -999
- package/js/src/vertex.d.ts +0 -346
- package/js/src/vertex.js +0 -3146
package/dist/cjs/src/zonda.js
CHANGED
|
@@ -29,6 +29,9 @@ class zonda extends zonda$1["default"] {
|
|
|
29
29
|
'future': false,
|
|
30
30
|
'option': false,
|
|
31
31
|
'addMargin': false,
|
|
32
|
+
'borrowCrossMargin': false,
|
|
33
|
+
'borrowIsolatedMargin': false,
|
|
34
|
+
'borrowMargin': false,
|
|
32
35
|
'cancelAllOrders': false,
|
|
33
36
|
'cancelOrder': true,
|
|
34
37
|
'cancelOrders': false,
|
|
@@ -37,6 +40,7 @@ class zonda extends zonda$1["default"] {
|
|
|
37
40
|
'createDepositAddress': false,
|
|
38
41
|
'createOrder': true,
|
|
39
42
|
'createReduceOnlyOrder': false,
|
|
43
|
+
'fetchAllGreeks': false,
|
|
40
44
|
'fetchBalance': true,
|
|
41
45
|
'fetchBorrowInterest': false,
|
|
42
46
|
'fetchBorrowRate': false,
|
|
@@ -67,12 +71,15 @@ class zonda extends zonda$1["default"] {
|
|
|
67
71
|
'fetchLeverages': false,
|
|
68
72
|
'fetchLeverageTiers': false,
|
|
69
73
|
'fetchLiquidations': false,
|
|
74
|
+
'fetchLongShortRatio': false,
|
|
75
|
+
'fetchLongShortRatioHistory': false,
|
|
70
76
|
'fetchMarginAdjustmentHistory': false,
|
|
71
77
|
'fetchMarginMode': false,
|
|
72
78
|
'fetchMarginModes': false,
|
|
73
79
|
'fetchMarketLeverageTiers': false,
|
|
74
80
|
'fetchMarkets': true,
|
|
75
81
|
'fetchMarkOHLCV': false,
|
|
82
|
+
'fetchMarkPrice': false,
|
|
76
83
|
'fetchMarkPrices': false,
|
|
77
84
|
'fetchMyLiquidations': false,
|
|
78
85
|
'fetchMySettlementHistory': false,
|
|
@@ -80,6 +87,7 @@ class zonda extends zonda$1["default"] {
|
|
|
80
87
|
'fetchOHLCV': true,
|
|
81
88
|
'fetchOpenInterest': false,
|
|
82
89
|
'fetchOpenInterestHistory': false,
|
|
90
|
+
'fetchOpenInterests': false,
|
|
83
91
|
'fetchOpenOrder': false,
|
|
84
92
|
'fetchOpenOrders': true,
|
|
85
93
|
'fetchOption': false,
|
|
@@ -87,8 +95,11 @@ class zonda extends zonda$1["default"] {
|
|
|
87
95
|
'fetchOrderBook': true,
|
|
88
96
|
'fetchOrderBooks': false,
|
|
89
97
|
'fetchPosition': false,
|
|
98
|
+
'fetchPositionHistory': false,
|
|
90
99
|
'fetchPositionMode': false,
|
|
91
100
|
'fetchPositions': false,
|
|
101
|
+
'fetchPositionsForSymbol': false,
|
|
102
|
+
'fetchPositionsHistory': false,
|
|
92
103
|
'fetchPositionsRisk': false,
|
|
93
104
|
'fetchPremiumIndexOHLCV': false,
|
|
94
105
|
'fetchSettlementHistory': false,
|
|
@@ -109,6 +120,7 @@ class zonda extends zonda$1["default"] {
|
|
|
109
120
|
'reduceMargin': false,
|
|
110
121
|
'repayCrossMargin': false,
|
|
111
122
|
'repayIsolatedMargin': false,
|
|
123
|
+
'repayMargin': false,
|
|
112
124
|
'setLeverage': false,
|
|
113
125
|
'setMargin': false,
|
|
114
126
|
'setMarginMode': false,
|
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, 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.1";
|
|
8
8
|
import alpaca from './src/alpaca.js';
|
|
9
9
|
import apex from './src/apex.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
|
@@ -58,7 +58,6 @@ import delta from './src/delta.js';
|
|
|
58
58
|
import deribit from './src/deribit.js';
|
|
59
59
|
import derive from './src/derive.js';
|
|
60
60
|
import digifinex from './src/digifinex.js';
|
|
61
|
-
import ellipx from './src/ellipx.js';
|
|
62
61
|
import exmo from './src/exmo.js';
|
|
63
62
|
import fmfwio from './src/fmfwio.js';
|
|
64
63
|
import foxbit from './src/foxbit.js';
|
|
@@ -103,7 +102,6 @@ import timex from './src/timex.js';
|
|
|
103
102
|
import tokocrypto from './src/tokocrypto.js';
|
|
104
103
|
import tradeogre from './src/tradeogre.js';
|
|
105
104
|
import upbit from './src/upbit.js';
|
|
106
|
-
import vertex from './src/vertex.js';
|
|
107
105
|
import wavesexchange from './src/wavesexchange.js';
|
|
108
106
|
import whitebit from './src/whitebit.js';
|
|
109
107
|
import woo from './src/woo.js';
|
|
@@ -180,7 +178,6 @@ import poloniexPro from './src/pro/poloniex.js';
|
|
|
180
178
|
import probitPro from './src/pro/probit.js';
|
|
181
179
|
import tradeogrePro from './src/pro/tradeogre.js';
|
|
182
180
|
import upbitPro from './src/pro/upbit.js';
|
|
183
|
-
import vertexPro from './src/pro/vertex.js';
|
|
184
181
|
import whitebitPro from './src/pro/whitebit.js';
|
|
185
182
|
import wooPro from './src/pro/woo.js';
|
|
186
183
|
import woofiproPro from './src/pro/woofipro.js';
|
|
@@ -239,7 +236,6 @@ declare const exchanges: {
|
|
|
239
236
|
deribit: typeof deribit;
|
|
240
237
|
derive: typeof derive;
|
|
241
238
|
digifinex: typeof digifinex;
|
|
242
|
-
ellipx: typeof ellipx;
|
|
243
239
|
exmo: typeof exmo;
|
|
244
240
|
fmfwio: typeof fmfwio;
|
|
245
241
|
foxbit: typeof foxbit;
|
|
@@ -284,7 +280,6 @@ declare const exchanges: {
|
|
|
284
280
|
tokocrypto: typeof tokocrypto;
|
|
285
281
|
tradeogre: typeof tradeogre;
|
|
286
282
|
upbit: typeof upbit;
|
|
287
|
-
vertex: typeof vertex;
|
|
288
283
|
wavesexchange: typeof wavesexchange;
|
|
289
284
|
whitebit: typeof whitebit;
|
|
290
285
|
woo: typeof woo;
|
|
@@ -363,7 +358,6 @@ declare const pro: {
|
|
|
363
358
|
probit: typeof probitPro;
|
|
364
359
|
tradeogre: typeof tradeogrePro;
|
|
365
360
|
upbit: typeof upbitPro;
|
|
366
|
-
vertex: typeof vertexPro;
|
|
367
361
|
whitebit: typeof whitebitPro;
|
|
368
362
|
woo: typeof wooPro;
|
|
369
363
|
woofipro: typeof woofiproPro;
|
|
@@ -443,7 +437,6 @@ declare const ccxt: {
|
|
|
443
437
|
probit: typeof probitPro;
|
|
444
438
|
tradeogre: typeof tradeogrePro;
|
|
445
439
|
upbit: typeof upbitPro;
|
|
446
|
-
vertex: typeof vertexPro;
|
|
447
440
|
whitebit: typeof whitebitPro;
|
|
448
441
|
woo: typeof wooPro;
|
|
449
442
|
woofipro: typeof woofiproPro;
|
|
@@ -503,7 +496,6 @@ declare const ccxt: {
|
|
|
503
496
|
deribit: typeof deribit;
|
|
504
497
|
derive: typeof derive;
|
|
505
498
|
digifinex: typeof digifinex;
|
|
506
|
-
ellipx: typeof ellipx;
|
|
507
499
|
exmo: typeof exmo;
|
|
508
500
|
fmfwio: typeof fmfwio;
|
|
509
501
|
foxbit: typeof foxbit;
|
|
@@ -548,7 +540,6 @@ declare const ccxt: {
|
|
|
548
540
|
tokocrypto: typeof tokocrypto;
|
|
549
541
|
tradeogre: typeof tradeogre;
|
|
550
542
|
upbit: typeof upbit;
|
|
551
|
-
vertex: typeof vertex;
|
|
552
543
|
wavesexchange: typeof wavesexchange;
|
|
553
544
|
whitebit: typeof whitebit;
|
|
554
545
|
woo: typeof woo;
|
|
@@ -558,5 +549,5 @@ declare const ccxt: {
|
|
|
558
549
|
zaif: typeof zaif;
|
|
559
550
|
zonda: typeof zonda;
|
|
560
551
|
} & typeof functions & typeof errors;
|
|
561
|
-
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, ascendex, 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, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex,
|
|
552
|
+
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, ascendex, 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, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, 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, oceanex, okcoin, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
562
553
|
export default ccxt;
|
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, 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.1';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import alpaca from './src/alpaca.js';
|
|
@@ -94,7 +94,6 @@ import delta from './src/delta.js';
|
|
|
94
94
|
import deribit from './src/deribit.js';
|
|
95
95
|
import derive from './src/derive.js';
|
|
96
96
|
import digifinex from './src/digifinex.js';
|
|
97
|
-
import ellipx from './src/ellipx.js';
|
|
98
97
|
import exmo from './src/exmo.js';
|
|
99
98
|
import fmfwio from './src/fmfwio.js';
|
|
100
99
|
import foxbit from './src/foxbit.js';
|
|
@@ -139,7 +138,6 @@ import timex from './src/timex.js';
|
|
|
139
138
|
import tokocrypto from './src/tokocrypto.js';
|
|
140
139
|
import tradeogre from './src/tradeogre.js';
|
|
141
140
|
import upbit from './src/upbit.js';
|
|
142
|
-
import vertex from './src/vertex.js';
|
|
143
141
|
import wavesexchange from './src/wavesexchange.js';
|
|
144
142
|
import whitebit from './src/whitebit.js';
|
|
145
143
|
import woo from './src/woo.js';
|
|
@@ -217,7 +215,6 @@ import poloniexPro from './src/pro/poloniex.js';
|
|
|
217
215
|
import probitPro from './src/pro/probit.js';
|
|
218
216
|
import tradeogrePro from './src/pro/tradeogre.js';
|
|
219
217
|
import upbitPro from './src/pro/upbit.js';
|
|
220
|
-
import vertexPro from './src/pro/vertex.js';
|
|
221
218
|
import whitebitPro from './src/pro/whitebit.js';
|
|
222
219
|
import wooPro from './src/pro/woo.js';
|
|
223
220
|
import woofiproPro from './src/pro/woofipro.js';
|
|
@@ -276,7 +273,6 @@ const exchanges = {
|
|
|
276
273
|
'deribit': deribit,
|
|
277
274
|
'derive': derive,
|
|
278
275
|
'digifinex': digifinex,
|
|
279
|
-
'ellipx': ellipx,
|
|
280
276
|
'exmo': exmo,
|
|
281
277
|
'fmfwio': fmfwio,
|
|
282
278
|
'foxbit': foxbit,
|
|
@@ -321,7 +317,6 @@ const exchanges = {
|
|
|
321
317
|
'tokocrypto': tokocrypto,
|
|
322
318
|
'tradeogre': tradeogre,
|
|
323
319
|
'upbit': upbit,
|
|
324
|
-
'vertex': vertex,
|
|
325
320
|
'wavesexchange': wavesexchange,
|
|
326
321
|
'whitebit': whitebit,
|
|
327
322
|
'woo': woo,
|
|
@@ -400,7 +395,6 @@ const pro = {
|
|
|
400
395
|
'probit': probitPro,
|
|
401
396
|
'tradeogre': tradeogrePro,
|
|
402
397
|
'upbit': upbitPro,
|
|
403
|
-
'vertex': vertexPro,
|
|
404
398
|
'whitebit': whitebitPro,
|
|
405
399
|
'woo': wooPro,
|
|
406
400
|
'woofipro': woofiproPro,
|
|
@@ -418,6 +412,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
418
412
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
419
413
|
//-----------------------------------------------------------------------------
|
|
420
414
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
421
|
-
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, ascendex, 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, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex,
|
|
415
|
+
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, ascendex, 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, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, 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, oceanex, okcoin, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
422
416
|
export default ccxt;
|
|
423
417
|
//-----------------------------------------------------------------------------
|
package/js/src/ascendex.js
CHANGED
|
@@ -1632,7 +1632,7 @@ export default class ascendex extends Exchange {
|
|
|
1632
1632
|
// "code": "0",
|
|
1633
1633
|
// "data": {
|
|
1634
1634
|
// "domain": "spot",
|
|
1635
|
-
// "userUID": "
|
|
1635
|
+
// "userUID": "U1479576457",
|
|
1636
1636
|
// "vipLevel": "0",
|
|
1637
1637
|
// "fees": [
|
|
1638
1638
|
// { symbol: 'HT/USDT', fee: { taker: '0.001', maker: "0.001" } },
|
package/js/src/binance.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export default class binance extends Exchange {
|
|
|
13
13
|
market(symbol: string): MarketInterface;
|
|
14
14
|
safeMarket(marketId?: Str, market?: Market, delimiter?: Str, marketType?: Str): MarketInterface;
|
|
15
15
|
costToPrecision(symbol: any, cost: any): string;
|
|
16
|
-
currencyToPrecision(code: any, fee: any, networkCode?: any): string;
|
|
17
16
|
nonce(): number;
|
|
18
17
|
/**
|
|
19
18
|
* @method
|
|
@@ -614,6 +613,7 @@ export default class binance extends Exchange {
|
|
|
614
613
|
* @param {string[]} ids order ids
|
|
615
614
|
* @param {string} [symbol] unified market symbol
|
|
616
615
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
616
|
+
* @param {string[]} [params.clientOrderIds] alternative to ids, array of client order ids
|
|
617
617
|
*
|
|
618
618
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
619
619
|
* @param {string[]} [params.origClientOrderIdList] max length 10 e.g. ["my_id_1","my_id_2"], encode the double quotes. No space after comma
|
package/js/src/binance.js
CHANGED
|
@@ -1288,6 +1288,7 @@ export default class binance extends Exchange {
|
|
|
1288
1288
|
'defaultSubType': undefined,
|
|
1289
1289
|
'hasAlreadyAuthenticatedSuccessfully': false,
|
|
1290
1290
|
'warnOnFetchOpenOrdersWithoutSymbol': true,
|
|
1291
|
+
'currencyToPrecisionRoundingMode': TRUNCATE,
|
|
1291
1292
|
// not an error
|
|
1292
1293
|
// https://github.com/ccxt/ccxt/issues/11268
|
|
1293
1294
|
// https://github.com/ccxt/ccxt/pull/11624
|
|
@@ -2755,15 +2756,6 @@ export default class binance extends Exchange {
|
|
|
2755
2756
|
costToPrecision(symbol, cost) {
|
|
2756
2757
|
return this.decimalToPrecision(cost, TRUNCATE, this.markets[symbol]['precision']['quote'], this.precisionMode, this.paddingMode);
|
|
2757
2758
|
}
|
|
2758
|
-
currencyToPrecision(code, fee, networkCode = undefined) {
|
|
2759
|
-
// info is available in currencies only if the user has configured his api keys
|
|
2760
|
-
if (this.safeValue(this.currencies[code], 'precision') !== undefined) {
|
|
2761
|
-
return this.decimalToPrecision(fee, TRUNCATE, this.currencies[code]['precision'], this.precisionMode, this.paddingMode);
|
|
2762
|
-
}
|
|
2763
|
-
else {
|
|
2764
|
-
return this.numberToString(fee);
|
|
2765
|
-
}
|
|
2766
|
-
}
|
|
2767
2759
|
nonce() {
|
|
2768
2760
|
return this.milliseconds() - this.options['timeDifference'];
|
|
2769
2761
|
}
|
|
@@ -7830,6 +7822,7 @@ export default class binance extends Exchange {
|
|
|
7830
7822
|
* @param {string[]} ids order ids
|
|
7831
7823
|
* @param {string} [symbol] unified market symbol
|
|
7832
7824
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7825
|
+
* @param {string[]} [params.clientOrderIds] alternative to ids, array of client order ids
|
|
7833
7826
|
*
|
|
7834
7827
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
7835
7828
|
* @param {string[]} [params.origClientOrderIdList] max length 10 e.g. ["my_id_1","my_id_2"], encode the double quotes. No space after comma
|
|
@@ -7847,8 +7840,16 @@ export default class binance extends Exchange {
|
|
|
7847
7840
|
}
|
|
7848
7841
|
const request = {
|
|
7849
7842
|
'symbol': market['id'],
|
|
7850
|
-
'orderidlist': ids,
|
|
7843
|
+
// 'orderidlist': ids,
|
|
7851
7844
|
};
|
|
7845
|
+
const origClientOrderIdList = this.safeList2(params, 'origClientOrderIdList', 'clientOrderIds');
|
|
7846
|
+
if (origClientOrderIdList !== undefined) {
|
|
7847
|
+
params = this.omit(params, ['clientOrderIds']);
|
|
7848
|
+
request['origClientOrderIdList'] = origClientOrderIdList;
|
|
7849
|
+
}
|
|
7850
|
+
else {
|
|
7851
|
+
request['orderidlist'] = ids;
|
|
7852
|
+
}
|
|
7852
7853
|
let response = undefined;
|
|
7853
7854
|
if (market['linear']) {
|
|
7854
7855
|
response = await this.fapiPrivateDeleteBatchOrders(this.extend(request, params));
|
|
@@ -9434,7 +9435,6 @@ export default class binance extends Exchange {
|
|
|
9434
9435
|
const request = {
|
|
9435
9436
|
'coin': currency['id'],
|
|
9436
9437
|
'address': address,
|
|
9437
|
-
'amount': this.currencyToPrecision(code, amount),
|
|
9438
9438
|
// issue sapiGetCapitalConfigGetall () to get networks for withdrawing USDT ERC20 vs USDT Omni
|
|
9439
9439
|
// 'network': 'ETH', // 'BTC', 'TRX', etc, optional
|
|
9440
9440
|
};
|
|
@@ -9448,6 +9448,7 @@ export default class binance extends Exchange {
|
|
|
9448
9448
|
request['network'] = network;
|
|
9449
9449
|
params = this.omit(params, 'network');
|
|
9450
9450
|
}
|
|
9451
|
+
request['amount'] = this.currencyToPrecision(code, amount, network);
|
|
9451
9452
|
const response = await this.sapiPostCapitalWithdrawApply(this.extend(request, params));
|
|
9452
9453
|
// { id: '9a67628b16ba4988ae20d329333f16bc' }
|
|
9453
9454
|
return this.parseTransaction(response, currency);
|
|
@@ -12064,8 +12065,8 @@ export default class binance extends Exchange {
|
|
|
12064
12065
|
else if ((path === 'batchOrders') || (path.indexOf('sub-account') >= 0) || (path === 'capital/withdraw/apply') || (path.indexOf('staking') >= 0) || (path.indexOf('simple-earn') >= 0)) {
|
|
12065
12066
|
if ((method === 'DELETE') && (path === 'batchOrders')) {
|
|
12066
12067
|
const orderidlist = this.safeList(extendedParams, 'orderidlist', []);
|
|
12067
|
-
const origclientorderidlist = this.
|
|
12068
|
-
extendedParams = this.omit(extendedParams, ['orderidlist', 'origclientorderidlist']);
|
|
12068
|
+
const origclientorderidlist = this.safeList2(extendedParams, 'origclientorderidlist', 'origClientOrderIdList', []);
|
|
12069
|
+
extendedParams = this.omit(extendedParams, ['orderidlist', 'origclientorderidlist', 'origClientOrderIdList']);
|
|
12069
12070
|
query = this.rawencode(extendedParams);
|
|
12070
12071
|
const orderidlistLength = orderidlist.length;
|
|
12071
12072
|
const origclientorderidlistLength = origclientorderidlist.length;
|
|
@@ -12073,7 +12074,12 @@ export default class binance extends Exchange {
|
|
|
12073
12074
|
query = query + '&' + 'orderidlist=%5B' + orderidlist.join('%2C') + '%5D';
|
|
12074
12075
|
}
|
|
12075
12076
|
if (origclientorderidlistLength > 0) {
|
|
12076
|
-
|
|
12077
|
+
// wrap clientOrderids around ""
|
|
12078
|
+
const newClientOrderIds = [];
|
|
12079
|
+
for (let i = 0; i < origclientorderidlistLength; i++) {
|
|
12080
|
+
newClientOrderIds.push('%22' + origclientorderidlist[i] + '%22');
|
|
12081
|
+
}
|
|
12082
|
+
query = query + '&' + 'origclientorderidlist=%5B' + newClientOrderIds.join('%2C') + '%5D';
|
|
12077
12083
|
}
|
|
12078
12084
|
}
|
|
12079
12085
|
else {
|
package/js/src/bitget.js
CHANGED
|
@@ -1919,7 +1919,7 @@ export default class bitget extends Exchange {
|
|
|
1919
1919
|
const res = this.safeDict(results, i);
|
|
1920
1920
|
const data = this.safeList(res, 'data', []);
|
|
1921
1921
|
const firstData = this.safeDict(data, 0, {});
|
|
1922
|
-
const isBorrowable = this.
|
|
1922
|
+
const isBorrowable = this.safeBool(firstData, 'isBorrowable');
|
|
1923
1923
|
if (fetchMargins && isBorrowable !== undefined) {
|
|
1924
1924
|
const keysList = Object.keys(this.indexBy(data, 'symbol'));
|
|
1925
1925
|
this.options['crossMarginPairsData'] = keysList;
|
package/js/src/indodax.js
CHANGED
|
@@ -198,6 +198,16 @@ export default class indodax extends Exchange {
|
|
|
198
198
|
'Minimum order': InvalidOrder,
|
|
199
199
|
},
|
|
200
200
|
},
|
|
201
|
+
'timeframes': {
|
|
202
|
+
'1m': '1',
|
|
203
|
+
'15m': '15',
|
|
204
|
+
'30m': '30',
|
|
205
|
+
'1h': '60',
|
|
206
|
+
'4h': '240',
|
|
207
|
+
'1d': '1D',
|
|
208
|
+
'3d': '3D',
|
|
209
|
+
'1w': '1W',
|
|
210
|
+
},
|
|
201
211
|
// exchange-specific options
|
|
202
212
|
'options': {
|
|
203
213
|
'recvWindow': 5 * 1000,
|
|
@@ -221,16 +231,6 @@ export default class indodax extends Exchange {
|
|
|
221
231
|
// 'ETH': 'eth'
|
|
222
232
|
// 'BASE': 'base'
|
|
223
233
|
},
|
|
224
|
-
'timeframes': {
|
|
225
|
-
'1m': '1',
|
|
226
|
-
'15m': '15',
|
|
227
|
-
'30m': '30',
|
|
228
|
-
'1h': '60',
|
|
229
|
-
'4h': '240',
|
|
230
|
-
'1d': '1D',
|
|
231
|
-
'3d': '3D',
|
|
232
|
-
'1w': '1W',
|
|
233
|
-
},
|
|
234
234
|
},
|
|
235
235
|
'features': {
|
|
236
236
|
'spot': {
|
|
@@ -688,8 +688,7 @@ export default class indodax extends Exchange {
|
|
|
688
688
|
async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
689
689
|
await this.loadMarkets();
|
|
690
690
|
const market = this.market(symbol);
|
|
691
|
-
const
|
|
692
|
-
const selectedTimeframe = this.safeString(timeframes, timeframe, timeframe);
|
|
691
|
+
const selectedTimeframe = this.safeString(this.timeframes, timeframe, timeframe);
|
|
693
692
|
const now = this.seconds();
|
|
694
693
|
const until = this.safeInteger(params, 'until', now);
|
|
695
694
|
params = this.omit(params, ['until']);
|
package/js/src/okx.js
CHANGED
|
@@ -1220,7 +1220,7 @@ export default class okx extends Exchange {
|
|
|
1220
1220
|
'FUTURES': 'FUTURES',
|
|
1221
1221
|
'OPTION': 'OPTION',
|
|
1222
1222
|
},
|
|
1223
|
-
'brokerId': '
|
|
1223
|
+
'brokerId': '6b9ad766b55dBCDE',
|
|
1224
1224
|
},
|
|
1225
1225
|
'features': {
|
|
1226
1226
|
'default': {
|
|
@@ -6316,7 +6316,7 @@ export default class okx extends Exchange {
|
|
|
6316
6316
|
this.checkRequiredCredentials();
|
|
6317
6317
|
// inject id in implicit api call
|
|
6318
6318
|
if (method === 'POST' && (path === 'trade/batch-orders' || path === 'trade/order-algo' || path === 'trade/order')) {
|
|
6319
|
-
const brokerId = this.safeString(this.options, 'brokerId', '
|
|
6319
|
+
const brokerId = this.safeString(this.options, 'brokerId', '6b9ad766b55dBCDE');
|
|
6320
6320
|
if (Array.isArray(params)) {
|
|
6321
6321
|
for (let i = 0; i < params.length; i++) {
|
|
6322
6322
|
const entry = params[i];
|
package/js/src/poloniex.js
CHANGED
|
@@ -2648,7 +2648,7 @@ export default class poloniex extends Exchange {
|
|
|
2648
2648
|
// "scale" : "-1",
|
|
2649
2649
|
// "asks" : [ "23139.82", "0.317981", "23140", "0.191091", "23170.06", "0.01", "23200", "0.107758", "23230.55", "0.01", "23247.2", "0.154", "23254", "0.005121", "23263", "0.038", "23285.4", "0.308", "23300", "0.108896" ],
|
|
2650
2650
|
// "bids" : [ "23139.74", "0.432092", "23139.73", "0.198592", "23123.21", "0.000886", "23123.2", "0.308", "23121.4", "0.154", "23105", "0.000789", "23100", "0.078175", "23069.1", "0.026276", "23068.83", "0.001329", "23051", "0.000048" ],
|
|
2651
|
-
// "ts" :
|
|
2651
|
+
// "ts" : 1659695219512
|
|
2652
2652
|
// }
|
|
2653
2653
|
//
|
|
2654
2654
|
const timestamp = this.safeInteger(response, 'time');
|
package/js/src/pro/bitget.d.ts
CHANGED
|
@@ -69,11 +69,13 @@ export default class bitget extends bitgetRest {
|
|
|
69
69
|
* @description watches historical candlestick data containing the open, high, low, close price, and the volume of a market
|
|
70
70
|
* @see https://www.bitget.com/api-doc/spot/websocket/public/Candlesticks-Channel
|
|
71
71
|
* @see https://www.bitget.com/api-doc/contract/websocket/public/Candlesticks-Channel
|
|
72
|
+
* @see https://www.bitget.com/api-doc/uta/websocket/public/Candlesticks-Channel
|
|
72
73
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
73
74
|
* @param {string} timeframe the length of time each candle represents
|
|
74
75
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
75
76
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
76
77
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
78
|
+
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
77
79
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
78
80
|
*/
|
|
79
81
|
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
@@ -83,9 +85,11 @@ export default class bitget extends bitgetRest {
|
|
|
83
85
|
* @description unsubscribe from the ohlcv channel
|
|
84
86
|
* @see https://www.bitget.com/api-doc/spot/websocket/public/Candlesticks-Channel
|
|
85
87
|
* @see https://www.bitget.com/api-doc/contract/websocket/public/Candlesticks-Channel
|
|
88
|
+
* @see https://www.bitget.com/api-doc/uta/websocket/public/Candlesticks-Channel
|
|
86
89
|
* @param {string} symbol unified symbol of the market to unwatch the ohlcv for
|
|
87
90
|
* @param {string} [timeframe] the period for the ratio, default is 1 minute
|
|
88
91
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
92
|
+
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
89
93
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
90
94
|
*/
|
|
91
95
|
unWatchOHLCV(symbol: string, timeframe?: string, params?: {}): Promise<any>;
|