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/js/src/btcbox.js
CHANGED
|
@@ -147,7 +147,7 @@ export default class btcbox extends Exchange {
|
|
|
147
147
|
* @method
|
|
148
148
|
* @name btcbox#fetchBalance
|
|
149
149
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
150
|
-
* @param {object} [params] extra parameters specific to the
|
|
150
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
151
151
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
152
152
|
*/
|
|
153
153
|
await this.loadMarkets();
|
|
@@ -161,7 +161,7 @@ export default class btcbox extends Exchange {
|
|
|
161
161
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
162
162
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
163
163
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
164
|
-
* @param {object} [params] extra parameters specific to the
|
|
164
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
165
165
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
166
166
|
*/
|
|
167
167
|
await this.loadMarkets();
|
|
@@ -207,7 +207,7 @@ export default class btcbox extends Exchange {
|
|
|
207
207
|
* @name btcbox#fetchTicker
|
|
208
208
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
209
209
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
210
|
-
* @param {object} [params] extra parameters specific to the
|
|
210
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
211
211
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
212
212
|
*/
|
|
213
213
|
await this.loadMarkets();
|
|
@@ -263,7 +263,7 @@ export default class btcbox extends Exchange {
|
|
|
263
263
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
264
264
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
265
265
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
266
|
-
* @param {object} [params] extra parameters specific to the
|
|
266
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
267
267
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
268
268
|
*/
|
|
269
269
|
await this.loadMarkets();
|
|
@@ -297,7 +297,7 @@ export default class btcbox extends Exchange {
|
|
|
297
297
|
* @param {string} side 'buy' or 'sell'
|
|
298
298
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
299
299
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
300
|
-
* @param {object} [params] extra parameters specific to the
|
|
300
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
301
301
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
302
302
|
*/
|
|
303
303
|
await this.loadMarkets();
|
|
@@ -324,7 +324,7 @@ export default class btcbox extends Exchange {
|
|
|
324
324
|
* @description cancels an open order
|
|
325
325
|
* @param {string} id order id
|
|
326
326
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
327
|
-
* @param {object} [params] extra parameters specific to the
|
|
327
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
328
328
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
329
329
|
*/
|
|
330
330
|
await this.loadMarkets();
|
|
@@ -418,7 +418,7 @@ export default class btcbox extends Exchange {
|
|
|
418
418
|
* @name btcbox#fetchOrder
|
|
419
419
|
* @description fetches information on an order made by the user
|
|
420
420
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
421
|
-
* @param {object} [params] extra parameters specific to the
|
|
421
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
422
422
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
423
423
|
*/
|
|
424
424
|
await this.loadMarkets();
|
|
@@ -488,7 +488,7 @@ export default class btcbox extends Exchange {
|
|
|
488
488
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
489
489
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
490
490
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
491
|
-
* @param {object} [params] extra parameters specific to the
|
|
491
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
492
492
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
493
493
|
*/
|
|
494
494
|
return await this.fetchOrdersByType('all', symbol, since, limit, params);
|
|
@@ -501,7 +501,7 @@ export default class btcbox extends Exchange {
|
|
|
501
501
|
* @param {string} symbol unified market symbol
|
|
502
502
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
503
503
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
504
|
-
* @param {object} [params] extra parameters specific to the
|
|
504
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
505
505
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
506
506
|
*/
|
|
507
507
|
return await this.fetchOrdersByType('open', symbol, since, limit, params);
|
package/js/src/btcmarkets.js
CHANGED
|
@@ -198,7 +198,7 @@ export default class btcmarkets extends Exchange {
|
|
|
198
198
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
199
199
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
200
200
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
201
|
-
* @param {object} [params] extra parameters specific to the
|
|
201
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
202
202
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
203
203
|
*/
|
|
204
204
|
return await this.fetchTransactionsWithMethod('privateGetTransfers', code, since, limit, params);
|
|
@@ -211,7 +211,7 @@ export default class btcmarkets extends Exchange {
|
|
|
211
211
|
* @param {string} code unified currency code
|
|
212
212
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
213
213
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
214
|
-
* @param {object} [params] extra parameters specific to the
|
|
214
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
215
215
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
216
216
|
*/
|
|
217
217
|
return await this.fetchTransactionsWithMethod('privateGetDeposits', code, since, limit, params);
|
|
@@ -224,7 +224,7 @@ export default class btcmarkets extends Exchange {
|
|
|
224
224
|
* @param {string} code unified currency code
|
|
225
225
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
226
226
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
227
|
-
* @param {object} [params] extra parameters specific to the
|
|
227
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
228
228
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
229
229
|
*/
|
|
230
230
|
return await this.fetchTransactionsWithMethod('privateGetWithdrawals', code, since, limit, params);
|
|
@@ -354,7 +354,7 @@ export default class btcmarkets extends Exchange {
|
|
|
354
354
|
* @method
|
|
355
355
|
* @name btcmarkets#fetchMarkets
|
|
356
356
|
* @description retrieves data on all markets for btcmarkets
|
|
357
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
357
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
358
358
|
* @returns {object[]} an array of objects representing market data
|
|
359
359
|
*/
|
|
360
360
|
const response = await this.publicGetMarkets(params);
|
|
@@ -445,7 +445,7 @@ export default class btcmarkets extends Exchange {
|
|
|
445
445
|
* @method
|
|
446
446
|
* @name btcmarkets#fetchTime
|
|
447
447
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
448
|
-
* @param {object} [params] extra parameters specific to the
|
|
448
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
449
449
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
450
450
|
*/
|
|
451
451
|
const response = await this.publicGetTime(params);
|
|
@@ -474,7 +474,7 @@ export default class btcmarkets extends Exchange {
|
|
|
474
474
|
* @method
|
|
475
475
|
* @name btcmarkets#fetchBalance
|
|
476
476
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
477
|
-
* @param {object} [params] extra parameters specific to the
|
|
477
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
478
478
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
479
479
|
*/
|
|
480
480
|
await this.loadMarkets();
|
|
@@ -510,7 +510,7 @@ export default class btcmarkets extends Exchange {
|
|
|
510
510
|
* @param {string} timeframe the length of time each candle represents
|
|
511
511
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
512
512
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
513
|
-
* @param {object} [params] extra parameters specific to the
|
|
513
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
514
514
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
515
515
|
*/
|
|
516
516
|
await this.loadMarkets();
|
|
@@ -547,7 +547,7 @@ export default class btcmarkets extends Exchange {
|
|
|
547
547
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
548
548
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
549
549
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
550
|
-
* @param {object} [params] extra parameters specific to the
|
|
550
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
551
551
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
552
552
|
*/
|
|
553
553
|
await this.loadMarkets();
|
|
@@ -633,7 +633,7 @@ export default class btcmarkets extends Exchange {
|
|
|
633
633
|
* @name btcmarkets#fetchTicker
|
|
634
634
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
635
635
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
636
|
-
* @param {object} [params] extra parameters specific to the
|
|
636
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
637
637
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
638
638
|
*/
|
|
639
639
|
await this.loadMarkets();
|
|
@@ -743,7 +743,7 @@ export default class btcmarkets extends Exchange {
|
|
|
743
743
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
744
744
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
745
745
|
* @param {int} [limit] the maximum amount of trades 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 {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
748
748
|
*/
|
|
749
749
|
await this.loadMarkets();
|
|
@@ -772,7 +772,7 @@ export default class btcmarkets extends Exchange {
|
|
|
772
772
|
* @param {string} side 'buy' or 'sell'
|
|
773
773
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
774
774
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
775
|
-
* @param {object} [params] extra parameters specific to the
|
|
775
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
776
776
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
777
777
|
*/
|
|
778
778
|
await this.loadMarkets();
|
|
@@ -869,7 +869,7 @@ export default class btcmarkets extends Exchange {
|
|
|
869
869
|
* @description cancel multiple orders
|
|
870
870
|
* @param {string[]} ids order ids
|
|
871
871
|
* @param {string} symbol not used by btcmarkets cancelOrders ()
|
|
872
|
-
* @param {object} [params] extra parameters specific to the
|
|
872
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
873
873
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
874
874
|
*/
|
|
875
875
|
await this.loadMarkets();
|
|
@@ -888,7 +888,7 @@ export default class btcmarkets extends Exchange {
|
|
|
888
888
|
* @description cancels an open order
|
|
889
889
|
* @param {string} id order id
|
|
890
890
|
* @param {string} symbol not used by btcmarket cancelOrder ()
|
|
891
|
-
* @param {object} [params] extra parameters specific to the
|
|
891
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
892
892
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
893
893
|
*/
|
|
894
894
|
await this.loadMarkets();
|
|
@@ -1006,7 +1006,7 @@ export default class btcmarkets extends Exchange {
|
|
|
1006
1006
|
* @name btcmarkets#fetchOrder
|
|
1007
1007
|
* @description fetches information on an order made by the user
|
|
1008
1008
|
* @param {string} symbol not used by btcmarkets fetchOrder
|
|
1009
|
-
* @param {object} [params] extra parameters specific to the
|
|
1009
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1010
1010
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1011
1011
|
*/
|
|
1012
1012
|
await this.loadMarkets();
|
|
@@ -1024,7 +1024,7 @@ export default class btcmarkets extends Exchange {
|
|
|
1024
1024
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1025
1025
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1026
1026
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1027
|
-
* @param {object} [params] extra parameters specific to the
|
|
1027
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1028
1028
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1029
1029
|
*/
|
|
1030
1030
|
await this.loadMarkets();
|
|
@@ -1053,7 +1053,7 @@ export default class btcmarkets extends Exchange {
|
|
|
1053
1053
|
* @param {string} symbol unified market symbol
|
|
1054
1054
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1055
1055
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1056
|
-
* @param {object} [params] extra parameters specific to the
|
|
1056
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1057
1057
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1058
1058
|
*/
|
|
1059
1059
|
const request = { 'status': 'open' };
|
|
@@ -1067,7 +1067,7 @@ export default class btcmarkets extends Exchange {
|
|
|
1067
1067
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1068
1068
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1069
1069
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1070
|
-
* @param {object} [params] extra parameters specific to the
|
|
1070
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1071
1071
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1072
1072
|
*/
|
|
1073
1073
|
const orders = await this.fetchOrders(symbol, since, limit, params);
|
|
@@ -1081,7 +1081,7 @@ export default class btcmarkets extends Exchange {
|
|
|
1081
1081
|
* @param {string} symbol unified market symbol
|
|
1082
1082
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1083
1083
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1084
|
-
* @param {object} [params] extra parameters specific to the
|
|
1084
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1085
1085
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1086
1086
|
*/
|
|
1087
1087
|
await this.loadMarkets();
|
|
@@ -1136,7 +1136,7 @@ export default class btcmarkets extends Exchange {
|
|
|
1136
1136
|
* @param {float} amount the amount to withdraw
|
|
1137
1137
|
* @param {string} address the address to withdraw to
|
|
1138
1138
|
* @param {string} tag
|
|
1139
|
-
* @param {object} [params] extra parameters specific to the
|
|
1139
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1140
1140
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1141
1141
|
*/
|
|
1142
1142
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
package/js/src/btcturk.js
CHANGED
|
@@ -145,7 +145,7 @@ export default class btcturk extends Exchange {
|
|
|
145
145
|
* @method
|
|
146
146
|
* @name btcturk#fetchMarkets
|
|
147
147
|
* @description retrieves data on all markets for btcturk
|
|
148
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
148
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
149
149
|
* @returns {object[]} an array of objects representing market data
|
|
150
150
|
*/
|
|
151
151
|
const response = await this.publicGetServerExchangeinfo(params);
|
|
@@ -294,7 +294,7 @@ export default class btcturk extends Exchange {
|
|
|
294
294
|
* @method
|
|
295
295
|
* @name btcturk#fetchBalance
|
|
296
296
|
* @description query for balance and get the amount of funds available for trading or funds locked in 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} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
299
299
|
*/
|
|
300
300
|
await this.loadMarkets();
|
|
@@ -324,7 +324,7 @@ export default class btcturk extends Exchange {
|
|
|
324
324
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
325
325
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
326
326
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
327
|
-
* @param {object} [params] extra parameters specific to the
|
|
327
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
328
328
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
329
329
|
*/
|
|
330
330
|
await this.loadMarkets();
|
|
@@ -401,9 +401,9 @@ export default class btcturk extends Exchange {
|
|
|
401
401
|
/**
|
|
402
402
|
* @method
|
|
403
403
|
* @name btcturk#fetchTickers
|
|
404
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
404
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
405
405
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
406
|
-
* @param {object} [params] extra parameters specific to the
|
|
406
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
407
407
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
408
408
|
*/
|
|
409
409
|
await this.loadMarkets();
|
|
@@ -417,7 +417,7 @@ export default class btcturk extends Exchange {
|
|
|
417
417
|
* @name btcturk#fetchTicker
|
|
418
418
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
419
419
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
420
|
-
* @param {object} [params] extra parameters specific to the
|
|
420
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
421
421
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
422
422
|
*/
|
|
423
423
|
await this.loadMarkets();
|
|
@@ -494,7 +494,7 @@ export default class btcturk extends Exchange {
|
|
|
494
494
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
495
495
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
496
496
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
497
|
-
* @param {object} [params] extra parameters specific to the
|
|
497
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
498
498
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
499
499
|
*/
|
|
500
500
|
await this.loadMarkets();
|
|
@@ -557,7 +557,7 @@ export default class btcturk extends Exchange {
|
|
|
557
557
|
* @param {string} timeframe the length of time each candle represents
|
|
558
558
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
559
559
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
560
|
-
* @param {object} [params] extra parameters specific to the
|
|
560
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
561
561
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
562
562
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
563
563
|
*/
|
|
@@ -659,7 +659,7 @@ export default class btcturk extends Exchange {
|
|
|
659
659
|
* @param {string} side 'buy' or 'sell'
|
|
660
660
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
661
661
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
662
|
-
* @param {object} [params] extra parameters specific to the
|
|
662
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
663
663
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
664
664
|
*/
|
|
665
665
|
await this.loadMarkets();
|
|
@@ -690,7 +690,7 @@ export default class btcturk extends Exchange {
|
|
|
690
690
|
* @description cancels an open order
|
|
691
691
|
* @param {string} id order id
|
|
692
692
|
* @param {string} symbol not used by btcturk cancelOrder ()
|
|
693
|
-
* @param {object} [params] extra parameters specific to the
|
|
693
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
694
694
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
695
695
|
*/
|
|
696
696
|
const request = {
|
|
@@ -706,7 +706,7 @@ export default class btcturk extends Exchange {
|
|
|
706
706
|
* @param {string} symbol unified market symbol
|
|
707
707
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
708
708
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
709
|
-
* @param {object} [params] extra parameters specific to the
|
|
709
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
710
710
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
711
711
|
*/
|
|
712
712
|
await this.loadMarkets();
|
|
@@ -730,7 +730,7 @@ export default class btcturk extends Exchange {
|
|
|
730
730
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
731
731
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
732
732
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
733
|
-
* @param {object} [params] extra parameters specific to the
|
|
733
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
734
734
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
735
735
|
*/
|
|
736
736
|
await this.loadMarkets();
|
|
@@ -852,7 +852,7 @@ export default class btcturk extends Exchange {
|
|
|
852
852
|
* @param {string} symbol unified market symbol
|
|
853
853
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
854
854
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
855
|
-
* @param {object} [params] extra parameters specific to the
|
|
855
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
856
856
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
857
857
|
*/
|
|
858
858
|
await this.loadMarkets();
|