ccxt 4.1.63 → 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 +4 -4
- package/dist/ccxt.browser.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- 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 +33 -3
- 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 +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- 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 +27 -28
- 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 +162 -123
- 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 +12 -9
- 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 +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- 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/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- 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 +33 -3
- 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 +48 -30
- package/js/src/krakenfutures.js +16 -16
- 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 +27 -28
- 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 +162 -123
- 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 +12 -9
- 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/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- 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/dist/cjs/src/btcbox.js
CHANGED
|
@@ -144,7 +144,7 @@ class btcbox extends btcbox$1 {
|
|
|
144
144
|
* @method
|
|
145
145
|
* @name btcbox#fetchBalance
|
|
146
146
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
147
|
-
* @param {object} [params] extra parameters specific to the
|
|
147
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
148
148
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
149
149
|
*/
|
|
150
150
|
await this.loadMarkets();
|
|
@@ -158,7 +158,7 @@ class btcbox extends btcbox$1 {
|
|
|
158
158
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
159
159
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
160
160
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
161
|
-
* @param {object} [params] extra parameters specific to the
|
|
161
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
162
162
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
163
163
|
*/
|
|
164
164
|
await this.loadMarkets();
|
|
@@ -204,7 +204,7 @@ class btcbox extends btcbox$1 {
|
|
|
204
204
|
* @name btcbox#fetchTicker
|
|
205
205
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
206
206
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
207
|
-
* @param {object} [params] extra parameters specific to the
|
|
207
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
208
208
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
209
209
|
*/
|
|
210
210
|
await this.loadMarkets();
|
|
@@ -260,7 +260,7 @@ class btcbox extends btcbox$1 {
|
|
|
260
260
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
261
261
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
262
262
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
263
|
-
* @param {object} [params] extra parameters specific to the
|
|
263
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
264
264
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
265
265
|
*/
|
|
266
266
|
await this.loadMarkets();
|
|
@@ -294,7 +294,7 @@ class btcbox extends btcbox$1 {
|
|
|
294
294
|
* @param {string} side 'buy' or 'sell'
|
|
295
295
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
296
296
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
297
|
-
* @param {object} [params] extra parameters specific to the
|
|
297
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
298
298
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
299
299
|
*/
|
|
300
300
|
await this.loadMarkets();
|
|
@@ -321,7 +321,7 @@ class btcbox extends btcbox$1 {
|
|
|
321
321
|
* @description cancels an open order
|
|
322
322
|
* @param {string} id order id
|
|
323
323
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
324
|
-
* @param {object} [params] extra parameters specific to the
|
|
324
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
325
325
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
326
326
|
*/
|
|
327
327
|
await this.loadMarkets();
|
|
@@ -415,7 +415,7 @@ class btcbox extends btcbox$1 {
|
|
|
415
415
|
* @name btcbox#fetchOrder
|
|
416
416
|
* @description fetches information on an order made by the user
|
|
417
417
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
418
|
-
* @param {object} [params] extra parameters specific to the
|
|
418
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
419
419
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
420
420
|
*/
|
|
421
421
|
await this.loadMarkets();
|
|
@@ -485,7 +485,7 @@ class btcbox extends btcbox$1 {
|
|
|
485
485
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
486
486
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
487
487
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
488
|
-
* @param {object} [params] extra parameters specific to the
|
|
488
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
489
489
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
490
490
|
*/
|
|
491
491
|
return await this.fetchOrdersByType('all', symbol, since, limit, params);
|
|
@@ -498,7 +498,7 @@ class btcbox extends btcbox$1 {
|
|
|
498
498
|
* @param {string} symbol unified market symbol
|
|
499
499
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
500
500
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
501
|
-
* @param {object} [params] extra parameters specific to the
|
|
501
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
502
502
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
503
503
|
*/
|
|
504
504
|
return await this.fetchOrdersByType('open', symbol, since, limit, params);
|
|
@@ -195,7 +195,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
195
195
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
196
196
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
197
197
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
198
|
-
* @param {object} [params] extra parameters specific to the
|
|
198
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
199
199
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
200
200
|
*/
|
|
201
201
|
return await this.fetchTransactionsWithMethod('privateGetTransfers', code, since, limit, params);
|
|
@@ -208,7 +208,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
208
208
|
* @param {string} code unified currency code
|
|
209
209
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
210
210
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
211
|
-
* @param {object} [params] extra parameters specific to the
|
|
211
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
212
212
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
213
213
|
*/
|
|
214
214
|
return await this.fetchTransactionsWithMethod('privateGetDeposits', code, since, limit, params);
|
|
@@ -221,7 +221,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
221
221
|
* @param {string} code unified currency code
|
|
222
222
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
223
223
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
224
|
-
* @param {object} [params] extra parameters specific to the
|
|
224
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
225
225
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
226
226
|
*/
|
|
227
227
|
return await this.fetchTransactionsWithMethod('privateGetWithdrawals', code, since, limit, params);
|
|
@@ -351,7 +351,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
351
351
|
* @method
|
|
352
352
|
* @name btcmarkets#fetchMarkets
|
|
353
353
|
* @description retrieves data on all markets for btcmarkets
|
|
354
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
354
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
355
355
|
* @returns {object[]} an array of objects representing market data
|
|
356
356
|
*/
|
|
357
357
|
const response = await this.publicGetMarkets(params);
|
|
@@ -442,7 +442,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
442
442
|
* @method
|
|
443
443
|
* @name btcmarkets#fetchTime
|
|
444
444
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
445
|
-
* @param {object} [params] extra parameters specific to the
|
|
445
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
446
446
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
447
447
|
*/
|
|
448
448
|
const response = await this.publicGetTime(params);
|
|
@@ -471,7 +471,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
471
471
|
* @method
|
|
472
472
|
* @name btcmarkets#fetchBalance
|
|
473
473
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
474
|
-
* @param {object} [params] extra parameters specific to the
|
|
474
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
475
475
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
476
476
|
*/
|
|
477
477
|
await this.loadMarkets();
|
|
@@ -507,7 +507,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
507
507
|
* @param {string} timeframe the length of time each candle represents
|
|
508
508
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
509
509
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
510
|
-
* @param {object} [params] extra parameters specific to the
|
|
510
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
511
511
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
512
512
|
*/
|
|
513
513
|
await this.loadMarkets();
|
|
@@ -544,7 +544,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
544
544
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
545
545
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
546
546
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
547
|
-
* @param {object} [params] extra parameters specific to the
|
|
547
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
548
548
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
549
549
|
*/
|
|
550
550
|
await this.loadMarkets();
|
|
@@ -630,7 +630,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
630
630
|
* @name btcmarkets#fetchTicker
|
|
631
631
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
632
632
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
633
|
-
* @param {object} [params] extra parameters specific to the
|
|
633
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
634
634
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
635
635
|
*/
|
|
636
636
|
await this.loadMarkets();
|
|
@@ -740,7 +740,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
740
740
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
741
741
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
742
742
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
743
|
-
* @param {object} [params] extra parameters specific to the
|
|
743
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
744
744
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
745
745
|
*/
|
|
746
746
|
await this.loadMarkets();
|
|
@@ -769,7 +769,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
769
769
|
* @param {string} side 'buy' or 'sell'
|
|
770
770
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
771
771
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
772
|
-
* @param {object} [params] extra parameters specific to the
|
|
772
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
773
773
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
774
774
|
*/
|
|
775
775
|
await this.loadMarkets();
|
|
@@ -866,7 +866,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
866
866
|
* @description cancel multiple orders
|
|
867
867
|
* @param {string[]} ids order ids
|
|
868
868
|
* @param {string} symbol not used by btcmarkets cancelOrders ()
|
|
869
|
-
* @param {object} [params] extra parameters specific to the
|
|
869
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
870
870
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
871
871
|
*/
|
|
872
872
|
await this.loadMarkets();
|
|
@@ -885,7 +885,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
885
885
|
* @description cancels an open order
|
|
886
886
|
* @param {string} id order id
|
|
887
887
|
* @param {string} symbol not used by btcmarket cancelOrder ()
|
|
888
|
-
* @param {object} [params] extra parameters specific to the
|
|
888
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
889
889
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
890
890
|
*/
|
|
891
891
|
await this.loadMarkets();
|
|
@@ -1003,7 +1003,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1003
1003
|
* @name btcmarkets#fetchOrder
|
|
1004
1004
|
* @description fetches information on an order made by the user
|
|
1005
1005
|
* @param {string} symbol not used by btcmarkets fetchOrder
|
|
1006
|
-
* @param {object} [params] extra parameters specific to the
|
|
1006
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1007
1007
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1008
1008
|
*/
|
|
1009
1009
|
await this.loadMarkets();
|
|
@@ -1021,7 +1021,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1021
1021
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1022
1022
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1023
1023
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1024
|
-
* @param {object} [params] extra parameters specific to the
|
|
1024
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1025
1025
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1026
1026
|
*/
|
|
1027
1027
|
await this.loadMarkets();
|
|
@@ -1050,7 +1050,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1050
1050
|
* @param {string} symbol unified market symbol
|
|
1051
1051
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1052
1052
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1053
|
-
* @param {object} [params] extra parameters specific to the
|
|
1053
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1054
1054
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1055
1055
|
*/
|
|
1056
1056
|
const request = { 'status': 'open' };
|
|
@@ -1064,7 +1064,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1064
1064
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1065
1065
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1066
1066
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1067
|
-
* @param {object} [params] extra parameters specific to the
|
|
1067
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1068
1068
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1069
1069
|
*/
|
|
1070
1070
|
const orders = await this.fetchOrders(symbol, since, limit, params);
|
|
@@ -1078,7 +1078,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1078
1078
|
* @param {string} symbol unified market symbol
|
|
1079
1079
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1080
1080
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1081
|
-
* @param {object} [params] extra parameters specific to the
|
|
1081
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1082
1082
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1083
1083
|
*/
|
|
1084
1084
|
await this.loadMarkets();
|
|
@@ -1133,7 +1133,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1133
1133
|
* @param {float} amount the amount to withdraw
|
|
1134
1134
|
* @param {string} address the address to withdraw to
|
|
1135
1135
|
* @param {string} tag
|
|
1136
|
-
* @param {object} [params] extra parameters specific to the
|
|
1136
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1137
1137
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1138
1138
|
*/
|
|
1139
1139
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
package/dist/cjs/src/btcturk.js
CHANGED
|
@@ -142,7 +142,7 @@ class btcturk extends btcturk$1 {
|
|
|
142
142
|
* @method
|
|
143
143
|
* @name btcturk#fetchMarkets
|
|
144
144
|
* @description retrieves data on all markets for btcturk
|
|
145
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
145
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
146
146
|
* @returns {object[]} an array of objects representing market data
|
|
147
147
|
*/
|
|
148
148
|
const response = await this.publicGetServerExchangeinfo(params);
|
|
@@ -291,7 +291,7 @@ class btcturk extends btcturk$1 {
|
|
|
291
291
|
* @method
|
|
292
292
|
* @name btcturk#fetchBalance
|
|
293
293
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
294
|
-
* @param {object} [params] extra parameters specific to the
|
|
294
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
295
295
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
296
296
|
*/
|
|
297
297
|
await this.loadMarkets();
|
|
@@ -321,7 +321,7 @@ class btcturk extends btcturk$1 {
|
|
|
321
321
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
322
322
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
323
323
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
324
|
-
* @param {object} [params] extra parameters specific to the
|
|
324
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
325
325
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
326
326
|
*/
|
|
327
327
|
await this.loadMarkets();
|
|
@@ -398,9 +398,9 @@ class btcturk extends btcturk$1 {
|
|
|
398
398
|
/**
|
|
399
399
|
* @method
|
|
400
400
|
* @name btcturk#fetchTickers
|
|
401
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
401
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
402
402
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
403
|
-
* @param {object} [params] extra parameters specific to the
|
|
403
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
404
404
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
405
405
|
*/
|
|
406
406
|
await this.loadMarkets();
|
|
@@ -414,7 +414,7 @@ class btcturk extends btcturk$1 {
|
|
|
414
414
|
* @name btcturk#fetchTicker
|
|
415
415
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
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();
|
|
@@ -491,7 +491,7 @@ class btcturk extends btcturk$1 {
|
|
|
491
491
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
492
492
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
493
493
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
494
|
-
* @param {object} [params] extra parameters specific to the
|
|
494
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
495
495
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
496
496
|
*/
|
|
497
497
|
await this.loadMarkets();
|
|
@@ -554,7 +554,7 @@ class btcturk extends btcturk$1 {
|
|
|
554
554
|
* @param {string} timeframe the length of time each candle represents
|
|
555
555
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
556
556
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
557
|
-
* @param {object} [params] extra parameters specific to the
|
|
557
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
558
558
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
559
559
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
560
560
|
*/
|
|
@@ -656,7 +656,7 @@ class btcturk extends btcturk$1 {
|
|
|
656
656
|
* @param {string} side 'buy' or 'sell'
|
|
657
657
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
658
658
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
659
|
-
* @param {object} [params] extra parameters specific to the
|
|
659
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
660
660
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
661
661
|
*/
|
|
662
662
|
await this.loadMarkets();
|
|
@@ -687,7 +687,7 @@ class btcturk extends btcturk$1 {
|
|
|
687
687
|
* @description cancels an open order
|
|
688
688
|
* @param {string} id order id
|
|
689
689
|
* @param {string} symbol not used by btcturk cancelOrder ()
|
|
690
|
-
* @param {object} [params] extra parameters specific to the
|
|
690
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
691
691
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
692
692
|
*/
|
|
693
693
|
const request = {
|
|
@@ -703,7 +703,7 @@ class btcturk extends btcturk$1 {
|
|
|
703
703
|
* @param {string} symbol unified market symbol
|
|
704
704
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
705
705
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
706
|
-
* @param {object} [params] extra parameters specific to the
|
|
706
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
707
707
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
708
708
|
*/
|
|
709
709
|
await this.loadMarkets();
|
|
@@ -727,7 +727,7 @@ class btcturk extends btcturk$1 {
|
|
|
727
727
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
728
728
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
729
729
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
730
|
-
* @param {object} [params] extra parameters specific to the
|
|
730
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
731
731
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
732
732
|
*/
|
|
733
733
|
await this.loadMarkets();
|
|
@@ -849,7 +849,7 @@ class btcturk extends btcturk$1 {
|
|
|
849
849
|
* @param {string} symbol unified market symbol
|
|
850
850
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
851
851
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
852
|
-
* @param {object} [params] extra parameters specific to the
|
|
852
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
853
853
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
854
854
|
*/
|
|
855
855
|
await this.loadMarkets();
|