ccxt 4.5.28 → 4.5.30
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 +24 -7
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +6 -1
- package/dist/cjs/src/abstract/bydfi.js +11 -0
- 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 +47 -47
- 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 +27 -27
- package/dist/cjs/src/bybit.js +69 -67
- package/dist/cjs/src/bydfi.js +2907 -0
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +74 -41
- 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 +25 -25
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +60 -59
- 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 +86 -45
- 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 +156 -48
- 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 +13 -11
- 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 +45 -41
- package/dist/cjs/src/pro/bingx.js +14 -12
- 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 +393 -34
- 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 +24 -22
- package/dist/cjs/src/pro/bydfi.js +1077 -0
- 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 +25 -23
- 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 +26 -62
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +11 -9
- 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 +18 -16
- 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 +13 -11
- 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 +20 -16
- 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 +18 -16
- package/dist/cjs/src/pro/woofipro.js +25 -23
- package/dist/cjs/src/pro/xt.js +7 -5
- 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 +33 -30
- 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 +8 -2
- package/js/ccxt.js +6 -2
- package/js/src/abstract/bydfi.d.ts +52 -0
- package/js/src/abstract/bydfi.js +11 -0
- 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 +47 -47
- 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 +27 -27
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +69 -67
- package/js/src/bydfi.d.ts +472 -0
- package/js/src/bydfi.js +2905 -0
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +51 -40
- package/js/src/coinbase.js +74 -41
- 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 +25 -25
- 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 +60 -59
- 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 +86 -45
- 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 +58 -44
- package/js/src/kucoin.js +156 -48
- 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 +13 -11
- 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 +45 -41
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +14 -12
- 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 +393 -34
- 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 +24 -22
- package/js/src/pro/bydfi.d.ts +206 -0
- package/js/src/pro/bydfi.js +1076 -0
- 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 +25 -23
- 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 +26 -62
- 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 +11 -9
- 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 +18 -16
- 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 +13 -11
- 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 +20 -16
- 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 +18 -16
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +25 -23
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +7 -5
- 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 +33 -30
- 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
|
@@ -415,7 +415,7 @@ export default class independentreserve extends Exchange {
|
|
|
415
415
|
* @name independentreserve#fetchBalance
|
|
416
416
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
417
417
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
418
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
418
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
419
419
|
*/
|
|
420
420
|
async fetchBalance(params = {}) {
|
|
421
421
|
await this.loadMarkets();
|
|
@@ -429,7 +429,7 @@ export default class independentreserve extends Exchange {
|
|
|
429
429
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
430
430
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
431
431
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
432
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
432
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
433
433
|
*/
|
|
434
434
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
435
435
|
await this.loadMarkets();
|
|
@@ -495,7 +495,7 @@ export default class independentreserve extends Exchange {
|
|
|
495
495
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
496
496
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
497
497
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
498
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
498
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
499
499
|
*/
|
|
500
500
|
async fetchTicker(symbol, params = {}) {
|
|
501
501
|
await this.loadMarkets();
|
|
@@ -655,7 +655,7 @@ export default class independentreserve extends Exchange {
|
|
|
655
655
|
* @param {string} id order id
|
|
656
656
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
657
657
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
658
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
658
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
659
659
|
*/
|
|
660
660
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
661
661
|
await this.loadMarkets();
|
|
@@ -676,7 +676,7 @@ export default class independentreserve extends Exchange {
|
|
|
676
676
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
677
677
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
678
678
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
679
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
679
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
680
680
|
*/
|
|
681
681
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
682
682
|
await this.loadMarkets();
|
|
@@ -704,7 +704,7 @@ export default class independentreserve extends Exchange {
|
|
|
704
704
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
705
705
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
706
706
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
707
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
707
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
708
708
|
*/
|
|
709
709
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
710
710
|
await this.loadMarkets();
|
|
@@ -732,7 +732,7 @@ export default class independentreserve extends Exchange {
|
|
|
732
732
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
733
733
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
734
734
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
735
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
735
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
736
736
|
*/
|
|
737
737
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = 50, params = {}) {
|
|
738
738
|
await this.loadMarkets();
|
|
@@ -800,7 +800,7 @@ export default class independentreserve extends Exchange {
|
|
|
800
800
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
801
801
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
802
802
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
803
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
803
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
804
804
|
*/
|
|
805
805
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
806
806
|
await this.loadMarkets();
|
|
@@ -818,7 +818,7 @@ export default class independentreserve extends Exchange {
|
|
|
818
818
|
* @name independentreserve#fetchTradingFees
|
|
819
819
|
* @description fetch the trading fees for multiple markets
|
|
820
820
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
821
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
821
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
822
822
|
*/
|
|
823
823
|
async fetchTradingFees(params = {}) {
|
|
824
824
|
await this.loadMarkets();
|
|
@@ -869,7 +869,7 @@ export default class independentreserve extends Exchange {
|
|
|
869
869
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
870
870
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
871
871
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
872
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
872
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
873
873
|
*/
|
|
874
874
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
875
875
|
await this.loadMarkets();
|
|
@@ -903,7 +903,7 @@ export default class independentreserve extends Exchange {
|
|
|
903
903
|
* @param {string} id order id
|
|
904
904
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
905
905
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
906
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
906
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
907
907
|
*/
|
|
908
908
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
909
909
|
await this.loadMarkets();
|
|
@@ -935,7 +935,7 @@ export default class independentreserve extends Exchange {
|
|
|
935
935
|
* @see https://www.independentreserve.com/features/api#GetDigitalCurrencyDepositAddress
|
|
936
936
|
* @param {string} code unified currency code
|
|
937
937
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
938
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
938
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
939
939
|
*/
|
|
940
940
|
async fetchDepositAddress(code, params = {}) {
|
|
941
941
|
await this.loadMarkets();
|
|
@@ -986,7 +986,7 @@ export default class independentreserve extends Exchange {
|
|
|
986
986
|
*
|
|
987
987
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
988
988
|
* @param {object} [params.comment] withdrawal comment, should not exceed 500 characters
|
|
989
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
989
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
990
990
|
*/
|
|
991
991
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
992
992
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
package/js/src/indodax.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export default class indodax extends Exchange {
|
|
|
32
32
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
33
33
|
* @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#get-info-endpoint
|
|
34
34
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
35
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
35
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
36
36
|
*/
|
|
37
37
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
38
38
|
/**
|
|
@@ -43,7 +43,7 @@ export default class indodax extends Exchange {
|
|
|
43
43
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
44
44
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
45
45
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
46
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
46
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
47
47
|
*/
|
|
48
48
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
49
49
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
@@ -54,7 +54,7 @@ export default class indodax extends Exchange {
|
|
|
54
54
|
* @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker
|
|
55
55
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
56
56
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
57
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
57
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
58
58
|
*/
|
|
59
59
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
60
60
|
/**
|
|
@@ -64,7 +64,7 @@ export default class indodax extends Exchange {
|
|
|
64
64
|
* @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker-all
|
|
65
65
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
66
66
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
67
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
67
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
68
68
|
*/
|
|
69
69
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
70
70
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
@@ -77,7 +77,7 @@ export default class indodax extends Exchange {
|
|
|
77
77
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
78
78
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
79
79
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
80
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
80
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
81
81
|
*/
|
|
82
82
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
83
83
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
@@ -104,7 +104,7 @@ export default class indodax extends Exchange {
|
|
|
104
104
|
* @param {string} id order id
|
|
105
105
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
106
106
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
107
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
107
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
108
108
|
*/
|
|
109
109
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
110
110
|
/**
|
|
@@ -116,7 +116,7 @@ export default class indodax extends Exchange {
|
|
|
116
116
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
117
117
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
118
118
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
119
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
119
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
120
120
|
*/
|
|
121
121
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
122
122
|
/**
|
|
@@ -128,7 +128,7 @@ export default class indodax extends Exchange {
|
|
|
128
128
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
129
129
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
130
130
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
131
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
131
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
132
132
|
*/
|
|
133
133
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
134
134
|
/**
|
|
@@ -142,7 +142,7 @@ export default class indodax extends Exchange {
|
|
|
142
142
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
143
143
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
144
144
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
145
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
145
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
146
146
|
*/
|
|
147
147
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
148
148
|
/**
|
|
@@ -153,7 +153,7 @@ export default class indodax extends Exchange {
|
|
|
153
153
|
* @param {string} id order id
|
|
154
154
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
155
155
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
156
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
156
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
157
157
|
*/
|
|
158
158
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
159
159
|
/**
|
|
@@ -163,7 +163,7 @@ export default class indodax extends Exchange {
|
|
|
163
163
|
* @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#withdraw-fee-endpoints
|
|
164
164
|
* @param {string} code unified currency code
|
|
165
165
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
166
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
166
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
167
167
|
*/
|
|
168
168
|
fetchTransactionFee(code: string, params?: {}): Promise<{
|
|
169
169
|
info: any;
|
|
@@ -179,7 +179,7 @@ export default class indodax extends Exchange {
|
|
|
179
179
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
180
180
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
181
181
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
182
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
182
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
183
183
|
*/
|
|
184
184
|
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
185
185
|
/**
|
|
@@ -192,7 +192,7 @@ export default class indodax extends Exchange {
|
|
|
192
192
|
* @param {string} address the address to withdraw to
|
|
193
193
|
* @param {string} tag
|
|
194
194
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
195
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
195
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
196
196
|
*/
|
|
197
197
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
198
198
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
@@ -204,7 +204,7 @@ export default class indodax extends Exchange {
|
|
|
204
204
|
* @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#general-information-on-endpoints
|
|
205
205
|
* @param {string[]} [codes] list of unified currency codes, default is undefined
|
|
206
206
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
207
|
-
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com
|
|
207
|
+
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/?id=address-structure}
|
|
208
208
|
*/
|
|
209
209
|
fetchDepositAddresses(codes?: Strings, params?: {}): Promise<DepositAddress[]>;
|
|
210
210
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
package/js/src/indodax.js
CHANGED
|
@@ -455,7 +455,7 @@ export default class indodax extends Exchange {
|
|
|
455
455
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
456
456
|
* @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#get-info-endpoint
|
|
457
457
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
458
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
458
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
459
459
|
*/
|
|
460
460
|
async fetchBalance(params = {}) {
|
|
461
461
|
await this.loadMarkets();
|
|
@@ -500,7 +500,7 @@ export default class indodax extends Exchange {
|
|
|
500
500
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
501
501
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
502
502
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
503
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
503
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
504
504
|
*/
|
|
505
505
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
506
506
|
await this.loadMarkets();
|
|
@@ -559,7 +559,7 @@ export default class indodax extends Exchange {
|
|
|
559
559
|
* @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker
|
|
560
560
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
561
561
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
562
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
562
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
563
563
|
*/
|
|
564
564
|
async fetchTicker(symbol, params = {}) {
|
|
565
565
|
await this.loadMarkets();
|
|
@@ -592,7 +592,7 @@ export default class indodax extends Exchange {
|
|
|
592
592
|
* @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker-all
|
|
593
593
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
594
594
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
595
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
595
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
596
596
|
*/
|
|
597
597
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
598
598
|
await this.loadMarkets();
|
|
@@ -653,7 +653,7 @@ export default class indodax extends Exchange {
|
|
|
653
653
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
654
654
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
655
655
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
656
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
656
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
657
657
|
*/
|
|
658
658
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
659
659
|
await this.loadMarkets();
|
|
@@ -846,7 +846,7 @@ export default class indodax extends Exchange {
|
|
|
846
846
|
* @param {string} id order id
|
|
847
847
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
848
848
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
849
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
849
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
850
850
|
*/
|
|
851
851
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
852
852
|
if (symbol === undefined) {
|
|
@@ -873,7 +873,7 @@ export default class indodax extends Exchange {
|
|
|
873
873
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
874
874
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
875
875
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
876
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
876
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
877
877
|
*/
|
|
878
878
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
879
879
|
await this.loadMarkets();
|
|
@@ -914,7 +914,7 @@ export default class indodax extends Exchange {
|
|
|
914
914
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
915
915
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
916
916
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
917
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
917
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
918
918
|
*/
|
|
919
919
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
920
920
|
if (symbol === undefined) {
|
|
@@ -941,7 +941,7 @@ export default class indodax extends Exchange {
|
|
|
941
941
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
942
942
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
943
943
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
944
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
944
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
945
945
|
*/
|
|
946
946
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
947
947
|
await this.loadMarkets();
|
|
@@ -1008,7 +1008,7 @@ export default class indodax extends Exchange {
|
|
|
1008
1008
|
* @param {string} id order id
|
|
1009
1009
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1010
1010
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1011
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1011
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1012
1012
|
*/
|
|
1013
1013
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1014
1014
|
if (symbol === undefined) {
|
|
@@ -1055,7 +1055,7 @@ export default class indodax extends Exchange {
|
|
|
1055
1055
|
* @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#withdraw-fee-endpoints
|
|
1056
1056
|
* @param {string} code unified currency code
|
|
1057
1057
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1058
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
1058
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
1059
1059
|
*/
|
|
1060
1060
|
async fetchTransactionFee(code, params = {}) {
|
|
1061
1061
|
await this.loadMarkets();
|
|
@@ -1091,7 +1091,7 @@ export default class indodax extends Exchange {
|
|
|
1091
1091
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1092
1092
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1093
1093
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1094
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
1094
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1095
1095
|
*/
|
|
1096
1096
|
async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1097
1097
|
await this.loadMarkets();
|
|
@@ -1194,7 +1194,7 @@ export default class indodax extends Exchange {
|
|
|
1194
1194
|
* @param {string} address the address to withdraw to
|
|
1195
1195
|
* @param {string} tag
|
|
1196
1196
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1197
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
1197
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1198
1198
|
*/
|
|
1199
1199
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
1200
1200
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1325,7 +1325,7 @@ export default class indodax extends Exchange {
|
|
|
1325
1325
|
* @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#general-information-on-endpoints
|
|
1326
1326
|
* @param {string[]} [codes] list of unified currency codes, default is undefined
|
|
1327
1327
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1328
|
-
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com
|
|
1328
|
+
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/?id=address-structure}
|
|
1329
1329
|
*/
|
|
1330
1330
|
async fetchDepositAddresses(codes = undefined, params = {}) {
|
|
1331
1331
|
await this.loadMarkets();
|
package/js/src/kraken.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export default class kraken extends Exchange {
|
|
|
23
23
|
* @description the latest known information on the availability of the exchange API
|
|
24
24
|
* @see https://docs.kraken.com/api/docs/rest-api/get-system-status/
|
|
25
25
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
26
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
26
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
27
27
|
*/
|
|
28
28
|
fetchStatus(params?: {}): Promise<{
|
|
29
29
|
status: string;
|
|
@@ -49,7 +49,7 @@ export default class kraken extends Exchange {
|
|
|
49
49
|
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getTradeVolume
|
|
50
50
|
* @param {string} symbol unified market symbol
|
|
51
51
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
52
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
52
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
53
53
|
*/
|
|
54
54
|
fetchTradingFee(symbol: string, params?: {}): Promise<TradingFeeInterface>;
|
|
55
55
|
parseTradingFee(response: any, market: any): {
|
|
@@ -69,7 +69,7 @@ export default class kraken extends Exchange {
|
|
|
69
69
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
70
70
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
71
71
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
72
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
72
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
73
73
|
*/
|
|
74
74
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
75
75
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
@@ -80,7 +80,7 @@ export default class kraken extends Exchange {
|
|
|
80
80
|
* @see https://docs.kraken.com/rest/#tag/Spot-Market-Data/operation/getTickerInformation
|
|
81
81
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
82
82
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
83
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
83
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
84
84
|
*/
|
|
85
85
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
86
86
|
/**
|
|
@@ -90,7 +90,7 @@ export default class kraken extends Exchange {
|
|
|
90
90
|
* @see https://docs.kraken.com/rest/#tag/Spot-Market-Data/operation/getTickerInformation
|
|
91
91
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
92
92
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
93
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
93
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
94
94
|
*/
|
|
95
95
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
96
96
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
@@ -121,7 +121,7 @@ export default class kraken extends Exchange {
|
|
|
121
121
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
122
122
|
* @param {int} [params.until] timestamp in ms of the latest ledger entry
|
|
123
123
|
* @param {int} [params.end] timestamp in seconds of the latest ledger entry
|
|
124
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
124
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
125
125
|
*/
|
|
126
126
|
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
|
|
127
127
|
fetchLedgerEntriesByIds(ids: any, code?: Str, params?: {}): Promise<LedgerEntry[]>;
|
|
@@ -136,7 +136,7 @@ export default class kraken extends Exchange {
|
|
|
136
136
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
137
137
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
138
138
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
139
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
139
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
140
140
|
*/
|
|
141
141
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
142
142
|
parseBalance(response: any): Balances;
|
|
@@ -146,7 +146,7 @@ export default class kraken extends Exchange {
|
|
|
146
146
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
147
147
|
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getExtendedBalance
|
|
148
148
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
149
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
149
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
150
150
|
*/
|
|
151
151
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
152
152
|
/**
|
|
@@ -158,7 +158,7 @@ export default class kraken extends Exchange {
|
|
|
158
158
|
* @param {string} side 'buy' or 'sell'
|
|
159
159
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
160
160
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
161
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
161
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
162
162
|
*/
|
|
163
163
|
createMarketOrderWithCost(symbol: string, side: OrderSide, cost: number, params?: {}): Promise<Order>;
|
|
164
164
|
/**
|
|
@@ -169,7 +169,7 @@ export default class kraken extends Exchange {
|
|
|
169
169
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
170
170
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
171
171
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
172
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
172
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
173
173
|
*/
|
|
174
174
|
createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
|
|
175
175
|
/**
|
|
@@ -193,7 +193,7 @@ export default class kraken extends Exchange {
|
|
|
193
193
|
* @param {string} [params.trailingLimitPercent] *margin only* the percent away from the trailingAmount
|
|
194
194
|
* @param {string} [params.offset] *margin only* '+' or '-' whether you want the trailingLimitAmount value to be positive or negative, default is negative '-'
|
|
195
195
|
* @param {string} [params.trigger] *margin only* the activation price type, 'last' or 'index', default is 'last'
|
|
196
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
196
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
197
197
|
*/
|
|
198
198
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
199
199
|
/**
|
|
@@ -203,7 +203,7 @@ export default class kraken extends Exchange {
|
|
|
203
203
|
* @see https://docs.kraken.com/api/docs/rest-api/add-order-batch/
|
|
204
204
|
* @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
205
205
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
206
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
206
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
207
207
|
*/
|
|
208
208
|
createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
|
|
209
209
|
findMarketByAltnameOrId(id: any): any;
|
|
@@ -233,7 +233,7 @@ export default class kraken extends Exchange {
|
|
|
233
233
|
* @param {string} [params.offset] '+' or '-' whether you want the trailingLimitAmount value to be positive or negative
|
|
234
234
|
* @param {boolean} [params.postOnly] if true, the order will only be posted to the order book and not executed immediately
|
|
235
235
|
* @param {string} [params.clientOrderId] the orders client order id
|
|
236
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
236
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
237
237
|
*/
|
|
238
238
|
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
239
239
|
/**
|
|
@@ -244,7 +244,7 @@ export default class kraken extends Exchange {
|
|
|
244
244
|
* @param {string} id order id
|
|
245
245
|
* @param {string} symbol not used by kraken fetchOrder
|
|
246
246
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
247
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
247
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
248
248
|
*/
|
|
249
249
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
250
250
|
/**
|
|
@@ -257,7 +257,7 @@ export default class kraken extends Exchange {
|
|
|
257
257
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
258
258
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
259
259
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
260
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
260
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
261
261
|
*/
|
|
262
262
|
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
263
263
|
/**
|
|
@@ -268,7 +268,7 @@ export default class kraken extends Exchange {
|
|
|
268
268
|
* @param {string[]} [ids] list of order id
|
|
269
269
|
* @param {string} [symbol] unified ccxt market symbol
|
|
270
270
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
271
|
-
* @returns {object[]} a list of [order structure]{@link https://docs.ccxt.com
|
|
271
|
+
* @returns {object[]} a list of [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
272
272
|
*/
|
|
273
273
|
fetchOrdersByIds(ids: any, symbol?: Str, params?: {}): Promise<any[]>;
|
|
274
274
|
/**
|
|
@@ -282,7 +282,7 @@ export default class kraken extends Exchange {
|
|
|
282
282
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
283
283
|
* @param {int} [params.until] timestamp in ms of the latest trade entry
|
|
284
284
|
* @param {int} [params.end] timestamp in seconds of the latest trade entry
|
|
285
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
285
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
286
286
|
*/
|
|
287
287
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
288
288
|
/**
|
|
@@ -295,7 +295,7 @@ export default class kraken extends Exchange {
|
|
|
295
295
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
296
296
|
* @param {string} [params.clientOrderId] the orders client order id
|
|
297
297
|
* @param {int} [params.userref] the orders user reference id
|
|
298
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
298
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
299
299
|
*/
|
|
300
300
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
301
301
|
/**
|
|
@@ -306,7 +306,7 @@ export default class kraken extends Exchange {
|
|
|
306
306
|
* @param {string[]} ids open orders transaction ID (txid) or user reference (userref)
|
|
307
307
|
* @param {string} symbol unified market symbol
|
|
308
308
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
309
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
309
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
310
310
|
*/
|
|
311
311
|
cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
|
|
312
312
|
/**
|
|
@@ -316,7 +316,7 @@ export default class kraken extends Exchange {
|
|
|
316
316
|
* @see https://docs.kraken.com/rest/#tag/Spot-Trading/operation/cancelAllOrders
|
|
317
317
|
* @param {string} symbol unified market symbol, not used by kraken cancelAllOrders (all open orders are cancelled)
|
|
318
318
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
319
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
319
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
320
320
|
*/
|
|
321
321
|
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
322
322
|
/**
|
|
@@ -340,7 +340,7 @@ export default class kraken extends Exchange {
|
|
|
340
340
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
341
341
|
* @param {string} [params.clientOrderId] the orders client order id
|
|
342
342
|
* @param {int} [params.userref] the orders user reference id
|
|
343
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
343
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
344
344
|
*/
|
|
345
345
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
346
346
|
/**
|
|
@@ -355,7 +355,7 @@ export default class kraken extends Exchange {
|
|
|
355
355
|
* @param {int} [params.until] timestamp in ms of the latest entry
|
|
356
356
|
* @param {string} [params.clientOrderId] the orders client order id
|
|
357
357
|
* @param {int} [params.userref] the orders user reference id
|
|
358
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
358
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
359
359
|
*/
|
|
360
360
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
361
361
|
parseTransactionStatus(status: Str): string;
|
|
@@ -373,7 +373,7 @@ export default class kraken extends Exchange {
|
|
|
373
373
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
374
374
|
* @param {int} [params.until] timestamp in ms of the latest transaction entry
|
|
375
375
|
* @param {int} [params.end] timestamp in seconds of the latest transaction entry
|
|
376
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
376
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
377
377
|
*/
|
|
378
378
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
379
379
|
/**
|
|
@@ -397,7 +397,7 @@ export default class kraken extends Exchange {
|
|
|
397
397
|
* @param {int} [params.until] timestamp in ms of the latest transaction entry
|
|
398
398
|
* @param {int} [params.end] timestamp in seconds of the latest transaction entry
|
|
399
399
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times
|
|
400
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
400
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
401
401
|
*/
|
|
402
402
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
403
403
|
addPaginationCursorToResult(result: any): any;
|
|
@@ -408,7 +408,7 @@ export default class kraken extends Exchange {
|
|
|
408
408
|
* @see https://docs.kraken.com/rest/#tag/Funding/operation/getDepositAddresses
|
|
409
409
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
410
410
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
411
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
411
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
412
412
|
*/
|
|
413
413
|
createDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
414
414
|
/**
|
|
@@ -428,7 +428,7 @@ export default class kraken extends Exchange {
|
|
|
428
428
|
* @see https://docs.kraken.com/rest/#tag/Funding/operation/getDepositAddresses
|
|
429
429
|
* @param {string} code unified currency code
|
|
430
430
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
431
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
431
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
432
432
|
*/
|
|
433
433
|
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
434
434
|
parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
|
|
@@ -442,7 +442,7 @@ export default class kraken extends Exchange {
|
|
|
442
442
|
* @param {string} address the address to withdraw to, not required can be '' or undefined/none/null
|
|
443
443
|
* @param {string} tag
|
|
444
444
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
445
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
445
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
446
446
|
*/
|
|
447
447
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
448
448
|
/**
|
|
@@ -452,7 +452,7 @@ export default class kraken extends Exchange {
|
|
|
452
452
|
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenPositions
|
|
453
453
|
* @param {string[]} [symbols] not used by kraken fetchPositions ()
|
|
454
454
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
455
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
455
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
456
456
|
*/
|
|
457
457
|
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
458
458
|
parsePosition(position: Dict, market?: Market): Position;
|
|
@@ -465,7 +465,7 @@ export default class kraken extends Exchange {
|
|
|
465
465
|
* @param {str} code Unified currency code
|
|
466
466
|
* @param {float} amount Size of the transfer
|
|
467
467
|
* @param {dict} [params] Exchange specific parameters
|
|
468
|
-
* @returns a [transfer structure]{@link https://docs.ccxt.com
|
|
468
|
+
* @returns a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
469
469
|
*/
|
|
470
470
|
transferOut(code: string, amount: any, params?: {}): Promise<TransferEntry>;
|
|
471
471
|
/**
|
|
@@ -478,7 +478,7 @@ export default class kraken extends Exchange {
|
|
|
478
478
|
* @param {string} fromAccount 'spot' or 'Spot Wallet'
|
|
479
479
|
* @param {string} toAccount 'swap' or 'Futures Wallet'
|
|
480
480
|
* @param {object} [params] Exchange specific parameters
|
|
481
|
-
* @returns a [transfer structure]{@link https://docs.ccxt.com
|
|
481
|
+
* @returns a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
482
482
|
*/
|
|
483
483
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
484
484
|
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|