ccxt 4.5.28 → 4.5.29
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 +21 -5
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/alpaca.js +21 -21
- package/dist/cjs/src/apex.js +20 -20
- package/dist/cjs/src/arkham.js +22 -22
- package/dist/cjs/src/ascendex.js +28 -28
- package/dist/cjs/src/backpack.js +22 -22
- package/dist/cjs/src/base/Exchange.js +48 -38
- package/dist/cjs/src/base/functions/throttle.js +54 -5
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +83 -82
- package/dist/cjs/src/bingx.js +46 -46
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +49 -48
- package/dist/cjs/src/bitbns.js +13 -13
- package/dist/cjs/src/bitfinex.js +33 -33
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitget.js +58 -57
- package/dist/cjs/src/bithumb.js +10 -10
- package/dist/cjs/src/bitmart.js +44 -44
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +20 -20
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +20 -20
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bittrade.js +20 -20
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/blofin.js +26 -26
- package/dist/cjs/src/btcalpha.js +35 -34
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +16 -16
- package/dist/cjs/src/btcturk.js +10 -10
- package/dist/cjs/src/bullish.js +26 -26
- package/dist/cjs/src/bybit.js +67 -67
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +40 -40
- package/dist/cjs/src/coinbaseexchange.js +22 -22
- package/dist/cjs/src/coinbaseinternational.js +22 -22
- package/dist/cjs/src/coincatch.js +39 -39
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +48 -48
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinmetro.js +14 -14
- package/dist/cjs/src/coinone.js +11 -11
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +32 -32
- package/dist/cjs/src/cryptomus.js +9 -9
- package/dist/cjs/src/deepcoin.js +33 -33
- package/dist/cjs/src/defx.js +23 -23
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +36 -36
- package/dist/cjs/src/derive.js +19 -19
- package/dist/cjs/src/digifinex.js +36 -36
- package/dist/cjs/src/dydx.js +22 -22
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +57 -57
- package/dist/cjs/src/gemini.js +16 -16
- package/dist/cjs/src/hashkey.js +35 -35
- package/dist/cjs/src/hibachi.js +24 -24
- package/dist/cjs/src/hitbtc.js +38 -38
- package/dist/cjs/src/hollaex.js +22 -22
- package/dist/cjs/src/htx.js +50 -50
- package/dist/cjs/src/hyperliquid.js +76 -42
- package/dist/cjs/src/independentreserve.js +13 -13
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +30 -30
- package/dist/cjs/src/krakenfutures.js +21 -21
- package/dist/cjs/src/kucoin.js +44 -44
- package/dist/cjs/src/kucoinfutures.js +42 -40
- package/dist/cjs/src/latoken.js +16 -16
- package/dist/cjs/src/lbank.js +23 -23
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/mercado.js +11 -11
- package/dist/cjs/src/mexc.js +47 -47
- package/dist/cjs/src/modetrade.js +37 -35
- package/dist/cjs/src/ndax.js +19 -19
- package/dist/cjs/src/novadax.js +19 -19
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okx.js +83 -83
- package/dist/cjs/src/onetrading.js +34 -33
- package/dist/cjs/src/oxfun.js +25 -25
- package/dist/cjs/src/p2b.js +11 -11
- package/dist/cjs/src/paradex.js +54 -54
- package/dist/cjs/src/paymium.js +20 -21
- package/dist/cjs/src/phemex.js +35 -35
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +8 -8
- package/dist/cjs/src/pro/arkham.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/backpack.js +16 -16
- package/dist/cjs/src/pro/binance.js +35 -35
- package/dist/cjs/src/pro/bingx.js +9 -9
- package/dist/cjs/src/pro/bitfinex.js +8 -8
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bithumb.js +3 -3
- package/dist/cjs/src/pro/bitmart.js +388 -31
- package/dist/cjs/src/pro/bitmex.js +9 -9
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrade.js +3 -3
- package/dist/cjs/src/pro/bitvavo.js +19 -19
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +10 -10
- package/dist/cjs/src/pro/bullish.js +6 -6
- package/dist/cjs/src/pro/bybit.js +19 -19
- package/dist/cjs/src/pro/cex.js +13 -13
- package/dist/cjs/src/pro/coinbase.js +13 -13
- package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
- package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
- package/dist/cjs/src/pro/coincatch.js +10 -10
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +10 -10
- package/dist/cjs/src/pro/coinone.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +20 -20
- package/dist/cjs/src/pro/deepcoin.js +8 -8
- package/dist/cjs/src/pro/defx.js +15 -15
- package/dist/cjs/src/pro/deribit.js +10 -10
- package/dist/cjs/src/pro/derive.js +6 -6
- package/dist/cjs/src/pro/dydx.js +3 -3
- package/dist/cjs/src/pro/exmo.js +7 -7
- package/dist/cjs/src/pro/gate.js +21 -59
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +6 -6
- package/dist/cjs/src/pro/hitbtc.js +8 -8
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +9 -9
- package/dist/cjs/src/pro/hyperliquid.js +103 -14
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +15 -15
- package/dist/cjs/src/pro/krakenfutures.js +10 -10
- package/dist/cjs/src/pro/kucoin.js +15 -15
- package/dist/cjs/src/pro/kucoinfutures.js +13 -13
- package/dist/cjs/src/pro/lbank.js +5 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +13 -13
- package/dist/cjs/src/pro/modetrade.js +8 -8
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okx.js +25 -25
- package/dist/cjs/src/pro/onetrading.js +6 -6
- package/dist/cjs/src/pro/oxfun.js +13 -13
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/paradex.js +8 -8
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +8 -8
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/toobit.js +9 -9
- package/dist/cjs/src/pro/upbit.js +9 -9
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +13 -13
- package/dist/cjs/src/pro/woofipro.js +20 -20
- package/dist/cjs/src/pro/xt.js +2 -2
- package/dist/cjs/src/probit.js +18 -18
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +17 -17
- package/dist/cjs/src/toobit.js +31 -29
- package/dist/cjs/src/upbit.js +23 -23
- package/dist/cjs/src/wavesexchange.js +86 -85
- package/dist/cjs/src/whitebit.js +44 -44
- package/dist/cjs/src/woo.js +51 -49
- package/dist/cjs/src/woofipro.js +104 -82
- package/dist/cjs/src/xt.js +17 -12
- package/dist/cjs/src/yobit.js +15 -15
- package/dist/cjs/src/zaif.js +38 -9
- package/dist/cjs/src/zebpay.js +35 -20
- package/dist/cjs/src/zonda.js +14 -14
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/alpaca.d.ts +21 -21
- package/js/src/alpaca.js +21 -21
- package/js/src/apex.d.ts +20 -20
- package/js/src/apex.js +20 -20
- package/js/src/arkham.d.ts +22 -22
- package/js/src/arkham.js +22 -22
- package/js/src/ascendex.d.ts +28 -28
- package/js/src/ascendex.js +28 -28
- package/js/src/backpack.d.ts +21 -21
- package/js/src/backpack.js +22 -22
- package/js/src/base/Exchange.d.ts +6 -3
- package/js/src/base/Exchange.js +48 -38
- package/js/src/base/functions/throttle.d.ts +22 -0
- package/js/src/base/functions/throttle.js +54 -5
- package/js/src/bigone.d.ts +19 -19
- package/js/src/bigone.js +19 -19
- package/js/src/binance.d.ts +82 -82
- package/js/src/binance.js +83 -82
- package/js/src/bingx.d.ts +46 -46
- package/js/src/bingx.js +46 -46
- package/js/src/bit2c.d.ts +11 -11
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.d.ts +12 -12
- package/js/src/bitbank.js +49 -48
- package/js/src/bitbns.d.ts +13 -13
- package/js/src/bitbns.js +13 -13
- package/js/src/bitfinex.d.ts +33 -33
- package/js/src/bitfinex.js +33 -33
- package/js/src/bitflyer.d.ts +17 -17
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitget.d.ts +57 -57
- package/js/src/bitget.js +58 -57
- package/js/src/bithumb.d.ts +10 -10
- package/js/src/bithumb.js +10 -10
- package/js/src/bitmart.d.ts +42 -42
- package/js/src/bitmart.js +44 -44
- package/js/src/bitmex.d.ts +24 -24
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.d.ts +20 -20
- package/js/src/bitopro.js +20 -20
- package/js/src/bitrue.d.ts +18 -18
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.d.ts +20 -20
- package/js/src/bitso.js +20 -20
- package/js/src/bitstamp.d.ts +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bittrade.d.ts +20 -20
- package/js/src/bittrade.js +20 -20
- package/js/src/bitvavo.d.ts +19 -19
- package/js/src/bitvavo.js +19 -19
- package/js/src/blockchaincom.d.ts +20 -20
- package/js/src/blockchaincom.js +20 -20
- package/js/src/blofin.d.ts +26 -26
- package/js/src/blofin.js +26 -26
- package/js/src/btcalpha.d.ts +14 -14
- package/js/src/btcalpha.js +35 -34
- package/js/src/btcbox.d.ts +10 -10
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.d.ts +16 -16
- package/js/src/btcmarkets.js +16 -16
- package/js/src/btcturk.d.ts +10 -10
- package/js/src/btcturk.js +10 -10
- package/js/src/bullish.d.ts +26 -26
- package/js/src/bullish.js +26 -26
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +67 -67
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +40 -40
- package/js/src/coinbase.js +40 -40
- package/js/src/coinbaseexchange.d.ts +22 -22
- package/js/src/coinbaseexchange.js +22 -22
- package/js/src/coinbaseinternational.d.ts +22 -22
- package/js/src/coinbaseinternational.js +22 -22
- package/js/src/coincatch.d.ts +39 -39
- package/js/src/coincatch.js +39 -39
- package/js/src/coincheck.d.ts +11 -11
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.d.ts +48 -48
- package/js/src/coinex.js +48 -48
- package/js/src/coinmate.d.ts +14 -14
- package/js/src/coinmate.js +14 -14
- package/js/src/coinmetro.d.ts +14 -14
- package/js/src/coinmetro.js +14 -14
- package/js/src/coinone.d.ts +11 -11
- package/js/src/coinone.js +11 -11
- package/js/src/coinsph.d.ts +20 -20
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.d.ts +8 -8
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.d.ts +32 -32
- package/js/src/cryptocom.js +32 -32
- package/js/src/cryptomus.d.ts +9 -9
- package/js/src/cryptomus.js +9 -9
- package/js/src/deepcoin.d.ts +33 -33
- package/js/src/deepcoin.js +33 -33
- package/js/src/defx.d.ts +23 -23
- package/js/src/defx.js +23 -23
- package/js/src/delta.d.ts +29 -29
- package/js/src/delta.js +29 -29
- package/js/src/deribit.d.ts +36 -36
- package/js/src/deribit.js +36 -36
- package/js/src/derive.d.ts +19 -19
- package/js/src/derive.js +19 -19
- package/js/src/digifinex.d.ts +36 -36
- package/js/src/digifinex.js +36 -36
- package/js/src/dydx.d.ts +22 -22
- package/js/src/dydx.js +22 -22
- package/js/src/exmo.d.ts +29 -29
- package/js/src/exmo.js +29 -29
- package/js/src/foxbit.d.ts +23 -23
- package/js/src/foxbit.js +23 -23
- package/js/src/gate.d.ts +57 -57
- package/js/src/gate.js +57 -57
- package/js/src/gemini.d.ts +16 -16
- package/js/src/gemini.js +16 -16
- package/js/src/hashkey.d.ts +35 -35
- package/js/src/hashkey.js +35 -35
- package/js/src/hibachi.d.ts +24 -24
- package/js/src/hibachi.js +24 -24
- package/js/src/hitbtc.d.ts +38 -38
- package/js/src/hitbtc.js +38 -38
- package/js/src/hollaex.d.ts +22 -22
- package/js/src/hollaex.js +22 -22
- package/js/src/htx.d.ts +50 -50
- package/js/src/htx.js +50 -50
- package/js/src/hyperliquid.d.ts +46 -36
- package/js/src/hyperliquid.js +76 -42
- package/js/src/independentreserve.d.ts +13 -13
- package/js/src/independentreserve.js +13 -13
- package/js/src/indodax.d.ts +14 -14
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.d.ts +30 -30
- package/js/src/kraken.js +30 -30
- package/js/src/krakenfutures.d.ts +21 -21
- package/js/src/krakenfutures.js +21 -21
- package/js/src/kucoin.d.ts +44 -44
- package/js/src/kucoin.js +44 -44
- package/js/src/kucoinfutures.d.ts +35 -35
- package/js/src/kucoinfutures.js +42 -40
- package/js/src/latoken.d.ts +16 -16
- package/js/src/latoken.js +16 -16
- package/js/src/lbank.d.ts +23 -23
- package/js/src/lbank.js +23 -23
- package/js/src/luno.d.ts +17 -17
- package/js/src/luno.js +17 -17
- package/js/src/mercado.d.ts +11 -11
- package/js/src/mercado.js +11 -11
- package/js/src/mexc.d.ts +47 -47
- package/js/src/mexc.js +47 -47
- package/js/src/modetrade.d.ts +31 -31
- package/js/src/modetrade.js +37 -35
- package/js/src/ndax.d.ts +19 -19
- package/js/src/ndax.js +19 -19
- package/js/src/novadax.d.ts +19 -19
- package/js/src/novadax.js +19 -19
- package/js/src/oceanex.d.ts +16 -16
- package/js/src/oceanex.js +16 -16
- package/js/src/okx.d.ts +74 -74
- package/js/src/okx.js +83 -83
- package/js/src/onetrading.d.ts +34 -33
- package/js/src/onetrading.js +34 -33
- package/js/src/oxfun.d.ts +25 -25
- package/js/src/oxfun.js +25 -25
- package/js/src/p2b.d.ts +11 -11
- package/js/src/p2b.js +11 -11
- package/js/src/paradex.d.ts +54 -54
- package/js/src/paradex.js +54 -54
- package/js/src/paymium.d.ts +20 -21
- package/js/src/paymium.js +20 -21
- package/js/src/phemex.d.ts +30 -30
- package/js/src/phemex.js +35 -35
- package/js/src/poloniex.d.ts +26 -26
- package/js/src/poloniex.js +27 -27
- package/js/src/pro/alpaca.d.ts +5 -5
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +8 -8
- package/js/src/pro/apex.js +8 -8
- package/js/src/pro/arkham.d.ts +5 -5
- package/js/src/pro/arkham.js +5 -5
- package/js/src/pro/ascendex.d.ts +5 -5
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/backpack.d.ts +16 -16
- package/js/src/pro/backpack.js +16 -16
- package/js/src/pro/binance.d.ts +35 -35
- package/js/src/pro/binance.js +35 -35
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +9 -9
- package/js/src/pro/bitfinex.d.ts +8 -8
- package/js/src/pro/bitfinex.js +8 -8
- package/js/src/pro/bitget.d.ts +12 -12
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bithumb.d.ts +3 -3
- package/js/src/pro/bithumb.js +3 -3
- package/js/src/pro/bitmart.d.ts +120 -9
- package/js/src/pro/bitmart.js +388 -31
- package/js/src/pro/bitmex.d.ts +9 -9
- package/js/src/pro/bitmex.js +9 -9
- package/js/src/pro/bitopro.d.ts +5 -5
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.d.ts +3 -3
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrade.d.ts +3 -3
- package/js/src/pro/bittrade.js +3 -3
- package/js/src/pro/bitvavo.d.ts +19 -19
- package/js/src/pro/bitvavo.js +19 -19
- package/js/src/pro/blockchaincom.d.ts +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +10 -10
- package/js/src/pro/blofin.js +10 -10
- package/js/src/pro/bullish.d.ts +6 -6
- package/js/src/pro/bullish.js +6 -6
- package/js/src/pro/bybit.d.ts +19 -19
- package/js/src/pro/bybit.js +19 -19
- package/js/src/pro/cex.d.ts +13 -13
- package/js/src/pro/cex.js +13 -13
- package/js/src/pro/coinbase.d.ts +13 -13
- package/js/src/pro/coinbase.js +13 -13
- package/js/src/pro/coinbaseexchange.d.ts +10 -10
- package/js/src/pro/coinbaseexchange.js +10 -10
- package/js/src/pro/coinbaseinternational.d.ts +8 -8
- package/js/src/pro/coinbaseinternational.js +8 -8
- package/js/src/pro/coincatch.d.ts +10 -10
- package/js/src/pro/coincatch.js +10 -10
- package/js/src/pro/coincheck.d.ts +2 -2
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +10 -10
- package/js/src/pro/coinex.js +10 -10
- package/js/src/pro/coinone.d.ts +3 -3
- package/js/src/pro/coinone.js +3 -3
- package/js/src/pro/cryptocom.d.ts +20 -20
- package/js/src/pro/cryptocom.js +20 -20
- package/js/src/pro/deepcoin.d.ts +8 -8
- package/js/src/pro/deepcoin.js +8 -8
- package/js/src/pro/defx.d.ts +15 -15
- package/js/src/pro/defx.js +15 -15
- package/js/src/pro/deribit.d.ts +10 -10
- package/js/src/pro/deribit.js +10 -10
- package/js/src/pro/derive.d.ts +6 -6
- package/js/src/pro/derive.js +6 -6
- package/js/src/pro/dydx.d.ts +3 -3
- package/js/src/pro/dydx.js +3 -3
- package/js/src/pro/exmo.d.ts +7 -7
- package/js/src/pro/exmo.js +7 -7
- package/js/src/pro/gate.d.ts +22 -23
- package/js/src/pro/gate.js +21 -59
- package/js/src/pro/gemini.d.ts +6 -6
- package/js/src/pro/gemini.js +6 -6
- package/js/src/pro/hashkey.d.ts +6 -6
- package/js/src/pro/hashkey.js +6 -6
- package/js/src/pro/hitbtc.d.ts +8 -8
- package/js/src/pro/hitbtc.js +8 -8
- package/js/src/pro/hollaex.d.ts +5 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.d.ts +9 -9
- package/js/src/pro/htx.js +9 -9
- package/js/src/pro/hyperliquid.d.ts +38 -14
- package/js/src/pro/hyperliquid.js +103 -14
- package/js/src/pro/independentreserve.d.ts +2 -2
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +15 -15
- package/js/src/pro/kraken.js +15 -15
- package/js/src/pro/krakenfutures.d.ts +10 -10
- package/js/src/pro/krakenfutures.js +10 -10
- package/js/src/pro/kucoin.d.ts +15 -15
- package/js/src/pro/kucoin.js +15 -15
- package/js/src/pro/kucoinfutures.d.ts +13 -13
- package/js/src/pro/kucoinfutures.js +13 -13
- package/js/src/pro/lbank.d.ts +5 -5
- package/js/src/pro/lbank.js +5 -5
- package/js/src/pro/luno.d.ts +2 -2
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +13 -13
- package/js/src/pro/mexc.js +13 -13
- package/js/src/pro/modetrade.d.ts +8 -8
- package/js/src/pro/modetrade.js +8 -8
- package/js/src/pro/ndax.d.ts +3 -3
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okx.d.ts +25 -25
- package/js/src/pro/okx.js +25 -25
- package/js/src/pro/onetrading.d.ts +6 -6
- package/js/src/pro/onetrading.js +6 -6
- package/js/src/pro/oxfun.d.ts +13 -13
- package/js/src/pro/oxfun.js +13 -13
- package/js/src/pro/p2b.d.ts +5 -5
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/paradex.d.ts +8 -8
- package/js/src/pro/paradex.js +8 -8
- package/js/src/pro/phemex.d.ts +7 -7
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.d.ts +8 -8
- package/js/src/pro/poloniex.js +8 -8
- package/js/src/pro/probit.d.ts +6 -6
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/toobit.d.ts +9 -9
- package/js/src/pro/toobit.js +9 -9
- package/js/src/pro/upbit.d.ts +9 -9
- package/js/src/pro/upbit.js +9 -9
- package/js/src/pro/whitebit.d.ts +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.d.ts +13 -13
- package/js/src/pro/woo.js +13 -13
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +20 -20
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +2 -2
- package/js/src/probit.d.ts +18 -18
- package/js/src/probit.js +18 -18
- package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
- package/js/src/static_dependencies/ethers/utils/index.js +8 -1
- package/js/src/timex.d.ts +16 -16
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.d.ts +17 -17
- package/js/src/tokocrypto.js +17 -17
- package/js/src/toobit.d.ts +27 -27
- package/js/src/toobit.js +31 -29
- package/js/src/upbit.d.ts +23 -23
- package/js/src/upbit.js +23 -23
- package/js/src/wavesexchange.d.ts +15 -15
- package/js/src/wavesexchange.js +86 -85
- package/js/src/whitebit.d.ts +44 -44
- package/js/src/whitebit.js +44 -44
- package/js/src/woo.d.ts +45 -45
- package/js/src/woo.js +51 -49
- package/js/src/woofipro.d.ts +77 -77
- package/js/src/woofipro.js +104 -82
- package/js/src/xt.d.ts +12 -12
- package/js/src/xt.js +17 -12
- package/js/src/yobit.d.ts +15 -15
- package/js/src/yobit.js +15 -15
- package/js/src/zaif.d.ts +9 -9
- package/js/src/zaif.js +38 -9
- package/js/src/zebpay.d.ts +20 -20
- package/js/src/zebpay.js +35 -20
- package/js/src/zonda.d.ts +14 -14
- package/js/src/zonda.js +14 -14
- package/package.json +1 -1
package/js/src/coinbase.js
CHANGED
|
@@ -552,7 +552,7 @@ export default class coinbase extends Exchange {
|
|
|
552
552
|
* @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-accounts#list-accounts
|
|
553
553
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
554
554
|
* @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)
|
|
555
|
-
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com
|
|
555
|
+
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/?id=account-structure} indexed by the account type
|
|
556
556
|
*/
|
|
557
557
|
async fetchAccounts(params = {}) {
|
|
558
558
|
const method = this.safeString(this.options, 'fetchAccounts', 'fetchAccountsV3');
|
|
@@ -687,7 +687,7 @@ export default class coinbase extends Exchange {
|
|
|
687
687
|
* @description fetch all the portfolios
|
|
688
688
|
* @see https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getportfolios
|
|
689
689
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
690
|
-
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com
|
|
690
|
+
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/?id=account-structure} indexed by the account type
|
|
691
691
|
*/
|
|
692
692
|
async fetchPortfolios(params = {}) {
|
|
693
693
|
const response = await this.v3PrivateGetBrokeragePortfolios(params);
|
|
@@ -781,7 +781,7 @@ export default class coinbase extends Exchange {
|
|
|
781
781
|
* @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-addresses#create-address
|
|
782
782
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
783
783
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
784
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
784
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
785
785
|
*/
|
|
786
786
|
async createDepositAddress(code, params = {}) {
|
|
787
787
|
let accountId = this.safeString(params, 'account_id');
|
|
@@ -860,7 +860,7 @@ export default class coinbase extends Exchange {
|
|
|
860
860
|
* @param {int} [since] timestamp in ms of the earliest sell, default is undefined
|
|
861
861
|
* @param {int} [limit] max number of sells to return, default is undefined
|
|
862
862
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
863
|
-
* @returns {object} a [list of order structures]{@link https://docs.ccxt.com
|
|
863
|
+
* @returns {object} a [list of order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
864
864
|
*/
|
|
865
865
|
async fetchMySells(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
866
866
|
// v2 did't have an endpoint for all historical trades
|
|
@@ -880,7 +880,7 @@ export default class coinbase extends Exchange {
|
|
|
880
880
|
* @param {int} [since] timestamp in ms of the earliest buy, default is undefined
|
|
881
881
|
* @param {int} [limit] max number of buys to return, default is undefined
|
|
882
882
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
883
|
-
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com
|
|
883
|
+
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
884
884
|
*/
|
|
885
885
|
async fetchMyBuys(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
886
886
|
// v2 did't have an endpoint for all historical trades
|
|
@@ -907,7 +907,7 @@ export default class coinbase extends Exchange {
|
|
|
907
907
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
908
908
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
909
909
|
* @param {string} [params.currencyType] "fiat" or "crypto"
|
|
910
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
910
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
911
911
|
*/
|
|
912
912
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
913
913
|
let currencyType = undefined;
|
|
@@ -928,7 +928,7 @@ export default class coinbase extends Exchange {
|
|
|
928
928
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
929
929
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
930
930
|
* @param {string} [params.currencyType] "fiat" or "crypto"
|
|
931
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
931
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
932
932
|
*/
|
|
933
933
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
934
934
|
let currencyType = undefined;
|
|
@@ -948,7 +948,7 @@ export default class coinbase extends Exchange {
|
|
|
948
948
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
949
949
|
* @param {int} [limit] max number of deposit/withdrawals to return, default = 50, Min: 1, Max: 100
|
|
950
950
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
951
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
951
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
952
952
|
*/
|
|
953
953
|
async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
954
954
|
await this.loadMarkets();
|
|
@@ -2020,7 +2020,7 @@ export default class coinbase extends Exchange {
|
|
|
2020
2020
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
2021
2021
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2022
2022
|
* @param {boolean} [params.usePrivate] use private endpoint for fetching tickers
|
|
2023
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
2023
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
2024
2024
|
*/
|
|
2025
2025
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
2026
2026
|
const method = this.safeString(this.options, 'fetchTickers', 'fetchTickersV3');
|
|
@@ -2143,7 +2143,7 @@ export default class coinbase extends Exchange {
|
|
|
2143
2143
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
2144
2144
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2145
2145
|
* @param {boolean} [params.usePrivate] whether to use the private endpoint for fetching the ticker
|
|
2146
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
2146
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
2147
2147
|
*/
|
|
2148
2148
|
async fetchTicker(symbol, params = {}) {
|
|
2149
2149
|
const method = this.safeString(this.options, 'fetchTicker', 'fetchTickerV3');
|
|
@@ -2418,7 +2418,7 @@ export default class coinbase extends Exchange {
|
|
|
2418
2418
|
* @param {boolean} [params.v3] default false, set true to use v3 api endpoint
|
|
2419
2419
|
* @param {string} [params.type] "spot" (default) or "swap" or "future"
|
|
2420
2420
|
* @param {int} [params.limit] default 250, maximum number of accounts to return
|
|
2421
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
2421
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
2422
2422
|
*/
|
|
2423
2423
|
async fetchBalance(params = {}) {
|
|
2424
2424
|
await this.loadMarkets();
|
|
@@ -2524,7 +2524,7 @@ export default class coinbase extends Exchange {
|
|
|
2524
2524
|
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
2525
2525
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2526
2526
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
2527
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
2527
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
2528
2528
|
*/
|
|
2529
2529
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2530
2530
|
await this.loadMarkets();
|
|
@@ -2940,7 +2940,7 @@ export default class coinbase extends Exchange {
|
|
|
2940
2940
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
2941
2941
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
2942
2942
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2943
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2943
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2944
2944
|
*/
|
|
2945
2945
|
async createMarketBuyOrderWithCost(symbol, cost, params = {}) {
|
|
2946
2946
|
await this.loadMarkets();
|
|
@@ -2977,7 +2977,7 @@ export default class coinbase extends Exchange {
|
|
|
2977
2977
|
* @param {string} [params.retail_portfolio_id] portfolio uid
|
|
2978
2978
|
* @param {boolean} [params.is_max] Used in conjunction with tradable_balance to indicate the user wants to use their entire tradable balance
|
|
2979
2979
|
* @param {string} [params.tradable_balance] amount of tradable balance
|
|
2980
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2980
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2981
2981
|
*/
|
|
2982
2982
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
2983
2983
|
await this.loadMarkets();
|
|
@@ -3384,7 +3384,7 @@ export default class coinbase extends Exchange {
|
|
|
3384
3384
|
* @param {string} id order id
|
|
3385
3385
|
* @param {string} symbol not used by coinbase cancelOrder()
|
|
3386
3386
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3387
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
3387
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3388
3388
|
*/
|
|
3389
3389
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
3390
3390
|
await this.loadMarkets();
|
|
@@ -3399,7 +3399,7 @@ export default class coinbase extends Exchange {
|
|
|
3399
3399
|
* @param {string[]} ids order ids
|
|
3400
3400
|
* @param {string} symbol not used by coinbase cancelOrders()
|
|
3401
3401
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3402
|
-
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com
|
|
3402
|
+
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3403
3403
|
*/
|
|
3404
3404
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
3405
3405
|
await this.loadMarkets();
|
|
@@ -3444,7 +3444,7 @@ export default class coinbase extends Exchange {
|
|
|
3444
3444
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
3445
3445
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3446
3446
|
* @param {boolean} [params.preview] default to false, wether to use the test/preview endpoint or not
|
|
3447
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
3447
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3448
3448
|
*/
|
|
3449
3449
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
3450
3450
|
await this.loadMarkets();
|
|
@@ -3486,7 +3486,7 @@ export default class coinbase extends Exchange {
|
|
|
3486
3486
|
* @param {string} id the order id
|
|
3487
3487
|
* @param {string} symbol unified market symbol that the order was made in
|
|
3488
3488
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3489
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
3489
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3490
3490
|
*/
|
|
3491
3491
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
3492
3492
|
await this.loadMarkets();
|
|
@@ -3551,7 +3551,7 @@ export default class coinbase extends Exchange {
|
|
|
3551
3551
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3552
3552
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
3553
3553
|
* @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)
|
|
3554
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
3554
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3555
3555
|
*/
|
|
3556
3556
|
async fetchOrders(symbol = undefined, since = undefined, limit = 100, params = {}) {
|
|
3557
3557
|
await this.loadMarkets();
|
|
@@ -3718,7 +3718,7 @@ export default class coinbase extends Exchange {
|
|
|
3718
3718
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3719
3719
|
* @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)
|
|
3720
3720
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
3721
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
3721
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3722
3722
|
*/
|
|
3723
3723
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3724
3724
|
await this.loadMarkets();
|
|
@@ -3740,7 +3740,7 @@ export default class coinbase extends Exchange {
|
|
|
3740
3740
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3741
3741
|
* @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)
|
|
3742
3742
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
3743
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
3743
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3744
3744
|
*/
|
|
3745
3745
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3746
3746
|
await this.loadMarkets();
|
|
@@ -3760,7 +3760,7 @@ export default class coinbase extends Exchange {
|
|
|
3760
3760
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
3761
3761
|
* @param {int} [limit] the maximum number of canceled order structures to retrieve
|
|
3762
3762
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3763
|
-
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com
|
|
3763
|
+
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3764
3764
|
*/
|
|
3765
3765
|
async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3766
3766
|
return await this.fetchOrdersByStatus('CANCELLED', symbol, since, limit, params);
|
|
@@ -3872,7 +3872,7 @@ export default class coinbase extends Exchange {
|
|
|
3872
3872
|
* @param {int} [limit] the maximum number of trade structures to fetch
|
|
3873
3873
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3874
3874
|
* @param {boolean} [params.usePrivate] default false, when true will use the private endpoint to fetch the trades
|
|
3875
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
3875
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
3876
3876
|
*/
|
|
3877
3877
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
3878
3878
|
await this.loadMarkets();
|
|
@@ -3933,7 +3933,7 @@ export default class coinbase extends Exchange {
|
|
|
3933
3933
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3934
3934
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
3935
3935
|
* @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)
|
|
3936
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
3936
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
3937
3937
|
*/
|
|
3938
3938
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3939
3939
|
await this.loadMarkets();
|
|
@@ -4003,7 +4003,7 @@ export default class coinbase extends Exchange {
|
|
|
4003
4003
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
4004
4004
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4005
4005
|
* @param {boolean} [params.usePrivate] default false, when true will use the private endpoint to fetch the order book
|
|
4006
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
4006
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
4007
4007
|
*/
|
|
4008
4008
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
4009
4009
|
await this.loadMarkets();
|
|
@@ -4055,7 +4055,7 @@ export default class coinbase extends Exchange {
|
|
|
4055
4055
|
* @see https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getbestbidask
|
|
4056
4056
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
4057
4057
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4058
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
4058
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
4059
4059
|
*/
|
|
4060
4060
|
async fetchBidsAsks(symbols = undefined, params = {}) {
|
|
4061
4061
|
await this.loadMarkets();
|
|
@@ -4100,7 +4100,7 @@ export default class coinbase extends Exchange {
|
|
|
4100
4100
|
* @param {string} address the address to withdraw to
|
|
4101
4101
|
* @param {string} [tag] an optional tag for the withdrawal
|
|
4102
4102
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4103
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
4103
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
4104
4104
|
*/
|
|
4105
4105
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
4106
4106
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -4191,7 +4191,7 @@ export default class coinbase extends Exchange {
|
|
|
4191
4191
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postcoinbaseaccountaddresses
|
|
4192
4192
|
* @param {string} code unified currency code
|
|
4193
4193
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4194
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
4194
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
4195
4195
|
*/
|
|
4196
4196
|
async fetchDepositAddressesByNetwork(code, params = {}) {
|
|
4197
4197
|
await this.loadMarkets();
|
|
@@ -4331,7 +4331,7 @@ export default class coinbase extends Exchange {
|
|
|
4331
4331
|
* @param {string} id the payment method id to be used for the deposit, can be retrieved from v2PrivateGetPaymentMethods
|
|
4332
4332
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4333
4333
|
* @param {string} [params.accountId] the id of the account to deposit into
|
|
4334
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
4334
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
4335
4335
|
*/
|
|
4336
4336
|
async deposit(code, amount, id, params = {}) {
|
|
4337
4337
|
await this.loadMarkets();
|
|
@@ -4403,7 +4403,7 @@ export default class coinbase extends Exchange {
|
|
|
4403
4403
|
* @param {string} [code] unified currency code
|
|
4404
4404
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4405
4405
|
* @param {string} [params.accountId] the id of the account that the funds were deposited into
|
|
4406
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
4406
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
4407
4407
|
*/
|
|
4408
4408
|
async fetchDeposit(id, code = undefined, params = {}) {
|
|
4409
4409
|
await this.loadMarkets();
|
|
@@ -4469,7 +4469,7 @@ export default class coinbase extends Exchange {
|
|
|
4469
4469
|
* @description fetch the deposit id for a fiat currency associated with this account
|
|
4470
4470
|
* @see https://docs.cdp.coinbase.com/advanced-trade/reference/retailbrokerageapi_getpaymentmethods
|
|
4471
4471
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4472
|
-
* @returns {object} an array of [deposit id structures]{@link https://docs.ccxt.com
|
|
4472
|
+
* @returns {object} an array of [deposit id structures]{@link https://docs.ccxt.com/?id=deposit-id-structure}
|
|
4473
4473
|
*/
|
|
4474
4474
|
async fetchDepositMethodIds(params = {}) {
|
|
4475
4475
|
await this.loadMarkets();
|
|
@@ -4503,7 +4503,7 @@ export default class coinbase extends Exchange {
|
|
|
4503
4503
|
* @see https://docs.cdp.coinbase.com/advanced-trade/reference/retailbrokerageapi_getpaymentmethod
|
|
4504
4504
|
* @param {string} id the deposit payment method id
|
|
4505
4505
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4506
|
-
* @returns {object} a [deposit id structure]{@link https://docs.ccxt.com
|
|
4506
|
+
* @returns {object} a [deposit id structure]{@link https://docs.ccxt.com/?id=deposit-id-structure}
|
|
4507
4507
|
*/
|
|
4508
4508
|
async fetchDepositMethodId(id, params = {}) {
|
|
4509
4509
|
await this.loadMarkets();
|
|
@@ -4560,7 +4560,7 @@ export default class coinbase extends Exchange {
|
|
|
4560
4560
|
* @param {object} [params.trade_incentive_metadata] an object to fill in user incentive data
|
|
4561
4561
|
* @param {string} [params.trade_incentive_metadata.user_incentive_id] the id of the incentive
|
|
4562
4562
|
* @param {string} [params.trade_incentive_metadata.code_val] the code value of the incentive
|
|
4563
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
4563
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
4564
4564
|
*/
|
|
4565
4565
|
async fetchConvertQuote(fromCode, toCode, amount = undefined, params = {}) {
|
|
4566
4566
|
await this.loadMarkets();
|
|
@@ -4583,7 +4583,7 @@ export default class coinbase extends Exchange {
|
|
|
4583
4583
|
* @param {string} toCode the currency that you want to buy and convert into
|
|
4584
4584
|
* @param {float} [amount] how much you want to trade in units of the from currency
|
|
4585
4585
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4586
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
4586
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
4587
4587
|
*/
|
|
4588
4588
|
async createConvertTrade(id, fromCode, toCode, amount = undefined, params = {}) {
|
|
4589
4589
|
await this.loadMarkets();
|
|
@@ -4605,7 +4605,7 @@ export default class coinbase extends Exchange {
|
|
|
4605
4605
|
* @param {string} code the unified currency code that was converted from
|
|
4606
4606
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4607
4607
|
* @param {strng} params.toCode the unified currency code that was converted into
|
|
4608
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
4608
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
4609
4609
|
*/
|
|
4610
4610
|
async fetchConvertTrade(id, code = undefined, params = {}) {
|
|
4611
4611
|
await this.loadMarkets();
|
|
@@ -4657,7 +4657,7 @@ export default class coinbase extends Exchange {
|
|
|
4657
4657
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
4658
4658
|
* @param {string} params.clientOrderId *mandatory* the client order id of the position to close
|
|
4659
4659
|
* @param {float} [params.size] the size of the position to close, optional
|
|
4660
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
4660
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4661
4661
|
*/
|
|
4662
4662
|
async closePosition(symbol, side = undefined, params = {}) {
|
|
4663
4663
|
await this.loadMarkets();
|
|
@@ -4684,7 +4684,7 @@ export default class coinbase extends Exchange {
|
|
|
4684
4684
|
* @param {string[]} [symbols] list of unified market symbols
|
|
4685
4685
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4686
4686
|
* @param {string} [params.portfolio] the portfolio UUID to fetch positions for
|
|
4687
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
4687
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
4688
4688
|
*/
|
|
4689
4689
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
4690
4690
|
await this.loadMarkets();
|
|
@@ -4723,7 +4723,7 @@ export default class coinbase extends Exchange {
|
|
|
4723
4723
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4724
4724
|
* @param {string} [params.product_id] *futures only* the product id of the position to fetch, required for futures markets only
|
|
4725
4725
|
* @param {string} [params.portfolio] *perpetual/swaps only* the portfolio UUID to fetch the position for, required for perpetual/swaps markets only
|
|
4726
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
4726
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
4727
4727
|
*/
|
|
4728
4728
|
async fetchPosition(symbol, params = {}) {
|
|
4729
4729
|
await this.loadMarkets();
|
|
@@ -4897,7 +4897,7 @@ export default class coinbase extends Exchange {
|
|
|
4897
4897
|
* @description fetch the trading fees for multiple markets
|
|
4898
4898
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4899
4899
|
* @param {string} [params.type] 'spot' or 'swap'
|
|
4900
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
4900
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
4901
4901
|
*/
|
|
4902
4902
|
async fetchTradingFees(params = {}) {
|
|
4903
4903
|
await this.loadMarkets();
|
|
@@ -4958,7 +4958,7 @@ export default class coinbase extends Exchange {
|
|
|
4958
4958
|
* @see https://docs.cloud.coinbase.com/advanced-trade/reference/retailbrokerageapi_getportfolios
|
|
4959
4959
|
* @param {string} portfolioUuid The unique identifier of the portfolio to fetch
|
|
4960
4960
|
* @param {Dict} [params] Extra parameters specific to the exchange API endpoint
|
|
4961
|
-
* @returns {any[]} An account structure <https://docs.ccxt.com
|
|
4961
|
+
* @returns {any[]} An account structure <https://docs.ccxt.com/?id=account-structure>
|
|
4962
4962
|
*/
|
|
4963
4963
|
async fetchPortfolioDetails(portfolioUuid, params = {}) {
|
|
4964
4964
|
await this.loadMarkets();
|
|
@@ -30,7 +30,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
30
30
|
* @description fetch all the accounts associated with a profile
|
|
31
31
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounts
|
|
32
32
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
33
|
-
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com
|
|
33
|
+
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/?id=account-structure} indexed by the account type
|
|
34
34
|
*/
|
|
35
35
|
fetchAccounts(params?: {}): Promise<Account[]>;
|
|
36
36
|
parseAccount(account: any): {
|
|
@@ -46,7 +46,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
46
46
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
47
47
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounts
|
|
48
48
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
49
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
49
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
50
50
|
*/
|
|
51
51
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
52
52
|
/**
|
|
@@ -57,7 +57,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
57
57
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
58
58
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
59
59
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
60
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
60
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
61
61
|
*/
|
|
62
62
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
63
63
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
@@ -68,7 +68,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
68
68
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproduct
|
|
69
69
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
70
70
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
71
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
71
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
72
72
|
*/
|
|
73
73
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
74
74
|
/**
|
|
@@ -78,7 +78,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
78
78
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
79
79
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
80
80
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
81
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
81
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
82
82
|
*/
|
|
83
83
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
84
84
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
@@ -93,7 +93,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
93
93
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
94
94
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
95
95
|
* @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)
|
|
96
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
96
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
97
97
|
*/
|
|
98
98
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
99
99
|
/**
|
|
@@ -105,7 +105,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
105
105
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
106
106
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
107
107
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
108
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
108
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
109
109
|
*/
|
|
110
110
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
111
111
|
/**
|
|
@@ -114,7 +114,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
114
114
|
* @description fetch the trading fees for multiple markets
|
|
115
115
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getfees
|
|
116
116
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
117
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
117
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
118
118
|
*/
|
|
119
119
|
fetchTradingFees(params?: {}): Promise<TradingFees>;
|
|
120
120
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
@@ -151,7 +151,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
151
151
|
* @param {string} id the order id
|
|
152
152
|
* @param {string} symbol not used by coinbaseexchange fetchOrder
|
|
153
153
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
154
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
154
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
155
155
|
*/
|
|
156
156
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
157
157
|
/**
|
|
@@ -163,7 +163,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
163
163
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
164
164
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
165
165
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
166
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
166
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
167
167
|
*/
|
|
168
168
|
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
169
169
|
/**
|
|
@@ -176,7 +176,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
176
176
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
177
177
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
178
178
|
* @param {int} [params.until] the latest time in ms to fetch open orders for
|
|
179
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
179
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
180
180
|
*/
|
|
181
181
|
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
182
182
|
/**
|
|
@@ -190,7 +190,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
190
190
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
191
191
|
* @param {int} [params.until] the latest time in ms to fetch open orders for
|
|
192
192
|
* @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)
|
|
193
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
193
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
194
194
|
*/
|
|
195
195
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
196
196
|
/**
|
|
@@ -203,7 +203,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
203
203
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
204
204
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
205
205
|
* @param {int} [params.until] the latest time in ms to fetch open orders for
|
|
206
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
206
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
207
207
|
*/
|
|
208
208
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
209
209
|
/**
|
|
@@ -217,7 +217,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
217
217
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
218
218
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
219
219
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
220
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
220
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
221
221
|
*/
|
|
222
222
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
223
223
|
/**
|
|
@@ -228,7 +228,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
228
228
|
* @param {string} id order id
|
|
229
229
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
230
230
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
231
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
231
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
232
232
|
*/
|
|
233
233
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
234
234
|
/**
|
|
@@ -238,7 +238,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
238
238
|
* @description cancel all open orders
|
|
239
239
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
240
240
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
241
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
241
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
242
242
|
*/
|
|
243
243
|
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
244
244
|
fetchPaymentMethods(params?: {}): Promise<any>;
|
|
@@ -253,7 +253,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
253
253
|
* @param {string} address the address to withdraw to
|
|
254
254
|
* @param {string} tag
|
|
255
255
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
256
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
256
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
257
257
|
*/
|
|
258
258
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
259
259
|
parseLedgerEntryType(type: any): string;
|
|
@@ -268,7 +268,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
268
268
|
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
269
269
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
270
270
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
271
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
271
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
272
272
|
*/
|
|
273
273
|
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
|
|
274
274
|
/**
|
|
@@ -282,7 +282,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
282
282
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
283
283
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
284
284
|
* @param {string} [params.id] account id, when defined, the endpoint used is '/accounts/{account_id}/transfers/' instead of '/transfers/'
|
|
285
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
285
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
286
286
|
*/
|
|
287
287
|
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
288
288
|
/**
|
|
@@ -295,7 +295,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
295
295
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
296
296
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
297
297
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
298
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
298
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
299
299
|
*/
|
|
300
300
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
301
301
|
/**
|
|
@@ -308,7 +308,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
308
308
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
309
309
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
310
310
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
311
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
311
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
312
312
|
*/
|
|
313
313
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
314
314
|
parseTransactionStatus(transaction: any): "pending" | "ok" | "failed" | "canceled";
|
|
@@ -320,7 +320,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
320
320
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postcoinbaseaccountaddresses
|
|
321
321
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
322
322
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
323
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
323
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
324
324
|
*/
|
|
325
325
|
createDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
326
326
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|