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/dist/cjs/src/bitmart.js
CHANGED
|
@@ -891,7 +891,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
891
891
|
* @description the latest known information on the availability of the exchange API
|
|
892
892
|
* @see https://developer-pro.bitmart.com/en/spot/#get-system-service-status
|
|
893
893
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
894
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
894
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
895
895
|
*/
|
|
896
896
|
async fetchStatus(params = {}) {
|
|
897
897
|
const options = this.safeDict(this.options, 'fetchStatus', {});
|
|
@@ -1328,7 +1328,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
1328
1328
|
* @param {string} code unified currency code
|
|
1329
1329
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1330
1330
|
* @param {string} [params.network] the network code of the currency
|
|
1331
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
1331
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
1332
1332
|
*/
|
|
1333
1333
|
async fetchTransactionFee(code, params = {}) {
|
|
1334
1334
|
await this.loadMarkets();
|
|
@@ -1391,7 +1391,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
1391
1391
|
* @param {string} code unified currency code
|
|
1392
1392
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1393
1393
|
* @param {string} [params.network] the network code of the currency
|
|
1394
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
1394
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
1395
1395
|
*/
|
|
1396
1396
|
async fetchDepositWithdrawFee(code, params = {}) {
|
|
1397
1397
|
await this.loadMarkets();
|
|
@@ -1586,7 +1586,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
1586
1586
|
* @see https://developer-pro.bitmart.com/en/futuresv2/#get-contract-details
|
|
1587
1587
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1588
1588
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1589
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
1589
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1590
1590
|
*/
|
|
1591
1591
|
async fetchTicker(symbol, params = {}) {
|
|
1592
1592
|
await this.loadMarkets();
|
|
@@ -1686,7 +1686,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
1686
1686
|
* @see https://developer-pro.bitmart.com/en/futuresv2/#get-contract-details
|
|
1687
1687
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1688
1688
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1689
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
1689
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1690
1690
|
*/
|
|
1691
1691
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
1692
1692
|
await this.loadMarkets();
|
|
@@ -1802,7 +1802,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
1802
1802
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1803
1803
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1804
1804
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1805
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
1805
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
1806
1806
|
*/
|
|
1807
1807
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1808
1808
|
await this.loadMarkets();
|
|
@@ -1987,7 +1987,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
1987
1987
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1988
1988
|
* @param {int} [limit] the maximum number of trades to fetch
|
|
1989
1989
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1990
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1990
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
1991
1991
|
*/
|
|
1992
1992
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1993
1993
|
await this.loadMarkets();
|
|
@@ -2211,7 +2211,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
2211
2211
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
2212
2212
|
* @param {boolean} [params.marginMode] *spot* whether to fetch trades for margin orders or spot orders, defaults to spot orders (only isolated margin orders are supported)
|
|
2213
2213
|
* @param {string} [params.stpMode] self-trade prevention only for spot, defaults to none, ['none', 'cancel_maker', 'cancel_taker', 'cancel_both']
|
|
2214
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
2214
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
2215
2215
|
*/
|
|
2216
2216
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2217
2217
|
await this.loadMarkets();
|
|
@@ -2327,7 +2327,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
2327
2327
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
2328
2328
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2329
2329
|
* @param {string} [params.stpMode] self-trade prevention only for spot, defaults to none, ['none', 'cancel_maker', 'cancel_taker', 'cancel_both']
|
|
2330
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
2330
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
2331
2331
|
*/
|
|
2332
2332
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2333
2333
|
await this.loadMarkets();
|
|
@@ -2400,7 +2400,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
2400
2400
|
* @see https://developer-pro.bitmart.com/en/spot/#get-account-balance-keyed
|
|
2401
2401
|
* @see https://developer-pro.bitmart.com/en/spot/#get-margin-account-details-isolated-keyed
|
|
2402
2402
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2403
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
2403
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
2404
2404
|
*/
|
|
2405
2405
|
async fetchBalance(params = {}) {
|
|
2406
2406
|
await this.loadMarkets();
|
|
@@ -2550,7 +2550,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
2550
2550
|
* @see https://developer-pro.bitmart.com/en/spot/#get-actual-trade-fee-rate-keyed
|
|
2551
2551
|
* @param {string} symbol unified market symbol
|
|
2552
2552
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2553
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
2553
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
2554
2554
|
*/
|
|
2555
2555
|
async fetchTradingFee(symbol, params = {}) {
|
|
2556
2556
|
await this.loadMarkets();
|
|
@@ -2747,7 +2747,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
2747
2747
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
2748
2748
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
2749
2749
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2750
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2750
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2751
2751
|
*/
|
|
2752
2752
|
async createMarketBuyOrderWithCost(symbol, cost, params = {}) {
|
|
2753
2753
|
await this.loadMarkets();
|
|
@@ -2789,7 +2789,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
2789
2789
|
* @param {string} [params.takeProfitPrice] *swap only* the price to trigger a take-profit order
|
|
2790
2790
|
* @param {int} [params.plan_category] *swap tp/sl only* 1: tp/sl, 2: position tp/sl, default is 1
|
|
2791
2791
|
* @param {string} [params.stpMode] self-trade prevention only for spot, defaults to none, ['none', 'cancel_maker', 'cancel_taker', 'cancel_both']
|
|
2792
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2792
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2793
2793
|
*/
|
|
2794
2794
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
2795
2795
|
await this.loadMarkets();
|
|
@@ -2860,7 +2860,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
2860
2860
|
* @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
2861
2861
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2862
2862
|
* @param {string} [params.stpMode] self-trade prevention only for spot, defaults to none, ['none', 'cancel_maker', 'cancel_taker', 'cancel_both']
|
|
2863
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2863
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2864
2864
|
*/
|
|
2865
2865
|
async createOrders(orders, params = {}) {
|
|
2866
2866
|
await this.loadMarkets();
|
|
@@ -2952,7 +2952,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
2952
2952
|
* @param {string} [params.stopLossPrice] *swap only* the price to trigger a stop-loss order
|
|
2953
2953
|
* @param {string} [params.takeProfitPrice] *swap only* the price to trigger a take-profit order
|
|
2954
2954
|
* @param {int} [params.plan_category] *swap tp/sl only* 1: tp/sl, 2: position tp/sl, default is 1
|
|
2955
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2955
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2956
2956
|
*/
|
|
2957
2957
|
const market = this.market(symbol);
|
|
2958
2958
|
const stopLossPrice = this.safeString(params, 'stopLossPrice');
|
|
@@ -3092,7 +3092,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
3092
3092
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
3093
3093
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3094
3094
|
* @param {string} [params.marginMode] 'cross' or 'isolated'
|
|
3095
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
3095
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3096
3096
|
*/
|
|
3097
3097
|
const market = this.market(symbol);
|
|
3098
3098
|
const request = {
|
|
@@ -3171,7 +3171,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
3171
3171
|
* @param {string} [params.clientOrderId] *spot only* the client order id of the order to cancel
|
|
3172
3172
|
* @param {boolean} [params.trigger] *swap only* whether the order is a trigger order
|
|
3173
3173
|
* @param {boolean} [params.trailing] *swap only* whether the order is a stop order
|
|
3174
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
3174
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3175
3175
|
*/
|
|
3176
3176
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
3177
3177
|
if (symbol === undefined) {
|
|
@@ -3263,7 +3263,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
3263
3263
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
3264
3264
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3265
3265
|
* @param {string[]} [params.clientOrderIds] client order ids
|
|
3266
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
3266
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3267
3267
|
*/
|
|
3268
3268
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
3269
3269
|
if (symbol === undefined) {
|
|
@@ -3325,7 +3325,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
3325
3325
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
3326
3326
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3327
3327
|
* @param {string} [params.side] *spot only* 'buy' or 'sell'
|
|
3328
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
3328
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3329
3329
|
*/
|
|
3330
3330
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
3331
3331
|
await this.loadMarkets();
|
|
@@ -3445,7 +3445,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
3445
3445
|
* @param {boolean} [params.trailing] *swap only* set to true if you want to fetch trailing orders
|
|
3446
3446
|
* @param {boolean} [params.trigger] *swap only* set to true if you want to fetch trigger orders
|
|
3447
3447
|
* @param {string} [params.stpMode] self-trade prevention only for spot, defaults to none, ['none', 'cancel_maker', 'cancel_taker', 'cancel_both']
|
|
3448
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
3448
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3449
3449
|
*/
|
|
3450
3450
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3451
3451
|
await this.loadMarkets();
|
|
@@ -3572,7 +3572,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
3572
3572
|
* @param {int} [params.until] timestamp in ms of the latest entry
|
|
3573
3573
|
* @param {string} [params.marginMode] *spot only* 'cross' or 'isolated', for margin trading
|
|
3574
3574
|
* @param {string} [params.stpMode] self-trade prevention only for spot, defaults to none, ['none', 'cancel_maker', 'cancel_taker', 'cancel_both']
|
|
3575
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
3575
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3576
3576
|
*/
|
|
3577
3577
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3578
3578
|
await this.loadMarkets();
|
|
@@ -3622,7 +3622,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
3622
3622
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
3623
3623
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
3624
3624
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3625
|
-
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com
|
|
3625
|
+
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3626
3626
|
*/
|
|
3627
3627
|
async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3628
3628
|
return await this.fetchOrdersByStatus('canceled', symbol, since, limit, params);
|
|
@@ -3641,7 +3641,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
3641
3641
|
* @param {string} [params.orderType] *swap only* 'limit', 'market', 'liquidate', 'bankruptcy', 'adl' or 'trailing'
|
|
3642
3642
|
* @param {boolean} [params.trailing] *swap only* set to true if you want to fetch a trailing order
|
|
3643
3643
|
* @param {string} [params.stpMode] self-trade prevention only for spot, defaults to none, ['none', 'cancel_maker', 'cancel_taker', 'cancel_both']
|
|
3644
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
3644
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3645
3645
|
*/
|
|
3646
3646
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
3647
3647
|
await this.loadMarkets();
|
|
@@ -3742,7 +3742,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
3742
3742
|
* @see https://developer-pro.bitmart.com/en/spot/#deposit-address-keyed
|
|
3743
3743
|
* @param {string} code unified currency code
|
|
3744
3744
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3745
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
3745
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
3746
3746
|
*/
|
|
3747
3747
|
async fetchDepositAddress(code, params = {}) {
|
|
3748
3748
|
await this.loadMarkets();
|
|
@@ -3822,7 +3822,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
3822
3822
|
* @param {string} tag
|
|
3823
3823
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3824
3824
|
* @param {string} [params.network] the network name for this withdrawal
|
|
3825
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
3825
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
3826
3826
|
*/
|
|
3827
3827
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
3828
3828
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -3918,7 +3918,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
3918
3918
|
* @param {string} id deposit id
|
|
3919
3919
|
* @param {string} code not used by bitmart fetchDeposit ()
|
|
3920
3920
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3921
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
3921
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
3922
3922
|
*/
|
|
3923
3923
|
async fetchDeposit(id, code = undefined, params = {}) {
|
|
3924
3924
|
await this.loadMarkets();
|
|
@@ -3961,7 +3961,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
3961
3961
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
3962
3962
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
3963
3963
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3964
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
3964
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
3965
3965
|
*/
|
|
3966
3966
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3967
3967
|
return await this.fetchTransactionsByType('deposit', code, since, limit, params);
|
|
@@ -3974,7 +3974,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
3974
3974
|
* @param {string} id withdrawal id
|
|
3975
3975
|
* @param {string} code not used by bitmart.fetchWithdrawal
|
|
3976
3976
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3977
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
3977
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
3978
3978
|
*/
|
|
3979
3979
|
async fetchWithdrawal(id, code = undefined, params = {}) {
|
|
3980
3980
|
await this.loadMarkets();
|
|
@@ -4017,7 +4017,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
4017
4017
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
4018
4018
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
4019
4019
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4020
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
4020
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
4021
4021
|
*/
|
|
4022
4022
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
4023
4023
|
return await this.fetchTransactionsByType('withdraw', code, since, limit, params);
|
|
@@ -4125,7 +4125,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
4125
4125
|
* @param {string} code unified currency code of the currency to repay
|
|
4126
4126
|
* @param {string} amount the amount to repay
|
|
4127
4127
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4128
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
4128
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
4129
4129
|
*/
|
|
4130
4130
|
async repayIsolatedMargin(symbol, code, amount, params = {}) {
|
|
4131
4131
|
await this.loadMarkets();
|
|
@@ -4163,7 +4163,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
4163
4163
|
* @param {string} code unified currency code of the currency to borrow
|
|
4164
4164
|
* @param {string} amount the amount to borrow
|
|
4165
4165
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4166
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
4166
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
4167
4167
|
*/
|
|
4168
4168
|
async borrowIsolatedMargin(symbol, code, amount, params = {}) {
|
|
4169
4169
|
await this.loadMarkets();
|
|
@@ -4317,7 +4317,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
4317
4317
|
* @description fetch the borrow interest rates of all currencies, currently only works for isolated margin
|
|
4318
4318
|
* @see https://developer-pro.bitmart.com/en/spot/#get-trading-pair-borrowing-rate-and-amount-keyed
|
|
4319
4319
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4320
|
-
* @returns {object} a list of [isolated borrow rate structures]{@link https://docs.ccxt.com
|
|
4320
|
+
* @returns {object} a list of [isolated borrow rate structures]{@link https://docs.ccxt.com/?id=isolated-borrow-rate-structure}
|
|
4321
4321
|
*/
|
|
4322
4322
|
async fetchIsolatedBorrowRates(params = {}) {
|
|
4323
4323
|
await this.loadMarkets();
|
|
@@ -4369,7 +4369,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
4369
4369
|
* @param {string} fromAccount account to transfer from
|
|
4370
4370
|
* @param {string} toAccount account to transfer to
|
|
4371
4371
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4372
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
4372
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
4373
4373
|
*/
|
|
4374
4374
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
4375
4375
|
await this.loadMarkets();
|
|
@@ -4510,7 +4510,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
4510
4510
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4511
4511
|
* @param {int} [params.page] the required number of pages, default is 1, max is 1000
|
|
4512
4512
|
* @param {int} [params.until] the latest time in ms to fetch transfers for
|
|
4513
|
-
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com
|
|
4513
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
4514
4514
|
*/
|
|
4515
4515
|
async fetchTransfers(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
4516
4516
|
await this.loadMarkets();
|
|
@@ -4572,7 +4572,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
4572
4572
|
* @param {int} [since] the earliest time in ms to fetch borrrow interest for
|
|
4573
4573
|
* @param {int} [limit] the maximum number of structures to retrieve
|
|
4574
4574
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4575
|
-
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com
|
|
4575
|
+
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure}
|
|
4576
4576
|
*/
|
|
4577
4577
|
async fetchBorrowInterest(code = undefined, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
4578
4578
|
if (symbol === undefined) {
|
|
@@ -4651,7 +4651,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
4651
4651
|
* @see https://developer-pro.bitmart.com/en/futuresv2/#get-futures-openinterest
|
|
4652
4652
|
* @param {string} symbol Unified CCXT market symbol
|
|
4653
4653
|
* @param {object} [params] exchange specific parameters
|
|
4654
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com
|
|
4654
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
4655
4655
|
*/
|
|
4656
4656
|
async fetchOpenInterest(symbol, params = {}) {
|
|
4657
4657
|
await this.loadMarkets();
|
|
@@ -4736,7 +4736,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
4736
4736
|
* @see https://developer-pro.bitmart.com/en/futuresv2/#get-current-funding-rate
|
|
4737
4737
|
* @param {string} symbol unified market symbol
|
|
4738
4738
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4739
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
4739
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
4740
4740
|
*/
|
|
4741
4741
|
async fetchFundingRate(symbol, params = {}) {
|
|
4742
4742
|
await this.loadMarkets();
|
|
@@ -4776,7 +4776,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
4776
4776
|
* @param {int} [since] not sent to exchange api, exchange api always returns the most recent data, only used to filter exchange response
|
|
4777
4777
|
* @param {int} [limit] the maximum amount of funding rate structures to fetch
|
|
4778
4778
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4779
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
4779
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
4780
4780
|
*/
|
|
4781
4781
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
4782
4782
|
if (symbol === undefined) {
|
|
@@ -4869,7 +4869,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
4869
4869
|
* @see https://developer-pro.bitmart.com/en/futuresv2/#get-current-position-keyed
|
|
4870
4870
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
4871
4871
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4872
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
4872
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
4873
4873
|
*/
|
|
4874
4874
|
async fetchPosition(symbol, params = {}) {
|
|
4875
4875
|
await this.loadMarkets();
|
|
@@ -4919,7 +4919,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
4919
4919
|
* @see https://developer-pro.bitmart.com/en/futuresv2/#get-current-position-v2-keyed
|
|
4920
4920
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
4921
4921
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4922
|
-
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com
|
|
4922
|
+
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
4923
4923
|
*/
|
|
4924
4924
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
4925
4925
|
await this.loadMarkets();
|
|
@@ -5047,7 +5047,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
5047
5047
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
5048
5048
|
* @param {object} [params] exchange specific parameters for the bitmart api endpoint
|
|
5049
5049
|
* @param {int} [params.until] timestamp in ms of the latest liquidation
|
|
5050
|
-
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com
|
|
5050
|
+
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
|
|
5051
5051
|
*/
|
|
5052
5052
|
async fetchMyLiquidations(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5053
5053
|
if (symbol === undefined) {
|
|
@@ -5163,7 +5163,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
5163
5163
|
* @param {string} [params.clientOrderId] client order id of the order
|
|
5164
5164
|
* @param {int} [params.price_type] *swap only* 1: last price, 2: fair price, default is 1
|
|
5165
5165
|
* @param {int} [params.plan_category] *swap tp/sl only* 1: tp/sl, 2: position tp/sl, default is 1
|
|
5166
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
5166
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5167
5167
|
*/
|
|
5168
5168
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
5169
5169
|
await this.loadMarkets();
|
|
@@ -5285,7 +5285,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
5285
5285
|
* @param {int} [limit] max number of ledger entries to return
|
|
5286
5286
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5287
5287
|
* @param {int} [params.until] timestamp in ms of the latest ledger entry
|
|
5288
|
-
* @returns {object[]} a list of [ledger structures]{@link https://docs.ccxt.com
|
|
5288
|
+
* @returns {object[]} a list of [ledger structures]{@link https://docs.ccxt.com/?id=ledger}
|
|
5289
5289
|
*/
|
|
5290
5290
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5291
5291
|
await this.loadMarkets();
|
|
@@ -5400,7 +5400,7 @@ class bitmart extends bitmart$1["default"] {
|
|
|
5400
5400
|
* @param {int} [limit] the number of entries to return
|
|
5401
5401
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5402
5402
|
* @param {int} [params.until] the latest time in ms to fetch funding history for
|
|
5403
|
-
* @returns {object[]} a list of [funding history structures]{@link https://docs.ccxt.com
|
|
5403
|
+
* @returns {object[]} a list of [funding history structures]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
5404
5404
|
*/
|
|
5405
5405
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5406
5406
|
await this.loadMarkets();
|
package/dist/cjs/src/bitmex.js
CHANGED
|
@@ -901,7 +901,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
901
901
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
902
902
|
* @see https://www.bitmex.com/api/explorer/#!/User/User_getMargin
|
|
903
903
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
904
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
904
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
905
905
|
*/
|
|
906
906
|
async fetchBalance(params = {}) {
|
|
907
907
|
await this.loadMarkets();
|
|
@@ -966,7 +966,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
966
966
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
967
967
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
968
968
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
969
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
969
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
970
970
|
*/
|
|
971
971
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
972
972
|
await this.loadMarkets();
|
|
@@ -1011,7 +1011,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
1011
1011
|
* @param {string} id the order id
|
|
1012
1012
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1013
1013
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1014
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1014
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1015
1015
|
*/
|
|
1016
1016
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1017
1017
|
const filter = {
|
|
@@ -1037,7 +1037,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
1037
1037
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1038
1038
|
* @param {int} [params.until] the earliest time in ms to fetch orders for
|
|
1039
1039
|
* @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)
|
|
1040
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1040
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1041
1041
|
*/
|
|
1042
1042
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1043
1043
|
await this.loadMarkets();
|
|
@@ -1082,7 +1082,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
1082
1082
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1083
1083
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1084
1084
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1085
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1085
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1086
1086
|
*/
|
|
1087
1087
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1088
1088
|
const request = {
|
|
@@ -1101,7 +1101,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
1101
1101
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1102
1102
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1103
1103
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1104
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1104
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1105
1105
|
*/
|
|
1106
1106
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1107
1107
|
// Bitmex barfs if you set 'open': false in the filter...
|
|
@@ -1118,7 +1118,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
1118
1118
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1119
1119
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1120
1120
|
* @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)
|
|
1121
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1121
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
1122
1122
|
*/
|
|
1123
1123
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1124
1124
|
await this.loadMarkets();
|
|
@@ -1328,7 +1328,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
1328
1328
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1329
1329
|
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
1330
1330
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1331
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
1331
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
1332
1332
|
*/
|
|
1333
1333
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1334
1334
|
await this.loadMarkets();
|
|
@@ -1380,7 +1380,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
1380
1380
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1381
1381
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1382
1382
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1383
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
1383
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1384
1384
|
*/
|
|
1385
1385
|
async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1386
1386
|
await this.loadMarkets();
|
|
@@ -1497,7 +1497,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
1497
1497
|
* @see https://www.bitmex.com/api/explorer/#!/Instrument/Instrument_get
|
|
1498
1498
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1499
1499
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1500
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
1500
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1501
1501
|
*/
|
|
1502
1502
|
async fetchTicker(symbol, params = {}) {
|
|
1503
1503
|
await this.loadMarkets();
|
|
@@ -1519,7 +1519,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
1519
1519
|
* @see https://www.bitmex.com/api/explorer/#!/Instrument/Instrument_getActiveAndIndices
|
|
1520
1520
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1521
1521
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1522
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
1522
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1523
1523
|
*/
|
|
1524
1524
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
1525
1525
|
await this.loadMarkets();
|
|
@@ -1922,7 +1922,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
1922
1922
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1923
1923
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1924
1924
|
* @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)
|
|
1925
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1925
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
1926
1926
|
*/
|
|
1927
1927
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1928
1928
|
await this.loadMarkets();
|
|
@@ -2141,7 +2141,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
2141
2141
|
* @param {string} id order id
|
|
2142
2142
|
* @param {string} symbol not used by bitmex cancelOrder ()
|
|
2143
2143
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2144
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
2144
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2145
2145
|
*/
|
|
2146
2146
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
2147
2147
|
await this.loadMarkets();
|
|
@@ -2173,7 +2173,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
2173
2173
|
* @param {string[]} ids order ids
|
|
2174
2174
|
* @param {string} symbol not used by bitmex cancelOrders ()
|
|
2175
2175
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2176
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
2176
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2177
2177
|
*/
|
|
2178
2178
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
2179
2179
|
// return await this.cancelOrder (ids, symbol, params);
|
|
@@ -2198,7 +2198,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
2198
2198
|
* @see https://www.bitmex.com/api/explorer/#!/Order/Order_cancelAll
|
|
2199
2199
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2200
2200
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2201
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2201
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2202
2202
|
*/
|
|
2203
2203
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
2204
2204
|
await this.loadMarkets();
|
|
@@ -2280,7 +2280,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
2280
2280
|
* @see https://www.bitmex.com/api/explorer/#!/Position/Position_get
|
|
2281
2281
|
* @param {string[]} [symbols] a list of unified market symbols
|
|
2282
2282
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2283
|
-
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com
|
|
2283
|
+
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
2284
2284
|
*/
|
|
2285
2285
|
async fetchLeverages(symbols = undefined, params = {}) {
|
|
2286
2286
|
await this.loadMarkets();
|
|
@@ -2304,7 +2304,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
2304
2304
|
* @see https://www.bitmex.com/api/explorer/#!/Position/Position_get
|
|
2305
2305
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2306
2306
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2307
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
2307
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
2308
2308
|
*/
|
|
2309
2309
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
2310
2310
|
await this.loadMarkets();
|
|
@@ -2566,7 +2566,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
2566
2566
|
* @param {string} address the address to withdraw to
|
|
2567
2567
|
* @param {string} tag
|
|
2568
2568
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2569
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
2569
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2570
2570
|
*/
|
|
2571
2571
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
2572
2572
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -2614,7 +2614,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
2614
2614
|
* @see https://www.bitmex.com/api/explorer/#!/Instrument/Instrument_getActiveAndIndices
|
|
2615
2615
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2616
2616
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2617
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
2617
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols
|
|
2618
2618
|
*/
|
|
2619
2619
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
2620
2620
|
await this.loadMarkets();
|
|
@@ -2667,14 +2667,14 @@ class bitmex extends bitmex$1["default"] {
|
|
|
2667
2667
|
* @see https://www.bitmex.com/api/explorer/#!/Funding/Funding_get
|
|
2668
2668
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2669
2669
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2670
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com
|
|
2670
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
2671
2671
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2672
2672
|
* @param {int} [params.until] timestamp in ms for ending date filter
|
|
2673
2673
|
* @param {bool} [params.reverse] if true, will sort results newest first
|
|
2674
2674
|
* @param {int} [params.start] starting point for results
|
|
2675
2675
|
* @param {string} [params.columns] array of column names to fetch in info, if omitted, will return all columns
|
|
2676
2676
|
* @param {string} [params.filter] generic table filter, send json key/value pairs, such as {"key": "value"}, you can key on individual fields, and do more advanced querying on timestamps, see the [timestamp docs]{@link https://www.bitmex.com/app/restAPI#Timestamp-Filters} for more details
|
|
2677
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
2677
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
2678
2678
|
*/
|
|
2679
2679
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2680
2680
|
await this.loadMarkets();
|
|
@@ -2812,7 +2812,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
2812
2812
|
* @param {string} code unified currency code
|
|
2813
2813
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2814
2814
|
* @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']
|
|
2815
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
2815
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
2816
2816
|
*/
|
|
2817
2817
|
async fetchDepositAddress(code, params = {}) {
|
|
2818
2818
|
await this.loadMarkets();
|
|
@@ -2909,7 +2909,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
2909
2909
|
* @see https://www.bitmex.com/api/explorer/#!/Wallet/Wallet_getAssetsConfig
|
|
2910
2910
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2911
2911
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2912
|
-
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com
|
|
2912
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
2913
2913
|
*/
|
|
2914
2914
|
async fetchDepositWithdrawFees(codes = undefined, params = {}) {
|
|
2915
2915
|
await this.loadMarkets();
|
|
@@ -2969,7 +2969,7 @@ class bitmex extends bitmex$1["default"] {
|
|
|
2969
2969
|
* @param {object} [params] exchange specific parameters for the bitmex api endpoint
|
|
2970
2970
|
* @param {int} [params.until] timestamp in ms of the latest liquidation
|
|
2971
2971
|
* @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)
|
|
2972
|
-
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com
|
|
2972
|
+
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
|
|
2973
2973
|
*/
|
|
2974
2974
|
async fetchLiquidations(symbol, since = undefined, limit = undefined, params = {}) {
|
|
2975
2975
|
await this.loadMarkets();
|