ccxt 4.1.64 → 4.1.65
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 +3 -3
- package/dist/ccxt.browser.js +2558 -2534
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +1 -0
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +28 -28
- package/dist/cjs/src/krakenfutures.js +9 -9
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +32 -32
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +8 -8
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- 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 +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +21 -21
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +15 -15
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +1 -0
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +28 -28
- package/js/src/krakenfutures.js +9 -9
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +17 -17
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +32 -32
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +8 -8
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- 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 +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +21 -21
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +15 -15
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/js/src/bitmex.js
CHANGED
|
@@ -259,7 +259,7 @@ export default class bitmex extends Exchange {
|
|
|
259
259
|
* @method
|
|
260
260
|
* @name bitmex#fetchCurrencies
|
|
261
261
|
* @description fetches all available currencies on an exchange
|
|
262
|
-
* @param {object} [params] extra parameters specific to the
|
|
262
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
263
263
|
* @returns {object} an associative dictionary of currencies
|
|
264
264
|
*/
|
|
265
265
|
const response = await this.publicGetWalletAssets(params);
|
|
@@ -427,7 +427,8 @@ export default class bitmex extends Exchange {
|
|
|
427
427
|
* @method
|
|
428
428
|
* @name bitmex#fetchMarkets
|
|
429
429
|
* @description retrieves data on all markets for bitmex
|
|
430
|
-
* @
|
|
430
|
+
* @see https://www.bitmex.com/api/explorer/#!/Instrument/Instrument_getActive
|
|
431
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
431
432
|
* @returns {object[]} an array of objects representing market data
|
|
432
433
|
*/
|
|
433
434
|
const response = await this.publicGetInstrumentActive(params);
|
|
@@ -737,7 +738,7 @@ export default class bitmex extends Exchange {
|
|
|
737
738
|
* @method
|
|
738
739
|
* @name bitmex#fetchBalance
|
|
739
740
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
740
|
-
* @param {object} [params] extra parameters specific to the
|
|
741
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
741
742
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
742
743
|
*/
|
|
743
744
|
await this.loadMarkets();
|
|
@@ -801,7 +802,7 @@ export default class bitmex extends Exchange {
|
|
|
801
802
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
802
803
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
803
804
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
804
|
-
* @param {object} [params] extra parameters specific to the
|
|
805
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
805
806
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
806
807
|
*/
|
|
807
808
|
await this.loadMarkets();
|
|
@@ -843,7 +844,7 @@ export default class bitmex extends Exchange {
|
|
|
843
844
|
* @name bitmex#fetchOrder
|
|
844
845
|
* @description fetches information on an order made by the user
|
|
845
846
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
846
|
-
* @param {object} [params] extra parameters specific to the
|
|
847
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
847
848
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
848
849
|
*/
|
|
849
850
|
const filter = {
|
|
@@ -867,7 +868,7 @@ export default class bitmex extends Exchange {
|
|
|
867
868
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
868
869
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
869
870
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
870
|
-
* @param {object} [params] extra parameters specific to the
|
|
871
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
871
872
|
* @param {int} [params.until] the earliest time in ms to fetch orders for
|
|
872
873
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
873
874
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -913,7 +914,7 @@ export default class bitmex extends Exchange {
|
|
|
913
914
|
* @param {string} symbol unified market symbol
|
|
914
915
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
915
916
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
916
|
-
* @param {object} [params] extra parameters specific to the
|
|
917
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
917
918
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
918
919
|
*/
|
|
919
920
|
const request = {
|
|
@@ -931,7 +932,7 @@ export default class bitmex extends Exchange {
|
|
|
931
932
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
932
933
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
933
934
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
934
|
-
* @param {object} [params] extra parameters specific to the
|
|
935
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
935
936
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
936
937
|
*/
|
|
937
938
|
// Bitmex barfs if you set 'open': false in the filter...
|
|
@@ -947,7 +948,7 @@ export default class bitmex extends Exchange {
|
|
|
947
948
|
* @param {string} symbol unified market symbol
|
|
948
949
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
949
950
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
950
|
-
* @param {object} [params] extra parameters specific to the
|
|
951
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
951
952
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
952
953
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
953
954
|
*/
|
|
@@ -1155,7 +1156,7 @@ export default class bitmex extends Exchange {
|
|
|
1155
1156
|
* @param {string} code unified currency code, default is undefined
|
|
1156
1157
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1157
1158
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1158
|
-
* @param {object} [params] extra parameters specific to the
|
|
1159
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1159
1160
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
1160
1161
|
*/
|
|
1161
1162
|
await this.loadMarkets();
|
|
@@ -1206,7 +1207,7 @@ export default class bitmex extends Exchange {
|
|
|
1206
1207
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1207
1208
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1208
1209
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1209
|
-
* @param {object} [params] extra parameters specific to the
|
|
1210
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1210
1211
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1211
1212
|
*/
|
|
1212
1213
|
await this.loadMarkets();
|
|
@@ -1322,7 +1323,7 @@ export default class bitmex extends Exchange {
|
|
|
1322
1323
|
* @name bitmex#fetchTicker
|
|
1323
1324
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1324
1325
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1325
|
-
* @param {object} [params] extra parameters specific to the
|
|
1326
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1326
1327
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1327
1328
|
*/
|
|
1328
1329
|
await this.loadMarkets();
|
|
@@ -1341,9 +1342,9 @@ export default class bitmex extends Exchange {
|
|
|
1341
1342
|
/**
|
|
1342
1343
|
* @method
|
|
1343
1344
|
* @name bitmex#fetchTickers
|
|
1344
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1345
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1345
1346
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1346
|
-
* @param {object} [params] extra parameters specific to the
|
|
1347
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1347
1348
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1348
1349
|
*/
|
|
1349
1350
|
await this.loadMarkets();
|
|
@@ -1430,7 +1431,7 @@ export default class bitmex extends Exchange {
|
|
|
1430
1431
|
* @param {string} timeframe the length of time each candle represents
|
|
1431
1432
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1432
1433
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1433
|
-
* @param {object} [params] extra parameters specific to the
|
|
1434
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1434
1435
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
1435
1436
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1436
1437
|
*/
|
|
@@ -1747,7 +1748,7 @@ export default class bitmex extends Exchange {
|
|
|
1747
1748
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1748
1749
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1749
1750
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1750
|
-
* @param {object} [params] extra parameters specific to the
|
|
1751
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1751
1752
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
1752
1753
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1753
1754
|
*/
|
|
@@ -1818,7 +1819,7 @@ export default class bitmex extends Exchange {
|
|
|
1818
1819
|
* @param {string} side 'buy' or 'sell'
|
|
1819
1820
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1820
1821
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1821
|
-
* @param {object} [params] extra parameters specific to the
|
|
1822
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1822
1823
|
* @param {object} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
1823
1824
|
* @param {object} [params.triggerDirection] the direction whenever the trigger happens with relation to price - 'above' or 'below'
|
|
1824
1825
|
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
@@ -1922,7 +1923,7 @@ export default class bitmex extends Exchange {
|
|
|
1922
1923
|
* @description cancels an open order
|
|
1923
1924
|
* @param {string} id order id
|
|
1924
1925
|
* @param {string} symbol not used by bitmex cancelOrder ()
|
|
1925
|
-
* @param {object} [params] extra parameters specific to the
|
|
1926
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1926
1927
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1927
1928
|
*/
|
|
1928
1929
|
await this.loadMarkets();
|
|
@@ -1953,7 +1954,7 @@ export default class bitmex extends Exchange {
|
|
|
1953
1954
|
* @description cancel multiple orders
|
|
1954
1955
|
* @param {string[]} ids order ids
|
|
1955
1956
|
* @param {string} symbol not used by bitmex cancelOrders ()
|
|
1956
|
-
* @param {object} [params] extra parameters specific to the
|
|
1957
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1957
1958
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1958
1959
|
*/
|
|
1959
1960
|
// return await this.cancelOrder (ids, symbol, params);
|
|
@@ -1977,7 +1978,7 @@ export default class bitmex extends Exchange {
|
|
|
1977
1978
|
* @name bitmex#cancelAllOrders
|
|
1978
1979
|
* @description cancel all open orders
|
|
1979
1980
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1980
|
-
* @param {object} [params] extra parameters specific to the
|
|
1981
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1981
1982
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1982
1983
|
*/
|
|
1983
1984
|
await this.loadMarkets();
|
|
@@ -2035,7 +2036,7 @@ export default class bitmex extends Exchange {
|
|
|
2035
2036
|
* @name bitmex#fetchPositions
|
|
2036
2037
|
* @description fetch all open positions
|
|
2037
2038
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2038
|
-
* @param {object} [params] extra parameters specific to the
|
|
2039
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2039
2040
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
2040
2041
|
*/
|
|
2041
2042
|
await this.loadMarkets();
|
|
@@ -2296,7 +2297,7 @@ export default class bitmex extends Exchange {
|
|
|
2296
2297
|
* @param {float} amount the amount to withdraw
|
|
2297
2298
|
* @param {string} address the address to withdraw to
|
|
2298
2299
|
* @param {string} tag
|
|
2299
|
-
* @param {object} [params] extra parameters specific to the
|
|
2300
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2300
2301
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2301
2302
|
*/
|
|
2302
2303
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -2340,7 +2341,7 @@ export default class bitmex extends Exchange {
|
|
|
2340
2341
|
* @name bitmex#fetchFundingRates
|
|
2341
2342
|
* @description fetch the funding rate for multiple markets
|
|
2342
2343
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2343
|
-
* @param {object} [params] extra parameters specific to the
|
|
2344
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2344
2345
|
* @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
|
|
2345
2346
|
*/
|
|
2346
2347
|
await this.loadMarkets();
|
|
@@ -2393,7 +2394,7 @@ export default class bitmex extends Exchange {
|
|
|
2393
2394
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2394
2395
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2395
2396
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
2396
|
-
* @param {object} [params] extra parameters specific to the
|
|
2397
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2397
2398
|
* @param {int} [params.until] timestamp in ms for ending date filter
|
|
2398
2399
|
* @param {bool} [params.reverse] if true, will sort results newest first
|
|
2399
2400
|
* @param {int} [params.start] starting point for results
|
|
@@ -2475,7 +2476,7 @@ export default class bitmex extends Exchange {
|
|
|
2475
2476
|
* @description set the level of leverage for a market
|
|
2476
2477
|
* @param {float} leverage the rate of leverage
|
|
2477
2478
|
* @param {string} symbol unified market symbol
|
|
2478
|
-
* @param {object} [params] extra parameters specific to the
|
|
2479
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2479
2480
|
* @returns {object} response from the exchange
|
|
2480
2481
|
*/
|
|
2481
2482
|
if (symbol === undefined) {
|
|
@@ -2502,7 +2503,7 @@ export default class bitmex extends Exchange {
|
|
|
2502
2503
|
* @description set margin mode to 'cross' or 'isolated'
|
|
2503
2504
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
2504
2505
|
* @param {string} symbol unified market symbol
|
|
2505
|
-
* @param {object} [params] extra parameters specific to the
|
|
2506
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2506
2507
|
* @returns {object} response from the exchange
|
|
2507
2508
|
*/
|
|
2508
2509
|
if (symbol === undefined) {
|
|
@@ -2531,7 +2532,7 @@ export default class bitmex extends Exchange {
|
|
|
2531
2532
|
* @description fetch the deposit address for a currency associated with this account
|
|
2532
2533
|
* @see https://www.bitmex.com/api/explorer/#!/User/User_getDepositAddress
|
|
2533
2534
|
* @param {string} code unified currency code
|
|
2534
|
-
* @param {object} [params] extra parameters specific to the
|
|
2535
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2535
2536
|
* @param {string} [params.network] deposit chain, can view all chains via this.publicGetWalletAssets, default is eth, unless the currency has a default chain within this.options['networks']
|
|
2536
2537
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2537
2538
|
*/
|
|
@@ -2632,7 +2633,7 @@ export default class bitmex extends Exchange {
|
|
|
2632
2633
|
* @description fetch deposit and withdraw fees
|
|
2633
2634
|
* @see https://www.bitmex.com/api/explorer/#!/Wallet/Wallet_getAssetsConfig
|
|
2634
2635
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2635
|
-
* @param {object} [params] extra parameters specific to the
|
|
2636
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2636
2637
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2637
2638
|
*/
|
|
2638
2639
|
await this.loadMarkets();
|
package/js/src/bitopro.js
CHANGED
|
@@ -218,7 +218,7 @@ export default class bitopro extends Exchange {
|
|
|
218
218
|
* @name bitopro#fetchCurrencies
|
|
219
219
|
* @description fetches all available currencies on an exchange
|
|
220
220
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_currency_info.md
|
|
221
|
-
* @param {object} [params] extra parameters specific to the
|
|
221
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
222
222
|
* @returns {object} an associative dictionary of currencies
|
|
223
223
|
*/
|
|
224
224
|
const response = await this.publicGetProvisioningCurrencies(params);
|
|
@@ -281,7 +281,7 @@ export default class bitopro extends Exchange {
|
|
|
281
281
|
* @name bitopro#fetchMarkets
|
|
282
282
|
* @description retrieves data on all markets for bitopro
|
|
283
283
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_trading_pair_info.md
|
|
284
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
284
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
285
285
|
* @returns {object[]} an array of objects representing market data
|
|
286
286
|
*/
|
|
287
287
|
const response = await this.publicGetProvisioningTradingPairs();
|
|
@@ -414,7 +414,7 @@ export default class bitopro extends Exchange {
|
|
|
414
414
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
415
415
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_ticker_data.md
|
|
416
416
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
417
|
-
* @param {object} [params] extra parameters specific to the
|
|
417
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
418
418
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
419
419
|
*/
|
|
420
420
|
await this.loadMarkets();
|
|
@@ -443,10 +443,10 @@ export default class bitopro extends Exchange {
|
|
|
443
443
|
/**
|
|
444
444
|
* @method
|
|
445
445
|
* @name bitopro#fetchTickers
|
|
446
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
446
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
447
447
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_ticker_data.md
|
|
448
448
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
449
|
-
* @param {object} [params] extra parameters specific to the
|
|
449
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
450
450
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
451
451
|
*/
|
|
452
452
|
await this.loadMarkets();
|
|
@@ -477,7 +477,7 @@ export default class bitopro extends Exchange {
|
|
|
477
477
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_orderbook_data.md
|
|
478
478
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
479
479
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
480
|
-
* @param {object} [params] extra parameters specific to the
|
|
480
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
481
481
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
482
482
|
*/
|
|
483
483
|
await this.loadMarkets();
|
|
@@ -609,7 +609,7 @@ export default class bitopro extends Exchange {
|
|
|
609
609
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
610
610
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
611
611
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
612
|
-
* @param {object} [params] extra parameters specific to the
|
|
612
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
613
613
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
614
614
|
*/
|
|
615
615
|
await this.loadMarkets();
|
|
@@ -639,7 +639,7 @@ export default class bitopro extends Exchange {
|
|
|
639
639
|
* @name bitopro#fetchTradingFees
|
|
640
640
|
* @description fetch the trading fees for multiple markets
|
|
641
641
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_limitations_and_fees.md
|
|
642
|
-
* @param {object} [params] extra parameters specific to the
|
|
642
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
643
643
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
644
644
|
*/
|
|
645
645
|
await this.loadMarkets();
|
|
@@ -743,7 +743,7 @@ export default class bitopro extends Exchange {
|
|
|
743
743
|
* @param {string} timeframe the length of time each candle represents
|
|
744
744
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
745
745
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
746
|
-
* @param {object} [params] extra parameters specific to the
|
|
746
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
747
747
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
748
748
|
*/
|
|
749
749
|
await this.loadMarkets();
|
|
@@ -862,7 +862,7 @@ export default class bitopro extends Exchange {
|
|
|
862
862
|
* @name bitopro#fetchBalance
|
|
863
863
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
864
864
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_account_balance.md
|
|
865
|
-
* @param {object} [params] extra parameters specific to the
|
|
865
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
866
866
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
867
867
|
*/
|
|
868
868
|
await this.loadMarkets();
|
|
@@ -995,7 +995,7 @@ export default class bitopro extends Exchange {
|
|
|
995
995
|
* @param {string} side 'buy' or 'sell'
|
|
996
996
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
997
997
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
998
|
-
* @param {object} [params] extra parameters specific to the
|
|
998
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
999
999
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1000
1000
|
*/
|
|
1001
1001
|
await this.loadMarkets();
|
|
@@ -1054,7 +1054,7 @@ export default class bitopro extends Exchange {
|
|
|
1054
1054
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/cancel_an_order.md
|
|
1055
1055
|
* @param {string} id order id
|
|
1056
1056
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1057
|
-
* @param {object} [params] extra parameters specific to the
|
|
1057
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1058
1058
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1059
1059
|
*/
|
|
1060
1060
|
if (symbol === undefined) {
|
|
@@ -1086,7 +1086,7 @@ export default class bitopro extends Exchange {
|
|
|
1086
1086
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/cancel_batch_orders.md
|
|
1087
1087
|
* @param {string[]} ids order ids
|
|
1088
1088
|
* @param {string} symbol unified market symbol
|
|
1089
|
-
* @param {object} [params] extra parameters specific to the
|
|
1089
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1090
1090
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1091
1091
|
*/
|
|
1092
1092
|
if (symbol === undefined) {
|
|
@@ -1117,7 +1117,7 @@ export default class bitopro extends Exchange {
|
|
|
1117
1117
|
* @description cancel all open orders
|
|
1118
1118
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/cancel_all_orders.md
|
|
1119
1119
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1120
|
-
* @param {object} [params] extra parameters specific to the
|
|
1120
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1121
1121
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1122
1122
|
*/
|
|
1123
1123
|
await this.loadMarkets();
|
|
@@ -1153,7 +1153,7 @@ export default class bitopro extends Exchange {
|
|
|
1153
1153
|
* @description fetches information on an order made by the user
|
|
1154
1154
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_an_order_data.md
|
|
1155
1155
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1156
|
-
* @param {object} [params] extra parameters specific to the
|
|
1156
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1157
1157
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1158
1158
|
*/
|
|
1159
1159
|
if (symbol === undefined) {
|
|
@@ -1200,7 +1200,7 @@ export default class bitopro extends Exchange {
|
|
|
1200
1200
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1201
1201
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1202
1202
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1203
|
-
* @param {object} [params] extra parameters specific to the
|
|
1203
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1204
1204
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1205
1205
|
*/
|
|
1206
1206
|
if (symbol === undefined) {
|
|
@@ -1269,7 +1269,7 @@ export default class bitopro extends Exchange {
|
|
|
1269
1269
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1270
1270
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1271
1271
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1272
|
-
* @param {object} [params] extra parameters specific to the
|
|
1272
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1273
1273
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1274
1274
|
*/
|
|
1275
1275
|
const request = {
|
|
@@ -1286,7 +1286,7 @@ export default class bitopro extends Exchange {
|
|
|
1286
1286
|
* @param {string} symbol unified market symbol
|
|
1287
1287
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1288
1288
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1289
|
-
* @param {object} [params] extra parameters specific to the
|
|
1289
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1290
1290
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1291
1291
|
*/
|
|
1292
1292
|
if (symbol === undefined) {
|
|
@@ -1425,7 +1425,7 @@ export default class bitopro extends Exchange {
|
|
|
1425
1425
|
* @param {string} code unified currency code
|
|
1426
1426
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1427
1427
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1428
|
-
* @param {object} [params] extra parameters specific to the
|
|
1428
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1429
1429
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1430
1430
|
*/
|
|
1431
1431
|
if (code === undefined) {
|
|
@@ -1477,7 +1477,7 @@ export default class bitopro extends Exchange {
|
|
|
1477
1477
|
* @param {string} code unified currency code
|
|
1478
1478
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1479
1479
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1480
|
-
* @param {object} [params] extra parameters specific to the
|
|
1480
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1481
1481
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1482
1482
|
*/
|
|
1483
1483
|
if (code === undefined) {
|
|
@@ -1527,7 +1527,7 @@ export default class bitopro extends Exchange {
|
|
|
1527
1527
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_an_withdraw_invoice_data.md
|
|
1528
1528
|
* @param {string} id withdrawal id
|
|
1529
1529
|
* @param {string} code unified currency code of the currency withdrawn, default is undefined
|
|
1530
|
-
* @param {object} [params] extra parameters specific to the
|
|
1530
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1531
1531
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1532
1532
|
*/
|
|
1533
1533
|
if (code === undefined) {
|
|
@@ -1569,7 +1569,7 @@ export default class bitopro extends Exchange {
|
|
|
1569
1569
|
* @param {float} amount the amount to withdraw
|
|
1570
1570
|
* @param {string} address the address to withdraw to
|
|
1571
1571
|
* @param {string} tag
|
|
1572
|
-
* @param {object} [params] extra parameters specific to the
|
|
1572
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1573
1573
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1574
1574
|
*/
|
|
1575
1575
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1642,7 +1642,7 @@ export default class bitopro extends Exchange {
|
|
|
1642
1642
|
* @description fetch deposit and withdraw fees
|
|
1643
1643
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_currency_info.md
|
|
1644
1644
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1645
|
-
* @param {object} [params] extra parameters specific to the
|
|
1645
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1646
1646
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1647
1647
|
*/
|
|
1648
1648
|
await this.loadMarkets();
|