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
package/dist/cjs/src/toobit.js
CHANGED
|
@@ -407,7 +407,7 @@ class toobit extends toobit$1["default"] {
|
|
|
407
407
|
* @description the latest known information on the availability of the exchange API
|
|
408
408
|
* @see https://toobit-docs.github.io/apidocs/spot/v1/en/#test-connectivity
|
|
409
409
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
410
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
410
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
411
411
|
*/
|
|
412
412
|
async fetchStatus(params = {}) {
|
|
413
413
|
const response = await this.commonGetApiV1Ping(params);
|
|
@@ -877,7 +877,7 @@ class toobit extends toobit$1["default"] {
|
|
|
877
877
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
878
878
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
879
879
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
880
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
880
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
881
881
|
*/
|
|
882
882
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
883
883
|
await this.loadMarkets();
|
|
@@ -929,7 +929,7 @@ class toobit extends toobit$1["default"] {
|
|
|
929
929
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
930
930
|
* @param {int} [limit] the maximum number of trades to fetch
|
|
931
931
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
932
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
932
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
933
933
|
*/
|
|
934
934
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
935
935
|
await this.loadMarkets();
|
|
@@ -1179,7 +1179,7 @@ class toobit extends toobit$1["default"] {
|
|
|
1179
1179
|
* @see https://toobit-docs.github.io/apidocs/usdt_swap/v1/en/#24hr-ticker-price-change-statistics
|
|
1180
1180
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1181
1181
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1182
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
1182
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1183
1183
|
*/
|
|
1184
1184
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
1185
1185
|
await this.loadMarkets();
|
|
@@ -1301,7 +1301,7 @@ class toobit extends toobit$1["default"] {
|
|
|
1301
1301
|
* @see https://toobit-docs.github.io/apidocs/usdt_swap/v1/en/#symbol-order-book-ticker
|
|
1302
1302
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
1303
1303
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1304
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
1304
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1305
1305
|
*/
|
|
1306
1306
|
async fetchBidsAsks(symbols = undefined, params = {}) {
|
|
1307
1307
|
await this.loadMarkets();
|
|
@@ -1356,7 +1356,7 @@ class toobit extends toobit$1["default"] {
|
|
|
1356
1356
|
* @see https://toobit-docs.github.io/apidocs/usdt_swap/v1/en/#funding-rate
|
|
1357
1357
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1358
1358
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1359
|
-
* @returns {object[]} a list of [funding rates structures]{@link https://docs.ccxt.com
|
|
1359
|
+
* @returns {object[]} a list of [funding rates structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexe by market symbols
|
|
1360
1360
|
*/
|
|
1361
1361
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
1362
1362
|
await this.loadMarkets();
|
|
@@ -1413,11 +1413,11 @@ class toobit extends toobit$1["default"] {
|
|
|
1413
1413
|
* @see https://toobit-docs.github.io/apidocs/usdt_swap/v1/en/#get-funding-rate-history
|
|
1414
1414
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
1415
1415
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
1416
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com
|
|
1416
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
1417
1417
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1418
1418
|
* @param {int} [params.until] timestamp in ms of the latest funding rate to fetch
|
|
1419
1419
|
* @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)
|
|
1420
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
1420
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
1421
1421
|
*/
|
|
1422
1422
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1423
1423
|
await this.loadMarkets();
|
|
@@ -1463,7 +1463,7 @@ class toobit extends toobit$1["default"] {
|
|
|
1463
1463
|
* @see https://toobit-docs.github.io/apidocs/spot/v1/en/#account-information-user_data
|
|
1464
1464
|
* @see https://toobit-docs.github.io/apidocs/usdt_swap/v1/en/#futures-account-balance-user_data
|
|
1465
1465
|
* @param {object} [params] extra parameters specific to the exchange API endpointinvalid
|
|
1466
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
1466
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
1467
1467
|
*/
|
|
1468
1468
|
async fetchBalance(params = {}) {
|
|
1469
1469
|
await this.loadMarkets();
|
|
@@ -1535,7 +1535,7 @@ class toobit extends toobit$1["default"] {
|
|
|
1535
1535
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1536
1536
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1537
1537
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1538
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1538
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1539
1539
|
*/
|
|
1540
1540
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1541
1541
|
await this.loadMarkets();
|
|
@@ -1647,11 +1647,13 @@ class toobit extends toobit$1["default"] {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
const stopLoss = this.safeDict(params, 'stopLoss');
|
|
1649
1649
|
const takeProfit = this.safeDict(params, 'takeProfit');
|
|
1650
|
+
const hasStopLoss = (stopLoss !== undefined);
|
|
1651
|
+
const hasTakeProfit = (takeProfit !== undefined);
|
|
1650
1652
|
const triggerPriceTypes = {
|
|
1651
1653
|
'mark': 'MARK_PRICE',
|
|
1652
1654
|
'last': 'CONTRACT_PRICE',
|
|
1653
1655
|
};
|
|
1654
|
-
if (
|
|
1656
|
+
if (hasStopLoss) {
|
|
1655
1657
|
request['stopLoss'] = this.safeValue(stopLoss, 'triggerPrice');
|
|
1656
1658
|
const limitPrice = this.safeValue(stopLoss, 'price');
|
|
1657
1659
|
if (limitPrice !== undefined) {
|
|
@@ -1664,7 +1666,7 @@ class toobit extends toobit$1["default"] {
|
|
|
1664
1666
|
}
|
|
1665
1667
|
params = this.omit(params, 'stopLoss');
|
|
1666
1668
|
}
|
|
1667
|
-
if (
|
|
1669
|
+
if (hasTakeProfit) {
|
|
1668
1670
|
request['takeProfit'] = this.safeValue(takeProfit, 'triggerPrice');
|
|
1669
1671
|
const limitPrice = this.safeValue(takeProfit, 'price');
|
|
1670
1672
|
if (limitPrice !== undefined) {
|
|
@@ -1808,7 +1810,7 @@ class toobit extends toobit$1["default"] {
|
|
|
1808
1810
|
* @param {string} id order id
|
|
1809
1811
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1810
1812
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1811
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1813
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1812
1814
|
*/
|
|
1813
1815
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1814
1816
|
const request = {};
|
|
@@ -1847,7 +1849,7 @@ class toobit extends toobit$1["default"] {
|
|
|
1847
1849
|
* @see https://toobit-docs.github.io/apidocs/usdt_swap/v1/en/#cancel-orders-trade
|
|
1848
1850
|
* @param {string} symbol unified symbol
|
|
1849
1851
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1850
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1852
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1851
1853
|
*/
|
|
1852
1854
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
1853
1855
|
await this.loadMarkets();
|
|
@@ -1890,7 +1892,7 @@ class toobit extends toobit$1["default"] {
|
|
|
1890
1892
|
* @param {string[]} ids order ids
|
|
1891
1893
|
* @param {string} [symbol] unified market symbol
|
|
1892
1894
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1893
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
1895
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1894
1896
|
*/
|
|
1895
1897
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
1896
1898
|
await this.loadMarkets();
|
|
@@ -1945,7 +1947,7 @@ class toobit extends toobit$1["default"] {
|
|
|
1945
1947
|
* @param {string} id the order id
|
|
1946
1948
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1947
1949
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1948
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1950
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1949
1951
|
*/
|
|
1950
1952
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1951
1953
|
if (symbol === undefined) {
|
|
@@ -2003,7 +2005,7 @@ class toobit extends toobit$1["default"] {
|
|
|
2003
2005
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2004
2006
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2005
2007
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2006
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2008
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2007
2009
|
*/
|
|
2008
2010
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2009
2011
|
await this.loadMarkets();
|
|
@@ -2063,7 +2065,7 @@ class toobit extends toobit$1["default"] {
|
|
|
2063
2065
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2064
2066
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2065
2067
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2066
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2068
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2067
2069
|
*/
|
|
2068
2070
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2069
2071
|
await this.loadMarkets();
|
|
@@ -2127,7 +2129,7 @@ class toobit extends toobit$1["default"] {
|
|
|
2127
2129
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2128
2130
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2129
2131
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2130
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2132
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2131
2133
|
*/
|
|
2132
2134
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2133
2135
|
// returns the most recent closed or canceled orders up to circa two weeks ago
|
|
@@ -2194,7 +2196,7 @@ class toobit extends toobit$1["default"] {
|
|
|
2194
2196
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
2195
2197
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2196
2198
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
2197
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
2199
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
2198
2200
|
*/
|
|
2199
2201
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2200
2202
|
if (symbol === undefined) {
|
|
@@ -2277,7 +2279,7 @@ class toobit extends toobit$1["default"] {
|
|
|
2277
2279
|
* @param {string} fromAccount 'spot', 'swap'
|
|
2278
2280
|
* @param {string} toAccount 'spot', 'swap'
|
|
2279
2281
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2280
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
2282
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
2281
2283
|
*/
|
|
2282
2284
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
2283
2285
|
await this.loadMarkets();
|
|
@@ -2330,7 +2332,7 @@ class toobit extends toobit$1["default"] {
|
|
|
2330
2332
|
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
2331
2333
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2332
2334
|
* @param {int} [params.until] end time in ms
|
|
2333
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
2335
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
2334
2336
|
*/
|
|
2335
2337
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2336
2338
|
await this.loadMarkets();
|
|
@@ -2418,7 +2420,7 @@ class toobit extends toobit$1["default"] {
|
|
|
2418
2420
|
* @description fetch the trading fees for multiple markets
|
|
2419
2421
|
* @see https://toobit-docs.github.io/apidocs/usdt_swap/v1/en/#user-trade-fee-rate-user_data
|
|
2420
2422
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2421
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
2423
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
2422
2424
|
*/
|
|
2423
2425
|
async fetchTradingFees(params = {}) {
|
|
2424
2426
|
await this.loadMarkets();
|
|
@@ -2477,7 +2479,7 @@ class toobit extends toobit$1["default"] {
|
|
|
2477
2479
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2478
2480
|
* @param {int} [limit] the maximum number of deposit structures to retrieve
|
|
2479
2481
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2480
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
2482
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2481
2483
|
*/
|
|
2482
2484
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2483
2485
|
return await this.fetchDepositsOrWithdrawalsHelper('deposits', code, since, limit, params);
|
|
@@ -2491,7 +2493,7 @@ class toobit extends toobit$1["default"] {
|
|
|
2491
2493
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2492
2494
|
* @param {int} [limit] the maximum number of withdrawal structures to retrieve
|
|
2493
2495
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2494
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
2496
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2495
2497
|
*/
|
|
2496
2498
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2497
2499
|
return await this.fetchDepositsOrWithdrawalsHelper('withdrawals', code, since, limit, params);
|
|
@@ -2666,7 +2668,7 @@ class toobit extends toobit$1["default"] {
|
|
|
2666
2668
|
* @see https://toobit-docs.github.io/apidocs/spot/v1/en/#deposit-address-user_data
|
|
2667
2669
|
* @param {string} code unified currency code
|
|
2668
2670
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2669
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
2671
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
2670
2672
|
*/
|
|
2671
2673
|
async fetchDepositAddress(code, params = {}) {
|
|
2672
2674
|
await this.loadMarkets();
|
|
@@ -2714,7 +2716,7 @@ class toobit extends toobit$1["default"] {
|
|
|
2714
2716
|
* @param {string} address the address to withdraw to
|
|
2715
2717
|
* @param {string} tag a memo for the transaction
|
|
2716
2718
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2717
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
2719
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2718
2720
|
*/
|
|
2719
2721
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
2720
2722
|
this.checkAddress(address);
|
|
@@ -2729,7 +2731,8 @@ class toobit extends toobit$1["default"] {
|
|
|
2729
2731
|
'coin': currency['id'],
|
|
2730
2732
|
'address': address,
|
|
2731
2733
|
'quantity': this.currencyToPrecision(currency['code'], amount),
|
|
2732
|
-
'
|
|
2734
|
+
'chainType': networkCode,
|
|
2735
|
+
'clientOrderId': this.milliseconds(),
|
|
2733
2736
|
};
|
|
2734
2737
|
if (tag !== undefined) {
|
|
2735
2738
|
request['addressExt'] = tag;
|
|
@@ -2809,7 +2812,7 @@ class toobit extends toobit$1["default"] {
|
|
|
2809
2812
|
* @see https://toobit-docs.github.io/apidocs/usdt_swap/v1/en/#get-the-leverage-multiple-and-position-mode-user_data
|
|
2810
2813
|
* @param {string} symbol unified market symbol
|
|
2811
2814
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2812
|
-
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com
|
|
2815
|
+
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
2813
2816
|
*/
|
|
2814
2817
|
async fetchLeverage(symbol, params = {}) {
|
|
2815
2818
|
await this.loadMarkets();
|
|
@@ -2850,7 +2853,7 @@ class toobit extends toobit$1["default"] {
|
|
|
2850
2853
|
* @see https://toobit-docs.github.io/apidocs/usdt_swap/v1/en/#query-position-user_data
|
|
2851
2854
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2852
2855
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2853
|
-
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com
|
|
2856
|
+
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
2854
2857
|
*/
|
|
2855
2858
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
2856
2859
|
await this.loadMarkets();
|
package/dist/cjs/src/upbit.js
CHANGED
|
@@ -596,7 +596,7 @@ class upbit extends upbit$1["default"] {
|
|
|
596
596
|
* @see https://global-docs.upbit.com/reference/get-balance
|
|
597
597
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
598
598
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
599
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
599
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
600
600
|
*/
|
|
601
601
|
async fetchBalance(params = {}) {
|
|
602
602
|
await this.loadMarkets();
|
|
@@ -624,7 +624,7 @@ class upbit extends upbit$1["default"] {
|
|
|
624
624
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
625
625
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
626
626
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
627
|
-
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
627
|
+
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbol
|
|
628
628
|
*/
|
|
629
629
|
async fetchOrderBooks(symbols = undefined, limit = undefined, params = {}) {
|
|
630
630
|
await this.loadMarkets();
|
|
@@ -698,7 +698,7 @@ class upbit extends upbit$1["default"] {
|
|
|
698
698
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
699
699
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
700
700
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
701
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
701
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
702
702
|
*/
|
|
703
703
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
704
704
|
const orderbooks = await this.fetchOrderBooks([symbol], limit, params);
|
|
@@ -768,7 +768,7 @@ class upbit extends upbit$1["default"] {
|
|
|
768
768
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
769
769
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
770
770
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
771
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
771
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
772
772
|
*/
|
|
773
773
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
774
774
|
await this.loadMarkets();
|
|
@@ -829,7 +829,7 @@ class upbit extends upbit$1["default"] {
|
|
|
829
829
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
830
830
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
831
831
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
832
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
832
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
833
833
|
*/
|
|
834
834
|
async fetchTicker(symbol, params = {}) {
|
|
835
835
|
const tickers = await this.fetchTickers([symbol], params);
|
|
@@ -917,7 +917,7 @@ class upbit extends upbit$1["default"] {
|
|
|
917
917
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
918
918
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
919
919
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
920
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
920
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
921
921
|
*/
|
|
922
922
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
923
923
|
await this.loadMarkets();
|
|
@@ -962,7 +962,7 @@ class upbit extends upbit$1["default"] {
|
|
|
962
962
|
* @description fetch the trading fees for a market
|
|
963
963
|
* @param {string} symbol unified market symbol
|
|
964
964
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
965
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
965
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
966
966
|
*/
|
|
967
967
|
async fetchTradingFee(symbol, params = {}) {
|
|
968
968
|
await this.loadMarkets();
|
|
@@ -1025,7 +1025,7 @@ class upbit extends upbit$1["default"] {
|
|
|
1025
1025
|
* @name upbit#fetchTradingFees
|
|
1026
1026
|
* @description fetch the trading fees for markets
|
|
1027
1027
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1028
|
-
* @returns {object} a [trading fee structure]{@link https://docs.ccxt.com
|
|
1028
|
+
* @returns {object} a [trading fee structure]{@link https://docs.ccxt.com/?id=trading-fee-structure}
|
|
1029
1029
|
*/
|
|
1030
1030
|
async fetchTradingFees(params = {}) {
|
|
1031
1031
|
await this.loadMarkets();
|
|
@@ -1182,7 +1182,7 @@ class upbit extends upbit$1["default"] {
|
|
|
1182
1182
|
* @param {string} [params.timeInForce] 'IOC' or 'FOK' for limit or best type orders, 'PO' for limit orders. this field is required when the order type is 'best'.
|
|
1183
1183
|
* @param {string} [params.selfTradePrevention] 'reduce', 'cancel_maker', 'cancel_taker' {@link https://global-docs.upbit.com/docs/smp}
|
|
1184
1184
|
* @param {boolean} [params.test] If test is true, testOrder will be executed. It allows you to validate the request without creating an actual order. Default is false.
|
|
1185
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1185
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1186
1186
|
*/
|
|
1187
1187
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1188
1188
|
await this.loadMarkets();
|
|
@@ -1306,7 +1306,7 @@ class upbit extends upbit$1["default"] {
|
|
|
1306
1306
|
* @param {string} id order id
|
|
1307
1307
|
* @param {string} symbol not used by upbit cancelOrder ()
|
|
1308
1308
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1309
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1309
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1310
1310
|
*/
|
|
1311
1311
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1312
1312
|
await this.loadMarkets();
|
|
@@ -1354,7 +1354,7 @@ class upbit extends upbit$1["default"] {
|
|
|
1354
1354
|
* @param {string} [params.newClientOrderId] the order ID that the user can define.
|
|
1355
1355
|
* @param {string} [params.newOrdType] this field only accepts limit, price, market, or best. You can refer to the Upbit developer documentation for details on how to use this field.
|
|
1356
1356
|
* @param {string} [params.selfTradePrevention] 'reduce', 'cancel_maker', 'cancel_taker' {@link https://global-docs.upbit.com/docs/smp}
|
|
1357
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1357
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1358
1358
|
*/
|
|
1359
1359
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
1360
1360
|
await this.loadMarkets();
|
|
@@ -1477,7 +1477,7 @@ class upbit extends upbit$1["default"] {
|
|
|
1477
1477
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1478
1478
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1479
1479
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1480
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
1480
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1481
1481
|
*/
|
|
1482
1482
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1483
1483
|
await this.loadMarkets();
|
|
@@ -1522,7 +1522,7 @@ class upbit extends upbit$1["default"] {
|
|
|
1522
1522
|
* @param {string} [code] unified currency code of the currency deposited
|
|
1523
1523
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1524
1524
|
* @param {string} [params.txid] withdrawal transaction id, the id argument is reserved for uuid
|
|
1525
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
1525
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1526
1526
|
*/
|
|
1527
1527
|
async fetchDeposit(id, code = undefined, params = {}) {
|
|
1528
1528
|
await this.loadMarkets();
|
|
@@ -1562,7 +1562,7 @@ class upbit extends upbit$1["default"] {
|
|
|
1562
1562
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1563
1563
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1564
1564
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1565
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
1565
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1566
1566
|
*/
|
|
1567
1567
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1568
1568
|
await this.loadMarkets();
|
|
@@ -1607,7 +1607,7 @@ class upbit extends upbit$1["default"] {
|
|
|
1607
1607
|
* @param {string} [code] unified currency code of the currency withdrawn
|
|
1608
1608
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1609
1609
|
* @param {string} [params.txid] withdrawal transaction id, the id argument is reserved for uuid
|
|
1610
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
1610
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1611
1611
|
*/
|
|
1612
1612
|
async fetchWithdrawal(id, code = undefined, params = {}) {
|
|
1613
1613
|
await this.loadMarkets();
|
|
@@ -1896,7 +1896,7 @@ class upbit extends upbit$1["default"] {
|
|
|
1896
1896
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
1897
1897
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1898
1898
|
* @param {string} [params.state] default is 'wait', set to 'watch' for stop limit orders
|
|
1899
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1899
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1900
1900
|
*/
|
|
1901
1901
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1902
1902
|
await this.loadMarkets();
|
|
@@ -1945,7 +1945,7 @@ class upbit extends upbit$1["default"] {
|
|
|
1945
1945
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1946
1946
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1947
1947
|
* @param {int} [params.until] timestamp in ms of the latest order
|
|
1948
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1948
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1949
1949
|
*/
|
|
1950
1950
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1951
1951
|
await this.loadMarkets();
|
|
@@ -2001,7 +2001,7 @@ class upbit extends upbit$1["default"] {
|
|
|
2001
2001
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
2002
2002
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2003
2003
|
* @param {int} [params.until] timestamp in ms of the latest order
|
|
2004
|
-
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com
|
|
2004
|
+
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2005
2005
|
*/
|
|
2006
2006
|
async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2007
2007
|
await this.loadMarkets();
|
|
@@ -2055,7 +2055,7 @@ class upbit extends upbit$1["default"] {
|
|
|
2055
2055
|
* @param {string} id order id
|
|
2056
2056
|
* @param {string} symbol not used by upbit fetchOrder
|
|
2057
2057
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2058
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
2058
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2059
2059
|
*/
|
|
2060
2060
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
2061
2061
|
await this.loadMarkets();
|
|
@@ -2116,7 +2116,7 @@ class upbit extends upbit$1["default"] {
|
|
|
2116
2116
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
2117
2117
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
2118
2118
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2119
|
-
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com
|
|
2119
|
+
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/?id=address-structure}
|
|
2120
2120
|
*/
|
|
2121
2121
|
async fetchDepositAddresses(codes = undefined, params = {}) {
|
|
2122
2122
|
await this.loadMarkets();
|
|
@@ -2174,7 +2174,7 @@ class upbit extends upbit$1["default"] {
|
|
|
2174
2174
|
* @param {string} code unified currency code
|
|
2175
2175
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2176
2176
|
* @param {string} params.network deposit chain, can view all chains via this.publicGetWalletAssets, default is eth, unless the currency has a default chain within this.options['networks']
|
|
2177
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
2177
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
2178
2178
|
*/
|
|
2179
2179
|
async fetchDepositAddress(code, params = {}) {
|
|
2180
2180
|
await this.loadMarkets();
|
|
@@ -2206,7 +2206,7 @@ class upbit extends upbit$1["default"] {
|
|
|
2206
2206
|
* @description create a currency deposit address
|
|
2207
2207
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
2208
2208
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2209
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
2209
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
2210
2210
|
*/
|
|
2211
2211
|
async createDepositAddress(code, params = {}) {
|
|
2212
2212
|
await this.loadMarkets();
|
|
@@ -2248,7 +2248,7 @@ class upbit extends upbit$1["default"] {
|
|
|
2248
2248
|
* @param {string} address the address to withdraw to
|
|
2249
2249
|
* @param {string} tag
|
|
2250
2250
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2251
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
2251
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2252
2252
|
*/
|
|
2253
2253
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
2254
2254
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|