ccxt 4.1.52 → 4.1.54
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 +9 -10
- package/dist/ccxt.browser.js +3517 -3374
- package/dist/ccxt.browser.min.js +10 -10
- package/dist/cjs/ccxt.js +4 -7
- package/dist/cjs/src/abstract/p2b.js +9 -0
- package/dist/cjs/src/ace.js +56 -59
- package/dist/cjs/src/ascendex.js +1 -2
- package/dist/cjs/src/base/Exchange.js +11 -17
- package/dist/cjs/src/bingx.js +48 -8
- package/dist/cjs/src/bitget.js +670 -405
- package/dist/cjs/src/bybit.js +2 -11
- package/dist/cjs/src/cryptocom.js +1 -0
- package/dist/cjs/src/digifinex.js +9 -6
- package/dist/cjs/src/lbank.js +2333 -443
- package/dist/cjs/src/ndax.js +59 -61
- package/dist/cjs/src/novadax.js +57 -59
- package/dist/cjs/src/oceanex.js +58 -60
- package/dist/cjs/src/okcoin.js +1 -9
- package/dist/cjs/src/okx.js +0 -7
- package/dist/cjs/src/p2b.js +1246 -0
- package/dist/cjs/src/poloniex.js +55 -57
- package/dist/cjs/src/poloniexfutures.js +67 -70
- package/dist/cjs/src/pro/bingx.js +18 -11
- package/dist/cjs/src/pro/poloniexfutures.js +9 -0
- package/dist/cjs/src/probit.js +62 -65
- package/dist/cjs/src/timex.js +1 -5
- package/dist/cjs/src/upbit.js +56 -58
- package/dist/cjs/src/wazirx.js +72 -74
- package/dist/cjs/src/whitebit.js +88 -91
- package/dist/cjs/src/woo.js +75 -77
- package/dist/cjs/src/zaif.js +57 -71
- package/dist/cjs/src/zonda.js +67 -70
- package/js/ccxt.d.ts +5 -8
- package/js/ccxt.js +4 -6
- package/js/src/abstract/bitget.d.ts +495 -254
- package/js/src/abstract/bybit.d.ts +1 -0
- package/js/src/abstract/lbank.d.ts +57 -15
- package/js/src/abstract/p2b.d.ts +25 -0
- package/js/src/ace.d.ts +9 -8
- package/js/src/ace.js +56 -59
- package/js/src/alpaca.d.ts +5 -5
- package/js/src/ascendex.d.ts +17 -17
- package/js/src/ascendex.js +1 -2
- package/js/src/base/Exchange.d.ts +5 -5
- package/js/src/base/Exchange.js +11 -17
- package/js/src/base/types.d.ts +73 -68
- package/js/src/bigone.d.ts +12 -12
- package/js/src/binance.d.ts +37 -37
- package/js/src/bingx.d.ts +20 -20
- package/js/src/bingx.js +48 -8
- package/js/src/bit2c.d.ts +5 -5
- package/js/src/bitbank.d.ts +6 -6
- package/js/src/bitbns.d.ts +8 -8
- package/js/src/bitfinex.d.ts +11 -11
- package/js/src/bitfinex2.d.ts +15 -15
- package/js/src/bitflyer.d.ts +10 -10
- package/js/src/bitforex.d.ts +6 -6
- package/js/src/bitget.d.ts +28 -28
- package/js/src/bitget.js +670 -405
- package/js/src/bithumb.d.ts +5 -5
- package/js/src/bitmart.d.ts +23 -23
- package/js/src/bitmex.d.ts +19 -19
- package/js/src/bitopro.d.ts +15 -15
- package/js/src/bitpanda.d.ts +13 -13
- package/js/src/bitrue.d.ts +12 -12
- package/js/src/bitso.d.ts +13 -13
- package/js/src/bitstamp.d.ts +12 -12
- package/js/src/bitstamp1.d.ts +4 -4
- package/js/src/bittrex.d.ts +18 -18
- package/js/src/bitvavo.d.ts +11 -11
- package/js/src/bl3p.d.ts +2 -2
- package/js/src/blockchaincom.d.ts +14 -14
- package/js/src/btcalpha.d.ts +11 -11
- package/js/src/btcbox.d.ts +6 -6
- package/js/src/btcmarkets.d.ts +13 -13
- package/js/src/btcturk.d.ts +7 -7
- package/js/src/bybit.d.ts +33 -33
- package/js/src/bybit.js +2 -11
- package/js/src/cex.d.ts +7 -7
- package/js/src/coinbase.d.ts +21 -21
- package/js/src/coinbasepro.d.ts +14 -14
- package/js/src/coincheck.d.ts +6 -6
- package/js/src/coinex.d.ts +24 -24
- package/js/src/coinlist.d.ts +16 -16
- package/js/src/coinmate.d.ts +7 -7
- package/js/src/coinone.d.ts +6 -6
- package/js/src/coinsph.d.ts +11 -11
- package/js/src/coinspot.d.ts +4 -4
- package/js/src/cryptocom.d.ts +19 -19
- package/js/src/cryptocom.js +1 -0
- package/js/src/currencycom.d.ts +12 -12
- package/js/src/delta.d.ts +14 -14
- package/js/src/deribit.d.ts +16 -16
- package/js/src/digifinex.d.ts +22 -22
- package/js/src/digifinex.js +9 -6
- package/js/src/exmo.d.ts +15 -15
- package/js/src/gate.d.ts +25 -25
- package/js/src/gemini.d.ts +7 -7
- package/js/src/hitbtc.d.ts +20 -20
- package/js/src/hollaex.d.ts +16 -16
- package/js/src/htx.d.ts +34 -34
- package/js/src/huobijp.d.ts +18 -18
- package/js/src/idex.d.ts +14 -14
- package/js/src/independentreserve.d.ts +6 -6
- package/js/src/indodax.d.ts +7 -7
- package/js/src/kraken.d.ts +18 -18
- package/js/src/krakenfutures.d.ts +14 -14
- package/js/src/kucoin.d.ts +17 -17
- package/js/src/kucoinfutures.d.ts +12 -12
- package/js/src/kuna.d.ts +13 -13
- package/js/src/latoken.d.ts +10 -10
- package/js/src/lbank.d.ts +66 -13
- package/js/src/lbank.js +2334 -444
- package/js/src/lbank2.d.ts +11 -11
- package/js/src/luno.d.ts +11 -11
- package/js/src/lykke.d.ts +9 -9
- package/js/src/mercado.d.ts +6 -6
- package/js/src/mexc.d.ts +28 -28
- package/js/src/ndax.d.ts +13 -12
- package/js/src/ndax.js +59 -61
- package/js/src/novadax.d.ts +14 -13
- package/js/src/novadax.js +57 -59
- package/js/src/oceanex.d.ts +12 -11
- package/js/src/oceanex.js +58 -60
- package/js/src/okcoin.d.ts +13 -14
- package/js/src/okcoin.js +1 -9
- package/js/src/okx.d.ts +30 -31
- package/js/src/okx.js +0 -7
- package/js/src/p2b.d.ts +34 -0
- package/js/src/p2b.js +1246 -0
- package/js/src/paymium.d.ts +2 -2
- package/js/src/phemex.d.ts +19 -19
- package/js/src/poloniex.d.ts +17 -16
- package/js/src/poloniex.js +55 -57
- package/js/src/poloniexfutures.d.ts +13 -12
- package/js/src/poloniexfutures.js +67 -70
- package/js/src/pro/alpaca.d.ts +3 -3
- package/js/src/pro/ascendex.d.ts +2 -2
- package/js/src/pro/binance.d.ts +12 -12
- package/js/src/pro/bingx.d.ts +3 -3
- package/js/src/pro/bingx.js +19 -12
- package/js/src/pro/bitfinex.d.ts +3 -3
- package/js/src/pro/bitfinex2.d.ts +3 -3
- package/js/src/pro/bitget.d.ts +5 -5
- package/js/src/pro/bitmart.d.ts +2 -2
- package/js/src/pro/bitmex.d.ts +3 -3
- package/js/src/pro/bitpanda.d.ts +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitstamp.d.ts +2 -2
- package/js/src/pro/bittrex.d.ts +3 -3
- package/js/src/pro/bitvavo.d.ts +3 -3
- package/js/src/pro/blockchaincom.d.ts +2 -2
- package/js/src/pro/bybit.d.ts +7 -7
- package/js/src/pro/cex.d.ts +4 -4
- package/js/src/pro/coinbasepro.d.ts +6 -6
- package/js/src/pro/coinex.d.ts +3 -3
- package/js/src/pro/cryptocom.d.ts +7 -7
- package/js/src/pro/deribit.d.ts +3 -3
- package/js/src/pro/exmo.d.ts +2 -2
- package/js/src/pro/gate.d.ts +6 -6
- package/js/src/pro/gemini.d.ts +2 -2
- package/js/src/pro/hitbtc.d.ts +5 -5
- package/js/src/pro/hollaex.d.ts +3 -3
- package/js/src/pro/htx.d.ts +4 -4
- package/js/src/pro/idex.d.ts +3 -3
- package/js/src/pro/kraken.d.ts +8 -8
- package/js/src/pro/krakenfutures.d.ts +6 -6
- package/js/src/pro/kucoin.d.ts +4 -4
- package/js/src/pro/kucoinfutures.d.ts +3 -3
- package/js/src/pro/mexc.d.ts +3 -3
- package/js/src/pro/okcoin.d.ts +2 -2
- package/js/src/pro/okx.d.ts +9 -9
- package/js/src/pro/phemex.d.ts +3 -3
- package/js/src/pro/poloniex.d.ts +4 -4
- package/js/src/pro/poloniexfutures.d.ts +3 -3
- package/js/src/pro/poloniexfutures.js +9 -0
- package/js/src/pro/probit.d.ts +3 -3
- package/js/src/pro/wazirx.d.ts +4 -4
- package/js/src/pro/whitebit.d.ts +3 -3
- package/js/src/pro/woo.d.ts +3 -3
- package/js/src/probit.d.ts +13 -12
- package/js/src/probit.js +62 -65
- package/js/src/tidex.d.ts +7 -7
- package/js/src/timex.d.ts +11 -11
- package/js/src/timex.js +1 -5
- package/js/src/tokocrypto.d.ts +11 -11
- package/js/src/upbit.d.ts +13 -12
- package/js/src/upbit.js +56 -58
- package/js/src/wavesexchange.d.ts +10 -10
- package/js/src/wazirx.d.ts +8 -7
- package/js/src/wazirx.js +72 -74
- package/js/src/whitebit.d.ts +15 -14
- package/js/src/whitebit.js +88 -91
- package/js/src/woo.d.ts +22 -21
- package/js/src/woo.js +75 -77
- package/js/src/yobit.d.ts +7 -7
- package/js/src/zaif.d.ts +6 -5
- package/js/src/zaif.js +57 -71
- package/js/src/zonda.d.ts +8 -7
- package/js/src/zonda.js +67 -70
- package/package.json +1 -1
- package/skip-tests.json +7 -15
- package/test.ts +0 -0
- package/js/src/abstract/bitstamp1.d.ts +0 -26
- package/js/src/abstract/lbank2.d.ts +0 -64
- package/js/src/abstract/lbank2.js +0 -11
- /package/js/src/abstract/{bitstamp1.js → p2b.js} +0 -0
package/dist/cjs/src/zaif.js
CHANGED
|
@@ -128,16 +128,7 @@ class zaif extends zaif$1 {
|
|
|
128
128
|
},
|
|
129
129
|
},
|
|
130
130
|
},
|
|
131
|
-
'options': {
|
|
132
|
-
// zaif schedule defines several market-specific fees
|
|
133
|
-
'fees': {
|
|
134
|
-
'BTC/JPY': { 'maker': this.parseNumber('0'), 'taker': this.parseNumber('0.001') },
|
|
135
|
-
'BCH/JPY': { 'maker': this.parseNumber('0'), 'taker': this.parseNumber('0.003') },
|
|
136
|
-
'BCH/BTC': { 'maker': this.parseNumber('0'), 'taker': this.parseNumber('0.003') },
|
|
137
|
-
'PEPECASH/JPY': { 'maker': this.parseNumber('0'), 'taker': this.parseNumber('0.0001') },
|
|
138
|
-
'PEPECASH/BT': { 'maker': this.parseNumber('0'), 'taker': this.parseNumber('0.0001') },
|
|
139
|
-
},
|
|
140
|
-
},
|
|
131
|
+
'options': {},
|
|
141
132
|
'precisionMode': number.TICK_SIZE,
|
|
142
133
|
'exceptions': {
|
|
143
134
|
'exact': {
|
|
@@ -178,69 +169,64 @@ class zaif extends zaif$1 {
|
|
|
178
169
|
// }
|
|
179
170
|
// ]
|
|
180
171
|
//
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
'
|
|
216
|
-
'
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
172
|
+
return this.parseMarkets(markets);
|
|
173
|
+
}
|
|
174
|
+
parseMarket(market) {
|
|
175
|
+
const id = this.safeString(market, 'currency_pair');
|
|
176
|
+
const name = this.safeString(market, 'name');
|
|
177
|
+
const [baseId, quoteId] = name.split('/');
|
|
178
|
+
const base = this.safeCurrencyCode(baseId);
|
|
179
|
+
const quote = this.safeCurrencyCode(quoteId);
|
|
180
|
+
const symbol = base + '/' + quote;
|
|
181
|
+
return {
|
|
182
|
+
'id': id,
|
|
183
|
+
'symbol': symbol,
|
|
184
|
+
'base': base,
|
|
185
|
+
'quote': quote,
|
|
186
|
+
'settle': undefined,
|
|
187
|
+
'baseId': baseId,
|
|
188
|
+
'quoteId': quoteId,
|
|
189
|
+
'settleId': undefined,
|
|
190
|
+
'type': 'spot',
|
|
191
|
+
'spot': true,
|
|
192
|
+
'margin': undefined,
|
|
193
|
+
'swap': false,
|
|
194
|
+
'future': false,
|
|
195
|
+
'option': false,
|
|
196
|
+
'active': undefined,
|
|
197
|
+
'contract': false,
|
|
198
|
+
'linear': undefined,
|
|
199
|
+
'inverse': undefined,
|
|
200
|
+
'contractSize': undefined,
|
|
201
|
+
'expiry': undefined,
|
|
202
|
+
'expiryDatetime': undefined,
|
|
203
|
+
'strike': undefined,
|
|
204
|
+
'optionType': undefined,
|
|
205
|
+
'precision': {
|
|
206
|
+
'amount': this.safeNumber(market, 'item_unit_step'),
|
|
207
|
+
'price': this.parseNumber(this.parsePrecision(this.safeString(market, 'aux_unit_point'))),
|
|
208
|
+
},
|
|
209
|
+
'limits': {
|
|
210
|
+
'leverage': {
|
|
211
|
+
'min': undefined,
|
|
212
|
+
'max': undefined,
|
|
220
213
|
},
|
|
221
|
-
'
|
|
222
|
-
'
|
|
223
|
-
|
|
224
|
-
'max': undefined,
|
|
225
|
-
},
|
|
226
|
-
'amount': {
|
|
227
|
-
'min': this.safeNumber(market, 'item_unit_min'),
|
|
228
|
-
'max': undefined,
|
|
229
|
-
},
|
|
230
|
-
'price': {
|
|
231
|
-
'min': this.safeNumber(market, 'aux_unit_min'),
|
|
232
|
-
'max': undefined,
|
|
233
|
-
},
|
|
234
|
-
'cost': {
|
|
235
|
-
'min': undefined,
|
|
236
|
-
'max': undefined,
|
|
237
|
-
},
|
|
214
|
+
'amount': {
|
|
215
|
+
'min': this.safeNumber(market, 'item_unit_min'),
|
|
216
|
+
'max': undefined,
|
|
238
217
|
},
|
|
239
|
-
'
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
218
|
+
'price': {
|
|
219
|
+
'min': this.safeNumber(market, 'aux_unit_min'),
|
|
220
|
+
'max': undefined,
|
|
221
|
+
},
|
|
222
|
+
'cost': {
|
|
223
|
+
'min': undefined,
|
|
224
|
+
'max': undefined,
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
'created': undefined,
|
|
228
|
+
'info': market,
|
|
229
|
+
};
|
|
244
230
|
}
|
|
245
231
|
parseBalance(response) {
|
|
246
232
|
const balances = this.safeValue(response, 'return', {});
|
package/dist/cjs/src/zonda.js
CHANGED
|
@@ -304,7 +304,6 @@ class zonda extends zonda$1 {
|
|
|
304
304
|
* @returns {object[]} an array of objects representing market data
|
|
305
305
|
*/
|
|
306
306
|
const response = await this.v1_01PublicGetTradingTicker(params);
|
|
307
|
-
const fiatCurrencies = this.safeValue(this.options, 'fiatCurrencies', []);
|
|
308
307
|
//
|
|
309
308
|
// {
|
|
310
309
|
// "status": "Ok",
|
|
@@ -324,78 +323,76 @@ class zonda extends zonda$1 {
|
|
|
324
323
|
// },
|
|
325
324
|
// }
|
|
326
325
|
//
|
|
327
|
-
const result = [];
|
|
328
326
|
const items = this.safeValue(response, 'items', {});
|
|
329
|
-
const
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
327
|
+
const markets = Object.values(items);
|
|
328
|
+
return this.parseMarkets(markets);
|
|
329
|
+
}
|
|
330
|
+
parseMarket(item) {
|
|
331
|
+
const market = this.safeValue(item, 'market', {});
|
|
332
|
+
const id = this.safeString(market, 'code');
|
|
333
|
+
const first = this.safeValue(market, 'first', {});
|
|
334
|
+
const second = this.safeValue(market, 'second', {});
|
|
335
|
+
const baseId = this.safeString(first, 'currency');
|
|
336
|
+
const quoteId = this.safeString(second, 'currency');
|
|
337
|
+
const base = this.safeCurrencyCode(baseId);
|
|
338
|
+
const quote = this.safeCurrencyCode(quoteId);
|
|
339
|
+
let fees = this.safeValue(this.fees, 'trading', {});
|
|
340
|
+
const fiatCurrencies = this.safeValue(this.options, 'fiatCurrencies', []);
|
|
341
|
+
if (this.inArray(base, fiatCurrencies) || this.inArray(quote, fiatCurrencies)) {
|
|
342
|
+
fees = this.safeValue(this.fees, 'fiat', {});
|
|
343
|
+
}
|
|
344
|
+
// todo: check that the limits have ben interpreted correctly
|
|
345
|
+
return {
|
|
346
|
+
'id': id,
|
|
347
|
+
'symbol': base + '/' + quote,
|
|
348
|
+
'base': base,
|
|
349
|
+
'quote': quote,
|
|
350
|
+
'settle': undefined,
|
|
351
|
+
'baseId': baseId,
|
|
352
|
+
'quoteId': quoteId,
|
|
353
|
+
'settleId': undefined,
|
|
354
|
+
'type': 'spot',
|
|
355
|
+
'spot': true,
|
|
356
|
+
'margin': false,
|
|
357
|
+
'swap': false,
|
|
358
|
+
'future': false,
|
|
359
|
+
'option': false,
|
|
360
|
+
'active': undefined,
|
|
361
|
+
'contract': false,
|
|
362
|
+
'linear': undefined,
|
|
363
|
+
'inverse': undefined,
|
|
364
|
+
'taker': this.safeNumber(fees, 'taker'),
|
|
365
|
+
'maker': this.safeNumber(fees, 'maker'),
|
|
366
|
+
'contractSize': undefined,
|
|
367
|
+
'expiry': undefined,
|
|
368
|
+
'expiryDatetime': undefined,
|
|
369
|
+
'optionType': undefined,
|
|
370
|
+
'strike': undefined,
|
|
371
|
+
'precision': {
|
|
372
|
+
'amount': this.parseNumber(this.parsePrecision(this.safeString(first, 'scale'))),
|
|
373
|
+
'price': this.parseNumber(this.parsePrecision(this.safeString(second, 'scale'))),
|
|
374
|
+
},
|
|
375
|
+
'limits': {
|
|
376
|
+
'leverage': {
|
|
377
|
+
'min': undefined,
|
|
378
|
+
'max': undefined,
|
|
375
379
|
},
|
|
376
|
-
'
|
|
377
|
-
'
|
|
378
|
-
|
|
379
|
-
'max': undefined,
|
|
380
|
-
},
|
|
381
|
-
'amount': {
|
|
382
|
-
'min': this.safeNumber(first, 'minOffer'),
|
|
383
|
-
'max': undefined,
|
|
384
|
-
},
|
|
385
|
-
'price': {
|
|
386
|
-
'min': undefined,
|
|
387
|
-
'max': undefined,
|
|
388
|
-
},
|
|
389
|
-
'cost': {
|
|
390
|
-
'min': this.safeNumber(second, 'minOffer'),
|
|
391
|
-
'max': undefined,
|
|
392
|
-
},
|
|
380
|
+
'amount': {
|
|
381
|
+
'min': this.safeNumber(first, 'minOffer'),
|
|
382
|
+
'max': undefined,
|
|
393
383
|
},
|
|
394
|
-
'
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
384
|
+
'price': {
|
|
385
|
+
'min': undefined,
|
|
386
|
+
'max': undefined,
|
|
387
|
+
},
|
|
388
|
+
'cost': {
|
|
389
|
+
'min': undefined,
|
|
390
|
+
'max': undefined,
|
|
391
|
+
},
|
|
392
|
+
},
|
|
393
|
+
'created': undefined,
|
|
394
|
+
'info': item,
|
|
395
|
+
};
|
|
399
396
|
}
|
|
400
397
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
401
398
|
/**
|
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 { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.1.
|
|
7
|
+
declare const version = "4.1.53";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
|
@@ -33,7 +33,6 @@ import bitpanda from './src/bitpanda.js';
|
|
|
33
33
|
import bitrue from './src/bitrue.js';
|
|
34
34
|
import bitso from './src/bitso.js';
|
|
35
35
|
import bitstamp from './src/bitstamp.js';
|
|
36
|
-
import bitstamp1 from './src/bitstamp1.js';
|
|
37
36
|
import bittrex from './src/bittrex.js';
|
|
38
37
|
import bitvavo from './src/bitvavo.js';
|
|
39
38
|
import bl3p from './src/bl3p.js';
|
|
@@ -81,7 +80,6 @@ import kucoinfutures from './src/kucoinfutures.js';
|
|
|
81
80
|
import kuna from './src/kuna.js';
|
|
82
81
|
import latoken from './src/latoken.js';
|
|
83
82
|
import lbank from './src/lbank.js';
|
|
84
|
-
import lbank2 from './src/lbank2.js';
|
|
85
83
|
import luno from './src/luno.js';
|
|
86
84
|
import lykke from './src/lykke.js';
|
|
87
85
|
import mercado from './src/mercado.js';
|
|
@@ -94,6 +92,7 @@ import okcoin from './src/okcoin.js';
|
|
|
94
92
|
import okex from './src/okex.js';
|
|
95
93
|
import okex5 from './src/okex5.js';
|
|
96
94
|
import okx from './src/okx.js';
|
|
95
|
+
import p2b from './src/p2b.js';
|
|
97
96
|
import paymium from './src/paymium.js';
|
|
98
97
|
import phemex from './src/phemex.js';
|
|
99
98
|
import poloniex from './src/poloniex.js';
|
|
@@ -200,7 +199,6 @@ declare const exchanges: {
|
|
|
200
199
|
bitrue: typeof bitrue;
|
|
201
200
|
bitso: typeof bitso;
|
|
202
201
|
bitstamp: typeof bitstamp;
|
|
203
|
-
bitstamp1: typeof bitstamp1;
|
|
204
202
|
bittrex: typeof bittrex;
|
|
205
203
|
bitvavo: typeof bitvavo;
|
|
206
204
|
bl3p: typeof bl3p;
|
|
@@ -248,7 +246,6 @@ declare const exchanges: {
|
|
|
248
246
|
kuna: typeof kuna;
|
|
249
247
|
latoken: typeof latoken;
|
|
250
248
|
lbank: typeof lbank;
|
|
251
|
-
lbank2: typeof lbank2;
|
|
252
249
|
luno: typeof luno;
|
|
253
250
|
lykke: typeof lykke;
|
|
254
251
|
mercado: typeof mercado;
|
|
@@ -261,6 +258,7 @@ declare const exchanges: {
|
|
|
261
258
|
okex: typeof okex;
|
|
262
259
|
okex5: typeof okex5;
|
|
263
260
|
okx: typeof okx;
|
|
261
|
+
p2b: typeof p2b;
|
|
264
262
|
paymium: typeof paymium;
|
|
265
263
|
phemex: typeof phemex;
|
|
266
264
|
poloniex: typeof poloniex;
|
|
@@ -438,7 +436,6 @@ declare const ccxt: {
|
|
|
438
436
|
bitrue: typeof bitrue;
|
|
439
437
|
bitso: typeof bitso;
|
|
440
438
|
bitstamp: typeof bitstamp;
|
|
441
|
-
bitstamp1: typeof bitstamp1;
|
|
442
439
|
bittrex: typeof bittrex;
|
|
443
440
|
bitvavo: typeof bitvavo;
|
|
444
441
|
bl3p: typeof bl3p;
|
|
@@ -486,7 +483,6 @@ declare const ccxt: {
|
|
|
486
483
|
kuna: typeof kuna;
|
|
487
484
|
latoken: typeof latoken;
|
|
488
485
|
lbank: typeof lbank;
|
|
489
|
-
lbank2: typeof lbank2;
|
|
490
486
|
luno: typeof luno;
|
|
491
487
|
lykke: typeof lykke;
|
|
492
488
|
mercado: typeof mercado;
|
|
@@ -499,6 +495,7 @@ declare const ccxt: {
|
|
|
499
495
|
okex: typeof okex;
|
|
500
496
|
okex5: typeof okex5;
|
|
501
497
|
okx: typeof okx;
|
|
498
|
+
p2b: typeof p2b;
|
|
502
499
|
paymium: typeof paymium;
|
|
503
500
|
phemex: typeof phemex;
|
|
504
501
|
poloniex: typeof poloniex;
|
|
@@ -516,5 +513,5 @@ declare const ccxt: {
|
|
|
516
513
|
zaif: typeof zaif;
|
|
517
514
|
zonda: typeof zonda;
|
|
518
515
|
} & typeof functions & typeof errors;
|
|
519
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp,
|
|
516
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinlist, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, p2b, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
|
|
520
517
|
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, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.1.
|
|
41
|
+
const version = '4.1.54';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -69,7 +69,6 @@ import bitpanda from './src/bitpanda.js';
|
|
|
69
69
|
import bitrue from './src/bitrue.js';
|
|
70
70
|
import bitso from './src/bitso.js';
|
|
71
71
|
import bitstamp from './src/bitstamp.js';
|
|
72
|
-
import bitstamp1 from './src/bitstamp1.js';
|
|
73
72
|
import bittrex from './src/bittrex.js';
|
|
74
73
|
import bitvavo from './src/bitvavo.js';
|
|
75
74
|
import bl3p from './src/bl3p.js';
|
|
@@ -117,7 +116,6 @@ import kucoinfutures from './src/kucoinfutures.js';
|
|
|
117
116
|
import kuna from './src/kuna.js';
|
|
118
117
|
import latoken from './src/latoken.js';
|
|
119
118
|
import lbank from './src/lbank.js';
|
|
120
|
-
import lbank2 from './src/lbank2.js';
|
|
121
119
|
import luno from './src/luno.js';
|
|
122
120
|
import lykke from './src/lykke.js';
|
|
123
121
|
import mercado from './src/mercado.js';
|
|
@@ -130,6 +128,7 @@ import okcoin from './src/okcoin.js';
|
|
|
130
128
|
import okex from './src/okex.js';
|
|
131
129
|
import okex5 from './src/okex5.js';
|
|
132
130
|
import okx from './src/okx.js';
|
|
131
|
+
import p2b from './src/p2b.js';
|
|
133
132
|
import paymium from './src/paymium.js';
|
|
134
133
|
import phemex from './src/phemex.js';
|
|
135
134
|
import poloniex from './src/poloniex.js';
|
|
@@ -237,7 +236,6 @@ const exchanges = {
|
|
|
237
236
|
'bitrue': bitrue,
|
|
238
237
|
'bitso': bitso,
|
|
239
238
|
'bitstamp': bitstamp,
|
|
240
|
-
'bitstamp1': bitstamp1,
|
|
241
239
|
'bittrex': bittrex,
|
|
242
240
|
'bitvavo': bitvavo,
|
|
243
241
|
'bl3p': bl3p,
|
|
@@ -285,7 +283,6 @@ const exchanges = {
|
|
|
285
283
|
'kuna': kuna,
|
|
286
284
|
'latoken': latoken,
|
|
287
285
|
'lbank': lbank,
|
|
288
|
-
'lbank2': lbank2,
|
|
289
286
|
'luno': luno,
|
|
290
287
|
'lykke': lykke,
|
|
291
288
|
'mercado': mercado,
|
|
@@ -298,6 +295,7 @@ const exchanges = {
|
|
|
298
295
|
'okex': okex,
|
|
299
296
|
'okex5': okex5,
|
|
300
297
|
'okx': okx,
|
|
298
|
+
'p2b': p2b,
|
|
301
299
|
'paymium': paymium,
|
|
302
300
|
'phemex': phemex,
|
|
303
301
|
'poloniex': poloniex,
|
|
@@ -390,6 +388,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
390
388
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
391
389
|
//-----------------------------------------------------------------------------
|
|
392
390
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
393
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp,
|
|
391
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinlist, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, p2b, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
|
|
394
392
|
export default ccxt;
|
|
395
393
|
//-----------------------------------------------------------------------------
|