ccxt 4.5.28 → 4.5.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -5
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/alpaca.js +21 -21
- package/dist/cjs/src/apex.js +20 -20
- package/dist/cjs/src/arkham.js +22 -22
- package/dist/cjs/src/ascendex.js +28 -28
- package/dist/cjs/src/backpack.js +22 -22
- package/dist/cjs/src/base/Exchange.js +48 -38
- package/dist/cjs/src/base/functions/throttle.js +54 -5
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +83 -82
- package/dist/cjs/src/bingx.js +46 -46
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +49 -48
- package/dist/cjs/src/bitbns.js +13 -13
- package/dist/cjs/src/bitfinex.js +33 -33
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitget.js +58 -57
- package/dist/cjs/src/bithumb.js +10 -10
- package/dist/cjs/src/bitmart.js +44 -44
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +20 -20
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +20 -20
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bittrade.js +20 -20
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/blofin.js +26 -26
- package/dist/cjs/src/btcalpha.js +35 -34
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +16 -16
- package/dist/cjs/src/btcturk.js +10 -10
- package/dist/cjs/src/bullish.js +26 -26
- package/dist/cjs/src/bybit.js +67 -67
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +40 -40
- package/dist/cjs/src/coinbaseexchange.js +22 -22
- package/dist/cjs/src/coinbaseinternational.js +22 -22
- package/dist/cjs/src/coincatch.js +39 -39
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +48 -48
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinmetro.js +14 -14
- package/dist/cjs/src/coinone.js +11 -11
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +32 -32
- package/dist/cjs/src/cryptomus.js +9 -9
- package/dist/cjs/src/deepcoin.js +33 -33
- package/dist/cjs/src/defx.js +23 -23
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +36 -36
- package/dist/cjs/src/derive.js +19 -19
- package/dist/cjs/src/digifinex.js +36 -36
- package/dist/cjs/src/dydx.js +22 -22
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +57 -57
- package/dist/cjs/src/gemini.js +16 -16
- package/dist/cjs/src/hashkey.js +35 -35
- package/dist/cjs/src/hibachi.js +24 -24
- package/dist/cjs/src/hitbtc.js +38 -38
- package/dist/cjs/src/hollaex.js +22 -22
- package/dist/cjs/src/htx.js +50 -50
- package/dist/cjs/src/hyperliquid.js +76 -42
- package/dist/cjs/src/independentreserve.js +13 -13
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +30 -30
- package/dist/cjs/src/krakenfutures.js +21 -21
- package/dist/cjs/src/kucoin.js +44 -44
- package/dist/cjs/src/kucoinfutures.js +42 -40
- package/dist/cjs/src/latoken.js +16 -16
- package/dist/cjs/src/lbank.js +23 -23
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/mercado.js +11 -11
- package/dist/cjs/src/mexc.js +47 -47
- package/dist/cjs/src/modetrade.js +37 -35
- package/dist/cjs/src/ndax.js +19 -19
- package/dist/cjs/src/novadax.js +19 -19
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okx.js +83 -83
- package/dist/cjs/src/onetrading.js +34 -33
- package/dist/cjs/src/oxfun.js +25 -25
- package/dist/cjs/src/p2b.js +11 -11
- package/dist/cjs/src/paradex.js +54 -54
- package/dist/cjs/src/paymium.js +20 -21
- package/dist/cjs/src/phemex.js +35 -35
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +8 -8
- package/dist/cjs/src/pro/arkham.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/backpack.js +16 -16
- package/dist/cjs/src/pro/binance.js +35 -35
- package/dist/cjs/src/pro/bingx.js +9 -9
- package/dist/cjs/src/pro/bitfinex.js +8 -8
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bithumb.js +3 -3
- package/dist/cjs/src/pro/bitmart.js +388 -31
- package/dist/cjs/src/pro/bitmex.js +9 -9
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrade.js +3 -3
- package/dist/cjs/src/pro/bitvavo.js +19 -19
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +10 -10
- package/dist/cjs/src/pro/bullish.js +6 -6
- package/dist/cjs/src/pro/bybit.js +19 -19
- package/dist/cjs/src/pro/cex.js +13 -13
- package/dist/cjs/src/pro/coinbase.js +13 -13
- package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
- package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
- package/dist/cjs/src/pro/coincatch.js +10 -10
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +10 -10
- package/dist/cjs/src/pro/coinone.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +20 -20
- package/dist/cjs/src/pro/deepcoin.js +8 -8
- package/dist/cjs/src/pro/defx.js +15 -15
- package/dist/cjs/src/pro/deribit.js +10 -10
- package/dist/cjs/src/pro/derive.js +6 -6
- package/dist/cjs/src/pro/dydx.js +3 -3
- package/dist/cjs/src/pro/exmo.js +7 -7
- package/dist/cjs/src/pro/gate.js +21 -59
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +6 -6
- package/dist/cjs/src/pro/hitbtc.js +8 -8
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +9 -9
- package/dist/cjs/src/pro/hyperliquid.js +103 -14
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +15 -15
- package/dist/cjs/src/pro/krakenfutures.js +10 -10
- package/dist/cjs/src/pro/kucoin.js +15 -15
- package/dist/cjs/src/pro/kucoinfutures.js +13 -13
- package/dist/cjs/src/pro/lbank.js +5 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +13 -13
- package/dist/cjs/src/pro/modetrade.js +8 -8
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okx.js +25 -25
- package/dist/cjs/src/pro/onetrading.js +6 -6
- package/dist/cjs/src/pro/oxfun.js +13 -13
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/paradex.js +8 -8
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +8 -8
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/toobit.js +9 -9
- package/dist/cjs/src/pro/upbit.js +9 -9
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +13 -13
- package/dist/cjs/src/pro/woofipro.js +20 -20
- package/dist/cjs/src/pro/xt.js +2 -2
- package/dist/cjs/src/probit.js +18 -18
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +17 -17
- package/dist/cjs/src/toobit.js +31 -29
- package/dist/cjs/src/upbit.js +23 -23
- package/dist/cjs/src/wavesexchange.js +86 -85
- package/dist/cjs/src/whitebit.js +44 -44
- package/dist/cjs/src/woo.js +51 -49
- package/dist/cjs/src/woofipro.js +104 -82
- package/dist/cjs/src/xt.js +17 -12
- package/dist/cjs/src/yobit.js +15 -15
- package/dist/cjs/src/zaif.js +38 -9
- package/dist/cjs/src/zebpay.js +35 -20
- package/dist/cjs/src/zonda.js +14 -14
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/alpaca.d.ts +21 -21
- package/js/src/alpaca.js +21 -21
- package/js/src/apex.d.ts +20 -20
- package/js/src/apex.js +20 -20
- package/js/src/arkham.d.ts +22 -22
- package/js/src/arkham.js +22 -22
- package/js/src/ascendex.d.ts +28 -28
- package/js/src/ascendex.js +28 -28
- package/js/src/backpack.d.ts +21 -21
- package/js/src/backpack.js +22 -22
- package/js/src/base/Exchange.d.ts +6 -3
- package/js/src/base/Exchange.js +48 -38
- package/js/src/base/functions/throttle.d.ts +22 -0
- package/js/src/base/functions/throttle.js +54 -5
- package/js/src/bigone.d.ts +19 -19
- package/js/src/bigone.js +19 -19
- package/js/src/binance.d.ts +82 -82
- package/js/src/binance.js +83 -82
- package/js/src/bingx.d.ts +46 -46
- package/js/src/bingx.js +46 -46
- package/js/src/bit2c.d.ts +11 -11
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.d.ts +12 -12
- package/js/src/bitbank.js +49 -48
- package/js/src/bitbns.d.ts +13 -13
- package/js/src/bitbns.js +13 -13
- package/js/src/bitfinex.d.ts +33 -33
- package/js/src/bitfinex.js +33 -33
- package/js/src/bitflyer.d.ts +17 -17
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitget.d.ts +57 -57
- package/js/src/bitget.js +58 -57
- package/js/src/bithumb.d.ts +10 -10
- package/js/src/bithumb.js +10 -10
- package/js/src/bitmart.d.ts +42 -42
- package/js/src/bitmart.js +44 -44
- package/js/src/bitmex.d.ts +24 -24
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.d.ts +20 -20
- package/js/src/bitopro.js +20 -20
- package/js/src/bitrue.d.ts +18 -18
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.d.ts +20 -20
- package/js/src/bitso.js +20 -20
- package/js/src/bitstamp.d.ts +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bittrade.d.ts +20 -20
- package/js/src/bittrade.js +20 -20
- package/js/src/bitvavo.d.ts +19 -19
- package/js/src/bitvavo.js +19 -19
- package/js/src/blockchaincom.d.ts +20 -20
- package/js/src/blockchaincom.js +20 -20
- package/js/src/blofin.d.ts +26 -26
- package/js/src/blofin.js +26 -26
- package/js/src/btcalpha.d.ts +14 -14
- package/js/src/btcalpha.js +35 -34
- package/js/src/btcbox.d.ts +10 -10
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.d.ts +16 -16
- package/js/src/btcmarkets.js +16 -16
- package/js/src/btcturk.d.ts +10 -10
- package/js/src/btcturk.js +10 -10
- package/js/src/bullish.d.ts +26 -26
- package/js/src/bullish.js +26 -26
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +67 -67
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +40 -40
- package/js/src/coinbase.js +40 -40
- package/js/src/coinbaseexchange.d.ts +22 -22
- package/js/src/coinbaseexchange.js +22 -22
- package/js/src/coinbaseinternational.d.ts +22 -22
- package/js/src/coinbaseinternational.js +22 -22
- package/js/src/coincatch.d.ts +39 -39
- package/js/src/coincatch.js +39 -39
- package/js/src/coincheck.d.ts +11 -11
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.d.ts +48 -48
- package/js/src/coinex.js +48 -48
- package/js/src/coinmate.d.ts +14 -14
- package/js/src/coinmate.js +14 -14
- package/js/src/coinmetro.d.ts +14 -14
- package/js/src/coinmetro.js +14 -14
- package/js/src/coinone.d.ts +11 -11
- package/js/src/coinone.js +11 -11
- package/js/src/coinsph.d.ts +20 -20
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.d.ts +8 -8
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.d.ts +32 -32
- package/js/src/cryptocom.js +32 -32
- package/js/src/cryptomus.d.ts +9 -9
- package/js/src/cryptomus.js +9 -9
- package/js/src/deepcoin.d.ts +33 -33
- package/js/src/deepcoin.js +33 -33
- package/js/src/defx.d.ts +23 -23
- package/js/src/defx.js +23 -23
- package/js/src/delta.d.ts +29 -29
- package/js/src/delta.js +29 -29
- package/js/src/deribit.d.ts +36 -36
- package/js/src/deribit.js +36 -36
- package/js/src/derive.d.ts +19 -19
- package/js/src/derive.js +19 -19
- package/js/src/digifinex.d.ts +36 -36
- package/js/src/digifinex.js +36 -36
- package/js/src/dydx.d.ts +22 -22
- package/js/src/dydx.js +22 -22
- package/js/src/exmo.d.ts +29 -29
- package/js/src/exmo.js +29 -29
- package/js/src/foxbit.d.ts +23 -23
- package/js/src/foxbit.js +23 -23
- package/js/src/gate.d.ts +57 -57
- package/js/src/gate.js +57 -57
- package/js/src/gemini.d.ts +16 -16
- package/js/src/gemini.js +16 -16
- package/js/src/hashkey.d.ts +35 -35
- package/js/src/hashkey.js +35 -35
- package/js/src/hibachi.d.ts +24 -24
- package/js/src/hibachi.js +24 -24
- package/js/src/hitbtc.d.ts +38 -38
- package/js/src/hitbtc.js +38 -38
- package/js/src/hollaex.d.ts +22 -22
- package/js/src/hollaex.js +22 -22
- package/js/src/htx.d.ts +50 -50
- package/js/src/htx.js +50 -50
- package/js/src/hyperliquid.d.ts +46 -36
- package/js/src/hyperliquid.js +76 -42
- package/js/src/independentreserve.d.ts +13 -13
- package/js/src/independentreserve.js +13 -13
- package/js/src/indodax.d.ts +14 -14
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.d.ts +30 -30
- package/js/src/kraken.js +30 -30
- package/js/src/krakenfutures.d.ts +21 -21
- package/js/src/krakenfutures.js +21 -21
- package/js/src/kucoin.d.ts +44 -44
- package/js/src/kucoin.js +44 -44
- package/js/src/kucoinfutures.d.ts +35 -35
- package/js/src/kucoinfutures.js +42 -40
- package/js/src/latoken.d.ts +16 -16
- package/js/src/latoken.js +16 -16
- package/js/src/lbank.d.ts +23 -23
- package/js/src/lbank.js +23 -23
- package/js/src/luno.d.ts +17 -17
- package/js/src/luno.js +17 -17
- package/js/src/mercado.d.ts +11 -11
- package/js/src/mercado.js +11 -11
- package/js/src/mexc.d.ts +47 -47
- package/js/src/mexc.js +47 -47
- package/js/src/modetrade.d.ts +31 -31
- package/js/src/modetrade.js +37 -35
- package/js/src/ndax.d.ts +19 -19
- package/js/src/ndax.js +19 -19
- package/js/src/novadax.d.ts +19 -19
- package/js/src/novadax.js +19 -19
- package/js/src/oceanex.d.ts +16 -16
- package/js/src/oceanex.js +16 -16
- package/js/src/okx.d.ts +74 -74
- package/js/src/okx.js +83 -83
- package/js/src/onetrading.d.ts +34 -33
- package/js/src/onetrading.js +34 -33
- package/js/src/oxfun.d.ts +25 -25
- package/js/src/oxfun.js +25 -25
- package/js/src/p2b.d.ts +11 -11
- package/js/src/p2b.js +11 -11
- package/js/src/paradex.d.ts +54 -54
- package/js/src/paradex.js +54 -54
- package/js/src/paymium.d.ts +20 -21
- package/js/src/paymium.js +20 -21
- package/js/src/phemex.d.ts +30 -30
- package/js/src/phemex.js +35 -35
- package/js/src/poloniex.d.ts +26 -26
- package/js/src/poloniex.js +27 -27
- package/js/src/pro/alpaca.d.ts +5 -5
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +8 -8
- package/js/src/pro/apex.js +8 -8
- package/js/src/pro/arkham.d.ts +5 -5
- package/js/src/pro/arkham.js +5 -5
- package/js/src/pro/ascendex.d.ts +5 -5
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/backpack.d.ts +16 -16
- package/js/src/pro/backpack.js +16 -16
- package/js/src/pro/binance.d.ts +35 -35
- package/js/src/pro/binance.js +35 -35
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +9 -9
- package/js/src/pro/bitfinex.d.ts +8 -8
- package/js/src/pro/bitfinex.js +8 -8
- package/js/src/pro/bitget.d.ts +12 -12
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bithumb.d.ts +3 -3
- package/js/src/pro/bithumb.js +3 -3
- package/js/src/pro/bitmart.d.ts +120 -9
- package/js/src/pro/bitmart.js +388 -31
- package/js/src/pro/bitmex.d.ts +9 -9
- package/js/src/pro/bitmex.js +9 -9
- package/js/src/pro/bitopro.d.ts +5 -5
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.d.ts +3 -3
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrade.d.ts +3 -3
- package/js/src/pro/bittrade.js +3 -3
- package/js/src/pro/bitvavo.d.ts +19 -19
- package/js/src/pro/bitvavo.js +19 -19
- package/js/src/pro/blockchaincom.d.ts +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +10 -10
- package/js/src/pro/blofin.js +10 -10
- package/js/src/pro/bullish.d.ts +6 -6
- package/js/src/pro/bullish.js +6 -6
- package/js/src/pro/bybit.d.ts +19 -19
- package/js/src/pro/bybit.js +19 -19
- package/js/src/pro/cex.d.ts +13 -13
- package/js/src/pro/cex.js +13 -13
- package/js/src/pro/coinbase.d.ts +13 -13
- package/js/src/pro/coinbase.js +13 -13
- package/js/src/pro/coinbaseexchange.d.ts +10 -10
- package/js/src/pro/coinbaseexchange.js +10 -10
- package/js/src/pro/coinbaseinternational.d.ts +8 -8
- package/js/src/pro/coinbaseinternational.js +8 -8
- package/js/src/pro/coincatch.d.ts +10 -10
- package/js/src/pro/coincatch.js +10 -10
- package/js/src/pro/coincheck.d.ts +2 -2
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +10 -10
- package/js/src/pro/coinex.js +10 -10
- package/js/src/pro/coinone.d.ts +3 -3
- package/js/src/pro/coinone.js +3 -3
- package/js/src/pro/cryptocom.d.ts +20 -20
- package/js/src/pro/cryptocom.js +20 -20
- package/js/src/pro/deepcoin.d.ts +8 -8
- package/js/src/pro/deepcoin.js +8 -8
- package/js/src/pro/defx.d.ts +15 -15
- package/js/src/pro/defx.js +15 -15
- package/js/src/pro/deribit.d.ts +10 -10
- package/js/src/pro/deribit.js +10 -10
- package/js/src/pro/derive.d.ts +6 -6
- package/js/src/pro/derive.js +6 -6
- package/js/src/pro/dydx.d.ts +3 -3
- package/js/src/pro/dydx.js +3 -3
- package/js/src/pro/exmo.d.ts +7 -7
- package/js/src/pro/exmo.js +7 -7
- package/js/src/pro/gate.d.ts +22 -23
- package/js/src/pro/gate.js +21 -59
- package/js/src/pro/gemini.d.ts +6 -6
- package/js/src/pro/gemini.js +6 -6
- package/js/src/pro/hashkey.d.ts +6 -6
- package/js/src/pro/hashkey.js +6 -6
- package/js/src/pro/hitbtc.d.ts +8 -8
- package/js/src/pro/hitbtc.js +8 -8
- package/js/src/pro/hollaex.d.ts +5 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.d.ts +9 -9
- package/js/src/pro/htx.js +9 -9
- package/js/src/pro/hyperliquid.d.ts +38 -14
- package/js/src/pro/hyperliquid.js +103 -14
- package/js/src/pro/independentreserve.d.ts +2 -2
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +15 -15
- package/js/src/pro/kraken.js +15 -15
- package/js/src/pro/krakenfutures.d.ts +10 -10
- package/js/src/pro/krakenfutures.js +10 -10
- package/js/src/pro/kucoin.d.ts +15 -15
- package/js/src/pro/kucoin.js +15 -15
- package/js/src/pro/kucoinfutures.d.ts +13 -13
- package/js/src/pro/kucoinfutures.js +13 -13
- package/js/src/pro/lbank.d.ts +5 -5
- package/js/src/pro/lbank.js +5 -5
- package/js/src/pro/luno.d.ts +2 -2
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +13 -13
- package/js/src/pro/mexc.js +13 -13
- package/js/src/pro/modetrade.d.ts +8 -8
- package/js/src/pro/modetrade.js +8 -8
- package/js/src/pro/ndax.d.ts +3 -3
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okx.d.ts +25 -25
- package/js/src/pro/okx.js +25 -25
- package/js/src/pro/onetrading.d.ts +6 -6
- package/js/src/pro/onetrading.js +6 -6
- package/js/src/pro/oxfun.d.ts +13 -13
- package/js/src/pro/oxfun.js +13 -13
- package/js/src/pro/p2b.d.ts +5 -5
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/paradex.d.ts +8 -8
- package/js/src/pro/paradex.js +8 -8
- package/js/src/pro/phemex.d.ts +7 -7
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.d.ts +8 -8
- package/js/src/pro/poloniex.js +8 -8
- package/js/src/pro/probit.d.ts +6 -6
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/toobit.d.ts +9 -9
- package/js/src/pro/toobit.js +9 -9
- package/js/src/pro/upbit.d.ts +9 -9
- package/js/src/pro/upbit.js +9 -9
- package/js/src/pro/whitebit.d.ts +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.d.ts +13 -13
- package/js/src/pro/woo.js +13 -13
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +20 -20
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +2 -2
- package/js/src/probit.d.ts +18 -18
- package/js/src/probit.js +18 -18
- package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
- package/js/src/static_dependencies/ethers/utils/index.js +8 -1
- package/js/src/timex.d.ts +16 -16
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.d.ts +17 -17
- package/js/src/tokocrypto.js +17 -17
- package/js/src/toobit.d.ts +27 -27
- package/js/src/toobit.js +31 -29
- package/js/src/upbit.d.ts +23 -23
- package/js/src/upbit.js +23 -23
- package/js/src/wavesexchange.d.ts +15 -15
- package/js/src/wavesexchange.js +86 -85
- package/js/src/whitebit.d.ts +44 -44
- package/js/src/whitebit.js +44 -44
- package/js/src/woo.d.ts +45 -45
- package/js/src/woo.js +51 -49
- package/js/src/woofipro.d.ts +77 -77
- package/js/src/woofipro.js +104 -82
- package/js/src/xt.d.ts +12 -12
- package/js/src/xt.js +17 -12
- package/js/src/yobit.d.ts +15 -15
- package/js/src/yobit.js +15 -15
- package/js/src/zaif.d.ts +9 -9
- package/js/src/zaif.js +38 -9
- package/js/src/zebpay.d.ts +20 -20
- package/js/src/zebpay.js +35 -20
- package/js/src/zonda.d.ts +14 -14
- package/js/src/zonda.js +14 -14
- package/package.json +1 -1
package/js/src/deepcoin.js
CHANGED
|
@@ -585,7 +585,7 @@ export default class deepcoin extends Exchange {
|
|
|
585
585
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
586
586
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
587
587
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
588
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
588
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
589
589
|
*/
|
|
590
590
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
591
591
|
await this.loadMarkets();
|
|
@@ -721,7 +721,7 @@ export default class deepcoin extends Exchange {
|
|
|
721
721
|
* @see https://www.deepcoin.com/docs/DeepCoinMarket/getMarketTickers
|
|
722
722
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
723
723
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
724
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
724
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
725
725
|
*/
|
|
726
726
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
727
727
|
await this.loadMarkets();
|
|
@@ -806,7 +806,7 @@ export default class deepcoin extends Exchange {
|
|
|
806
806
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
807
807
|
* @param {int} [limit] the maximum amount of trades to fetch (default 100, max 500)
|
|
808
808
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
809
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
809
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
810
810
|
*/
|
|
811
811
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
812
812
|
await this.loadMarkets();
|
|
@@ -912,7 +912,7 @@ export default class deepcoin extends Exchange {
|
|
|
912
912
|
* @see https://www.deepcoin.com/docs/DeepCoinAccount/getAccountBalance
|
|
913
913
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
914
914
|
* @param {string} [params.type] "spot" or "swap", the market type for the balance
|
|
915
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
915
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
916
916
|
*/
|
|
917
917
|
async fetchBalance(params = {}) {
|
|
918
918
|
await this.loadMarkets();
|
|
@@ -968,7 +968,7 @@ export default class deepcoin extends Exchange {
|
|
|
968
968
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
969
969
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
970
970
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
971
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
971
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
972
972
|
*/
|
|
973
973
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
974
974
|
await this.loadMarkets();
|
|
@@ -1013,7 +1013,7 @@ export default class deepcoin extends Exchange {
|
|
|
1013
1013
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1014
1014
|
* @param {int} [params.until] the latest time in ms to fetch transfers for (default time now)
|
|
1015
1015
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
1016
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
1016
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1017
1017
|
*/
|
|
1018
1018
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1019
1019
|
await this.loadMarkets();
|
|
@@ -1107,7 +1107,7 @@ export default class deepcoin extends Exchange {
|
|
|
1107
1107
|
* @see https://www.deepcoin.com/docs/assets/chainlist
|
|
1108
1108
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
1109
1109
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1110
|
-
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com
|
|
1110
|
+
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/?id=address-structure}
|
|
1111
1111
|
*/
|
|
1112
1112
|
async fetchDepositAddresses(codes = undefined, params = {}) {
|
|
1113
1113
|
await this.loadMarkets();
|
|
@@ -1166,7 +1166,7 @@ export default class deepcoin extends Exchange {
|
|
|
1166
1166
|
* @param {string} code unified currency code
|
|
1167
1167
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1168
1168
|
* @param {string} [params.network] unified network code for deposit chain
|
|
1169
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
1169
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
1170
1170
|
*/
|
|
1171
1171
|
async fetchDepositAddress(code, params = {}) {
|
|
1172
1172
|
await this.loadMarkets();
|
|
@@ -1231,7 +1231,7 @@ export default class deepcoin extends Exchange {
|
|
|
1231
1231
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1232
1232
|
* @param {int} [params.until] timestamp in ms of the latest ledger entry
|
|
1233
1233
|
* @param {string} [params.type] 'spot' or 'swap', the market type for the ledger (default 'spot')
|
|
1234
|
-
* @returns {object[]} a list of [ledger structures]{@link https://docs.ccxt.com
|
|
1234
|
+
* @returns {object[]} a list of [ledger structures]{@link https://docs.ccxt.com/?id=ledger}
|
|
1235
1235
|
*/
|
|
1236
1236
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1237
1237
|
await this.loadMarkets();
|
|
@@ -1344,7 +1344,7 @@ export default class deepcoin extends Exchange {
|
|
|
1344
1344
|
* @param {string} toAccount account to transfer to ('spot', 'inverse', 'linear', 'fund', 'rebate' or 'demo')
|
|
1345
1345
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1346
1346
|
* @param {string} [params.userId] user id
|
|
1347
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
1347
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
1348
1348
|
*/
|
|
1349
1349
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
1350
1350
|
let userId = undefined;
|
|
@@ -1438,7 +1438,7 @@ export default class deepcoin extends Exchange {
|
|
|
1438
1438
|
* @param {string} [params.positionSide] if position mode is one-way: set to 'net', if position mode is hedge-mode: set to 'long' or 'short'
|
|
1439
1439
|
* @param {bool} [params.hedged] *swap only* true for hedged mode, false for one way mode
|
|
1440
1440
|
* @param {string} [params.marginMode] *swap only*'cross' or 'isolated', the default is 'cash' for spot and 'cross' for swap
|
|
1441
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1441
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1442
1442
|
*/
|
|
1443
1443
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1444
1444
|
await this.loadMarkets();
|
|
@@ -1712,7 +1712,7 @@ export default class deepcoin extends Exchange {
|
|
|
1712
1712
|
* @param {string} side 'buy' or 'sell'
|
|
1713
1713
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
1714
1714
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1715
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1715
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1716
1716
|
*/
|
|
1717
1717
|
async createMarketOrderWithCost(symbol, side, cost, params = {}) {
|
|
1718
1718
|
params = this.extend(params, { 'cost': cost });
|
|
@@ -1725,7 +1725,7 @@ export default class deepcoin extends Exchange {
|
|
|
1725
1725
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
1726
1726
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
1727
1727
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1728
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1728
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1729
1729
|
*/
|
|
1730
1730
|
async createMarketBuyOrderWithCost(symbol, cost, params = {}) {
|
|
1731
1731
|
params = this.extend(params, { 'cost': cost });
|
|
@@ -1738,7 +1738,7 @@ export default class deepcoin extends Exchange {
|
|
|
1738
1738
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
1739
1739
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
1740
1740
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1741
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1741
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1742
1742
|
*/
|
|
1743
1743
|
async createMarketSellOrderWithCost(symbol, cost, params = {}) {
|
|
1744
1744
|
params = this.extend(params, { 'cost': cost });
|
|
@@ -1752,7 +1752,7 @@ export default class deepcoin extends Exchange {
|
|
|
1752
1752
|
* @param {string} id order id
|
|
1753
1753
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1754
1754
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1755
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1755
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1756
1756
|
*/
|
|
1757
1757
|
async fetchClosedOrder(id, symbol = undefined, params = {}) {
|
|
1758
1758
|
await this.loadMarkets();
|
|
@@ -1823,7 +1823,7 @@ export default class deepcoin extends Exchange {
|
|
|
1823
1823
|
* @param {string} id order id
|
|
1824
1824
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1825
1825
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1826
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1826
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1827
1827
|
*/
|
|
1828
1828
|
async fetchOpenOrder(id, symbol = undefined, params = {}) {
|
|
1829
1829
|
await this.loadMarkets();
|
|
@@ -1859,7 +1859,7 @@ export default class deepcoin extends Exchange {
|
|
|
1859
1859
|
* @param {string} [params.state] *non trigger orders only* 'canceled' or 'filled', the order state to filter by
|
|
1860
1860
|
* @param {string} [params.OrderType] *trigger orders only* 'limit' or 'market'
|
|
1861
1861
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
1862
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1862
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1863
1863
|
*/
|
|
1864
1864
|
async fetchCanceledAndClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1865
1865
|
await this.loadMarkets();
|
|
@@ -1984,7 +1984,7 @@ export default class deepcoin extends Exchange {
|
|
|
1984
1984
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1985
1985
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1986
1986
|
* @param {string} [params.type] 'spot' or 'swap', the market type for the orders
|
|
1987
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1987
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1988
1988
|
*/
|
|
1989
1989
|
async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1990
1990
|
const methodName = 'fetchCanceledOrders';
|
|
@@ -2002,7 +2002,7 @@ export default class deepcoin extends Exchange {
|
|
|
2002
2002
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2003
2003
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2004
2004
|
* @param {string} [params.type] 'spot' or 'swap', the market type for the orders
|
|
2005
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2005
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2006
2006
|
*/
|
|
2007
2007
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2008
2008
|
const methodName = 'fetchClosedOrders';
|
|
@@ -2023,7 +2023,7 @@ export default class deepcoin extends Exchange {
|
|
|
2023
2023
|
* @param {bool} [params.trigger] whether to fetch trigger/algo orders (default false)
|
|
2024
2024
|
* @param {int} [params.index] *non trigger orders only* pagination index, default is 1
|
|
2025
2025
|
* @param {string} [params.orderType] *trigger orders only* 'limit' or 'market'
|
|
2026
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2026
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2027
2027
|
*/
|
|
2028
2028
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2029
2029
|
await this.loadMarkets();
|
|
@@ -2138,7 +2138,7 @@ export default class deepcoin extends Exchange {
|
|
|
2138
2138
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2139
2139
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2140
2140
|
* @param {bool} [params.trigger] whether the order is a trigger/algo order (default false)
|
|
2141
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
2141
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2142
2142
|
*/
|
|
2143
2143
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
2144
2144
|
await this.loadMarkets();
|
|
@@ -2171,7 +2171,7 @@ export default class deepcoin extends Exchange {
|
|
|
2171
2171
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2172
2172
|
* @param {string} [params.marginMode] *swap only* 'cross' or 'isolated', the default is 'cash' for spot and 'cross' for swap
|
|
2173
2173
|
* @param {bool} [params.merged] *swap only* true for merged positions, false for split positions (default true)
|
|
2174
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2174
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2175
2175
|
*/
|
|
2176
2176
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
2177
2177
|
await this.loadMarkets();
|
|
@@ -2218,7 +2218,7 @@ export default class deepcoin extends Exchange {
|
|
|
2218
2218
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2219
2219
|
* @param {float} [params.stopLossPrice] the price that a stop loss order is triggered at
|
|
2220
2220
|
* @param {float} [params.takeProfitPrice] the price that a take profit order is triggered at
|
|
2221
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2221
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2222
2222
|
*/
|
|
2223
2223
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
2224
2224
|
await this.loadMarkets();
|
|
@@ -2279,7 +2279,7 @@ export default class deepcoin extends Exchange {
|
|
|
2279
2279
|
* @param {string[]} ids order ids
|
|
2280
2280
|
* @param {string} [symbol] unified market symbol, default is undefined
|
|
2281
2281
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2282
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
2282
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2283
2283
|
*/
|
|
2284
2284
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
2285
2285
|
await this.loadMarkets();
|
|
@@ -2450,7 +2450,7 @@ export default class deepcoin extends Exchange {
|
|
|
2450
2450
|
* @description fetch all open positions for specific symbol
|
|
2451
2451
|
* @param {string} symbol unified market symbol
|
|
2452
2452
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2453
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
2453
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
2454
2454
|
*/
|
|
2455
2455
|
async fetchPositionsForSymbol(symbol, params = {}) {
|
|
2456
2456
|
await this.loadMarkets();
|
|
@@ -2471,7 +2471,7 @@ export default class deepcoin extends Exchange {
|
|
|
2471
2471
|
* @see https://www.deepcoin.com/docs/DeepCoinAccount/accountPositions
|
|
2472
2472
|
* @param {string[]} [symbols] list of unified market symbols
|
|
2473
2473
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2474
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
2474
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
2475
2475
|
*/
|
|
2476
2476
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
2477
2477
|
await this.loadMarkets();
|
|
@@ -2632,7 +2632,7 @@ export default class deepcoin extends Exchange {
|
|
|
2632
2632
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2633
2633
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2634
2634
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
2635
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
2635
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols
|
|
2636
2636
|
*/
|
|
2637
2637
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
2638
2638
|
await this.loadMarkets();
|
|
@@ -2684,7 +2684,7 @@ export default class deepcoin extends Exchange {
|
|
|
2684
2684
|
* @see https://www.deepcoin.com/docs/DeepCoinTrade/currentFundRate
|
|
2685
2685
|
* @param {string} symbol unified market symbol
|
|
2686
2686
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2687
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
2687
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
2688
2688
|
*/
|
|
2689
2689
|
async fetchFundingRate(symbol, params = {}) {
|
|
2690
2690
|
await this.loadMarkets();
|
|
@@ -2753,10 +2753,10 @@ export default class deepcoin extends Exchange {
|
|
|
2753
2753
|
* @see https://www.deepcoin.com/docs/DeepCoinTrade/fundingRateHistory
|
|
2754
2754
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2755
2755
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2756
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com
|
|
2756
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
2757
2757
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2758
2758
|
* @param {int} [params.page] pagination page number
|
|
2759
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
2759
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
2760
2760
|
*/
|
|
2761
2761
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2762
2762
|
if (symbol === undefined) {
|
|
@@ -2829,7 +2829,7 @@ export default class deepcoin extends Exchange {
|
|
|
2829
2829
|
* @param {int} [params.until] timestamp in ms of the latest trade to fetch
|
|
2830
2830
|
* @param {string} [params.type] 'spot' or 'swap', the market type for the trades (default is 'spot')
|
|
2831
2831
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
2832
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
2832
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
2833
2833
|
*/
|
|
2834
2834
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2835
2835
|
await this.loadMarkets();
|
|
@@ -2901,7 +2901,7 @@ export default class deepcoin extends Exchange {
|
|
|
2901
2901
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
2902
2902
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2903
2903
|
* @param {string} [params.type] 'spot' or 'swap', the market type for the trades
|
|
2904
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
2904
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
2905
2905
|
*/
|
|
2906
2906
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2907
2907
|
await this.loadMarkets();
|
|
@@ -2923,7 +2923,7 @@ export default class deepcoin extends Exchange {
|
|
|
2923
2923
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2924
2924
|
* @param {string|undefined} [params.positionId] the id of the position you would like to close
|
|
2925
2925
|
* @param {string[]|undefined} [params.positionIds] list of position ids to close (for batch closing)
|
|
2926
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2926
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2927
2927
|
*/
|
|
2928
2928
|
async closePosition(symbol, side = undefined, params = {}) {
|
|
2929
2929
|
await this.loadMarkets();
|
package/js/src/defx.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export default class defx extends Exchange {
|
|
|
12
12
|
* @description the latest known information on the availability of the exchange API
|
|
13
13
|
* @see https://api-docs.defx.com/#4b03bb3b-a0fa-4dfb-b96c-237bde0ce9e6
|
|
14
14
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
15
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
15
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
16
16
|
*/
|
|
17
17
|
fetchStatus(params?: {}): Promise<{
|
|
18
18
|
status: any;
|
|
@@ -48,7 +48,7 @@ export default class defx extends Exchange {
|
|
|
48
48
|
* @see https://api-docs.defx.com/#fe6f81d0-2f3a-4eee-976f-c8fc8f4c5d56
|
|
49
49
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
50
50
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
51
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
51
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
52
52
|
*/
|
|
53
53
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
54
54
|
/**
|
|
@@ -58,7 +58,7 @@ export default class defx extends Exchange {
|
|
|
58
58
|
* @see https://api-docs.defx.com/#8c61cfbd-40d9-410e-b014-f5b36eba51d1
|
|
59
59
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
60
60
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
61
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
61
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
62
62
|
*/
|
|
63
63
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
64
64
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
@@ -86,7 +86,7 @@ export default class defx extends Exchange {
|
|
|
86
86
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
87
87
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
88
88
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
89
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
89
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
90
90
|
*/
|
|
91
91
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
92
92
|
/**
|
|
@@ -98,7 +98,7 @@ export default class defx extends Exchange {
|
|
|
98
98
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
99
99
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
100
100
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
101
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
101
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
102
102
|
*/
|
|
103
103
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
104
104
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
@@ -111,7 +111,7 @@ export default class defx extends Exchange {
|
|
|
111
111
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
112
112
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
113
113
|
* @param {string} [params.slab] slab from market.info.depthSlabs
|
|
114
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
114
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
115
115
|
*/
|
|
116
116
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
117
117
|
/**
|
|
@@ -122,7 +122,7 @@ export default class defx extends Exchange {
|
|
|
122
122
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
123
123
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
124
124
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
125
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
125
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
126
126
|
*/
|
|
127
127
|
fetchMarkPrice(symbol: string, params?: {}): Promise<Ticker>;
|
|
128
128
|
/**
|
|
@@ -132,7 +132,7 @@ export default class defx extends Exchange {
|
|
|
132
132
|
* @see https://api-docs.defx.com/#12168192-4e7b-4458-a001-e8b80961f0b7
|
|
133
133
|
* @param {string} symbol unified market symbol
|
|
134
134
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
135
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
135
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
136
136
|
*/
|
|
137
137
|
fetchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
|
|
138
138
|
parseFundingRate(contract: any, market?: Market): FundingRate;
|
|
@@ -142,7 +142,7 @@ export default class defx extends Exchange {
|
|
|
142
142
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
143
143
|
* @see https://api-docs.defx.com/#26414338-14f7-40a1-b246-f8ea8571493f
|
|
144
144
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
145
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
145
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
146
146
|
*/
|
|
147
147
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
148
148
|
parseBalance(balances: any): Balances;
|
|
@@ -159,7 +159,7 @@ export default class defx extends Exchange {
|
|
|
159
159
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
160
160
|
* @param {float} [params.triggerPrice] The price a trigger order is triggered at
|
|
161
161
|
* @param {string} [params.reduceOnly] for swap and future reduceOnly is a string 'true' or 'false' that cant be sent with close position set to true or in hedge mode. For spot margin and option reduceOnly is a boolean.
|
|
162
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
162
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
163
163
|
*/
|
|
164
164
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
165
165
|
parseOrderStatus(status: Str): string;
|
|
@@ -172,7 +172,7 @@ export default class defx extends Exchange {
|
|
|
172
172
|
* @param {string} id order id
|
|
173
173
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
174
174
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
175
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
175
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
176
176
|
*/
|
|
177
177
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
178
178
|
/**
|
|
@@ -182,7 +182,7 @@ export default class defx extends Exchange {
|
|
|
182
182
|
* @see https://api-docs.defx.com/#db5531da-3692-4a53-841f-6ad6495f823a
|
|
183
183
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
184
184
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
185
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
185
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
186
186
|
*/
|
|
187
187
|
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
188
188
|
/**
|
|
@@ -192,7 +192,7 @@ export default class defx extends Exchange {
|
|
|
192
192
|
* @see https://api-docs.defx.com/#d89dbb86-9aba-4f59-ac5d-a97ff25ea80e
|
|
193
193
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
194
194
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
195
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
195
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
196
196
|
*/
|
|
197
197
|
fetchPosition(symbol: string, params?: {}): Promise<Position>;
|
|
198
198
|
/**
|
|
@@ -202,7 +202,7 @@ export default class defx extends Exchange {
|
|
|
202
202
|
* @see https://api-docs.defx.com/#d89dbb86-9aba-4f59-ac5d-a97ff25ea80e
|
|
203
203
|
* @param {string[]} [symbols] list of unified market symbols
|
|
204
204
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
205
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
205
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
206
206
|
*/
|
|
207
207
|
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
208
208
|
parsePosition(position: Dict, market?: Market): Position;
|
|
@@ -214,7 +214,7 @@ export default class defx extends Exchange {
|
|
|
214
214
|
* @param {string} id the order id
|
|
215
215
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
216
216
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
217
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
217
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
218
218
|
*/
|
|
219
219
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
220
220
|
/**
|
|
@@ -227,7 +227,7 @@ export default class defx extends Exchange {
|
|
|
227
227
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
228
228
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
229
229
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
230
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
230
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
231
231
|
*/
|
|
232
232
|
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
233
233
|
/**
|
|
@@ -240,7 +240,7 @@ export default class defx extends Exchange {
|
|
|
240
240
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
241
241
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
242
242
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
243
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
243
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
244
244
|
*/
|
|
245
245
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
246
246
|
/**
|
|
@@ -253,7 +253,7 @@ export default class defx extends Exchange {
|
|
|
253
253
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
254
254
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
255
255
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
256
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
256
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
257
257
|
*/
|
|
258
258
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
259
259
|
/**
|
|
@@ -266,7 +266,7 @@ export default class defx extends Exchange {
|
|
|
266
266
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
267
267
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
268
268
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
269
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
269
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
270
270
|
*/
|
|
271
271
|
fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
272
272
|
/**
|
|
@@ -281,7 +281,7 @@ export default class defx extends Exchange {
|
|
|
281
281
|
* @param {string} [params.type] 'MARKET' or 'LIMIT'
|
|
282
282
|
* @param {string} [params.quantity] how much of currency you want to trade in units of base currency
|
|
283
283
|
* @param {string} [params.price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
284
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
284
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
285
285
|
*/
|
|
286
286
|
closePosition(symbol: string, side?: OrderSide, params?: {}): Promise<Order>;
|
|
287
287
|
/**
|
|
@@ -290,7 +290,7 @@ export default class defx extends Exchange {
|
|
|
290
290
|
* @description closes all open positions for a market type
|
|
291
291
|
* @see https://api-docs.defx.com/#d6f63b43-100e-47a9-998c-8b6c0c72d204
|
|
292
292
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
293
|
-
* @returns {object[]} A list of [position structures]{@link https://docs.ccxt.com
|
|
293
|
+
* @returns {object[]} A list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
294
294
|
*/
|
|
295
295
|
closeAllPositions(params?: {}): Promise<Position[]>;
|
|
296
296
|
/**
|
|
@@ -304,7 +304,7 @@ export default class defx extends Exchange {
|
|
|
304
304
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
305
305
|
* @param {int} [params.until] timestamp in ms of the latest ledger entry
|
|
306
306
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
307
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
307
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
308
308
|
*/
|
|
309
309
|
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
|
|
310
310
|
parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
|
|
@@ -319,7 +319,7 @@ export default class defx extends Exchange {
|
|
|
319
319
|
* @param {string} address the address to withdraw to
|
|
320
320
|
* @param {string} tag
|
|
321
321
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
322
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
322
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
323
323
|
*/
|
|
324
324
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
325
325
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|