ccxt 4.5.28 → 4.5.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -7
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +6 -1
- package/dist/cjs/src/abstract/bydfi.js +11 -0
- package/dist/cjs/src/alpaca.js +21 -21
- package/dist/cjs/src/apex.js +20 -20
- package/dist/cjs/src/arkham.js +22 -22
- package/dist/cjs/src/ascendex.js +28 -28
- package/dist/cjs/src/backpack.js +22 -22
- package/dist/cjs/src/base/Exchange.js +48 -38
- package/dist/cjs/src/base/functions/throttle.js +54 -5
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +83 -82
- package/dist/cjs/src/bingx.js +47 -47
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +49 -48
- package/dist/cjs/src/bitbns.js +13 -13
- package/dist/cjs/src/bitfinex.js +33 -33
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitget.js +58 -57
- package/dist/cjs/src/bithumb.js +10 -10
- package/dist/cjs/src/bitmart.js +44 -44
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +20 -20
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +20 -20
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bittrade.js +20 -20
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/blofin.js +26 -26
- package/dist/cjs/src/btcalpha.js +35 -34
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +16 -16
- package/dist/cjs/src/btcturk.js +10 -10
- package/dist/cjs/src/bullish.js +27 -27
- package/dist/cjs/src/bybit.js +69 -67
- package/dist/cjs/src/bydfi.js +2907 -0
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +74 -41
- package/dist/cjs/src/coinbaseexchange.js +22 -22
- package/dist/cjs/src/coinbaseinternational.js +22 -22
- package/dist/cjs/src/coincatch.js +39 -39
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +48 -48
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinmetro.js +14 -14
- package/dist/cjs/src/coinone.js +11 -11
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +32 -32
- package/dist/cjs/src/cryptomus.js +9 -9
- package/dist/cjs/src/deepcoin.js +33 -33
- package/dist/cjs/src/defx.js +23 -23
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +36 -36
- package/dist/cjs/src/derive.js +19 -19
- package/dist/cjs/src/digifinex.js +36 -36
- package/dist/cjs/src/dydx.js +25 -25
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +60 -59
- package/dist/cjs/src/gemini.js +16 -16
- package/dist/cjs/src/hashkey.js +35 -35
- package/dist/cjs/src/hibachi.js +24 -24
- package/dist/cjs/src/hitbtc.js +38 -38
- package/dist/cjs/src/hollaex.js +22 -22
- package/dist/cjs/src/htx.js +50 -50
- package/dist/cjs/src/hyperliquid.js +86 -45
- package/dist/cjs/src/independentreserve.js +13 -13
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +30 -30
- package/dist/cjs/src/krakenfutures.js +21 -21
- package/dist/cjs/src/kucoin.js +156 -48
- package/dist/cjs/src/kucoinfutures.js +42 -40
- package/dist/cjs/src/latoken.js +16 -16
- package/dist/cjs/src/lbank.js +23 -23
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/mercado.js +11 -11
- package/dist/cjs/src/mexc.js +47 -47
- package/dist/cjs/src/modetrade.js +37 -35
- package/dist/cjs/src/ndax.js +19 -19
- package/dist/cjs/src/novadax.js +19 -19
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okx.js +83 -83
- package/dist/cjs/src/onetrading.js +34 -33
- package/dist/cjs/src/oxfun.js +25 -25
- package/dist/cjs/src/p2b.js +11 -11
- package/dist/cjs/src/paradex.js +54 -54
- package/dist/cjs/src/paymium.js +20 -21
- package/dist/cjs/src/phemex.js +35 -35
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +13 -11
- package/dist/cjs/src/pro/arkham.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/backpack.js +16 -16
- package/dist/cjs/src/pro/binance.js +45 -41
- package/dist/cjs/src/pro/bingx.js +14 -12
- package/dist/cjs/src/pro/bitfinex.js +8 -8
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bithumb.js +3 -3
- package/dist/cjs/src/pro/bitmart.js +393 -34
- package/dist/cjs/src/pro/bitmex.js +9 -9
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrade.js +3 -3
- package/dist/cjs/src/pro/bitvavo.js +19 -19
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +10 -10
- package/dist/cjs/src/pro/bullish.js +6 -6
- package/dist/cjs/src/pro/bybit.js +24 -22
- package/dist/cjs/src/pro/bydfi.js +1077 -0
- package/dist/cjs/src/pro/cex.js +13 -13
- package/dist/cjs/src/pro/coinbase.js +13 -13
- package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
- package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
- package/dist/cjs/src/pro/coincatch.js +10 -10
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +10 -10
- package/dist/cjs/src/pro/coinone.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +25 -23
- package/dist/cjs/src/pro/deepcoin.js +8 -8
- package/dist/cjs/src/pro/defx.js +15 -15
- package/dist/cjs/src/pro/deribit.js +10 -10
- package/dist/cjs/src/pro/derive.js +6 -6
- package/dist/cjs/src/pro/dydx.js +3 -3
- package/dist/cjs/src/pro/exmo.js +7 -7
- package/dist/cjs/src/pro/gate.js +26 -62
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +11 -9
- package/dist/cjs/src/pro/hitbtc.js +8 -8
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +9 -9
- package/dist/cjs/src/pro/hyperliquid.js +103 -14
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +15 -15
- package/dist/cjs/src/pro/krakenfutures.js +10 -10
- package/dist/cjs/src/pro/kucoin.js +15 -15
- package/dist/cjs/src/pro/kucoinfutures.js +18 -16
- package/dist/cjs/src/pro/lbank.js +5 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +13 -13
- package/dist/cjs/src/pro/modetrade.js +13 -11
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okx.js +25 -25
- package/dist/cjs/src/pro/onetrading.js +6 -6
- package/dist/cjs/src/pro/oxfun.js +13 -13
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/paradex.js +8 -8
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +8 -8
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/toobit.js +20 -16
- package/dist/cjs/src/pro/upbit.js +9 -9
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +18 -16
- package/dist/cjs/src/pro/woofipro.js +25 -23
- package/dist/cjs/src/pro/xt.js +7 -5
- package/dist/cjs/src/probit.js +18 -18
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +17 -17
- package/dist/cjs/src/toobit.js +33 -30
- package/dist/cjs/src/upbit.js +23 -23
- package/dist/cjs/src/wavesexchange.js +86 -85
- package/dist/cjs/src/whitebit.js +44 -44
- package/dist/cjs/src/woo.js +51 -49
- package/dist/cjs/src/woofipro.js +104 -82
- package/dist/cjs/src/xt.js +17 -12
- package/dist/cjs/src/yobit.js +15 -15
- package/dist/cjs/src/zaif.js +38 -9
- package/dist/cjs/src/zebpay.js +35 -20
- package/dist/cjs/src/zonda.js +14 -14
- package/js/ccxt.d.ts +8 -2
- package/js/ccxt.js +6 -2
- package/js/src/abstract/bydfi.d.ts +52 -0
- package/js/src/abstract/bydfi.js +11 -0
- package/js/src/alpaca.d.ts +21 -21
- package/js/src/alpaca.js +21 -21
- package/js/src/apex.d.ts +20 -20
- package/js/src/apex.js +20 -20
- package/js/src/arkham.d.ts +22 -22
- package/js/src/arkham.js +22 -22
- package/js/src/ascendex.d.ts +28 -28
- package/js/src/ascendex.js +28 -28
- package/js/src/backpack.d.ts +21 -21
- package/js/src/backpack.js +22 -22
- package/js/src/base/Exchange.d.ts +6 -3
- package/js/src/base/Exchange.js +48 -38
- package/js/src/base/functions/throttle.d.ts +22 -0
- package/js/src/base/functions/throttle.js +54 -5
- package/js/src/bigone.d.ts +19 -19
- package/js/src/bigone.js +19 -19
- package/js/src/binance.d.ts +82 -82
- package/js/src/binance.js +83 -82
- package/js/src/bingx.d.ts +46 -46
- package/js/src/bingx.js +47 -47
- package/js/src/bit2c.d.ts +11 -11
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.d.ts +12 -12
- package/js/src/bitbank.js +49 -48
- package/js/src/bitbns.d.ts +13 -13
- package/js/src/bitbns.js +13 -13
- package/js/src/bitfinex.d.ts +33 -33
- package/js/src/bitfinex.js +33 -33
- package/js/src/bitflyer.d.ts +17 -17
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitget.d.ts +57 -57
- package/js/src/bitget.js +58 -57
- package/js/src/bithumb.d.ts +10 -10
- package/js/src/bithumb.js +10 -10
- package/js/src/bitmart.d.ts +42 -42
- package/js/src/bitmart.js +44 -44
- package/js/src/bitmex.d.ts +24 -24
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.d.ts +20 -20
- package/js/src/bitopro.js +20 -20
- package/js/src/bitrue.d.ts +18 -18
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.d.ts +20 -20
- package/js/src/bitso.js +20 -20
- package/js/src/bitstamp.d.ts +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bittrade.d.ts +20 -20
- package/js/src/bittrade.js +20 -20
- package/js/src/bitvavo.d.ts +19 -19
- package/js/src/bitvavo.js +19 -19
- package/js/src/blockchaincom.d.ts +20 -20
- package/js/src/blockchaincom.js +20 -20
- package/js/src/blofin.d.ts +26 -26
- package/js/src/blofin.js +26 -26
- package/js/src/btcalpha.d.ts +14 -14
- package/js/src/btcalpha.js +35 -34
- package/js/src/btcbox.d.ts +10 -10
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.d.ts +16 -16
- package/js/src/btcmarkets.js +16 -16
- package/js/src/btcturk.d.ts +10 -10
- package/js/src/btcturk.js +10 -10
- package/js/src/bullish.d.ts +26 -26
- package/js/src/bullish.js +27 -27
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +69 -67
- package/js/src/bydfi.d.ts +472 -0
- package/js/src/bydfi.js +2905 -0
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +51 -40
- package/js/src/coinbase.js +74 -41
- package/js/src/coinbaseexchange.d.ts +22 -22
- package/js/src/coinbaseexchange.js +22 -22
- package/js/src/coinbaseinternational.d.ts +22 -22
- package/js/src/coinbaseinternational.js +22 -22
- package/js/src/coincatch.d.ts +39 -39
- package/js/src/coincatch.js +39 -39
- package/js/src/coincheck.d.ts +11 -11
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.d.ts +48 -48
- package/js/src/coinex.js +48 -48
- package/js/src/coinmate.d.ts +14 -14
- package/js/src/coinmate.js +14 -14
- package/js/src/coinmetro.d.ts +14 -14
- package/js/src/coinmetro.js +14 -14
- package/js/src/coinone.d.ts +11 -11
- package/js/src/coinone.js +11 -11
- package/js/src/coinsph.d.ts +20 -20
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.d.ts +8 -8
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.d.ts +32 -32
- package/js/src/cryptocom.js +32 -32
- package/js/src/cryptomus.d.ts +9 -9
- package/js/src/cryptomus.js +9 -9
- package/js/src/deepcoin.d.ts +33 -33
- package/js/src/deepcoin.js +33 -33
- package/js/src/defx.d.ts +23 -23
- package/js/src/defx.js +23 -23
- package/js/src/delta.d.ts +29 -29
- package/js/src/delta.js +29 -29
- package/js/src/deribit.d.ts +36 -36
- package/js/src/deribit.js +36 -36
- package/js/src/derive.d.ts +19 -19
- package/js/src/derive.js +19 -19
- package/js/src/digifinex.d.ts +36 -36
- package/js/src/digifinex.js +36 -36
- package/js/src/dydx.d.ts +22 -22
- package/js/src/dydx.js +25 -25
- package/js/src/exmo.d.ts +29 -29
- package/js/src/exmo.js +29 -29
- package/js/src/foxbit.d.ts +23 -23
- package/js/src/foxbit.js +23 -23
- package/js/src/gate.d.ts +57 -57
- package/js/src/gate.js +60 -59
- package/js/src/gemini.d.ts +16 -16
- package/js/src/gemini.js +16 -16
- package/js/src/hashkey.d.ts +35 -35
- package/js/src/hashkey.js +35 -35
- package/js/src/hibachi.d.ts +24 -24
- package/js/src/hibachi.js +24 -24
- package/js/src/hitbtc.d.ts +38 -38
- package/js/src/hitbtc.js +38 -38
- package/js/src/hollaex.d.ts +22 -22
- package/js/src/hollaex.js +22 -22
- package/js/src/htx.d.ts +50 -50
- package/js/src/htx.js +50 -50
- package/js/src/hyperliquid.d.ts +46 -36
- package/js/src/hyperliquid.js +86 -45
- package/js/src/independentreserve.d.ts +13 -13
- package/js/src/independentreserve.js +13 -13
- package/js/src/indodax.d.ts +14 -14
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.d.ts +30 -30
- package/js/src/kraken.js +30 -30
- package/js/src/krakenfutures.d.ts +21 -21
- package/js/src/krakenfutures.js +21 -21
- package/js/src/kucoin.d.ts +58 -44
- package/js/src/kucoin.js +156 -48
- package/js/src/kucoinfutures.d.ts +35 -35
- package/js/src/kucoinfutures.js +42 -40
- package/js/src/latoken.d.ts +16 -16
- package/js/src/latoken.js +16 -16
- package/js/src/lbank.d.ts +23 -23
- package/js/src/lbank.js +23 -23
- package/js/src/luno.d.ts +17 -17
- package/js/src/luno.js +17 -17
- package/js/src/mercado.d.ts +11 -11
- package/js/src/mercado.js +11 -11
- package/js/src/mexc.d.ts +47 -47
- package/js/src/mexc.js +47 -47
- package/js/src/modetrade.d.ts +31 -31
- package/js/src/modetrade.js +37 -35
- package/js/src/ndax.d.ts +19 -19
- package/js/src/ndax.js +19 -19
- package/js/src/novadax.d.ts +19 -19
- package/js/src/novadax.js +19 -19
- package/js/src/oceanex.d.ts +16 -16
- package/js/src/oceanex.js +16 -16
- package/js/src/okx.d.ts +74 -74
- package/js/src/okx.js +83 -83
- package/js/src/onetrading.d.ts +34 -33
- package/js/src/onetrading.js +34 -33
- package/js/src/oxfun.d.ts +25 -25
- package/js/src/oxfun.js +25 -25
- package/js/src/p2b.d.ts +11 -11
- package/js/src/p2b.js +11 -11
- package/js/src/paradex.d.ts +54 -54
- package/js/src/paradex.js +54 -54
- package/js/src/paymium.d.ts +20 -21
- package/js/src/paymium.js +20 -21
- package/js/src/phemex.d.ts +30 -30
- package/js/src/phemex.js +35 -35
- package/js/src/poloniex.d.ts +26 -26
- package/js/src/poloniex.js +27 -27
- package/js/src/pro/alpaca.d.ts +5 -5
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +8 -8
- package/js/src/pro/apex.js +13 -11
- package/js/src/pro/arkham.d.ts +5 -5
- package/js/src/pro/arkham.js +5 -5
- package/js/src/pro/ascendex.d.ts +5 -5
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/backpack.d.ts +16 -16
- package/js/src/pro/backpack.js +16 -16
- package/js/src/pro/binance.d.ts +35 -35
- package/js/src/pro/binance.js +45 -41
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +14 -12
- package/js/src/pro/bitfinex.d.ts +8 -8
- package/js/src/pro/bitfinex.js +8 -8
- package/js/src/pro/bitget.d.ts +12 -12
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bithumb.d.ts +3 -3
- package/js/src/pro/bithumb.js +3 -3
- package/js/src/pro/bitmart.d.ts +120 -9
- package/js/src/pro/bitmart.js +393 -34
- package/js/src/pro/bitmex.d.ts +9 -9
- package/js/src/pro/bitmex.js +9 -9
- package/js/src/pro/bitopro.d.ts +5 -5
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.d.ts +3 -3
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrade.d.ts +3 -3
- package/js/src/pro/bittrade.js +3 -3
- package/js/src/pro/bitvavo.d.ts +19 -19
- package/js/src/pro/bitvavo.js +19 -19
- package/js/src/pro/blockchaincom.d.ts +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +10 -10
- package/js/src/pro/blofin.js +10 -10
- package/js/src/pro/bullish.d.ts +6 -6
- package/js/src/pro/bullish.js +6 -6
- package/js/src/pro/bybit.d.ts +19 -19
- package/js/src/pro/bybit.js +24 -22
- package/js/src/pro/bydfi.d.ts +206 -0
- package/js/src/pro/bydfi.js +1076 -0
- package/js/src/pro/cex.d.ts +13 -13
- package/js/src/pro/cex.js +13 -13
- package/js/src/pro/coinbase.d.ts +13 -13
- package/js/src/pro/coinbase.js +13 -13
- package/js/src/pro/coinbaseexchange.d.ts +10 -10
- package/js/src/pro/coinbaseexchange.js +10 -10
- package/js/src/pro/coinbaseinternational.d.ts +8 -8
- package/js/src/pro/coinbaseinternational.js +8 -8
- package/js/src/pro/coincatch.d.ts +10 -10
- package/js/src/pro/coincatch.js +10 -10
- package/js/src/pro/coincheck.d.ts +2 -2
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +10 -10
- package/js/src/pro/coinex.js +10 -10
- package/js/src/pro/coinone.d.ts +3 -3
- package/js/src/pro/coinone.js +3 -3
- package/js/src/pro/cryptocom.d.ts +20 -20
- package/js/src/pro/cryptocom.js +25 -23
- package/js/src/pro/deepcoin.d.ts +8 -8
- package/js/src/pro/deepcoin.js +8 -8
- package/js/src/pro/defx.d.ts +15 -15
- package/js/src/pro/defx.js +15 -15
- package/js/src/pro/deribit.d.ts +10 -10
- package/js/src/pro/deribit.js +10 -10
- package/js/src/pro/derive.d.ts +6 -6
- package/js/src/pro/derive.js +6 -6
- package/js/src/pro/dydx.d.ts +3 -3
- package/js/src/pro/dydx.js +3 -3
- package/js/src/pro/exmo.d.ts +7 -7
- package/js/src/pro/exmo.js +7 -7
- package/js/src/pro/gate.d.ts +22 -23
- package/js/src/pro/gate.js +26 -62
- package/js/src/pro/gemini.d.ts +6 -6
- package/js/src/pro/gemini.js +6 -6
- package/js/src/pro/hashkey.d.ts +6 -6
- package/js/src/pro/hashkey.js +11 -9
- package/js/src/pro/hitbtc.d.ts +8 -8
- package/js/src/pro/hitbtc.js +8 -8
- package/js/src/pro/hollaex.d.ts +5 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.d.ts +9 -9
- package/js/src/pro/htx.js +9 -9
- package/js/src/pro/hyperliquid.d.ts +38 -14
- package/js/src/pro/hyperliquid.js +103 -14
- package/js/src/pro/independentreserve.d.ts +2 -2
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +15 -15
- package/js/src/pro/kraken.js +15 -15
- package/js/src/pro/krakenfutures.d.ts +10 -10
- package/js/src/pro/krakenfutures.js +10 -10
- package/js/src/pro/kucoin.d.ts +15 -15
- package/js/src/pro/kucoin.js +15 -15
- package/js/src/pro/kucoinfutures.d.ts +13 -13
- package/js/src/pro/kucoinfutures.js +18 -16
- package/js/src/pro/lbank.d.ts +5 -5
- package/js/src/pro/lbank.js +5 -5
- package/js/src/pro/luno.d.ts +2 -2
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +13 -13
- package/js/src/pro/mexc.js +13 -13
- package/js/src/pro/modetrade.d.ts +8 -8
- package/js/src/pro/modetrade.js +13 -11
- package/js/src/pro/ndax.d.ts +3 -3
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okx.d.ts +25 -25
- package/js/src/pro/okx.js +25 -25
- package/js/src/pro/onetrading.d.ts +6 -6
- package/js/src/pro/onetrading.js +6 -6
- package/js/src/pro/oxfun.d.ts +13 -13
- package/js/src/pro/oxfun.js +13 -13
- package/js/src/pro/p2b.d.ts +5 -5
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/paradex.d.ts +8 -8
- package/js/src/pro/paradex.js +8 -8
- package/js/src/pro/phemex.d.ts +7 -7
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.d.ts +8 -8
- package/js/src/pro/poloniex.js +8 -8
- package/js/src/pro/probit.d.ts +6 -6
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/toobit.d.ts +9 -9
- package/js/src/pro/toobit.js +20 -16
- package/js/src/pro/upbit.d.ts +9 -9
- package/js/src/pro/upbit.js +9 -9
- package/js/src/pro/whitebit.d.ts +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.d.ts +13 -13
- package/js/src/pro/woo.js +18 -16
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +25 -23
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +7 -5
- package/js/src/probit.d.ts +18 -18
- package/js/src/probit.js +18 -18
- package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
- package/js/src/static_dependencies/ethers/utils/index.js +8 -1
- package/js/src/timex.d.ts +16 -16
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.d.ts +17 -17
- package/js/src/tokocrypto.js +17 -17
- package/js/src/toobit.d.ts +27 -27
- package/js/src/toobit.js +33 -30
- package/js/src/upbit.d.ts +23 -23
- package/js/src/upbit.js +23 -23
- package/js/src/wavesexchange.d.ts +15 -15
- package/js/src/wavesexchange.js +86 -85
- package/js/src/whitebit.d.ts +44 -44
- package/js/src/whitebit.js +44 -44
- package/js/src/woo.d.ts +45 -45
- package/js/src/woo.js +51 -49
- package/js/src/woofipro.d.ts +77 -77
- package/js/src/woofipro.js +104 -82
- package/js/src/xt.d.ts +12 -12
- package/js/src/xt.js +17 -12
- package/js/src/yobit.d.ts +15 -15
- package/js/src/yobit.js +15 -15
- package/js/src/zaif.d.ts +9 -9
- package/js/src/zaif.js +38 -9
- package/js/src/zebpay.d.ts +20 -20
- package/js/src/zebpay.js +35 -20
- package/js/src/zonda.d.ts +14 -14
- package/js/src/zonda.js +14 -14
- package/package.json +1 -1
package/js/src/bitmart.js
CHANGED
|
@@ -892,7 +892,7 @@ export default class bitmart extends Exchange {
|
|
|
892
892
|
* @description the latest known information on the availability of the exchange API
|
|
893
893
|
* @see https://developer-pro.bitmart.com/en/spot/#get-system-service-status
|
|
894
894
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
895
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
895
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
896
896
|
*/
|
|
897
897
|
async fetchStatus(params = {}) {
|
|
898
898
|
const options = this.safeDict(this.options, 'fetchStatus', {});
|
|
@@ -1329,7 +1329,7 @@ export default class bitmart extends Exchange {
|
|
|
1329
1329
|
* @param {string} code unified currency code
|
|
1330
1330
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1331
1331
|
* @param {string} [params.network] the network code of the currency
|
|
1332
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
1332
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
1333
1333
|
*/
|
|
1334
1334
|
async fetchTransactionFee(code, params = {}) {
|
|
1335
1335
|
await this.loadMarkets();
|
|
@@ -1392,7 +1392,7 @@ export default class bitmart extends Exchange {
|
|
|
1392
1392
|
* @param {string} code unified currency code
|
|
1393
1393
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1394
1394
|
* @param {string} [params.network] the network code of the currency
|
|
1395
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
1395
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
1396
1396
|
*/
|
|
1397
1397
|
async fetchDepositWithdrawFee(code, params = {}) {
|
|
1398
1398
|
await this.loadMarkets();
|
|
@@ -1587,7 +1587,7 @@ export default class bitmart extends Exchange {
|
|
|
1587
1587
|
* @see https://developer-pro.bitmart.com/en/futuresv2/#get-contract-details
|
|
1588
1588
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1589
1589
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1590
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
1590
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1591
1591
|
*/
|
|
1592
1592
|
async fetchTicker(symbol, params = {}) {
|
|
1593
1593
|
await this.loadMarkets();
|
|
@@ -1687,7 +1687,7 @@ export default class bitmart extends Exchange {
|
|
|
1687
1687
|
* @see https://developer-pro.bitmart.com/en/futuresv2/#get-contract-details
|
|
1688
1688
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1689
1689
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1690
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
1690
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1691
1691
|
*/
|
|
1692
1692
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
1693
1693
|
await this.loadMarkets();
|
|
@@ -1803,7 +1803,7 @@ export default class bitmart extends Exchange {
|
|
|
1803
1803
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1804
1804
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1805
1805
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1806
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
1806
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
1807
1807
|
*/
|
|
1808
1808
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1809
1809
|
await this.loadMarkets();
|
|
@@ -1988,7 +1988,7 @@ export default class bitmart extends Exchange {
|
|
|
1988
1988
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1989
1989
|
* @param {int} [limit] the maximum number of trades to fetch
|
|
1990
1990
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1991
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1991
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
1992
1992
|
*/
|
|
1993
1993
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1994
1994
|
await this.loadMarkets();
|
|
@@ -2212,7 +2212,7 @@ export default class bitmart extends Exchange {
|
|
|
2212
2212
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
2213
2213
|
* @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)
|
|
2214
2214
|
* @param {string} [params.stpMode] self-trade prevention only for spot, defaults to none, ['none', 'cancel_maker', 'cancel_taker', 'cancel_both']
|
|
2215
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
2215
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
2216
2216
|
*/
|
|
2217
2217
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2218
2218
|
await this.loadMarkets();
|
|
@@ -2328,7 +2328,7 @@ export default class bitmart extends Exchange {
|
|
|
2328
2328
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
2329
2329
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2330
2330
|
* @param {string} [params.stpMode] self-trade prevention only for spot, defaults to none, ['none', 'cancel_maker', 'cancel_taker', 'cancel_both']
|
|
2331
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
2331
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
2332
2332
|
*/
|
|
2333
2333
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2334
2334
|
await this.loadMarkets();
|
|
@@ -2401,7 +2401,7 @@ export default class bitmart extends Exchange {
|
|
|
2401
2401
|
* @see https://developer-pro.bitmart.com/en/spot/#get-account-balance-keyed
|
|
2402
2402
|
* @see https://developer-pro.bitmart.com/en/spot/#get-margin-account-details-isolated-keyed
|
|
2403
2403
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2404
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
2404
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
2405
2405
|
*/
|
|
2406
2406
|
async fetchBalance(params = {}) {
|
|
2407
2407
|
await this.loadMarkets();
|
|
@@ -2551,7 +2551,7 @@ export default class bitmart extends Exchange {
|
|
|
2551
2551
|
* @see https://developer-pro.bitmart.com/en/spot/#get-actual-trade-fee-rate-keyed
|
|
2552
2552
|
* @param {string} symbol unified market symbol
|
|
2553
2553
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2554
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
2554
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
2555
2555
|
*/
|
|
2556
2556
|
async fetchTradingFee(symbol, params = {}) {
|
|
2557
2557
|
await this.loadMarkets();
|
|
@@ -2748,7 +2748,7 @@ export default class bitmart extends Exchange {
|
|
|
2748
2748
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
2749
2749
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
2750
2750
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2751
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2751
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2752
2752
|
*/
|
|
2753
2753
|
async createMarketBuyOrderWithCost(symbol, cost, params = {}) {
|
|
2754
2754
|
await this.loadMarkets();
|
|
@@ -2790,7 +2790,7 @@ export default class bitmart extends Exchange {
|
|
|
2790
2790
|
* @param {string} [params.takeProfitPrice] *swap only* the price to trigger a take-profit order
|
|
2791
2791
|
* @param {int} [params.plan_category] *swap tp/sl only* 1: tp/sl, 2: position tp/sl, default is 1
|
|
2792
2792
|
* @param {string} [params.stpMode] self-trade prevention only for spot, defaults to none, ['none', 'cancel_maker', 'cancel_taker', 'cancel_both']
|
|
2793
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2793
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2794
2794
|
*/
|
|
2795
2795
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
2796
2796
|
await this.loadMarkets();
|
|
@@ -2861,7 +2861,7 @@ export default class bitmart extends Exchange {
|
|
|
2861
2861
|
* @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
|
|
2862
2862
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2863
2863
|
* @param {string} [params.stpMode] self-trade prevention only for spot, defaults to none, ['none', 'cancel_maker', 'cancel_taker', 'cancel_both']
|
|
2864
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2864
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2865
2865
|
*/
|
|
2866
2866
|
async createOrders(orders, params = {}) {
|
|
2867
2867
|
await this.loadMarkets();
|
|
@@ -2953,7 +2953,7 @@ export default class bitmart extends Exchange {
|
|
|
2953
2953
|
* @param {string} [params.stopLossPrice] *swap only* the price to trigger a stop-loss order
|
|
2954
2954
|
* @param {string} [params.takeProfitPrice] *swap only* the price to trigger a take-profit order
|
|
2955
2955
|
* @param {int} [params.plan_category] *swap tp/sl only* 1: tp/sl, 2: position tp/sl, default is 1
|
|
2956
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2956
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2957
2957
|
*/
|
|
2958
2958
|
const market = this.market(symbol);
|
|
2959
2959
|
const stopLossPrice = this.safeString(params, 'stopLossPrice');
|
|
@@ -3093,7 +3093,7 @@ export default class bitmart extends Exchange {
|
|
|
3093
3093
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
3094
3094
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3095
3095
|
* @param {string} [params.marginMode] 'cross' or 'isolated'
|
|
3096
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
3096
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3097
3097
|
*/
|
|
3098
3098
|
const market = this.market(symbol);
|
|
3099
3099
|
const request = {
|
|
@@ -3172,7 +3172,7 @@ export default class bitmart extends Exchange {
|
|
|
3172
3172
|
* @param {string} [params.clientOrderId] *spot only* the client order id of the order to cancel
|
|
3173
3173
|
* @param {boolean} [params.trigger] *swap only* whether the order is a trigger order
|
|
3174
3174
|
* @param {boolean} [params.trailing] *swap only* whether the order is a stop order
|
|
3175
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
3175
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3176
3176
|
*/
|
|
3177
3177
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
3178
3178
|
if (symbol === undefined) {
|
|
@@ -3264,7 +3264,7 @@ export default class bitmart extends Exchange {
|
|
|
3264
3264
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
3265
3265
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3266
3266
|
* @param {string[]} [params.clientOrderIds] client order ids
|
|
3267
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
3267
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3268
3268
|
*/
|
|
3269
3269
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
3270
3270
|
if (symbol === undefined) {
|
|
@@ -3326,7 +3326,7 @@ export default class bitmart extends Exchange {
|
|
|
3326
3326
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
3327
3327
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3328
3328
|
* @param {string} [params.side] *spot only* 'buy' or 'sell'
|
|
3329
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
3329
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3330
3330
|
*/
|
|
3331
3331
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
3332
3332
|
await this.loadMarkets();
|
|
@@ -3446,7 +3446,7 @@ export default class bitmart extends Exchange {
|
|
|
3446
3446
|
* @param {boolean} [params.trailing] *swap only* set to true if you want to fetch trailing orders
|
|
3447
3447
|
* @param {boolean} [params.trigger] *swap only* set to true if you want to fetch trigger orders
|
|
3448
3448
|
* @param {string} [params.stpMode] self-trade prevention only for spot, defaults to none, ['none', 'cancel_maker', 'cancel_taker', 'cancel_both']
|
|
3449
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
3449
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3450
3450
|
*/
|
|
3451
3451
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3452
3452
|
await this.loadMarkets();
|
|
@@ -3573,7 +3573,7 @@ export default class bitmart extends Exchange {
|
|
|
3573
3573
|
* @param {int} [params.until] timestamp in ms of the latest entry
|
|
3574
3574
|
* @param {string} [params.marginMode] *spot only* 'cross' or 'isolated', for margin trading
|
|
3575
3575
|
* @param {string} [params.stpMode] self-trade prevention only for spot, defaults to none, ['none', 'cancel_maker', 'cancel_taker', 'cancel_both']
|
|
3576
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
3576
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3577
3577
|
*/
|
|
3578
3578
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3579
3579
|
await this.loadMarkets();
|
|
@@ -3623,7 +3623,7 @@ export default class bitmart extends Exchange {
|
|
|
3623
3623
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
3624
3624
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
3625
3625
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3626
|
-
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com
|
|
3626
|
+
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3627
3627
|
*/
|
|
3628
3628
|
async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3629
3629
|
return await this.fetchOrdersByStatus('canceled', symbol, since, limit, params);
|
|
@@ -3642,7 +3642,7 @@ export default class bitmart extends Exchange {
|
|
|
3642
3642
|
* @param {string} [params.orderType] *swap only* 'limit', 'market', 'liquidate', 'bankruptcy', 'adl' or 'trailing'
|
|
3643
3643
|
* @param {boolean} [params.trailing] *swap only* set to true if you want to fetch a trailing order
|
|
3644
3644
|
* @param {string} [params.stpMode] self-trade prevention only for spot, defaults to none, ['none', 'cancel_maker', 'cancel_taker', 'cancel_both']
|
|
3645
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
3645
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3646
3646
|
*/
|
|
3647
3647
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
3648
3648
|
await this.loadMarkets();
|
|
@@ -3743,7 +3743,7 @@ export default class bitmart extends Exchange {
|
|
|
3743
3743
|
* @see https://developer-pro.bitmart.com/en/spot/#deposit-address-keyed
|
|
3744
3744
|
* @param {string} code unified currency code
|
|
3745
3745
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3746
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
3746
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
3747
3747
|
*/
|
|
3748
3748
|
async fetchDepositAddress(code, params = {}) {
|
|
3749
3749
|
await this.loadMarkets();
|
|
@@ -3823,7 +3823,7 @@ export default class bitmart extends Exchange {
|
|
|
3823
3823
|
* @param {string} tag
|
|
3824
3824
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3825
3825
|
* @param {string} [params.network] the network name for this withdrawal
|
|
3826
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
3826
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
3827
3827
|
*/
|
|
3828
3828
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
3829
3829
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -3919,7 +3919,7 @@ export default class bitmart extends Exchange {
|
|
|
3919
3919
|
* @param {string} id deposit id
|
|
3920
3920
|
* @param {string} code not used by bitmart fetchDeposit ()
|
|
3921
3921
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3922
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
3922
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
3923
3923
|
*/
|
|
3924
3924
|
async fetchDeposit(id, code = undefined, params = {}) {
|
|
3925
3925
|
await this.loadMarkets();
|
|
@@ -3962,7 +3962,7 @@ export default class bitmart extends Exchange {
|
|
|
3962
3962
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
3963
3963
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
3964
3964
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3965
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
3965
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
3966
3966
|
*/
|
|
3967
3967
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3968
3968
|
return await this.fetchTransactionsByType('deposit', code, since, limit, params);
|
|
@@ -3975,7 +3975,7 @@ export default class bitmart extends Exchange {
|
|
|
3975
3975
|
* @param {string} id withdrawal id
|
|
3976
3976
|
* @param {string} code not used by bitmart.fetchWithdrawal
|
|
3977
3977
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3978
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
3978
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
3979
3979
|
*/
|
|
3980
3980
|
async fetchWithdrawal(id, code = undefined, params = {}) {
|
|
3981
3981
|
await this.loadMarkets();
|
|
@@ -4018,7 +4018,7 @@ export default class bitmart extends Exchange {
|
|
|
4018
4018
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
4019
4019
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
4020
4020
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4021
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
4021
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
4022
4022
|
*/
|
|
4023
4023
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
4024
4024
|
return await this.fetchTransactionsByType('withdraw', code, since, limit, params);
|
|
@@ -4126,7 +4126,7 @@ export default class bitmart extends Exchange {
|
|
|
4126
4126
|
* @param {string} code unified currency code of the currency to repay
|
|
4127
4127
|
* @param {string} amount the amount to repay
|
|
4128
4128
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4129
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
4129
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
4130
4130
|
*/
|
|
4131
4131
|
async repayIsolatedMargin(symbol, code, amount, params = {}) {
|
|
4132
4132
|
await this.loadMarkets();
|
|
@@ -4164,7 +4164,7 @@ export default class bitmart extends Exchange {
|
|
|
4164
4164
|
* @param {string} code unified currency code of the currency to borrow
|
|
4165
4165
|
* @param {string} amount the amount to borrow
|
|
4166
4166
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4167
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
4167
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
4168
4168
|
*/
|
|
4169
4169
|
async borrowIsolatedMargin(symbol, code, amount, params = {}) {
|
|
4170
4170
|
await this.loadMarkets();
|
|
@@ -4318,7 +4318,7 @@ export default class bitmart extends Exchange {
|
|
|
4318
4318
|
* @description fetch the borrow interest rates of all currencies, currently only works for isolated margin
|
|
4319
4319
|
* @see https://developer-pro.bitmart.com/en/spot/#get-trading-pair-borrowing-rate-and-amount-keyed
|
|
4320
4320
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4321
|
-
* @returns {object} a list of [isolated borrow rate structures]{@link https://docs.ccxt.com
|
|
4321
|
+
* @returns {object} a list of [isolated borrow rate structures]{@link https://docs.ccxt.com/?id=isolated-borrow-rate-structure}
|
|
4322
4322
|
*/
|
|
4323
4323
|
async fetchIsolatedBorrowRates(params = {}) {
|
|
4324
4324
|
await this.loadMarkets();
|
|
@@ -4370,7 +4370,7 @@ export default class bitmart extends Exchange {
|
|
|
4370
4370
|
* @param {string} fromAccount account to transfer from
|
|
4371
4371
|
* @param {string} toAccount account to transfer to
|
|
4372
4372
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4373
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
4373
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
4374
4374
|
*/
|
|
4375
4375
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
4376
4376
|
await this.loadMarkets();
|
|
@@ -4511,7 +4511,7 @@ export default class bitmart extends Exchange {
|
|
|
4511
4511
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4512
4512
|
* @param {int} [params.page] the required number of pages, default is 1, max is 1000
|
|
4513
4513
|
* @param {int} [params.until] the latest time in ms to fetch transfers for
|
|
4514
|
-
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com
|
|
4514
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
4515
4515
|
*/
|
|
4516
4516
|
async fetchTransfers(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
4517
4517
|
await this.loadMarkets();
|
|
@@ -4573,7 +4573,7 @@ export default class bitmart extends Exchange {
|
|
|
4573
4573
|
* @param {int} [since] the earliest time in ms to fetch borrrow interest for
|
|
4574
4574
|
* @param {int} [limit] the maximum number of structures to retrieve
|
|
4575
4575
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4576
|
-
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com
|
|
4576
|
+
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure}
|
|
4577
4577
|
*/
|
|
4578
4578
|
async fetchBorrowInterest(code = undefined, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
4579
4579
|
if (symbol === undefined) {
|
|
@@ -4652,7 +4652,7 @@ export default class bitmart extends Exchange {
|
|
|
4652
4652
|
* @see https://developer-pro.bitmart.com/en/futuresv2/#get-futures-openinterest
|
|
4653
4653
|
* @param {string} symbol Unified CCXT market symbol
|
|
4654
4654
|
* @param {object} [params] exchange specific parameters
|
|
4655
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com
|
|
4655
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
4656
4656
|
*/
|
|
4657
4657
|
async fetchOpenInterest(symbol, params = {}) {
|
|
4658
4658
|
await this.loadMarkets();
|
|
@@ -4737,7 +4737,7 @@ export default class bitmart extends Exchange {
|
|
|
4737
4737
|
* @see https://developer-pro.bitmart.com/en/futuresv2/#get-current-funding-rate
|
|
4738
4738
|
* @param {string} symbol unified market symbol
|
|
4739
4739
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4740
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
4740
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
4741
4741
|
*/
|
|
4742
4742
|
async fetchFundingRate(symbol, params = {}) {
|
|
4743
4743
|
await this.loadMarkets();
|
|
@@ -4777,7 +4777,7 @@ export default class bitmart extends Exchange {
|
|
|
4777
4777
|
* @param {int} [since] not sent to exchange api, exchange api always returns the most recent data, only used to filter exchange response
|
|
4778
4778
|
* @param {int} [limit] the maximum amount of funding rate structures to fetch
|
|
4779
4779
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4780
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
4780
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
4781
4781
|
*/
|
|
4782
4782
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
4783
4783
|
if (symbol === undefined) {
|
|
@@ -4870,7 +4870,7 @@ export default class bitmart extends Exchange {
|
|
|
4870
4870
|
* @see https://developer-pro.bitmart.com/en/futuresv2/#get-current-position-keyed
|
|
4871
4871
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
4872
4872
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4873
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
4873
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
4874
4874
|
*/
|
|
4875
4875
|
async fetchPosition(symbol, params = {}) {
|
|
4876
4876
|
await this.loadMarkets();
|
|
@@ -4920,7 +4920,7 @@ export default class bitmart extends Exchange {
|
|
|
4920
4920
|
* @see https://developer-pro.bitmart.com/en/futuresv2/#get-current-position-v2-keyed
|
|
4921
4921
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
4922
4922
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4923
|
-
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com
|
|
4923
|
+
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
4924
4924
|
*/
|
|
4925
4925
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
4926
4926
|
await this.loadMarkets();
|
|
@@ -5048,7 +5048,7 @@ export default class bitmart extends Exchange {
|
|
|
5048
5048
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
5049
5049
|
* @param {object} [params] exchange specific parameters for the bitmart api endpoint
|
|
5050
5050
|
* @param {int} [params.until] timestamp in ms of the latest liquidation
|
|
5051
|
-
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com
|
|
5051
|
+
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
|
|
5052
5052
|
*/
|
|
5053
5053
|
async fetchMyLiquidations(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5054
5054
|
if (symbol === undefined) {
|
|
@@ -5164,7 +5164,7 @@ export default class bitmart extends Exchange {
|
|
|
5164
5164
|
* @param {string} [params.clientOrderId] client order id of the order
|
|
5165
5165
|
* @param {int} [params.price_type] *swap only* 1: last price, 2: fair price, default is 1
|
|
5166
5166
|
* @param {int} [params.plan_category] *swap tp/sl only* 1: tp/sl, 2: position tp/sl, default is 1
|
|
5167
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
5167
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5168
5168
|
*/
|
|
5169
5169
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
5170
5170
|
await this.loadMarkets();
|
|
@@ -5286,7 +5286,7 @@ export default class bitmart extends Exchange {
|
|
|
5286
5286
|
* @param {int} [limit] max number of ledger entries to return
|
|
5287
5287
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5288
5288
|
* @param {int} [params.until] timestamp in ms of the latest ledger entry
|
|
5289
|
-
* @returns {object[]} a list of [ledger structures]{@link https://docs.ccxt.com
|
|
5289
|
+
* @returns {object[]} a list of [ledger structures]{@link https://docs.ccxt.com/?id=ledger}
|
|
5290
5290
|
*/
|
|
5291
5291
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5292
5292
|
await this.loadMarkets();
|
|
@@ -5401,7 +5401,7 @@ export default class bitmart extends Exchange {
|
|
|
5401
5401
|
* @param {int} [limit] the number of entries to return
|
|
5402
5402
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5403
5403
|
* @param {int} [params.until] the latest time in ms to fetch funding history for
|
|
5404
|
-
* @returns {object[]} a list of [funding history structures]{@link https://docs.ccxt.com
|
|
5404
|
+
* @returns {object[]} a list of [funding history structures]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
5405
5405
|
*/
|
|
5406
5406
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5407
5407
|
await this.loadMarkets();
|
package/js/src/bitmex.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export default class bitmex extends Exchange {
|
|
|
37
37
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
38
38
|
* @see https://www.bitmex.com/api/explorer/#!/User/User_getMargin
|
|
39
39
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
40
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
40
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
41
41
|
*/
|
|
42
42
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
43
43
|
/**
|
|
@@ -48,7 +48,7 @@ export default class bitmex extends Exchange {
|
|
|
48
48
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
49
49
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
50
50
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
51
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
51
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
52
52
|
*/
|
|
53
53
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
54
54
|
/**
|
|
@@ -59,7 +59,7 @@ export default class bitmex extends Exchange {
|
|
|
59
59
|
* @param {string} id the order id
|
|
60
60
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
61
61
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
62
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
62
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
63
63
|
*/
|
|
64
64
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
65
65
|
/**
|
|
@@ -73,7 +73,7 @@ export default class bitmex extends Exchange {
|
|
|
73
73
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
74
74
|
* @param {int} [params.until] the earliest time in ms to fetch orders for
|
|
75
75
|
* @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)
|
|
76
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
76
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
77
77
|
*/
|
|
78
78
|
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
79
79
|
/**
|
|
@@ -85,7 +85,7 @@ export default class bitmex extends Exchange {
|
|
|
85
85
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
86
86
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
87
87
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
88
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
88
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
89
89
|
*/
|
|
90
90
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
91
91
|
/**
|
|
@@ -97,7 +97,7 @@ export default class bitmex extends Exchange {
|
|
|
97
97
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
98
98
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
99
99
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
100
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
100
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
101
101
|
*/
|
|
102
102
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
103
103
|
/**
|
|
@@ -110,7 +110,7 @@ export default class bitmex extends Exchange {
|
|
|
110
110
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
111
111
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
112
112
|
* @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)
|
|
113
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
113
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
114
114
|
*/
|
|
115
115
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
116
116
|
parseLedgerEntryType(type: any): string;
|
|
@@ -124,7 +124,7 @@ export default class bitmex extends Exchange {
|
|
|
124
124
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
125
125
|
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
126
126
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
127
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
127
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
128
128
|
*/
|
|
129
129
|
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
|
|
130
130
|
/**
|
|
@@ -136,7 +136,7 @@ export default class bitmex extends Exchange {
|
|
|
136
136
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
137
137
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
138
138
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
139
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
139
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
140
140
|
*/
|
|
141
141
|
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
142
142
|
parseTransactionStatus(status: Str): string;
|
|
@@ -148,7 +148,7 @@ export default class bitmex extends Exchange {
|
|
|
148
148
|
* @see https://www.bitmex.com/api/explorer/#!/Instrument/Instrument_get
|
|
149
149
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
150
150
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
151
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
151
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
152
152
|
*/
|
|
153
153
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
154
154
|
/**
|
|
@@ -158,7 +158,7 @@ export default class bitmex extends Exchange {
|
|
|
158
158
|
* @see https://www.bitmex.com/api/explorer/#!/Instrument/Instrument_getActiveAndIndices
|
|
159
159
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
160
160
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
161
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
161
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
162
162
|
*/
|
|
163
163
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
164
164
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
@@ -191,7 +191,7 @@ export default class bitmex extends Exchange {
|
|
|
191
191
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
192
192
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
193
193
|
* @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)
|
|
194
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
194
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
195
195
|
*/
|
|
196
196
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
197
197
|
/**
|
|
@@ -220,7 +220,7 @@ export default class bitmex extends Exchange {
|
|
|
220
220
|
* @param {string} id order id
|
|
221
221
|
* @param {string} symbol not used by bitmex cancelOrder ()
|
|
222
222
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
223
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
223
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
224
224
|
*/
|
|
225
225
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
226
226
|
/**
|
|
@@ -231,7 +231,7 @@ export default class bitmex extends Exchange {
|
|
|
231
231
|
* @param {string[]} ids order ids
|
|
232
232
|
* @param {string} symbol not used by bitmex cancelOrders ()
|
|
233
233
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
234
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
234
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
235
235
|
*/
|
|
236
236
|
cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
|
|
237
237
|
/**
|
|
@@ -241,7 +241,7 @@ export default class bitmex extends Exchange {
|
|
|
241
241
|
* @see https://www.bitmex.com/api/explorer/#!/Order/Order_cancelAll
|
|
242
242
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
243
243
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
244
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
244
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
245
245
|
*/
|
|
246
246
|
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
247
247
|
/**
|
|
@@ -261,7 +261,7 @@ export default class bitmex extends Exchange {
|
|
|
261
261
|
* @see https://www.bitmex.com/api/explorer/#!/Position/Position_get
|
|
262
262
|
* @param {string[]} [symbols] a list of unified market symbols
|
|
263
263
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
264
|
-
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com
|
|
264
|
+
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
265
265
|
*/
|
|
266
266
|
fetchLeverages(symbols?: Strings, params?: {}): Promise<Leverages>;
|
|
267
267
|
parseLeverage(leverage: Dict, market?: Market): Leverage;
|
|
@@ -272,7 +272,7 @@ export default class bitmex extends Exchange {
|
|
|
272
272
|
* @see https://www.bitmex.com/api/explorer/#!/Position/Position_get
|
|
273
273
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
274
274
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
275
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
275
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
276
276
|
*/
|
|
277
277
|
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
278
278
|
parsePosition(position: Dict, market?: Market): Position;
|
|
@@ -286,7 +286,7 @@ export default class bitmex extends Exchange {
|
|
|
286
286
|
* @param {string} address the address to withdraw to
|
|
287
287
|
* @param {string} tag
|
|
288
288
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
289
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
289
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
290
290
|
*/
|
|
291
291
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
292
292
|
/**
|
|
@@ -296,7 +296,7 @@ export default class bitmex extends Exchange {
|
|
|
296
296
|
* @see https://www.bitmex.com/api/explorer/#!/Instrument/Instrument_getActiveAndIndices
|
|
297
297
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
298
298
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
299
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
299
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols
|
|
300
300
|
*/
|
|
301
301
|
fetchFundingRates(symbols?: Strings, params?: {}): Promise<FundingRates>;
|
|
302
302
|
parseFundingRate(contract: any, market?: Market): FundingRate;
|
|
@@ -307,14 +307,14 @@ export default class bitmex extends Exchange {
|
|
|
307
307
|
* @see https://www.bitmex.com/api/explorer/#!/Funding/Funding_get
|
|
308
308
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
309
309
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
310
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com
|
|
310
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
311
311
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
312
312
|
* @param {int} [params.until] timestamp in ms for ending date filter
|
|
313
313
|
* @param {bool} [params.reverse] if true, will sort results newest first
|
|
314
314
|
* @param {int} [params.start] starting point for results
|
|
315
315
|
* @param {string} [params.columns] array of column names to fetch in info, if omitted, will return all columns
|
|
316
316
|
* @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
|
|
317
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
317
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
318
318
|
*/
|
|
319
319
|
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").FundingRateHistory[]>;
|
|
320
320
|
parseFundingRateHistory(info: any, market?: Market): {
|
|
@@ -354,7 +354,7 @@ export default class bitmex extends Exchange {
|
|
|
354
354
|
* @param {string} code unified currency code
|
|
355
355
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
356
356
|
* @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']
|
|
357
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
357
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
358
358
|
*/
|
|
359
359
|
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
360
360
|
parseDepositWithdrawFee(fee: any, currency?: Currency): Dict;
|
|
@@ -365,7 +365,7 @@ export default class bitmex extends Exchange {
|
|
|
365
365
|
* @see https://www.bitmex.com/api/explorer/#!/Wallet/Wallet_getAssetsConfig
|
|
366
366
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
367
367
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
368
|
-
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com
|
|
368
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
369
369
|
*/
|
|
370
370
|
fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
|
|
371
371
|
calculateRateLimiterCost(api: any, method: any, path: any, params: any, config?: {}): any;
|
|
@@ -380,7 +380,7 @@ export default class bitmex extends Exchange {
|
|
|
380
380
|
* @param {object} [params] exchange specific parameters for the bitmex api endpoint
|
|
381
381
|
* @param {int} [params.until] timestamp in ms of the latest liquidation
|
|
382
382
|
* @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)
|
|
383
|
-
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com
|
|
383
|
+
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
|
|
384
384
|
*/
|
|
385
385
|
fetchLiquidations(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Liquidation[]>;
|
|
386
386
|
parseLiquidation(liquidation: any, market?: Market): Liquidation;
|