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/dist/cjs/src/coinbase.js
CHANGED
|
@@ -308,7 +308,7 @@ class coinbase extends coinbase$1 {
|
|
|
308
308
|
* @name coinbase#fetchTime
|
|
309
309
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
310
310
|
* @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-time#http-request
|
|
311
|
-
* @param {object} [params] extra parameters specific to the
|
|
311
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
312
312
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
313
313
|
*/
|
|
314
314
|
const response = await this.v2PublicGetTime(params);
|
|
@@ -330,7 +330,7 @@ class coinbase extends coinbase$1 {
|
|
|
330
330
|
* @description fetch all the accounts associated with a profile
|
|
331
331
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getaccounts
|
|
332
332
|
* @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-accounts#list-accounts
|
|
333
|
-
* @param {object} [params] extra parameters specific to the
|
|
333
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
334
334
|
* @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)
|
|
335
335
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
336
336
|
*/
|
|
@@ -535,7 +535,7 @@ class coinbase extends coinbase$1 {
|
|
|
535
535
|
* @description create a currency deposit address
|
|
536
536
|
* @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-addresses#create-address
|
|
537
537
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
538
|
-
* @param {object} [params] extra parameters specific to the
|
|
538
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
539
539
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
540
540
|
*/
|
|
541
541
|
let accountId = this.safeString(params, 'account_id');
|
|
@@ -612,7 +612,7 @@ class coinbase extends coinbase$1 {
|
|
|
612
612
|
* @param {string} symbol not used by coinbase fetchMySells ()
|
|
613
613
|
* @param {int} [since] timestamp in ms of the earliest sell, default is undefined
|
|
614
614
|
* @param {int} [limit] max number of sells to return, default is undefined
|
|
615
|
-
* @param {object} [params] extra parameters specific to the
|
|
615
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
616
616
|
* @returns {object} a [list of order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
617
617
|
*/
|
|
618
618
|
// v2 did't have an endpoint for all historical trades
|
|
@@ -631,7 +631,7 @@ class coinbase extends coinbase$1 {
|
|
|
631
631
|
* @param {string} symbol not used by coinbase fetchMyBuys ()
|
|
632
632
|
* @param {int} [since] timestamp in ms of the earliest buy, default is undefined
|
|
633
633
|
* @param {int} [limit] max number of buys to return, default is undefined
|
|
634
|
-
* @param {object} [params] extra parameters specific to the
|
|
634
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
635
635
|
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
636
636
|
*/
|
|
637
637
|
// v2 did't have an endpoint for all historical trades
|
|
@@ -657,7 +657,7 @@ class coinbase extends coinbase$1 {
|
|
|
657
657
|
* @param {string} code unified currency code
|
|
658
658
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
659
659
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
660
|
-
* @param {object} [params] extra parameters specific to the
|
|
660
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
661
661
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
662
662
|
*/
|
|
663
663
|
// fiat only, for crypto transactions use fetchLedger
|
|
@@ -672,7 +672,7 @@ class coinbase extends coinbase$1 {
|
|
|
672
672
|
* @param {string} code unified currency code
|
|
673
673
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
674
674
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
675
|
-
* @param {object} [params] extra parameters specific to the
|
|
675
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
676
676
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
677
677
|
*/
|
|
678
678
|
// fiat only, for crypto transactions use fetchLedger
|
|
@@ -930,7 +930,7 @@ class coinbase extends coinbase$1 {
|
|
|
930
930
|
* @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-currencies#get-fiat-currencies
|
|
931
931
|
* @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-exchange-rates#get-exchange-rates
|
|
932
932
|
* @description retrieves data on all markets for coinbase
|
|
933
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
933
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
934
934
|
* @returns {object[]} an array of objects representing market data
|
|
935
935
|
*/
|
|
936
936
|
const method = this.safeString(this.options, 'fetchMarkets', 'fetchMarketsV3');
|
|
@@ -1154,7 +1154,7 @@ class coinbase extends coinbase$1 {
|
|
|
1154
1154
|
* @description fetches all available currencies on an exchange
|
|
1155
1155
|
* @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-currencies#get-fiat-currencies
|
|
1156
1156
|
* @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-exchange-rates#get-exchange-rates
|
|
1157
|
-
* @param {object} [params] extra parameters specific to the
|
|
1157
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1158
1158
|
* @returns {object} an associative dictionary of currencies
|
|
1159
1159
|
*/
|
|
1160
1160
|
const response = await this.fetchCurrenciesFromCache(params);
|
|
@@ -1228,11 +1228,11 @@ class coinbase extends coinbase$1 {
|
|
|
1228
1228
|
/**
|
|
1229
1229
|
* @method
|
|
1230
1230
|
* @name coinbase#fetchTickers
|
|
1231
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1231
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1232
1232
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getproducts
|
|
1233
1233
|
* @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-exchange-rates#get-exchange-rates
|
|
1234
1234
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1235
|
-
* @param {object} [params] extra parameters specific to the
|
|
1235
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1236
1236
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1237
1237
|
*/
|
|
1238
1238
|
const method = this.safeString(this.options, 'fetchTickers', 'fetchTickersV3');
|
|
@@ -1337,7 +1337,7 @@ class coinbase extends coinbase$1 {
|
|
|
1337
1337
|
* @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-prices#get-buy-price
|
|
1338
1338
|
* @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-prices#get-sell-price
|
|
1339
1339
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1340
|
-
* @param {object} [params] extra parameters specific to the
|
|
1340
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1341
1341
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1342
1342
|
*/
|
|
1343
1343
|
const method = this.safeString(this.options, 'fetchTicker', 'fetchTickerV3');
|
|
@@ -1587,7 +1587,7 @@ class coinbase extends coinbase$1 {
|
|
|
1587
1587
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1588
1588
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getaccounts
|
|
1589
1589
|
* @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-accounts#list-accounts
|
|
1590
|
-
* @param {object} [params] extra parameters specific to the
|
|
1590
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1591
1591
|
* @param {boolean} [params.v3] default false, set true to use v3 api endpoint
|
|
1592
1592
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1593
1593
|
*/
|
|
@@ -1687,7 +1687,7 @@ class coinbase extends coinbase$1 {
|
|
|
1687
1687
|
* @param {string} code unified currency code, default is undefined
|
|
1688
1688
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1689
1689
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1690
|
-
* @param {object} [params] extra parameters specific to the
|
|
1690
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1691
1691
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
1692
1692
|
*/
|
|
1693
1693
|
await this.loadMarkets();
|
|
@@ -2086,7 +2086,7 @@ class coinbase extends coinbase$1 {
|
|
|
2086
2086
|
* @param {string} side 'buy' or 'sell'
|
|
2087
2087
|
* @param {float} amount how much you want to trade in units of the base currency, quote currency for 'market' 'buy' orders
|
|
2088
2088
|
* @param {float} [price] the price to fulfill the order, in units of the quote currency, ignored in market orders
|
|
2089
|
-
* @param {object} [params] extra parameters specific to the
|
|
2089
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2090
2090
|
* @param {float} [params.stopPrice] price to trigger stop orders
|
|
2091
2091
|
* @param {float} [params.triggerPrice] price to trigger stop orders
|
|
2092
2092
|
* @param {float} [params.stopLossPrice] price to trigger stop-loss orders
|
|
@@ -2410,7 +2410,7 @@ class coinbase extends coinbase$1 {
|
|
|
2410
2410
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_cancelorders
|
|
2411
2411
|
* @param {string} id order id
|
|
2412
2412
|
* @param {string} symbol not used by coinbase cancelOrder()
|
|
2413
|
-
* @param {object} [params] extra parameters specific to the
|
|
2413
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2414
2414
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2415
2415
|
*/
|
|
2416
2416
|
await this.loadMarkets();
|
|
@@ -2425,7 +2425,7 @@ class coinbase extends coinbase$1 {
|
|
|
2425
2425
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_cancelorders
|
|
2426
2426
|
* @param {string[]} ids order ids
|
|
2427
2427
|
* @param {string} symbol not used by coinbase cancelOrders()
|
|
2428
|
-
* @param {object} [params] extra parameters specific to the
|
|
2428
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2429
2429
|
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2430
2430
|
*/
|
|
2431
2431
|
await this.loadMarkets();
|
|
@@ -2469,7 +2469,7 @@ class coinbase extends coinbase$1 {
|
|
|
2469
2469
|
* @param {string} side 'buy' or 'sell'
|
|
2470
2470
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
2471
2471
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
|
|
2472
|
-
* @param {object} [params] extra parameters specific to the
|
|
2472
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2473
2473
|
* @param {boolean} [params.preview] default to false, wether to use the test/preview endpoint or not
|
|
2474
2474
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2475
2475
|
*/
|
|
@@ -2512,7 +2512,7 @@ class coinbase extends coinbase$1 {
|
|
|
2512
2512
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_gethistoricalorder
|
|
2513
2513
|
* @param {string} id the order id
|
|
2514
2514
|
* @param {string} symbol unified market symbol that the order was made in
|
|
2515
|
-
* @param {object} [params] extra parameters specific to the
|
|
2515
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2516
2516
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2517
2517
|
*/
|
|
2518
2518
|
await this.loadMarkets();
|
|
@@ -2575,7 +2575,7 @@ class coinbase extends coinbase$1 {
|
|
|
2575
2575
|
* @param {string} symbol unified market symbol that the orders were made in
|
|
2576
2576
|
* @param {int} [since] the earliest time in ms to fetch orders
|
|
2577
2577
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2578
|
-
* @param {object} [params] extra parameters specific to the
|
|
2578
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2579
2579
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
2580
2580
|
* @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)
|
|
2581
2581
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2742,7 +2742,7 @@ class coinbase extends coinbase$1 {
|
|
|
2742
2742
|
* @param {string} symbol unified market symbol of the orders
|
|
2743
2743
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
2744
2744
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
2745
|
-
* @param {object} [params] extra parameters specific to the
|
|
2745
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2746
2746
|
* @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)
|
|
2747
2747
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
2748
2748
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2764,7 +2764,7 @@ class coinbase extends coinbase$1 {
|
|
|
2764
2764
|
* @param {string} symbol unified market symbol of the orders
|
|
2765
2765
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
2766
2766
|
* @param {int} [limit] the maximum number of closed order structures to retrieve
|
|
2767
|
-
* @param {object} [params] extra parameters specific to the
|
|
2767
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2768
2768
|
* @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)
|
|
2769
2769
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
2770
2770
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2786,7 +2786,7 @@ class coinbase extends coinbase$1 {
|
|
|
2786
2786
|
* @param {string} symbol unified market symbol of the orders
|
|
2787
2787
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
2788
2788
|
* @param {int} [limit] the maximum number of canceled order structures to retrieve
|
|
2789
|
-
* @param {object} [params] extra parameters specific to the
|
|
2789
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2790
2790
|
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2791
2791
|
*/
|
|
2792
2792
|
return await this.fetchOrdersByStatus('CANCELLED', symbol, since, limit, params);
|
|
@@ -2801,7 +2801,7 @@ class coinbase extends coinbase$1 {
|
|
|
2801
2801
|
* @param {string} timeframe the length of time each candle represents
|
|
2802
2802
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
2803
2803
|
* @param {int} [limit] the maximum amount of candles to fetch, not used by coinbase
|
|
2804
|
-
* @param {object} [params] extra parameters specific to the
|
|
2804
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2805
2805
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
2806
2806
|
* @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)
|
|
2807
2807
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
@@ -2885,7 +2885,7 @@ class coinbase extends coinbase$1 {
|
|
|
2885
2885
|
* @param {string} symbol unified market symbol of the trades
|
|
2886
2886
|
* @param {int} [since] not used by coinbase fetchTrades
|
|
2887
2887
|
* @param {int} [limit] the maximum number of trade structures to fetch
|
|
2888
|
-
* @param {object} [params] extra parameters specific to the
|
|
2888
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2889
2889
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
2890
2890
|
*/
|
|
2891
2891
|
await this.loadMarkets();
|
|
@@ -2925,7 +2925,7 @@ class coinbase extends coinbase$1 {
|
|
|
2925
2925
|
* @param {string} symbol unified market symbol of the trades
|
|
2926
2926
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
2927
2927
|
* @param {int} [limit] the maximum number of trade structures to fetch
|
|
2928
|
-
* @param {object} [params] extra parameters specific to the
|
|
2928
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2929
2929
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
2930
2930
|
* @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)
|
|
2931
2931
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -2996,7 +2996,7 @@ class coinbase extends coinbase$1 {
|
|
|
2996
2996
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getproductbook
|
|
2997
2997
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
2998
2998
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
2999
|
-
* @param {object} [params] extra parameters specific to the
|
|
2999
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3000
3000
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
3001
3001
|
*/
|
|
3002
3002
|
await this.loadMarkets();
|
|
@@ -3040,7 +3040,7 @@ class coinbase extends coinbase$1 {
|
|
|
3040
3040
|
* @description fetches the bid and ask price and volume for multiple markets
|
|
3041
3041
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_getbestbidask
|
|
3042
3042
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
3043
|
-
* @param {object} [params] extra parameters specific to the
|
|
3043
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3044
3044
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
3045
3045
|
*/
|
|
3046
3046
|
await this.loadMarkets();
|
|
@@ -232,7 +232,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
232
232
|
* @name coinbasepro#fetchCurrencies
|
|
233
233
|
* @description fetches all available currencies on an exchange
|
|
234
234
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getcurrencies
|
|
235
|
-
* @param {object} [params] extra parameters specific to the
|
|
235
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
236
236
|
* @returns {object} an associative dictionary of currencies
|
|
237
237
|
*/
|
|
238
238
|
const response = await this.publicGetCurrencies(params);
|
|
@@ -303,7 +303,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
303
303
|
* @name coinbasepro#fetchMarkets
|
|
304
304
|
* @description retrieves data on all markets for coinbasepro
|
|
305
305
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproducts
|
|
306
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
306
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
307
307
|
* @returns {object[]} an array of objects representing market data
|
|
308
308
|
*/
|
|
309
309
|
const response = await this.publicGetProducts(params);
|
|
@@ -424,7 +424,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
424
424
|
* @name coinbasepro#fetchAccounts
|
|
425
425
|
* @description fetch all the accounts associated with a profile
|
|
426
426
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounts
|
|
427
|
-
* @param {object} [params] extra parameters specific to the
|
|
427
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
428
428
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
429
429
|
*/
|
|
430
430
|
await this.loadMarkets();
|
|
@@ -490,7 +490,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
490
490
|
* @name coinbasepro#fetchBalance
|
|
491
491
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
492
492
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounts
|
|
493
|
-
* @param {object} [params] extra parameters specific to the
|
|
493
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
494
494
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
495
495
|
*/
|
|
496
496
|
await this.loadMarkets();
|
|
@@ -505,7 +505,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
505
505
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
506
506
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
507
507
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
508
|
-
* @param {object} [params] extra parameters specific to the
|
|
508
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
509
509
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
510
510
|
*/
|
|
511
511
|
await this.loadMarkets();
|
|
@@ -621,10 +621,10 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
621
621
|
/**
|
|
622
622
|
* @method
|
|
623
623
|
* @name coinbasepro#fetchTickers
|
|
624
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
624
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
625
625
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproduct
|
|
626
626
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
627
|
-
* @param {object} [params] extra parameters specific to the
|
|
627
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
628
628
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
629
629
|
*/
|
|
630
630
|
await this.loadMarkets();
|
|
@@ -671,7 +671,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
671
671
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproductticker
|
|
672
672
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
673
673
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
674
|
-
* @param {object} [params] extra parameters specific to the
|
|
674
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
675
675
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
676
676
|
*/
|
|
677
677
|
await this.loadMarkets();
|
|
@@ -787,7 +787,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
787
787
|
* @param {string} symbol unified market symbol
|
|
788
788
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
789
789
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
790
|
-
* @param {object} [params] extra parameters specific to the
|
|
790
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
791
791
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
792
792
|
* @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)
|
|
793
793
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -828,7 +828,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
828
828
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
829
829
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
830
830
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
831
|
-
* @param {object} [params] extra parameters specific to the
|
|
831
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
832
832
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
833
833
|
*/
|
|
834
834
|
await this.loadMarkets();
|
|
@@ -859,7 +859,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
859
859
|
* @name coinbasepro#fetchTradingFees
|
|
860
860
|
* @description fetch the trading fees for multiple markets
|
|
861
861
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getfees
|
|
862
|
-
* @param {object} [params] extra parameters specific to the
|
|
862
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
863
863
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
864
864
|
*/
|
|
865
865
|
await this.loadMarkets();
|
|
@@ -917,7 +917,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
917
917
|
* @param {string} timeframe the length of time each candle represents
|
|
918
918
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
919
919
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
920
|
-
* @param {object} [params] extra parameters specific to the
|
|
920
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
921
921
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
922
922
|
* @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)
|
|
923
923
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
@@ -978,7 +978,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
978
978
|
* @method
|
|
979
979
|
* @name coinbasepro#fetchTime
|
|
980
980
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
981
|
-
* @param {object} [params] extra parameters specific to the
|
|
981
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
982
982
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
983
983
|
*/
|
|
984
984
|
const response = await this.publicGetTime(params);
|
|
@@ -1083,7 +1083,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1083
1083
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorder
|
|
1084
1084
|
* @description fetches information on an order made by the user
|
|
1085
1085
|
* @param {string} symbol not used by coinbasepro fetchOrder
|
|
1086
|
-
* @param {object} [params] extra parameters specific to the
|
|
1086
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1087
1087
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1088
1088
|
*/
|
|
1089
1089
|
await this.loadMarkets();
|
|
@@ -1111,7 +1111,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1111
1111
|
* @param {string} symbol unified market symbol
|
|
1112
1112
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1113
1113
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1114
|
-
* @param {object} [params] extra parameters specific to the
|
|
1114
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1115
1115
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1116
1116
|
*/
|
|
1117
1117
|
await this.loadMarkets();
|
|
@@ -1134,7 +1134,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1134
1134
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1135
1135
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1136
1136
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1137
|
-
* @param {object} [params] extra parameters specific to the
|
|
1137
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1138
1138
|
* @param {int} [params.until] the latest time in ms to fetch open orders for
|
|
1139
1139
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1140
1140
|
*/
|
|
@@ -1152,7 +1152,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1152
1152
|
* @param {string} symbol unified market symbol
|
|
1153
1153
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1154
1154
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1155
|
-
* @param {object} [params] extra parameters specific to the
|
|
1155
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1156
1156
|
* @param {int} [params.until] the latest time in ms to fetch open orders for
|
|
1157
1157
|
* @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)
|
|
1158
1158
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1192,7 +1192,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1192
1192
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1193
1193
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1194
1194
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1195
|
-
* @param {object} [params] extra parameters specific to the
|
|
1195
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1196
1196
|
* @param {int} [params.until] the latest time in ms to fetch open orders for
|
|
1197
1197
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1198
1198
|
*/
|
|
@@ -1212,7 +1212,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1212
1212
|
* @param {string} side 'buy' or 'sell'
|
|
1213
1213
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1214
1214
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1215
|
-
* @param {object} [params] extra parameters specific to the
|
|
1215
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1216
1216
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1217
1217
|
*/
|
|
1218
1218
|
await this.loadMarkets();
|
|
@@ -1305,7 +1305,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1305
1305
|
* @description cancels an open order
|
|
1306
1306
|
* @param {string} id order id
|
|
1307
1307
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1308
|
-
* @param {object} [params] extra parameters specific to the
|
|
1308
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1309
1309
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1310
1310
|
*/
|
|
1311
1311
|
await this.loadMarkets();
|
|
@@ -1337,7 +1337,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1337
1337
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_deleteorders
|
|
1338
1338
|
* @description cancel all open orders
|
|
1339
1339
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1340
|
-
* @param {object} [params] extra parameters specific to the
|
|
1340
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1341
1341
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1342
1342
|
*/
|
|
1343
1343
|
await this.loadMarkets();
|
|
@@ -1406,7 +1406,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1406
1406
|
* @param {float} amount the amount to withdraw
|
|
1407
1407
|
* @param {string} address the address to withdraw to
|
|
1408
1408
|
* @param {string} tag
|
|
1409
|
-
* @param {object} [params] extra parameters specific to the
|
|
1409
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1410
1410
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1411
1411
|
*/
|
|
1412
1412
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1530,7 +1530,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1530
1530
|
* @param {string} code unified currency code, default is undefined
|
|
1531
1531
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1532
1532
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1533
|
-
* @param {object} [params] extra parameters specific to the
|
|
1533
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1534
1534
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
1535
1535
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
1536
1536
|
*/
|
|
@@ -1582,7 +1582,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1582
1582
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1583
1583
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1584
1584
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1585
|
-
* @param {object} [params] extra parameters specific to the
|
|
1585
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1586
1586
|
* @param {string} [params.id] account id, when defined, the endpoint used is '/accounts/{account_id}/transfers/' instead of '/transfers/'
|
|
1587
1587
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1588
1588
|
*/
|
|
@@ -1690,7 +1690,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1690
1690
|
* @param {string} code unified currency code
|
|
1691
1691
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1692
1692
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1693
|
-
* @param {object} [params] extra parameters specific to the
|
|
1693
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1694
1694
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1695
1695
|
*/
|
|
1696
1696
|
return await this.fetchDepositsWithdrawals(code, since, limit, this.extend({ 'type': 'deposit' }, params));
|
|
@@ -1705,7 +1705,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1705
1705
|
* @param {string} code unified currency code
|
|
1706
1706
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1707
1707
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1708
|
-
* @param {object} [params] extra parameters specific to the
|
|
1708
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1709
1709
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1710
1710
|
*/
|
|
1711
1711
|
return await this.fetchDepositsWithdrawals(code, since, limit, this.extend({ 'type': 'withdraw' }, params));
|
|
@@ -1814,7 +1814,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1814
1814
|
* @description create a currency deposit address
|
|
1815
1815
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postcoinbaseaccountaddresses
|
|
1816
1816
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1817
|
-
* @param {object} [params] extra parameters specific to the
|
|
1817
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1818
1818
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1819
1819
|
*/
|
|
1820
1820
|
await this.loadMarkets();
|
|
@@ -186,7 +186,7 @@ class coincheck extends coincheck$1 {
|
|
|
186
186
|
* @method
|
|
187
187
|
* @name coincheck#fetchBalance
|
|
188
188
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
189
|
-
* @param {object} [params] extra parameters specific to the
|
|
189
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
190
190
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
191
191
|
*/
|
|
192
192
|
await this.loadMarkets();
|
|
@@ -201,7 +201,7 @@ class coincheck extends coincheck$1 {
|
|
|
201
201
|
* @param {string} symbol unified market symbol
|
|
202
202
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
203
203
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
204
|
-
* @param {object} [params] extra parameters specific to the
|
|
204
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
205
205
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
206
206
|
*/
|
|
207
207
|
await this.loadMarkets();
|
|
@@ -275,7 +275,7 @@ class coincheck extends coincheck$1 {
|
|
|
275
275
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
276
276
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
277
277
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
278
|
-
* @param {object} [params] extra parameters specific to the
|
|
278
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
279
279
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
280
280
|
*/
|
|
281
281
|
await this.loadMarkets();
|
|
@@ -330,7 +330,7 @@ class coincheck extends coincheck$1 {
|
|
|
330
330
|
* @name coincheck#fetchTicker
|
|
331
331
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
332
332
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
333
|
-
* @param {object} [params] extra parameters specific to the
|
|
333
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
334
334
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
335
335
|
*/
|
|
336
336
|
if (symbol !== 'BTC/JPY') {
|
|
@@ -445,7 +445,7 @@ class coincheck extends coincheck$1 {
|
|
|
445
445
|
* @param {string} symbol unified market symbol
|
|
446
446
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
447
447
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
448
|
-
* @param {object} [params] extra parameters specific to the
|
|
448
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
449
449
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
450
450
|
*/
|
|
451
451
|
await this.loadMarkets();
|
|
@@ -488,7 +488,7 @@ class coincheck extends coincheck$1 {
|
|
|
488
488
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
489
489
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
490
490
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
491
|
-
* @param {object} [params] extra parameters specific to the
|
|
491
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
492
492
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
493
493
|
*/
|
|
494
494
|
await this.loadMarkets();
|
|
@@ -518,7 +518,7 @@ class coincheck extends coincheck$1 {
|
|
|
518
518
|
* @method
|
|
519
519
|
* @name coincheck#fetchTradingFees
|
|
520
520
|
* @description fetch the trading fees for multiple markets
|
|
521
|
-
* @param {object} [params] extra parameters specific to the
|
|
521
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
522
522
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
523
523
|
*/
|
|
524
524
|
await this.loadMarkets();
|
|
@@ -569,7 +569,7 @@ class coincheck extends coincheck$1 {
|
|
|
569
569
|
* @param {string} side 'buy' or 'sell'
|
|
570
570
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
571
571
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
572
|
-
* @param {object} [params] extra parameters specific to the
|
|
572
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
573
573
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
574
574
|
*/
|
|
575
575
|
await this.loadMarkets();
|
|
@@ -602,7 +602,7 @@ class coincheck extends coincheck$1 {
|
|
|
602
602
|
* @description cancels an open order
|
|
603
603
|
* @param {string} id order id
|
|
604
604
|
* @param {string} symbol not used by coincheck cancelOrder ()
|
|
605
|
-
* @param {object} [params] extra parameters specific to the
|
|
605
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
606
606
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
607
607
|
*/
|
|
608
608
|
const request = {
|
|
@@ -618,7 +618,7 @@ class coincheck extends coincheck$1 {
|
|
|
618
618
|
* @param {string} code unified currency code
|
|
619
619
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
620
620
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
621
|
-
* @param {object} [params] extra parameters specific to the
|
|
621
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
622
622
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
623
623
|
*/
|
|
624
624
|
await this.loadMarkets();
|
|
@@ -666,7 +666,7 @@ class coincheck extends coincheck$1 {
|
|
|
666
666
|
* @param {string} code unified currency code
|
|
667
667
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
668
668
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
669
|
-
* @param {object} [params] extra parameters specific to the
|
|
669
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
670
670
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
671
671
|
*/
|
|
672
672
|
await this.loadMarkets();
|