ccxt 4.1.55 → 4.1.57
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/.git-templates/hooks/pre-push +2 -2
- package/CONTRIBUTING.md +1 -1
- package/README.md +6 -6
- package/build.sh +30 -8
- package/dist/ccxt.browser.js +5592 -4907
- package/dist/ccxt.browser.min.js +13 -13
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +17 -13
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +35 -29
- package/dist/cjs/src/base/Exchange.js +39 -26
- package/dist/cjs/src/base/Precise.js +1 -3
- package/dist/cjs/src/bigone.js +24 -20
- package/dist/cjs/src/binance.js +97 -76
- package/dist/cjs/src/bingx.js +63 -44
- package/dist/cjs/src/bit2c.js +18 -15
- package/dist/cjs/src/bitbank.js +17 -15
- package/dist/cjs/src/bitbns.js +28 -18
- package/dist/cjs/src/bitfinex.js +23 -21
- package/dist/cjs/src/bitfinex2.js +32 -28
- package/dist/cjs/src/bitflyer.js +28 -20
- package/dist/cjs/src/bitforex.js +25 -18
- package/dist/cjs/src/bitget.js +184 -147
- package/dist/cjs/src/bithumb.js +23 -16
- package/dist/cjs/src/bitmart.js +129 -94
- package/dist/cjs/src/bitmex.js +104 -64
- package/dist/cjs/src/bitopro.js +38 -26
- package/dist/cjs/src/bitpanda.js +24 -23
- package/dist/cjs/src/bitrue.js +33 -24
- package/dist/cjs/src/bitso.js +24 -23
- package/dist/cjs/src/bitstamp.js +24 -23
- package/dist/cjs/src/bittrex.js +30 -29
- package/dist/cjs/src/bitvavo.js +38 -30
- package/dist/cjs/src/bl3p.js +11 -10
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +18 -17
- package/dist/cjs/src/btcbox.js +13 -12
- package/dist/cjs/src/btcmarkets.js +20 -19
- package/dist/cjs/src/btcturk.js +14 -13
- package/dist/cjs/src/bybit.js +84 -54
- package/dist/cjs/src/cex.js +16 -14
- package/dist/cjs/src/coinbase.js +29 -27
- package/dist/cjs/src/coinbasepro.js +27 -25
- package/dist/cjs/src/coincheck.js +15 -14
- package/dist/cjs/src/coinex.js +101 -78
- package/dist/cjs/src/coinlist.js +28 -27
- package/dist/cjs/src/coinmate.js +20 -17
- package/dist/cjs/src/coinone.js +21 -16
- package/dist/cjs/src/coinsph.js +37 -28
- package/dist/cjs/src/coinspot.js +12 -11
- package/dist/cjs/src/cryptocom.js +40 -202
- package/dist/cjs/src/currencycom.js +32 -25
- package/dist/cjs/src/delta.js +34 -28
- package/dist/cjs/src/deribit.js +39 -36
- package/dist/cjs/src/digifinex.js +64 -44
- package/dist/cjs/src/exmo.js +29 -27
- package/dist/cjs/src/gate.js +67 -53
- package/dist/cjs/src/gemini.js +23 -20
- package/dist/cjs/src/hitbtc.js +65 -56
- package/dist/cjs/src/hollaex.js +30 -27
- package/dist/cjs/src/htx.js +135 -143
- package/dist/cjs/src/huobijp.js +22 -20
- package/dist/cjs/src/idex.js +22 -21
- package/dist/cjs/src/independentreserve.js +15 -14
- package/dist/cjs/src/indodax.js +30 -26
- package/dist/cjs/src/kraken.js +29 -27
- package/dist/cjs/src/krakenfutures.js +29 -22
- package/dist/cjs/src/kucoin.js +48 -43
- package/dist/cjs/src/kucoinfutures.js +33 -28
- package/dist/cjs/src/kuna.js +25 -24
- package/dist/cjs/src/latoken.js +24 -22
- package/dist/cjs/src/lbank.js +45 -30
- package/dist/cjs/src/luno.js +22 -19
- package/dist/cjs/src/lykke.js +19 -17
- package/dist/cjs/src/mercado.js +30 -19
- package/dist/cjs/src/mexc.js +60 -49
- package/dist/cjs/src/ndax.js +23 -22
- package/dist/cjs/src/novadax.js +23 -22
- package/dist/cjs/src/oceanex.js +22 -19
- package/dist/cjs/src/okcoin.js +29 -23
- package/dist/cjs/src/okx.js +92 -84
- package/dist/cjs/src/p2b.js +80 -83
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +63 -40
- package/dist/cjs/src/poloniex.js +22 -22
- package/dist/cjs/src/poloniexfutures.js +23 -19
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +4 -4
- package/dist/cjs/src/pro/binance.js +16 -16
- package/dist/cjs/src/pro/bingx.js +1 -1
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +7 -7
- package/dist/cjs/src/pro/bitmart.js +7 -5
- package/dist/cjs/src/pro/bitmex.js +6 -6
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +6 -6
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +6 -4
- package/dist/cjs/src/pro/bittrex.js +6 -6
- package/dist/cjs/src/pro/bitvavo.js +11 -7
- package/dist/cjs/src/pro/blockchaincom.js +8 -8
- package/dist/cjs/src/pro/bybit.js +7 -7
- package/dist/cjs/src/pro/cex.js +13 -9
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +11 -10
- package/dist/cjs/src/pro/coinex.js +7 -9
- package/dist/cjs/src/pro/cryptocom.js +9 -9
- package/dist/cjs/src/pro/currencycom.js +4 -4
- package/dist/cjs/src/pro/deribit.js +6 -6
- package/dist/cjs/src/pro/exmo.js +12 -14
- package/dist/cjs/src/pro/gate.js +7 -7
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/hitbtc.js +263 -4
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +6 -6
- package/dist/cjs/src/pro/huobijp.js +3 -3
- package/dist/cjs/src/pro/idex.js +4 -4
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +10 -10
- package/dist/cjs/src/pro/krakenfutures.js +41 -17
- package/dist/cjs/src/pro/kucoin.js +7 -7
- package/dist/cjs/src/pro/kucoinfutures.js +8 -6
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +6 -6
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okcoin.js +5 -5
- package/dist/cjs/src/pro/okx.js +12 -12
- package/dist/cjs/src/pro/phemex.js +6 -6
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +8 -8
- package/dist/cjs/src/pro/whitebit.js +12 -8
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +28 -23
- package/dist/cjs/src/tidex.js +16 -15
- package/dist/cjs/src/timex.js +19 -18
- package/dist/cjs/src/tokocrypto.js +27 -22
- package/dist/cjs/src/upbit.js +19 -19
- package/dist/cjs/src/wavesexchange.js +22 -19
- package/dist/cjs/src/wazirx.js +24 -17
- package/dist/cjs/src/whitebit.js +33 -27
- package/dist/cjs/src/woo.js +44 -34
- package/dist/cjs/src/yobit.js +25 -20
- package/dist/cjs/src/zaif.js +9 -9
- package/dist/cjs/src/zonda.js +18 -17
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitbank.d.ts +1 -0
- package/js/src/abstract/bybit.d.ts +1 -0
- package/js/src/abstract/cryptocom.d.ts +0 -20
- package/js/src/abstract/htx.d.ts +3 -0
- package/js/src/abstract/huobi.d.ts +3 -0
- package/js/src/abstract/huobipro.d.ts +3 -0
- package/js/src/abstract/okex.d.ts +3 -1
- package/js/src/abstract/okex5.d.ts +3 -1
- package/js/src/abstract/okx.d.ts +3 -1
- package/js/src/ace.js +18 -14
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +35 -29
- package/js/src/base/Exchange.d.ts +37 -34
- package/js/src/base/Exchange.js +39 -26
- package/js/src/base/Precise.d.ts +4 -4
- package/js/src/base/Precise.js +1 -3
- package/js/src/base/functions/type.d.ts +25 -25
- package/js/src/base/types.d.ts +21 -14
- package/js/src/bigone.js +25 -21
- package/js/src/binance.d.ts +2 -2
- package/js/src/binance.js +97 -76
- package/js/src/bingx.js +63 -44
- package/js/src/bit2c.js +19 -16
- package/js/src/bitbank.js +17 -15
- package/js/src/bitbns.js +28 -18
- package/js/src/bitfinex.js +23 -21
- package/js/src/bitfinex2.js +32 -28
- package/js/src/bitflyer.js +28 -20
- package/js/src/bitforex.js +26 -19
- package/js/src/bitget.d.ts +25 -3
- package/js/src/bitget.js +184 -147
- package/js/src/bithumb.js +23 -16
- package/js/src/bitmart.d.ts +1 -1
- package/js/src/bitmart.js +129 -94
- package/js/src/bitmex.d.ts +2 -2
- package/js/src/bitmex.js +104 -64
- package/js/src/bitopro.js +38 -26
- package/js/src/bitpanda.js +24 -23
- package/js/src/bitrue.js +33 -24
- package/js/src/bitso.js +24 -23
- package/js/src/bitstamp.d.ts +2 -2
- package/js/src/bitstamp.js +24 -23
- package/js/src/bittrex.js +30 -29
- package/js/src/bitvavo.js +38 -30
- package/js/src/bl3p.js +11 -10
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +18 -17
- package/js/src/btcbox.js +13 -12
- package/js/src/btcmarkets.js +20 -19
- package/js/src/btcturk.js +14 -13
- package/js/src/bybit.d.ts +1 -1
- package/js/src/bybit.js +84 -54
- package/js/src/cex.js +16 -14
- package/js/src/coinbase.js +29 -27
- package/js/src/coinbasepro.js +27 -25
- package/js/src/coincheck.js +15 -14
- package/js/src/coinex.d.ts +1 -1
- package/js/src/coinex.js +101 -78
- package/js/src/coinlist.js +28 -27
- package/js/src/coinmate.js +21 -18
- package/js/src/coinone.js +21 -16
- package/js/src/coinsph.js +37 -28
- package/js/src/coinspot.js +12 -11
- package/js/src/cryptocom.d.ts +0 -23
- package/js/src/cryptocom.js +40 -202
- package/js/src/currencycom.js +32 -25
- package/js/src/delta.js +35 -29
- package/js/src/deribit.js +39 -36
- package/js/src/digifinex.d.ts +2 -2
- package/js/src/digifinex.js +65 -45
- package/js/src/exmo.js +29 -27
- package/js/src/gate.d.ts +1 -1
- package/js/src/gate.js +67 -53
- package/js/src/gemini.js +23 -20
- package/js/src/hitbtc.d.ts +1 -0
- package/js/src/hitbtc.js +65 -56
- package/js/src/hollaex.js +30 -27
- package/js/src/htx.d.ts +11 -3
- package/js/src/htx.js +135 -143
- package/js/src/huobijp.js +23 -21
- package/js/src/idex.js +22 -21
- package/js/src/independentreserve.js +15 -14
- package/js/src/indodax.js +30 -26
- package/js/src/kraken.js +29 -27
- package/js/src/krakenfutures.js +29 -22
- package/js/src/kucoin.d.ts +1 -1
- package/js/src/kucoin.js +48 -43
- package/js/src/kucoinfutures.js +33 -28
- package/js/src/kuna.js +25 -24
- package/js/src/latoken.js +25 -23
- package/js/src/lbank.js +46 -31
- package/js/src/luno.js +22 -19
- package/js/src/lykke.js +19 -17
- package/js/src/mercado.js +30 -19
- package/js/src/mexc.d.ts +1 -1
- package/js/src/mexc.js +60 -49
- package/js/src/ndax.js +23 -22
- package/js/src/novadax.js +23 -22
- package/js/src/oceanex.js +22 -19
- package/js/src/okcoin.js +29 -23
- package/js/src/okx.d.ts +2 -2
- package/js/src/okx.js +92 -84
- package/js/src/p2b.d.ts +8 -7
- package/js/src/p2b.js +80 -82
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +63 -40
- package/js/src/poloniex.js +22 -22
- package/js/src/poloniexfutures.js +23 -19
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +4 -4
- package/js/src/pro/binance.js +16 -16
- package/js/src/pro/bingx.js +1 -1
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.d.ts +1 -1
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +7 -7
- package/js/src/pro/bitmart.js +7 -5
- package/js/src/pro/bitmex.js +6 -6
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +6 -6
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +7 -5
- package/js/src/pro/bittrex.js +6 -6
- package/js/src/pro/bitvavo.js +12 -8
- package/js/src/pro/blockchaincom.js +8 -8
- package/js/src/pro/bybit.js +7 -7
- package/js/src/pro/cex.js +14 -10
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +12 -11
- package/js/src/pro/coinex.js +7 -9
- package/js/src/pro/cryptocom.js +9 -9
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +12 -14
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.d.ts +8 -1
- package/js/src/pro/hitbtc.js +264 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +6 -6
- package/js/src/pro/huobijp.js +3 -3
- package/js/src/pro/idex.js +4 -4
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +10 -10
- package/js/src/pro/krakenfutures.d.ts +1 -0
- package/js/src/pro/krakenfutures.js +42 -18
- package/js/src/pro/kucoin.js +7 -7
- package/js/src/pro/kucoinfutures.js +8 -6
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.js +6 -6
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okcoin.js +5 -5
- package/js/src/pro/okx.js +12 -12
- package/js/src/pro/phemex.js +6 -6
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +8 -8
- package/js/src/pro/whitebit.js +13 -9
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +29 -24
- package/js/src/tidex.js +16 -15
- package/js/src/timex.js +19 -18
- package/js/src/tokocrypto.js +28 -23
- package/js/src/upbit.js +19 -19
- package/js/src/wavesexchange.js +23 -20
- package/js/src/wazirx.js +25 -18
- package/js/src/whitebit.js +33 -27
- package/js/src/woo.js +45 -35
- package/js/src/yobit.js +25 -20
- package/js/src/zaif.js +9 -9
- package/js/src/zonda.js +18 -17
- package/package.json +2 -2
- package/js/src/bitstamp1.d.ts +0 -28
- package/js/src/bitstamp1.js +0 -430
- package/js/src/lbank2.d.ts +0 -90
- package/js/src/lbank2.js +0 -2779
package/js/src/bitopro.js
CHANGED
|
@@ -37,11 +37,11 @@ export default class bitopro extends Exchange {
|
|
|
37
37
|
'createOrder': true,
|
|
38
38
|
'editOrder': false,
|
|
39
39
|
'fetchBalance': true,
|
|
40
|
-
'fetchBorrowRate': false,
|
|
41
40
|
'fetchBorrowRateHistories': false,
|
|
42
41
|
'fetchBorrowRateHistory': false,
|
|
43
|
-
'fetchBorrowRates': false,
|
|
44
42
|
'fetchClosedOrders': true,
|
|
43
|
+
'fetchCrossBorrowRate': false,
|
|
44
|
+
'fetchCrossBorrowRates': false,
|
|
45
45
|
'fetchCurrencies': true,
|
|
46
46
|
'fetchDepositAddress': false,
|
|
47
47
|
'fetchDeposits': true,
|
|
@@ -53,6 +53,8 @@ export default class bitopro extends Exchange {
|
|
|
53
53
|
'fetchFundingRateHistory': false,
|
|
54
54
|
'fetchFundingRates': false,
|
|
55
55
|
'fetchIndexOHLCV': false,
|
|
56
|
+
'fetchIsolatedBorrowRate': false,
|
|
57
|
+
'fetchIsolatedBorrowRates': false,
|
|
56
58
|
'fetchMarginMode': false,
|
|
57
59
|
'fetchMarkets': true,
|
|
58
60
|
'fetchMarkOHLCV': false,
|
|
@@ -413,7 +415,7 @@ export default class bitopro extends Exchange {
|
|
|
413
415
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_ticker_data.md
|
|
414
416
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
415
417
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
416
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
418
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
417
419
|
*/
|
|
418
420
|
await this.loadMarkets();
|
|
419
421
|
const market = this.market(symbol);
|
|
@@ -445,7 +447,7 @@ export default class bitopro extends Exchange {
|
|
|
445
447
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_ticker_data.md
|
|
446
448
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
447
449
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
448
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
450
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
449
451
|
*/
|
|
450
452
|
await this.loadMarkets();
|
|
451
453
|
const response = await this.publicGetTickers();
|
|
@@ -476,7 +478,7 @@ export default class bitopro extends Exchange {
|
|
|
476
478
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
477
479
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
478
480
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
479
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
481
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
480
482
|
*/
|
|
481
483
|
await this.loadMarkets();
|
|
482
484
|
const market = this.market(symbol);
|
|
@@ -608,7 +610,7 @@ export default class bitopro extends Exchange {
|
|
|
608
610
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
609
611
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
610
612
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
611
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
613
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
612
614
|
*/
|
|
613
615
|
await this.loadMarkets();
|
|
614
616
|
const market = this.market(symbol);
|
|
@@ -638,7 +640,7 @@ export default class bitopro extends Exchange {
|
|
|
638
640
|
* @description fetch the trading fees for multiple markets
|
|
639
641
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_limitations_and_fees.md
|
|
640
642
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
641
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
643
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
642
644
|
*/
|
|
643
645
|
await this.loadMarkets();
|
|
644
646
|
const response = await this.publicGetProvisioningLimitationsAndFees(params);
|
|
@@ -861,7 +863,7 @@ export default class bitopro extends Exchange {
|
|
|
861
863
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
862
864
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_account_balance.md
|
|
863
865
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
864
|
-
* @returns {object} a [balance structure]{@link https://
|
|
866
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
865
867
|
*/
|
|
866
868
|
await this.loadMarkets();
|
|
867
869
|
const response = await this.privateGetAccountsBalance(params);
|
|
@@ -994,7 +996,7 @@ export default class bitopro extends Exchange {
|
|
|
994
996
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
995
997
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
996
998
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
997
|
-
* @returns {object} an [order structure]{@link https://
|
|
999
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
998
1000
|
*/
|
|
999
1001
|
await this.loadMarkets();
|
|
1000
1002
|
const market = this.market(symbol);
|
|
@@ -1053,9 +1055,11 @@ export default class bitopro extends Exchange {
|
|
|
1053
1055
|
* @param {string} id order id
|
|
1054
1056
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1055
1057
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1056
|
-
* @returns {object} An [order structure]{@link https://
|
|
1058
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1057
1059
|
*/
|
|
1058
|
-
|
|
1060
|
+
if (symbol === undefined) {
|
|
1061
|
+
throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
1062
|
+
}
|
|
1059
1063
|
await this.loadMarkets();
|
|
1060
1064
|
const market = this.market(symbol);
|
|
1061
1065
|
const request = {
|
|
@@ -1083,9 +1087,11 @@ export default class bitopro extends Exchange {
|
|
|
1083
1087
|
* @param {string[]} ids order ids
|
|
1084
1088
|
* @param {string} symbol unified market symbol
|
|
1085
1089
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1086
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
1090
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1087
1091
|
*/
|
|
1088
|
-
|
|
1092
|
+
if (symbol === undefined) {
|
|
1093
|
+
throw new ArgumentsRequired(this.id + ' cancelOrders() requires a symbol argument');
|
|
1094
|
+
}
|
|
1089
1095
|
await this.loadMarkets();
|
|
1090
1096
|
const market = this.market(symbol);
|
|
1091
1097
|
const id = market['uppercaseId'];
|
|
@@ -1112,7 +1118,7 @@ export default class bitopro extends Exchange {
|
|
|
1112
1118
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/cancel_all_orders.md
|
|
1113
1119
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1114
1120
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1115
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1121
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1116
1122
|
*/
|
|
1117
1123
|
await this.loadMarkets();
|
|
1118
1124
|
const request = {
|
|
@@ -1148,9 +1154,11 @@ export default class bitopro extends Exchange {
|
|
|
1148
1154
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_an_order_data.md
|
|
1149
1155
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1150
1156
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1151
|
-
* @returns {object} An [order structure]{@link https://
|
|
1157
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1152
1158
|
*/
|
|
1153
|
-
|
|
1159
|
+
if (symbol === undefined) {
|
|
1160
|
+
throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
1161
|
+
}
|
|
1154
1162
|
await this.loadMarkets();
|
|
1155
1163
|
const market = this.market(symbol);
|
|
1156
1164
|
const request = {
|
|
@@ -1193,9 +1201,11 @@ export default class bitopro extends Exchange {
|
|
|
1193
1201
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1194
1202
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1195
1203
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1196
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1204
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1197
1205
|
*/
|
|
1198
|
-
|
|
1206
|
+
if (symbol === undefined) {
|
|
1207
|
+
throw new ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
1208
|
+
}
|
|
1199
1209
|
await this.loadMarkets();
|
|
1200
1210
|
const market = this.market(symbol);
|
|
1201
1211
|
const request = {
|
|
@@ -1260,7 +1270,7 @@ export default class bitopro extends Exchange {
|
|
|
1260
1270
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1261
1271
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1262
1272
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1263
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1273
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1264
1274
|
*/
|
|
1265
1275
|
const request = {
|
|
1266
1276
|
'statusKind': 'DONE',
|
|
@@ -1277,9 +1287,11 @@ export default class bitopro extends Exchange {
|
|
|
1277
1287
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1278
1288
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1279
1289
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1280
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1290
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1281
1291
|
*/
|
|
1282
|
-
|
|
1292
|
+
if (symbol === undefined) {
|
|
1293
|
+
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
1294
|
+
}
|
|
1283
1295
|
await this.loadMarkets();
|
|
1284
1296
|
const market = this.market(symbol);
|
|
1285
1297
|
const request = {
|
|
@@ -1414,7 +1426,7 @@ export default class bitopro extends Exchange {
|
|
|
1414
1426
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1415
1427
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1416
1428
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1417
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1429
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1418
1430
|
*/
|
|
1419
1431
|
if (code === undefined) {
|
|
1420
1432
|
throw new ArgumentsRequired(this.id + ' fetchDeposits() requires the code argument');
|
|
@@ -1466,7 +1478,7 @@ export default class bitopro extends Exchange {
|
|
|
1466
1478
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1467
1479
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1468
1480
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1469
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1481
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1470
1482
|
*/
|
|
1471
1483
|
if (code === undefined) {
|
|
1472
1484
|
throw new ArgumentsRequired(this.id + ' fetchWithdrawals() requires the code argument');
|
|
@@ -1516,7 +1528,7 @@ export default class bitopro extends Exchange {
|
|
|
1516
1528
|
* @param {string} id withdrawal id
|
|
1517
1529
|
* @param {string} code unified currency code of the currency withdrawn, default is undefined
|
|
1518
1530
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1519
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1531
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1520
1532
|
*/
|
|
1521
1533
|
if (code === undefined) {
|
|
1522
1534
|
throw new ArgumentsRequired(this.id + ' fetchWithdrawal() requires the code argument');
|
|
@@ -1558,7 +1570,7 @@ export default class bitopro extends Exchange {
|
|
|
1558
1570
|
* @param {string} address the address to withdraw to
|
|
1559
1571
|
* @param {string} tag
|
|
1560
1572
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1561
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1573
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1562
1574
|
*/
|
|
1563
1575
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1564
1576
|
await this.loadMarkets();
|
|
@@ -1631,7 +1643,7 @@ export default class bitopro extends Exchange {
|
|
|
1631
1643
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_currency_info.md
|
|
1632
1644
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1633
1645
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1634
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
1646
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1635
1647
|
*/
|
|
1636
1648
|
await this.loadMarkets();
|
|
1637
1649
|
const response = await this.publicGetProvisioningCurrencies(params);
|
package/js/src/bitpanda.js
CHANGED
|
@@ -43,12 +43,11 @@ export default class bitpanda extends Exchange {
|
|
|
43
43
|
'createStopOrder': true,
|
|
44
44
|
'fetchAccounts': false,
|
|
45
45
|
'fetchBalance': true,
|
|
46
|
-
'fetchBorrowRate': false,
|
|
47
46
|
'fetchBorrowRateHistories': false,
|
|
48
47
|
'fetchBorrowRateHistory': false,
|
|
49
|
-
'fetchBorrowRates': false,
|
|
50
|
-
'fetchBorrowRatesPerSymbol': false,
|
|
51
48
|
'fetchClosedOrders': true,
|
|
49
|
+
'fetchCrossBorrowRate': false,
|
|
50
|
+
'fetchCrossBorrowRates': false,
|
|
52
51
|
'fetchCurrencies': true,
|
|
53
52
|
'fetchDeposit': false,
|
|
54
53
|
'fetchDepositAddress': true,
|
|
@@ -60,6 +59,8 @@ export default class bitpanda extends Exchange {
|
|
|
60
59
|
'fetchFundingRateHistory': false,
|
|
61
60
|
'fetchFundingRates': false,
|
|
62
61
|
'fetchIndexOHLCV': false,
|
|
62
|
+
'fetchIsolatedBorrowRate': false,
|
|
63
|
+
'fetchIsolatedBorrowRates': false,
|
|
63
64
|
'fetchLedger': false,
|
|
64
65
|
'fetchLeverage': false,
|
|
65
66
|
'fetchMarginMode': false,
|
|
@@ -443,7 +444,7 @@ export default class bitpanda extends Exchange {
|
|
|
443
444
|
* @name bitpanda#fetchTradingFees
|
|
444
445
|
* @description fetch the trading fees for multiple markets
|
|
445
446
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
446
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
447
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
447
448
|
*/
|
|
448
449
|
let method = this.safeString(params, 'method');
|
|
449
450
|
params = this.omit(params, 'method');
|
|
@@ -617,7 +618,7 @@ export default class bitpanda extends Exchange {
|
|
|
617
618
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
618
619
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
619
620
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
620
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
621
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
621
622
|
*/
|
|
622
623
|
await this.loadMarkets();
|
|
623
624
|
const market = this.market(symbol);
|
|
@@ -652,7 +653,7 @@ export default class bitpanda extends Exchange {
|
|
|
652
653
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
653
654
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
654
655
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
655
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
656
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
656
657
|
*/
|
|
657
658
|
await this.loadMarkets();
|
|
658
659
|
symbols = this.marketSymbols(symbols);
|
|
@@ -693,7 +694,7 @@ export default class bitpanda extends Exchange {
|
|
|
693
694
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
694
695
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
695
696
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
696
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
697
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
697
698
|
*/
|
|
698
699
|
await this.loadMarkets();
|
|
699
700
|
const market = this.market(symbol);
|
|
@@ -947,7 +948,7 @@ export default class bitpanda extends Exchange {
|
|
|
947
948
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
948
949
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
949
950
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
950
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
951
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
951
952
|
*/
|
|
952
953
|
await this.loadMarkets();
|
|
953
954
|
const market = this.market(symbol);
|
|
@@ -999,7 +1000,7 @@ export default class bitpanda extends Exchange {
|
|
|
999
1000
|
* @name bitpanda#fetchBalance
|
|
1000
1001
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1001
1002
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1002
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1003
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1003
1004
|
*/
|
|
1004
1005
|
await this.loadMarkets();
|
|
1005
1006
|
const response = await this.privateGetAccountBalances(params);
|
|
@@ -1044,7 +1045,7 @@ export default class bitpanda extends Exchange {
|
|
|
1044
1045
|
* @description create a currency deposit address
|
|
1045
1046
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1046
1047
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1047
|
-
* @returns {object} an [address structure]{@link https://
|
|
1048
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1048
1049
|
*/
|
|
1049
1050
|
await this.loadMarkets();
|
|
1050
1051
|
const currency = this.currency(code);
|
|
@@ -1069,7 +1070,7 @@ export default class bitpanda extends Exchange {
|
|
|
1069
1070
|
* @description fetch the deposit address for a currency associated with this account
|
|
1070
1071
|
* @param {string} code unified currency code
|
|
1071
1072
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1072
|
-
* @returns {object} an [address structure]{@link https://
|
|
1073
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1073
1074
|
*/
|
|
1074
1075
|
await this.loadMarkets();
|
|
1075
1076
|
const currency = this.currency(code);
|
|
@@ -1097,7 +1098,7 @@ export default class bitpanda extends Exchange {
|
|
|
1097
1098
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1098
1099
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1099
1100
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1100
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1101
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1101
1102
|
*/
|
|
1102
1103
|
await this.loadMarkets();
|
|
1103
1104
|
const request = {
|
|
@@ -1161,7 +1162,7 @@ export default class bitpanda extends Exchange {
|
|
|
1161
1162
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1162
1163
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1163
1164
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1164
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1165
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1165
1166
|
*/
|
|
1166
1167
|
await this.loadMarkets();
|
|
1167
1168
|
const request = {
|
|
@@ -1227,7 +1228,7 @@ export default class bitpanda extends Exchange {
|
|
|
1227
1228
|
* @param {string} address the address to withdraw to
|
|
1228
1229
|
* @param {string} tag
|
|
1229
1230
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1230
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1231
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1231
1232
|
*/
|
|
1232
1233
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1233
1234
|
this.checkAddress(address);
|
|
@@ -1501,7 +1502,7 @@ export default class bitpanda extends Exchange {
|
|
|
1501
1502
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1502
1503
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1503
1504
|
* @param {float} [params.triggerPrice] bitpanda only does stop limit orders and does not do stop market
|
|
1504
|
-
* @returns {object} an [order structure]{@link https://
|
|
1505
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1505
1506
|
*/
|
|
1506
1507
|
await this.loadMarkets();
|
|
1507
1508
|
const market = this.market(symbol);
|
|
@@ -1568,7 +1569,7 @@ export default class bitpanda extends Exchange {
|
|
|
1568
1569
|
* @param {string} id order id
|
|
1569
1570
|
* @param {string} symbol not used by bitmex cancelOrder ()
|
|
1570
1571
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1571
|
-
* @returns {object} An [order structure]{@link https://
|
|
1572
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1572
1573
|
*/
|
|
1573
1574
|
await this.loadMarkets();
|
|
1574
1575
|
const clientOrderId = this.safeString2(params, 'clientOrderId', 'client_id');
|
|
@@ -1595,7 +1596,7 @@ export default class bitpanda extends Exchange {
|
|
|
1595
1596
|
* @description cancel all open orders
|
|
1596
1597
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1597
1598
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1598
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1599
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1599
1600
|
*/
|
|
1600
1601
|
await this.loadMarkets();
|
|
1601
1602
|
const request = {};
|
|
@@ -1619,7 +1620,7 @@ export default class bitpanda extends Exchange {
|
|
|
1619
1620
|
* @param {string[]} ids order ids
|
|
1620
1621
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1621
1622
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1622
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
1623
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1623
1624
|
*/
|
|
1624
1625
|
await this.loadMarkets();
|
|
1625
1626
|
const request = {
|
|
@@ -1640,7 +1641,7 @@ export default class bitpanda extends Exchange {
|
|
|
1640
1641
|
* @description fetches information on an order made by the user
|
|
1641
1642
|
* @param {string} symbol not used by bitpanda fetchOrder
|
|
1642
1643
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1643
|
-
* @returns {object} An [order structure]{@link https://
|
|
1644
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1644
1645
|
*/
|
|
1645
1646
|
await this.loadMarkets();
|
|
1646
1647
|
const request = {
|
|
@@ -1699,7 +1700,7 @@ export default class bitpanda extends Exchange {
|
|
|
1699
1700
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1700
1701
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1701
1702
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1702
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1703
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1703
1704
|
*/
|
|
1704
1705
|
await this.loadMarkets();
|
|
1705
1706
|
const request = {
|
|
@@ -1819,7 +1820,7 @@ export default class bitpanda extends Exchange {
|
|
|
1819
1820
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1820
1821
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1821
1822
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1822
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1823
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1823
1824
|
*/
|
|
1824
1825
|
const request = {
|
|
1825
1826
|
'with_cancelled_and_rejected': true, // default is false, orders which have been cancelled by the user before being filled or rejected by the system as invalid, additionally, all inactive filled orders which would return with "with_just_filled_inactive"
|
|
@@ -1836,7 +1837,7 @@ export default class bitpanda extends Exchange {
|
|
|
1836
1837
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1837
1838
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1838
1839
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1839
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1840
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1840
1841
|
*/
|
|
1841
1842
|
await this.loadMarkets();
|
|
1842
1843
|
const request = {
|
|
@@ -1894,7 +1895,7 @@ export default class bitpanda extends Exchange {
|
|
|
1894
1895
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1895
1896
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1896
1897
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1897
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1898
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1898
1899
|
*/
|
|
1899
1900
|
await this.loadMarkets();
|
|
1900
1901
|
const request = {
|
package/js/src/bitrue.js
CHANGED
|
@@ -41,18 +41,19 @@ export default class bitrue extends Exchange {
|
|
|
41
41
|
'createStopOrder': true,
|
|
42
42
|
'fetchBalance': true,
|
|
43
43
|
'fetchBidsAsks': true,
|
|
44
|
-
'fetchBorrowRate': false,
|
|
45
44
|
'fetchBorrowRateHistories': false,
|
|
46
45
|
'fetchBorrowRateHistory': false,
|
|
47
|
-
'fetchBorrowRates': false,
|
|
48
|
-
'fetchBorrowRatesPerSymbol': false,
|
|
49
46
|
'fetchClosedOrders': true,
|
|
47
|
+
'fetchCrossBorrowRate': false,
|
|
48
|
+
'fetchCrossBorrowRates': false,
|
|
50
49
|
'fetchCurrencies': true,
|
|
51
50
|
'fetchDepositAddress': false,
|
|
52
51
|
'fetchDeposits': true,
|
|
53
52
|
'fetchDepositsWithdrawals': false,
|
|
54
53
|
'fetchDepositWithdrawFee': 'emulated',
|
|
55
54
|
'fetchDepositWithdrawFees': true,
|
|
55
|
+
'fetchIsolatedBorrowRate': false,
|
|
56
|
+
'fetchIsolatedBorrowRates': false,
|
|
56
57
|
'fetchMarginMode': false,
|
|
57
58
|
'fetchMarkets': true,
|
|
58
59
|
'fetchMyTrades': true,
|
|
@@ -350,7 +351,7 @@ export default class bitrue extends Exchange {
|
|
|
350
351
|
* @name bitrue#fetchStatus
|
|
351
352
|
* @description the latest known information on the availability of the exchange API
|
|
352
353
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
353
|
-
* @returns {object} a [status structure]{@link https://
|
|
354
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
354
355
|
*/
|
|
355
356
|
const response = await this.v1PublicGetPing(params);
|
|
356
357
|
//
|
|
@@ -732,7 +733,7 @@ export default class bitrue extends Exchange {
|
|
|
732
733
|
* @name bitrue#fetchBalance
|
|
733
734
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
734
735
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
735
|
-
* @returns {object} a [balance structure]{@link https://
|
|
736
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
736
737
|
*/
|
|
737
738
|
await this.loadMarkets();
|
|
738
739
|
const response = await this.v1PrivateGetAccount(params);
|
|
@@ -763,7 +764,7 @@ export default class bitrue extends Exchange {
|
|
|
763
764
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
764
765
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
765
766
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
766
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
767
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
767
768
|
*/
|
|
768
769
|
await this.loadMarkets();
|
|
769
770
|
const market = this.market(symbol);
|
|
@@ -852,7 +853,7 @@ export default class bitrue extends Exchange {
|
|
|
852
853
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
853
854
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
854
855
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
855
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
856
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
856
857
|
*/
|
|
857
858
|
await this.loadMarkets();
|
|
858
859
|
const market = this.market(symbol);
|
|
@@ -962,7 +963,7 @@ export default class bitrue extends Exchange {
|
|
|
962
963
|
* @see https://github.com/Bitrue-exchange/Spot-official-api-docs#symbol-order-book-ticker
|
|
963
964
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
964
965
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
965
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
966
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
966
967
|
*/
|
|
967
968
|
await this.loadMarkets();
|
|
968
969
|
symbols = this.marketSymbols(symbols);
|
|
@@ -992,7 +993,7 @@ export default class bitrue extends Exchange {
|
|
|
992
993
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
993
994
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
994
995
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
995
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
996
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
996
997
|
*/
|
|
997
998
|
await this.loadMarkets();
|
|
998
999
|
const request = {
|
|
@@ -1130,7 +1131,7 @@ export default class bitrue extends Exchange {
|
|
|
1130
1131
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1131
1132
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1132
1133
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1133
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1134
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1134
1135
|
*/
|
|
1135
1136
|
await this.loadMarkets();
|
|
1136
1137
|
const market = this.market(symbol);
|
|
@@ -1311,7 +1312,7 @@ export default class bitrue extends Exchange {
|
|
|
1311
1312
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
1312
1313
|
* @param {decimal} [params.icebergQty]
|
|
1313
1314
|
* @param {long} [params.recvWindow]
|
|
1314
|
-
* @returns {object} an [order structure]{@link https://
|
|
1315
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1315
1316
|
*/
|
|
1316
1317
|
await this.loadMarkets();
|
|
1317
1318
|
const market = this.market(symbol);
|
|
@@ -1365,9 +1366,11 @@ export default class bitrue extends Exchange {
|
|
|
1365
1366
|
* @description fetches information on an order made by the user
|
|
1366
1367
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1367
1368
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1368
|
-
* @returns {object} An [order structure]{@link https://
|
|
1369
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1369
1370
|
*/
|
|
1370
|
-
|
|
1371
|
+
if (symbol === undefined) {
|
|
1372
|
+
throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
1373
|
+
}
|
|
1371
1374
|
await this.loadMarkets();
|
|
1372
1375
|
const market = this.market(symbol);
|
|
1373
1376
|
const request = {
|
|
@@ -1393,9 +1396,11 @@ export default class bitrue extends Exchange {
|
|
|
1393
1396
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1394
1397
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1395
1398
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1396
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1399
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1397
1400
|
*/
|
|
1398
|
-
|
|
1401
|
+
if (symbol === undefined) {
|
|
1402
|
+
throw new ArgumentsRequired(this.id + ' fetchClosedOrders() requires a symbol argument');
|
|
1403
|
+
}
|
|
1399
1404
|
await this.loadMarkets();
|
|
1400
1405
|
const market = this.market(symbol);
|
|
1401
1406
|
const request = {
|
|
@@ -1445,9 +1450,11 @@ export default class bitrue extends Exchange {
|
|
|
1445
1450
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1446
1451
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
1447
1452
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1448
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1453
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1449
1454
|
*/
|
|
1450
|
-
|
|
1455
|
+
if (symbol === undefined) {
|
|
1456
|
+
throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
1457
|
+
}
|
|
1451
1458
|
await this.loadMarkets();
|
|
1452
1459
|
const market = this.market(symbol);
|
|
1453
1460
|
const request = {
|
|
@@ -1486,9 +1493,11 @@ export default class bitrue extends Exchange {
|
|
|
1486
1493
|
* @param {string} id order id
|
|
1487
1494
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1488
1495
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1489
|
-
* @returns {object} An [order structure]{@link https://
|
|
1496
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1490
1497
|
*/
|
|
1491
|
-
|
|
1498
|
+
if (symbol === undefined) {
|
|
1499
|
+
throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
1500
|
+
}
|
|
1492
1501
|
await this.loadMarkets();
|
|
1493
1502
|
const market = this.market(symbol);
|
|
1494
1503
|
const origClientOrderId = this.safeValue2(params, 'origClientOrderId', 'clientOrderId');
|
|
@@ -1525,7 +1534,7 @@ export default class bitrue extends Exchange {
|
|
|
1525
1534
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1526
1535
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1527
1536
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1528
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1537
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1529
1538
|
*/
|
|
1530
1539
|
const method = this.safeString(this.options, 'fetchMyTradesMethod', 'v2PrivateGetMyTrades');
|
|
1531
1540
|
if ((symbol === undefined) && (method === 'v2PrivateGetMyTrades')) {
|
|
@@ -1580,7 +1589,7 @@ export default class bitrue extends Exchange {
|
|
|
1580
1589
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1581
1590
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1582
1591
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1583
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1592
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1584
1593
|
*/
|
|
1585
1594
|
if (code === undefined) {
|
|
1586
1595
|
throw new ArgumentsRequired(this.id + ' fetchDeposits() requires a code argument');
|
|
@@ -1651,7 +1660,7 @@ export default class bitrue extends Exchange {
|
|
|
1651
1660
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1652
1661
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1653
1662
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1654
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1663
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1655
1664
|
*/
|
|
1656
1665
|
if (code === undefined) {
|
|
1657
1666
|
throw new ArgumentsRequired(this.id + ' fetchWithdrawals() requires a code argument');
|
|
@@ -1842,7 +1851,7 @@ export default class bitrue extends Exchange {
|
|
|
1842
1851
|
* @param {string} address the address to withdraw to
|
|
1843
1852
|
* @param {string} tag
|
|
1844
1853
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1845
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1854
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1846
1855
|
*/
|
|
1847
1856
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1848
1857
|
this.checkAddress(address);
|
|
@@ -1941,7 +1950,7 @@ export default class bitrue extends Exchange {
|
|
|
1941
1950
|
* @see https://github.com/Bitrue-exchange/Spot-official-api-docs#exchangeInfo_endpoint
|
|
1942
1951
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1943
1952
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1944
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
1953
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1945
1954
|
*/
|
|
1946
1955
|
await this.loadMarkets();
|
|
1947
1956
|
const response = await this.v1PublicGetExchangeInfo(params);
|