ccxt 4.0.73 → 4.0.75
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 +11 -11
- package/dist/ccxt.browser.js +2058 -1943
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +9 -9
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +22 -22
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +17 -17
- package/dist/cjs/src/binance.js +51 -51
- package/dist/cjs/src/bingx.js +25 -26
- package/dist/cjs/src/bit2c.js +10 -10
- package/dist/cjs/src/bitbank.js +11 -11
- package/dist/cjs/src/bitbns.js +12 -12
- package/dist/cjs/src/bitfinex.js +19 -19
- package/dist/cjs/src/bitfinex2.js +25 -25
- package/dist/cjs/src/bitflyer.js +15 -15
- package/dist/cjs/src/bitforex.js +9 -9
- package/dist/cjs/src/bitget.js +34 -34
- package/dist/cjs/src/bithumb.js +9 -9
- package/dist/cjs/src/bitmart.js +42 -29
- package/dist/cjs/src/bitmex.js +19 -19
- package/dist/cjs/src/bitopro.js +18 -18
- package/dist/cjs/src/bitpanda.js +19 -19
- package/dist/cjs/src/bitrue.js +15 -15
- package/dist/cjs/src/bitso.js +19 -19
- package/dist/cjs/src/bitstamp.js +19 -19
- package/dist/cjs/src/bitstamp1.js +6 -6
- package/dist/cjs/src/bittrex.js +24 -24
- package/dist/cjs/src/bitvavo.js +16 -16
- package/dist/cjs/src/bkex.js +17 -17
- package/dist/cjs/src/bl3p.js +6 -6
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +13 -13
- package/dist/cjs/src/btcbox.js +8 -8
- package/dist/cjs/src/btcmarkets.js +15 -15
- package/dist/cjs/src/btctradeua.js +6 -6
- package/dist/cjs/src/btcturk.js +9 -9
- package/dist/cjs/src/bybit.js +148 -116
- package/dist/cjs/src/cex.js +12 -12
- package/dist/cjs/src/coinbase.js +20 -20
- package/dist/cjs/src/coinbasepro.js +22 -22
- package/dist/cjs/src/coincheck.js +10 -10
- package/dist/cjs/src/coinex.js +81 -35
- package/dist/cjs/src/coinfalcon.js +14 -14
- package/dist/cjs/src/coinmate.js +12 -12
- package/dist/cjs/src/coinone.js +10 -10
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +6 -6
- package/dist/cjs/src/cryptocom.js +24 -24
- package/dist/cjs/src/currencycom.js +18 -18
- package/dist/cjs/src/delta.js +23 -23
- package/dist/cjs/src/deribit.js +27 -27
- package/dist/cjs/src/digifinex.js +27 -27
- package/dist/cjs/src/exmo.js +24 -24
- package/dist/cjs/src/gate.js +34 -34
- package/dist/cjs/src/gemini.js +14 -14
- package/dist/cjs/src/hitbtc.js +30 -30
- package/dist/cjs/src/hollaex.js +20 -20
- package/dist/cjs/src/huobi.js +40 -40
- package/dist/cjs/src/huobijp.js +18 -18
- package/dist/cjs/src/idex.js +17 -17
- package/dist/cjs/src/independentreserve.js +10 -10
- package/dist/cjs/src/indodax.js +12 -12
- package/dist/cjs/src/kraken.js +25 -25
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +29 -29
- package/dist/cjs/src/kucoinfutures.js +19 -19
- package/dist/cjs/src/kuna.js +10 -10
- package/dist/cjs/src/latoken.js +15 -15
- package/dist/cjs/src/lbank.js +10 -10
- package/dist/cjs/src/lbank2.js +21 -21
- package/dist/cjs/src/luno.js +14 -14
- package/dist/cjs/src/lykke.js +14 -14
- package/dist/cjs/src/mercado.js +10 -10
- package/dist/cjs/src/mexc.js +38 -38
- package/dist/cjs/src/ndax.js +18 -18
- package/dist/cjs/src/novadax.js +18 -18
- package/dist/cjs/src/oceanex.js +14 -14
- package/dist/cjs/src/okcoin.js +19 -19
- package/dist/cjs/src/okx.js +48 -48
- package/dist/cjs/src/paymium.js +9 -9
- package/dist/cjs/src/phemex.js +24 -24
- package/dist/cjs/src/poloniex.js +77 -60
- package/dist/cjs/src/poloniexfutures.js +16 -16
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +10 -10
- package/dist/cjs/src/pro/bitfinex.js +3 -3
- package/dist/cjs/src/pro/bitfinex2.js +4 -4
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +3 -3
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +2 -2
- package/dist/cjs/src/pro/bittrex.js +4 -4
- package/dist/cjs/src/pro/bitvavo.js +4 -4
- package/dist/cjs/src/pro/bybit.js +12 -11
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbasepro.js +5 -5
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +7 -7
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +2 -2
- package/dist/cjs/src/pro/gate.js +5 -5
- package/dist/cjs/src/pro/gemini.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +2 -2
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/huobi.js +4 -4
- package/dist/cjs/src/pro/huobijp.js +2 -2
- package/dist/cjs/src/pro/idex.js +3 -3
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/kucoinfutures.js +3 -3
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/ndax.js +2 -2
- package/dist/cjs/src/pro/okcoin.js +3 -3
- package/dist/cjs/src/pro/okx.js +12 -11
- package/dist/cjs/src/pro/phemex.js +4 -4
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/upbit.js +2 -2
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +4 -4
- package/dist/cjs/src/probit.js +17 -17
- package/dist/cjs/src/tidex.js +11 -11
- package/dist/cjs/src/timex.js +14 -14
- package/dist/cjs/src/tokocrypto.js +16 -16
- package/dist/cjs/src/upbit.js +18 -18
- package/dist/cjs/src/wavesexchange.js +13 -13
- package/dist/cjs/src/wazirx.js +10 -10
- package/dist/cjs/src/whitebit.js +21 -21
- package/dist/cjs/src/woo.js +28 -22
- package/dist/cjs/src/yobit.js +14 -14
- package/dist/cjs/src/zaif.js +8 -8
- package/dist/cjs/src/zonda.js +13 -13
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +9 -9
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +22 -22
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +17 -17
- package/js/src/binance.js +51 -51
- package/js/src/bingx.js +25 -26
- package/js/src/bit2c.js +10 -10
- package/js/src/bitbank.js +11 -11
- package/js/src/bitbns.js +12 -12
- package/js/src/bitfinex.js +19 -19
- package/js/src/bitfinex2.js +25 -25
- package/js/src/bitflyer.js +15 -15
- package/js/src/bitforex.js +9 -9
- package/js/src/bitget.js +34 -34
- package/js/src/bithumb.js +9 -9
- package/js/src/bitmart.js +42 -29
- package/js/src/bitmex.js +19 -19
- package/js/src/bitopro.js +18 -18
- package/js/src/bitpanda.js +19 -19
- package/js/src/bitrue.js +15 -15
- package/js/src/bitso.js +19 -19
- package/js/src/bitstamp.js +19 -19
- package/js/src/bitstamp1.js +6 -6
- package/js/src/bittrex.js +24 -24
- package/js/src/bitvavo.js +16 -16
- package/js/src/bkex.js +17 -17
- package/js/src/bl3p.js +6 -6
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +13 -13
- package/js/src/btcbox.js +8 -8
- package/js/src/btcmarkets.js +15 -15
- package/js/src/btctradeua.js +6 -6
- package/js/src/btcturk.js +9 -9
- package/js/src/bybit.js +148 -116
- package/js/src/cex.js +12 -12
- package/js/src/coinbase.js +20 -20
- package/js/src/coinbasepro.js +22 -22
- package/js/src/coincheck.js +10 -10
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +81 -35
- package/js/src/coinfalcon.js +14 -14
- package/js/src/coinmate.js +12 -12
- package/js/src/coinone.js +10 -10
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.js +6 -6
- package/js/src/cryptocom.js +24 -24
- package/js/src/currencycom.js +18 -18
- package/js/src/delta.js +23 -23
- package/js/src/deribit.js +27 -27
- package/js/src/digifinex.js +27 -27
- package/js/src/exmo.js +24 -24
- package/js/src/gate.js +34 -34
- package/js/src/gemini.js +14 -14
- package/js/src/hitbtc.js +30 -30
- package/js/src/hollaex.js +20 -20
- package/js/src/huobi.js +40 -40
- package/js/src/huobijp.js +18 -18
- package/js/src/idex.js +17 -17
- package/js/src/independentreserve.js +10 -10
- package/js/src/indodax.js +12 -12
- package/js/src/kraken.js +25 -25
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +29 -29
- package/js/src/kucoinfutures.js +19 -19
- package/js/src/kuna.js +10 -10
- package/js/src/latoken.js +15 -15
- package/js/src/lbank.js +10 -10
- package/js/src/lbank2.js +21 -21
- package/js/src/luno.js +14 -14
- package/js/src/lykke.js +14 -14
- package/js/src/mercado.js +10 -10
- package/js/src/mexc.js +38 -38
- package/js/src/ndax.js +18 -18
- package/js/src/novadax.js +18 -18
- package/js/src/oceanex.js +14 -14
- package/js/src/okcoin.js +19 -19
- package/js/src/okx.js +48 -48
- package/js/src/paymium.js +9 -9
- package/js/src/phemex.js +24 -24
- package/js/src/poloniex.js +77 -60
- package/js/src/poloniexfutures.js +16 -16
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +10 -10
- package/js/src/pro/bitfinex.js +3 -3
- package/js/src/pro/bitfinex2.js +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.js +3 -3
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +2 -2
- package/js/src/pro/bittrex.js +4 -4
- package/js/src/pro/bitvavo.js +4 -4
- package/js/src/pro/bybit.d.ts +1 -1
- package/js/src/pro/bybit.js +12 -11
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbasepro.js +5 -5
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/cryptocom.js +7 -7
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +2 -2
- package/js/src/pro/gate.js +5 -5
- package/js/src/pro/gemini.js +2 -2
- package/js/src/pro/hitbtc.js +2 -2
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/huobi.js +4 -4
- package/js/src/pro/huobijp.js +2 -2
- package/js/src/pro/idex.js +3 -3
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/kucoinfutures.js +3 -3
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/ndax.js +2 -2
- package/js/src/pro/okcoin.js +3 -3
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +12 -11
- package/js/src/pro/phemex.js +4 -4
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/upbit.js +2 -2
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +4 -4
- package/js/src/probit.js +17 -17
- package/js/src/tidex.js +11 -11
- package/js/src/timex.js +14 -14
- package/js/src/tokocrypto.js +16 -16
- package/js/src/upbit.js +18 -18
- package/js/src/wavesexchange.js +13 -13
- package/js/src/wazirx.js +10 -10
- package/js/src/whitebit.js +21 -21
- package/js/src/woo.js +28 -22
- package/js/src/yobit.js +14 -14
- package/js/src/zaif.js +8 -8
- package/js/src/zonda.js +13 -13
- package/package.json +1 -1
package/dist/cjs/src/cex.js
CHANGED
|
@@ -478,7 +478,7 @@ class cex extends cex$1 {
|
|
|
478
478
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
479
479
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
480
480
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
481
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
481
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
482
482
|
*/
|
|
483
483
|
await this.loadMarkets();
|
|
484
484
|
const market = this.market(symbol);
|
|
@@ -597,7 +597,7 @@ class cex extends cex$1 {
|
|
|
597
597
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
598
598
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
599
599
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
600
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
600
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
601
601
|
*/
|
|
602
602
|
await this.loadMarkets();
|
|
603
603
|
symbols = this.marketSymbols(symbols);
|
|
@@ -624,7 +624,7 @@ class cex extends cex$1 {
|
|
|
624
624
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
625
625
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
626
626
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
627
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
627
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
628
628
|
*/
|
|
629
629
|
await this.loadMarkets();
|
|
630
630
|
const market = this.market(symbol);
|
|
@@ -694,7 +694,7 @@ class cex extends cex$1 {
|
|
|
694
694
|
* @name cex#fetchTradingFees
|
|
695
695
|
* @description fetch the trading fees for multiple markets
|
|
696
696
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
697
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
697
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
698
698
|
*/
|
|
699
699
|
await this.loadMarkets();
|
|
700
700
|
const response = await this.privatePostGetMyfee(params);
|
|
@@ -739,9 +739,9 @@ class cex extends cex$1 {
|
|
|
739
739
|
* @param {string} type 'market' or 'limit'
|
|
740
740
|
* @param {string} side 'buy' or 'sell'
|
|
741
741
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
742
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
742
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
743
743
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
744
|
-
* @returns {object} an [order structure]{@link https://
|
|
744
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
745
745
|
*/
|
|
746
746
|
// for market buy it requires the amount of quote currency to spend
|
|
747
747
|
if ((type === 'market') && (side === 'buy')) {
|
|
@@ -820,7 +820,7 @@ class cex extends cex$1 {
|
|
|
820
820
|
* @param {string} id order id
|
|
821
821
|
* @param {string} symbol not used by cex cancelOrder ()
|
|
822
822
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
823
|
-
* @returns {object} An [order structure]{@link https://
|
|
823
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
824
824
|
*/
|
|
825
825
|
await this.loadMarkets();
|
|
826
826
|
const request = {
|
|
@@ -1105,7 +1105,7 @@ class cex extends cex$1 {
|
|
|
1105
1105
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1106
1106
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1107
1107
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
1108
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1108
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1109
1109
|
*/
|
|
1110
1110
|
await this.loadMarkets();
|
|
1111
1111
|
const request = {};
|
|
@@ -1131,7 +1131,7 @@ class cex extends cex$1 {
|
|
|
1131
1131
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1132
1132
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1133
1133
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
1134
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1134
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1135
1135
|
*/
|
|
1136
1136
|
await this.loadMarkets();
|
|
1137
1137
|
const method = 'privatePostArchivedOrdersPair';
|
|
@@ -1150,7 +1150,7 @@ class cex extends cex$1 {
|
|
|
1150
1150
|
* @description fetches information on an order made by the user
|
|
1151
1151
|
* @param {string} symbol not used by cex fetchOrder
|
|
1152
1152
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
1153
|
-
* @returns {object} An [order structure]{@link https://
|
|
1153
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1154
1154
|
*/
|
|
1155
1155
|
await this.loadMarkets();
|
|
1156
1156
|
const request = {
|
|
@@ -1269,7 +1269,7 @@ class cex extends cex$1 {
|
|
|
1269
1269
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1270
1270
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1271
1271
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
1272
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1272
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1273
1273
|
*/
|
|
1274
1274
|
await this.loadMarkets();
|
|
1275
1275
|
const market = this.market(symbol);
|
|
@@ -1512,7 +1512,7 @@ class cex extends cex$1 {
|
|
|
1512
1512
|
* @description fetch the deposit address for a currency associated with this account
|
|
1513
1513
|
* @param {string} code unified currency code
|
|
1514
1514
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
1515
|
-
* @returns {object} an [address structure]{@link https://
|
|
1515
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1516
1516
|
*/
|
|
1517
1517
|
await this.loadMarkets();
|
|
1518
1518
|
const currency = this.currency(code);
|
package/dist/cjs/src/coinbase.js
CHANGED
|
@@ -319,7 +319,7 @@ class coinbase extends coinbase$1 {
|
|
|
319
319
|
* @name coinbase#fetchAccounts
|
|
320
320
|
* @description fetch all the accounts associated with a profile
|
|
321
321
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
322
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
322
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
323
323
|
*/
|
|
324
324
|
const method = this.safeString(this.options, 'fetchAccounts', 'fetchAccountsV3');
|
|
325
325
|
if (method === 'fetchAccountsV3') {
|
|
@@ -496,7 +496,7 @@ class coinbase extends coinbase$1 {
|
|
|
496
496
|
* @description create a currency deposit address
|
|
497
497
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
498
498
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
499
|
-
* @returns {object} an [address structure]{@link https://
|
|
499
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
500
500
|
*/
|
|
501
501
|
let accountId = this.safeString(params, 'account_id');
|
|
502
502
|
params = this.omit(params, 'account_id');
|
|
@@ -572,7 +572,7 @@ class coinbase extends coinbase$1 {
|
|
|
572
572
|
* @param {int} [since] timestamp in ms of the earliest sell, default is undefined
|
|
573
573
|
* @param {int} [limit] max number of sells to return, default is undefined
|
|
574
574
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
575
|
-
* @returns {object} a [list of order structures]{@link https://
|
|
575
|
+
* @returns {object} a [list of order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
576
576
|
*/
|
|
577
577
|
// v2 did't have an endpoint for all historical trades
|
|
578
578
|
const request = this.prepareAccountRequest(limit, params);
|
|
@@ -590,7 +590,7 @@ class coinbase extends coinbase$1 {
|
|
|
590
590
|
* @param {int} [since] timestamp in ms of the earliest buy, default is undefined
|
|
591
591
|
* @param {int} [limit] max number of buys to return, default is undefined
|
|
592
592
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
593
|
-
* @returns {object} a list of [order structures]{@link https://
|
|
593
|
+
* @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
594
594
|
*/
|
|
595
595
|
// v2 did't have an endpoint for all historical trades
|
|
596
596
|
const request = this.prepareAccountRequest(limit, params);
|
|
@@ -615,7 +615,7 @@ class coinbase extends coinbase$1 {
|
|
|
615
615
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
616
616
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
617
617
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
618
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
618
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
619
619
|
*/
|
|
620
620
|
// fiat only, for crypto transactions use fetchLedger
|
|
621
621
|
return await this.fetchTransactionsWithMethod('v2PrivateGetAccountsAccountIdWithdrawals', code, since, limit, params);
|
|
@@ -629,7 +629,7 @@ class coinbase extends coinbase$1 {
|
|
|
629
629
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
630
630
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
631
631
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
632
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
632
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
633
633
|
*/
|
|
634
634
|
// fiat only, for crypto transactions use fetchLedger
|
|
635
635
|
return await this.fetchTransactionsWithMethod('v2PrivateGetAccountsAccountIdDeposits', code, since, limit, params);
|
|
@@ -1176,7 +1176,7 @@ class coinbase extends coinbase$1 {
|
|
|
1176
1176
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1177
1177
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1178
1178
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
1179
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1179
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1180
1180
|
*/
|
|
1181
1181
|
const method = this.safeString(this.options, 'fetchTickers', 'fetchTickersV3');
|
|
1182
1182
|
if (method === 'fetchTickersV3') {
|
|
@@ -1277,7 +1277,7 @@ class coinbase extends coinbase$1 {
|
|
|
1277
1277
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1278
1278
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1279
1279
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
1280
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
1280
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1281
1281
|
*/
|
|
1282
1282
|
const method = this.safeString(this.options, 'fetchTicker', 'fetchTickerV3');
|
|
1283
1283
|
if (method === 'fetchTickerV3') {
|
|
@@ -1559,7 +1559,7 @@ class coinbase extends coinbase$1 {
|
|
|
1559
1559
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1560
1560
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1561
1561
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
1562
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
1562
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
1563
1563
|
*/
|
|
1564
1564
|
await this.loadMarkets();
|
|
1565
1565
|
let currency = undefined;
|
|
@@ -1956,7 +1956,7 @@ class coinbase extends coinbase$1 {
|
|
|
1956
1956
|
* @param {string} type 'market' or 'limit'
|
|
1957
1957
|
* @param {string} side 'buy' or 'sell'
|
|
1958
1958
|
* @param {float} amount how much you want to trade in units of the base currency, quote currency for 'market' 'buy' orders
|
|
1959
|
-
* @param {float} price the price to fulfill the order, in units of the quote currency, ignored in market orders
|
|
1959
|
+
* @param {float} [price] the price to fulfill the order, in units of the quote currency, ignored in market orders
|
|
1960
1960
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
1961
1961
|
* @param {float} [params.stopPrice] price to trigger stop orders
|
|
1962
1962
|
* @param {float} [params.triggerPrice] price to trigger stop orders
|
|
@@ -1966,7 +1966,7 @@ class coinbase extends coinbase$1 {
|
|
|
1966
1966
|
* @param {string} [params.timeInForce] 'GTC', 'IOC', 'GTD' or 'PO'
|
|
1967
1967
|
* @param {string} [params.stop_direction] 'UNKNOWN_STOP_DIRECTION', 'STOP_DIRECTION_STOP_UP', 'STOP_DIRECTION_STOP_DOWN' the direction the stopPrice is triggered from
|
|
1968
1968
|
* @param {string} [params.end_time] '2023-05-25T17:01:05.092Z' for 'GTD' orders
|
|
1969
|
-
* @returns {object} an [order structure]{@link https://
|
|
1969
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1970
1970
|
*/
|
|
1971
1971
|
await this.loadMarkets();
|
|
1972
1972
|
const market = this.market(symbol);
|
|
@@ -2282,7 +2282,7 @@ class coinbase extends coinbase$1 {
|
|
|
2282
2282
|
* @param {string} id order id
|
|
2283
2283
|
* @param {string} symbol not used by coinbase cancelOrder()
|
|
2284
2284
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
2285
|
-
* @returns {object} An [order structure]{@link https://
|
|
2285
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2286
2286
|
*/
|
|
2287
2287
|
await this.loadMarkets();
|
|
2288
2288
|
const orders = await this.cancelOrders([id], symbol, params);
|
|
@@ -2297,7 +2297,7 @@ class coinbase extends coinbase$1 {
|
|
|
2297
2297
|
* @param {string[]} ids order ids
|
|
2298
2298
|
* @param {string} symbol not used by coinbase cancelOrders()
|
|
2299
2299
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
2300
|
-
* @returns {object} a list of [order structures]{@link https://
|
|
2300
|
+
* @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2301
2301
|
*/
|
|
2302
2302
|
await this.loadMarkets();
|
|
2303
2303
|
let market = undefined;
|
|
@@ -2337,7 +2337,7 @@ class coinbase extends coinbase$1 {
|
|
|
2337
2337
|
* @param {string} id the order id
|
|
2338
2338
|
* @param {string} symbol unified market symbol that the order was made in
|
|
2339
2339
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
2340
|
-
* @returns {object} An [order structure]{@link https://
|
|
2340
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2341
2341
|
*/
|
|
2342
2342
|
await this.loadMarkets();
|
|
2343
2343
|
let market = undefined;
|
|
@@ -2400,7 +2400,7 @@ class coinbase extends coinbase$1 {
|
|
|
2400
2400
|
* @param {int} [since] the earliest time in ms to fetch orders
|
|
2401
2401
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2402
2402
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
2403
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2403
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2404
2404
|
*/
|
|
2405
2405
|
await this.loadMarkets();
|
|
2406
2406
|
let market = undefined;
|
|
@@ -2538,7 +2538,7 @@ class coinbase extends coinbase$1 {
|
|
|
2538
2538
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
2539
2539
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
2540
2540
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
2541
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2541
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2542
2542
|
*/
|
|
2543
2543
|
return await this.fetchOrdersByStatus('OPEN', symbol, since, limit, params);
|
|
2544
2544
|
}
|
|
@@ -2552,7 +2552,7 @@ class coinbase extends coinbase$1 {
|
|
|
2552
2552
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
2553
2553
|
* @param {int} [limit] the maximum number of closed order structures to retrieve
|
|
2554
2554
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
2555
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2555
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2556
2556
|
*/
|
|
2557
2557
|
return await this.fetchOrdersByStatus('FILLED', symbol, since, limit, params);
|
|
2558
2558
|
}
|
|
@@ -2566,7 +2566,7 @@ class coinbase extends coinbase$1 {
|
|
|
2566
2566
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
2567
2567
|
* @param {int} [limit] the maximum number of canceled order structures to retrieve
|
|
2568
2568
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
2569
|
-
* @returns {object} a list of [order structures]{@link https://
|
|
2569
|
+
* @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2570
2570
|
*/
|
|
2571
2571
|
return await this.fetchOrdersByStatus('CANCELLED', symbol, since, limit, params);
|
|
2572
2572
|
}
|
|
@@ -2689,7 +2689,7 @@ class coinbase extends coinbase$1 {
|
|
|
2689
2689
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
2690
2690
|
* @param {int} [limit] the maximum number of trade structures to fetch
|
|
2691
2691
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
2692
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
2692
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
2693
2693
|
*/
|
|
2694
2694
|
await this.loadMarkets();
|
|
2695
2695
|
let market = undefined;
|
|
@@ -2742,7 +2742,7 @@ class coinbase extends coinbase$1 {
|
|
|
2742
2742
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
2743
2743
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
2744
2744
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
2745
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
2745
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
2746
2746
|
*/
|
|
2747
2747
|
await this.loadMarkets();
|
|
2748
2748
|
const market = this.market(symbol);
|
|
@@ -420,7 +420,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
420
420
|
* @name coinbasepro#fetchAccounts
|
|
421
421
|
* @description fetch all the accounts associated with a profile
|
|
422
422
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
423
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
423
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
424
424
|
*/
|
|
425
425
|
await this.loadMarkets();
|
|
426
426
|
const response = await this.privateGetAccounts(params);
|
|
@@ -499,7 +499,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
499
499
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
500
500
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
501
501
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
502
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
502
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
503
503
|
*/
|
|
504
504
|
await this.loadMarkets();
|
|
505
505
|
// level 1 - only the best bid and ask
|
|
@@ -617,7 +617,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
617
617
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
618
618
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
619
619
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
620
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
620
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
621
621
|
*/
|
|
622
622
|
await this.loadMarkets();
|
|
623
623
|
symbols = this.marketSymbols(symbols);
|
|
@@ -663,7 +663,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
663
663
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
664
664
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
665
665
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
666
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
666
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
667
667
|
*/
|
|
668
668
|
await this.loadMarkets();
|
|
669
669
|
const market = this.market(symbol);
|
|
@@ -778,7 +778,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
778
778
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
779
779
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
780
780
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
781
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
781
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
782
782
|
*/
|
|
783
783
|
// as of 2018-08-23
|
|
784
784
|
if (symbol === undefined) {
|
|
@@ -823,7 +823,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
823
823
|
* @name coinbasepro#fetchTradingFees
|
|
824
824
|
* @description fetch the trading fees for multiple markets
|
|
825
825
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
826
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
826
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
827
827
|
*/
|
|
828
828
|
await this.loadMarkets();
|
|
829
829
|
const response = await this.privateGetFees(params);
|
|
@@ -1031,7 +1031,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1031
1031
|
* @description fetches information on an order made by the user
|
|
1032
1032
|
* @param {string} symbol not used by coinbasepro fetchOrder
|
|
1033
1033
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
1034
|
-
* @returns {object} An [order structure]{@link https://
|
|
1034
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1035
1035
|
*/
|
|
1036
1036
|
await this.loadMarkets();
|
|
1037
1037
|
const request = {};
|
|
@@ -1059,7 +1059,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1059
1059
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1060
1060
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1061
1061
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
1062
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1062
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1063
1063
|
*/
|
|
1064
1064
|
await this.loadMarkets();
|
|
1065
1065
|
let market = undefined;
|
|
@@ -1081,7 +1081,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1081
1081
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1082
1082
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1083
1083
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
1084
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1084
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1085
1085
|
*/
|
|
1086
1086
|
const request = {
|
|
1087
1087
|
'status': 'all',
|
|
@@ -1097,7 +1097,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1097
1097
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1098
1098
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1099
1099
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
1100
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1100
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1101
1101
|
*/
|
|
1102
1102
|
await this.loadMarkets();
|
|
1103
1103
|
const request = {};
|
|
@@ -1121,7 +1121,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1121
1121
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1122
1122
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1123
1123
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
1124
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1124
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1125
1125
|
*/
|
|
1126
1126
|
const request = {
|
|
1127
1127
|
'status': 'done',
|
|
@@ -1137,9 +1137,9 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1137
1137
|
* @param {string} type 'market' or 'limit'
|
|
1138
1138
|
* @param {string} side 'buy' or 'sell'
|
|
1139
1139
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1140
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1140
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1141
1141
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
1142
|
-
* @returns {object} an [order structure]{@link https://
|
|
1142
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1143
1143
|
*/
|
|
1144
1144
|
await this.loadMarkets();
|
|
1145
1145
|
const market = this.market(symbol);
|
|
@@ -1231,7 +1231,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1231
1231
|
* @param {string} id order id
|
|
1232
1232
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1233
1233
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
1234
|
-
* @returns {object} An [order structure]{@link https://
|
|
1234
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1235
1235
|
*/
|
|
1236
1236
|
await this.loadMarkets();
|
|
1237
1237
|
const request = {
|
|
@@ -1262,7 +1262,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1262
1262
|
* @description cancel all open orders
|
|
1263
1263
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1264
1264
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
1265
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1265
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1266
1266
|
*/
|
|
1267
1267
|
await this.loadMarkets();
|
|
1268
1268
|
const request = {};
|
|
@@ -1285,7 +1285,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1285
1285
|
* @param {float} amount The amount of currency to send in the deposit (e.g. `20`)
|
|
1286
1286
|
* @param {string} address Not used by coinbasepro
|
|
1287
1287
|
* @param {object} [params] Parameters specific to the exchange API endpoint (e.g. `{"network": "TRX"}`)
|
|
1288
|
-
* @returns a [transaction structure]{@link https://
|
|
1288
|
+
* @returns a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1289
1289
|
*/
|
|
1290
1290
|
await this.loadMarkets();
|
|
1291
1291
|
const currency = this.currency(code);
|
|
@@ -1327,7 +1327,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1327
1327
|
* @param {string} address the address to withdraw to
|
|
1328
1328
|
* @param {string} tag
|
|
1329
1329
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
1330
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1330
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1331
1331
|
*/
|
|
1332
1332
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1333
1333
|
this.checkAddress(address);
|
|
@@ -1450,7 +1450,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1450
1450
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1451
1451
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1452
1452
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
1453
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
1453
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
1454
1454
|
*/
|
|
1455
1455
|
// https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccountledger
|
|
1456
1456
|
if (code === undefined) {
|
|
@@ -1497,7 +1497,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1497
1497
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1498
1498
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
1499
1499
|
* @param {string} [params.id] account id, when defined, the endpoint used is '/accounts/{account_id}/transfers/' instead of '/transfers/'
|
|
1500
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1500
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1501
1501
|
*/
|
|
1502
1502
|
await this.loadMarkets();
|
|
1503
1503
|
await this.loadAccounts();
|
|
@@ -1602,7 +1602,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1602
1602
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1603
1603
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1604
1604
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
1605
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1605
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1606
1606
|
*/
|
|
1607
1607
|
return await this.fetchDepositsWithdrawals(code, since, limit, this.extend({ 'type': 'deposit' }, params));
|
|
1608
1608
|
}
|
|
@@ -1615,7 +1615,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1615
1615
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1616
1616
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1617
1617
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
1618
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1618
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1619
1619
|
*/
|
|
1620
1620
|
return await this.fetchDepositsWithdrawals(code, since, limit, this.extend({ 'type': 'withdraw' }, params));
|
|
1621
1621
|
}
|
|
@@ -1722,7 +1722,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1722
1722
|
* @description create a currency deposit address
|
|
1723
1723
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1724
1724
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
1725
|
-
* @returns {object} an [address structure]{@link https://
|
|
1725
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1726
1726
|
*/
|
|
1727
1727
|
await this.loadMarkets();
|
|
1728
1728
|
const currency = this.currency(code);
|
|
@@ -201,7 +201,7 @@ class coincheck extends coincheck$1 {
|
|
|
201
201
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
202
202
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
203
203
|
* @param {object} [params] extra parameters specific to the coincheck api endpoint
|
|
204
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
204
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
205
205
|
*/
|
|
206
206
|
await this.loadMarkets();
|
|
207
207
|
// Only BTC/JPY is meaningful
|
|
@@ -275,7 +275,7 @@ class coincheck extends coincheck$1 {
|
|
|
275
275
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
276
276
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
277
277
|
* @param {object} [params] extra parameters specific to the coincheck api endpoint
|
|
278
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
278
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
279
279
|
*/
|
|
280
280
|
await this.loadMarkets();
|
|
281
281
|
const market = this.market(symbol);
|
|
@@ -330,7 +330,7 @@ class coincheck extends coincheck$1 {
|
|
|
330
330
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
331
331
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
332
332
|
* @param {object} [params] extra parameters specific to the coincheck api endpoint
|
|
333
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
333
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
334
334
|
*/
|
|
335
335
|
if (symbol !== 'BTC/JPY') {
|
|
336
336
|
throw new errors.BadSymbol(this.id + ' fetchTicker() supports BTC/JPY only');
|
|
@@ -445,7 +445,7 @@ class coincheck extends coincheck$1 {
|
|
|
445
445
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
446
446
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
447
447
|
* @param {object} [params] extra parameters specific to the coincheck api endpoint
|
|
448
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
448
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
449
449
|
*/
|
|
450
450
|
await this.loadMarkets();
|
|
451
451
|
const market = this.market(symbol);
|
|
@@ -518,7 +518,7 @@ class coincheck extends coincheck$1 {
|
|
|
518
518
|
* @name coincheck#fetchTradingFees
|
|
519
519
|
* @description fetch the trading fees for multiple markets
|
|
520
520
|
* @param {object} [params] extra parameters specific to the coincheck api endpoint
|
|
521
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
521
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
522
522
|
*/
|
|
523
523
|
await this.loadMarkets();
|
|
524
524
|
const response = await this.privateGetAccounts(params);
|
|
@@ -567,9 +567,9 @@ class coincheck extends coincheck$1 {
|
|
|
567
567
|
* @param {string} type 'market' or 'limit'
|
|
568
568
|
* @param {string} side 'buy' or 'sell'
|
|
569
569
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
570
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
570
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
571
571
|
* @param {object} [params] extra parameters specific to the coincheck api endpoint
|
|
572
|
-
* @returns {object} an [order structure]{@link https://
|
|
572
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
573
573
|
*/
|
|
574
574
|
await this.loadMarkets();
|
|
575
575
|
const market = this.market(symbol);
|
|
@@ -602,7 +602,7 @@ class coincheck extends coincheck$1 {
|
|
|
602
602
|
* @param {string} id order id
|
|
603
603
|
* @param {string} symbol not used by coincheck cancelOrder ()
|
|
604
604
|
* @param {object} [params] extra parameters specific to the coincheck api endpoint
|
|
605
|
-
* @returns {object} An [order structure]{@link https://
|
|
605
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
606
606
|
*/
|
|
607
607
|
const request = {
|
|
608
608
|
'id': id,
|
|
@@ -618,7 +618,7 @@ class coincheck extends coincheck$1 {
|
|
|
618
618
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
619
619
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
620
620
|
* @param {object} [params] extra parameters specific to the coincheck api endpoint
|
|
621
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
621
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
622
622
|
*/
|
|
623
623
|
await this.loadMarkets();
|
|
624
624
|
let currency = undefined;
|
|
@@ -666,7 +666,7 @@ class coincheck extends coincheck$1 {
|
|
|
666
666
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
667
667
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
668
668
|
* @param {object} [params] extra parameters specific to the coincheck api endpoint
|
|
669
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
669
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
670
670
|
*/
|
|
671
671
|
await this.loadMarkets();
|
|
672
672
|
let currency = undefined;
|