ccxt 4.5.28 → 4.5.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -5
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/alpaca.js +21 -21
- package/dist/cjs/src/apex.js +20 -20
- package/dist/cjs/src/arkham.js +22 -22
- package/dist/cjs/src/ascendex.js +28 -28
- package/dist/cjs/src/backpack.js +22 -22
- package/dist/cjs/src/base/Exchange.js +48 -38
- package/dist/cjs/src/base/functions/throttle.js +54 -5
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +83 -82
- package/dist/cjs/src/bingx.js +46 -46
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +49 -48
- package/dist/cjs/src/bitbns.js +13 -13
- package/dist/cjs/src/bitfinex.js +33 -33
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitget.js +58 -57
- package/dist/cjs/src/bithumb.js +10 -10
- package/dist/cjs/src/bitmart.js +44 -44
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +20 -20
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +20 -20
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bittrade.js +20 -20
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/blofin.js +26 -26
- package/dist/cjs/src/btcalpha.js +35 -34
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +16 -16
- package/dist/cjs/src/btcturk.js +10 -10
- package/dist/cjs/src/bullish.js +26 -26
- package/dist/cjs/src/bybit.js +67 -67
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +40 -40
- package/dist/cjs/src/coinbaseexchange.js +22 -22
- package/dist/cjs/src/coinbaseinternational.js +22 -22
- package/dist/cjs/src/coincatch.js +39 -39
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +48 -48
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinmetro.js +14 -14
- package/dist/cjs/src/coinone.js +11 -11
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +32 -32
- package/dist/cjs/src/cryptomus.js +9 -9
- package/dist/cjs/src/deepcoin.js +33 -33
- package/dist/cjs/src/defx.js +23 -23
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +36 -36
- package/dist/cjs/src/derive.js +19 -19
- package/dist/cjs/src/digifinex.js +36 -36
- package/dist/cjs/src/dydx.js +22 -22
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +57 -57
- package/dist/cjs/src/gemini.js +16 -16
- package/dist/cjs/src/hashkey.js +35 -35
- package/dist/cjs/src/hibachi.js +24 -24
- package/dist/cjs/src/hitbtc.js +38 -38
- package/dist/cjs/src/hollaex.js +22 -22
- package/dist/cjs/src/htx.js +50 -50
- package/dist/cjs/src/hyperliquid.js +76 -42
- package/dist/cjs/src/independentreserve.js +13 -13
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +30 -30
- package/dist/cjs/src/krakenfutures.js +21 -21
- package/dist/cjs/src/kucoin.js +44 -44
- package/dist/cjs/src/kucoinfutures.js +42 -40
- package/dist/cjs/src/latoken.js +16 -16
- package/dist/cjs/src/lbank.js +23 -23
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/mercado.js +11 -11
- package/dist/cjs/src/mexc.js +47 -47
- package/dist/cjs/src/modetrade.js +37 -35
- package/dist/cjs/src/ndax.js +19 -19
- package/dist/cjs/src/novadax.js +19 -19
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okx.js +83 -83
- package/dist/cjs/src/onetrading.js +34 -33
- package/dist/cjs/src/oxfun.js +25 -25
- package/dist/cjs/src/p2b.js +11 -11
- package/dist/cjs/src/paradex.js +54 -54
- package/dist/cjs/src/paymium.js +20 -21
- package/dist/cjs/src/phemex.js +35 -35
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +8 -8
- package/dist/cjs/src/pro/arkham.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/backpack.js +16 -16
- package/dist/cjs/src/pro/binance.js +35 -35
- package/dist/cjs/src/pro/bingx.js +9 -9
- package/dist/cjs/src/pro/bitfinex.js +8 -8
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bithumb.js +3 -3
- package/dist/cjs/src/pro/bitmart.js +388 -31
- package/dist/cjs/src/pro/bitmex.js +9 -9
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrade.js +3 -3
- package/dist/cjs/src/pro/bitvavo.js +19 -19
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +10 -10
- package/dist/cjs/src/pro/bullish.js +6 -6
- package/dist/cjs/src/pro/bybit.js +19 -19
- package/dist/cjs/src/pro/cex.js +13 -13
- package/dist/cjs/src/pro/coinbase.js +13 -13
- package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
- package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
- package/dist/cjs/src/pro/coincatch.js +10 -10
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +10 -10
- package/dist/cjs/src/pro/coinone.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +20 -20
- package/dist/cjs/src/pro/deepcoin.js +8 -8
- package/dist/cjs/src/pro/defx.js +15 -15
- package/dist/cjs/src/pro/deribit.js +10 -10
- package/dist/cjs/src/pro/derive.js +6 -6
- package/dist/cjs/src/pro/dydx.js +3 -3
- package/dist/cjs/src/pro/exmo.js +7 -7
- package/dist/cjs/src/pro/gate.js +21 -59
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +6 -6
- package/dist/cjs/src/pro/hitbtc.js +8 -8
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +9 -9
- package/dist/cjs/src/pro/hyperliquid.js +103 -14
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +15 -15
- package/dist/cjs/src/pro/krakenfutures.js +10 -10
- package/dist/cjs/src/pro/kucoin.js +15 -15
- package/dist/cjs/src/pro/kucoinfutures.js +13 -13
- package/dist/cjs/src/pro/lbank.js +5 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +13 -13
- package/dist/cjs/src/pro/modetrade.js +8 -8
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okx.js +25 -25
- package/dist/cjs/src/pro/onetrading.js +6 -6
- package/dist/cjs/src/pro/oxfun.js +13 -13
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/paradex.js +8 -8
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +8 -8
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/toobit.js +9 -9
- package/dist/cjs/src/pro/upbit.js +9 -9
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +13 -13
- package/dist/cjs/src/pro/woofipro.js +20 -20
- package/dist/cjs/src/pro/xt.js +2 -2
- package/dist/cjs/src/probit.js +18 -18
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +17 -17
- package/dist/cjs/src/toobit.js +31 -29
- package/dist/cjs/src/upbit.js +23 -23
- package/dist/cjs/src/wavesexchange.js +86 -85
- package/dist/cjs/src/whitebit.js +44 -44
- package/dist/cjs/src/woo.js +51 -49
- package/dist/cjs/src/woofipro.js +104 -82
- package/dist/cjs/src/xt.js +17 -12
- package/dist/cjs/src/yobit.js +15 -15
- package/dist/cjs/src/zaif.js +38 -9
- package/dist/cjs/src/zebpay.js +35 -20
- package/dist/cjs/src/zonda.js +14 -14
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/alpaca.d.ts +21 -21
- package/js/src/alpaca.js +21 -21
- package/js/src/apex.d.ts +20 -20
- package/js/src/apex.js +20 -20
- package/js/src/arkham.d.ts +22 -22
- package/js/src/arkham.js +22 -22
- package/js/src/ascendex.d.ts +28 -28
- package/js/src/ascendex.js +28 -28
- package/js/src/backpack.d.ts +21 -21
- package/js/src/backpack.js +22 -22
- package/js/src/base/Exchange.d.ts +6 -3
- package/js/src/base/Exchange.js +48 -38
- package/js/src/base/functions/throttle.d.ts +22 -0
- package/js/src/base/functions/throttle.js +54 -5
- package/js/src/bigone.d.ts +19 -19
- package/js/src/bigone.js +19 -19
- package/js/src/binance.d.ts +82 -82
- package/js/src/binance.js +83 -82
- package/js/src/bingx.d.ts +46 -46
- package/js/src/bingx.js +46 -46
- package/js/src/bit2c.d.ts +11 -11
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.d.ts +12 -12
- package/js/src/bitbank.js +49 -48
- package/js/src/bitbns.d.ts +13 -13
- package/js/src/bitbns.js +13 -13
- package/js/src/bitfinex.d.ts +33 -33
- package/js/src/bitfinex.js +33 -33
- package/js/src/bitflyer.d.ts +17 -17
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitget.d.ts +57 -57
- package/js/src/bitget.js +58 -57
- package/js/src/bithumb.d.ts +10 -10
- package/js/src/bithumb.js +10 -10
- package/js/src/bitmart.d.ts +42 -42
- package/js/src/bitmart.js +44 -44
- package/js/src/bitmex.d.ts +24 -24
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.d.ts +20 -20
- package/js/src/bitopro.js +20 -20
- package/js/src/bitrue.d.ts +18 -18
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.d.ts +20 -20
- package/js/src/bitso.js +20 -20
- package/js/src/bitstamp.d.ts +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bittrade.d.ts +20 -20
- package/js/src/bittrade.js +20 -20
- package/js/src/bitvavo.d.ts +19 -19
- package/js/src/bitvavo.js +19 -19
- package/js/src/blockchaincom.d.ts +20 -20
- package/js/src/blockchaincom.js +20 -20
- package/js/src/blofin.d.ts +26 -26
- package/js/src/blofin.js +26 -26
- package/js/src/btcalpha.d.ts +14 -14
- package/js/src/btcalpha.js +35 -34
- package/js/src/btcbox.d.ts +10 -10
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.d.ts +16 -16
- package/js/src/btcmarkets.js +16 -16
- package/js/src/btcturk.d.ts +10 -10
- package/js/src/btcturk.js +10 -10
- package/js/src/bullish.d.ts +26 -26
- package/js/src/bullish.js +26 -26
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +67 -67
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +40 -40
- package/js/src/coinbase.js +40 -40
- package/js/src/coinbaseexchange.d.ts +22 -22
- package/js/src/coinbaseexchange.js +22 -22
- package/js/src/coinbaseinternational.d.ts +22 -22
- package/js/src/coinbaseinternational.js +22 -22
- package/js/src/coincatch.d.ts +39 -39
- package/js/src/coincatch.js +39 -39
- package/js/src/coincheck.d.ts +11 -11
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.d.ts +48 -48
- package/js/src/coinex.js +48 -48
- package/js/src/coinmate.d.ts +14 -14
- package/js/src/coinmate.js +14 -14
- package/js/src/coinmetro.d.ts +14 -14
- package/js/src/coinmetro.js +14 -14
- package/js/src/coinone.d.ts +11 -11
- package/js/src/coinone.js +11 -11
- package/js/src/coinsph.d.ts +20 -20
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.d.ts +8 -8
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.d.ts +32 -32
- package/js/src/cryptocom.js +32 -32
- package/js/src/cryptomus.d.ts +9 -9
- package/js/src/cryptomus.js +9 -9
- package/js/src/deepcoin.d.ts +33 -33
- package/js/src/deepcoin.js +33 -33
- package/js/src/defx.d.ts +23 -23
- package/js/src/defx.js +23 -23
- package/js/src/delta.d.ts +29 -29
- package/js/src/delta.js +29 -29
- package/js/src/deribit.d.ts +36 -36
- package/js/src/deribit.js +36 -36
- package/js/src/derive.d.ts +19 -19
- package/js/src/derive.js +19 -19
- package/js/src/digifinex.d.ts +36 -36
- package/js/src/digifinex.js +36 -36
- package/js/src/dydx.d.ts +22 -22
- package/js/src/dydx.js +22 -22
- package/js/src/exmo.d.ts +29 -29
- package/js/src/exmo.js +29 -29
- package/js/src/foxbit.d.ts +23 -23
- package/js/src/foxbit.js +23 -23
- package/js/src/gate.d.ts +57 -57
- package/js/src/gate.js +57 -57
- package/js/src/gemini.d.ts +16 -16
- package/js/src/gemini.js +16 -16
- package/js/src/hashkey.d.ts +35 -35
- package/js/src/hashkey.js +35 -35
- package/js/src/hibachi.d.ts +24 -24
- package/js/src/hibachi.js +24 -24
- package/js/src/hitbtc.d.ts +38 -38
- package/js/src/hitbtc.js +38 -38
- package/js/src/hollaex.d.ts +22 -22
- package/js/src/hollaex.js +22 -22
- package/js/src/htx.d.ts +50 -50
- package/js/src/htx.js +50 -50
- package/js/src/hyperliquid.d.ts +46 -36
- package/js/src/hyperliquid.js +76 -42
- package/js/src/independentreserve.d.ts +13 -13
- package/js/src/independentreserve.js +13 -13
- package/js/src/indodax.d.ts +14 -14
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.d.ts +30 -30
- package/js/src/kraken.js +30 -30
- package/js/src/krakenfutures.d.ts +21 -21
- package/js/src/krakenfutures.js +21 -21
- package/js/src/kucoin.d.ts +44 -44
- package/js/src/kucoin.js +44 -44
- package/js/src/kucoinfutures.d.ts +35 -35
- package/js/src/kucoinfutures.js +42 -40
- package/js/src/latoken.d.ts +16 -16
- package/js/src/latoken.js +16 -16
- package/js/src/lbank.d.ts +23 -23
- package/js/src/lbank.js +23 -23
- package/js/src/luno.d.ts +17 -17
- package/js/src/luno.js +17 -17
- package/js/src/mercado.d.ts +11 -11
- package/js/src/mercado.js +11 -11
- package/js/src/mexc.d.ts +47 -47
- package/js/src/mexc.js +47 -47
- package/js/src/modetrade.d.ts +31 -31
- package/js/src/modetrade.js +37 -35
- package/js/src/ndax.d.ts +19 -19
- package/js/src/ndax.js +19 -19
- package/js/src/novadax.d.ts +19 -19
- package/js/src/novadax.js +19 -19
- package/js/src/oceanex.d.ts +16 -16
- package/js/src/oceanex.js +16 -16
- package/js/src/okx.d.ts +74 -74
- package/js/src/okx.js +83 -83
- package/js/src/onetrading.d.ts +34 -33
- package/js/src/onetrading.js +34 -33
- package/js/src/oxfun.d.ts +25 -25
- package/js/src/oxfun.js +25 -25
- package/js/src/p2b.d.ts +11 -11
- package/js/src/p2b.js +11 -11
- package/js/src/paradex.d.ts +54 -54
- package/js/src/paradex.js +54 -54
- package/js/src/paymium.d.ts +20 -21
- package/js/src/paymium.js +20 -21
- package/js/src/phemex.d.ts +30 -30
- package/js/src/phemex.js +35 -35
- package/js/src/poloniex.d.ts +26 -26
- package/js/src/poloniex.js +27 -27
- package/js/src/pro/alpaca.d.ts +5 -5
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +8 -8
- package/js/src/pro/apex.js +8 -8
- package/js/src/pro/arkham.d.ts +5 -5
- package/js/src/pro/arkham.js +5 -5
- package/js/src/pro/ascendex.d.ts +5 -5
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/backpack.d.ts +16 -16
- package/js/src/pro/backpack.js +16 -16
- package/js/src/pro/binance.d.ts +35 -35
- package/js/src/pro/binance.js +35 -35
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +9 -9
- package/js/src/pro/bitfinex.d.ts +8 -8
- package/js/src/pro/bitfinex.js +8 -8
- package/js/src/pro/bitget.d.ts +12 -12
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bithumb.d.ts +3 -3
- package/js/src/pro/bithumb.js +3 -3
- package/js/src/pro/bitmart.d.ts +120 -9
- package/js/src/pro/bitmart.js +388 -31
- package/js/src/pro/bitmex.d.ts +9 -9
- package/js/src/pro/bitmex.js +9 -9
- package/js/src/pro/bitopro.d.ts +5 -5
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.d.ts +3 -3
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrade.d.ts +3 -3
- package/js/src/pro/bittrade.js +3 -3
- package/js/src/pro/bitvavo.d.ts +19 -19
- package/js/src/pro/bitvavo.js +19 -19
- package/js/src/pro/blockchaincom.d.ts +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +10 -10
- package/js/src/pro/blofin.js +10 -10
- package/js/src/pro/bullish.d.ts +6 -6
- package/js/src/pro/bullish.js +6 -6
- package/js/src/pro/bybit.d.ts +19 -19
- package/js/src/pro/bybit.js +19 -19
- package/js/src/pro/cex.d.ts +13 -13
- package/js/src/pro/cex.js +13 -13
- package/js/src/pro/coinbase.d.ts +13 -13
- package/js/src/pro/coinbase.js +13 -13
- package/js/src/pro/coinbaseexchange.d.ts +10 -10
- package/js/src/pro/coinbaseexchange.js +10 -10
- package/js/src/pro/coinbaseinternational.d.ts +8 -8
- package/js/src/pro/coinbaseinternational.js +8 -8
- package/js/src/pro/coincatch.d.ts +10 -10
- package/js/src/pro/coincatch.js +10 -10
- package/js/src/pro/coincheck.d.ts +2 -2
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +10 -10
- package/js/src/pro/coinex.js +10 -10
- package/js/src/pro/coinone.d.ts +3 -3
- package/js/src/pro/coinone.js +3 -3
- package/js/src/pro/cryptocom.d.ts +20 -20
- package/js/src/pro/cryptocom.js +20 -20
- package/js/src/pro/deepcoin.d.ts +8 -8
- package/js/src/pro/deepcoin.js +8 -8
- package/js/src/pro/defx.d.ts +15 -15
- package/js/src/pro/defx.js +15 -15
- package/js/src/pro/deribit.d.ts +10 -10
- package/js/src/pro/deribit.js +10 -10
- package/js/src/pro/derive.d.ts +6 -6
- package/js/src/pro/derive.js +6 -6
- package/js/src/pro/dydx.d.ts +3 -3
- package/js/src/pro/dydx.js +3 -3
- package/js/src/pro/exmo.d.ts +7 -7
- package/js/src/pro/exmo.js +7 -7
- package/js/src/pro/gate.d.ts +22 -23
- package/js/src/pro/gate.js +21 -59
- package/js/src/pro/gemini.d.ts +6 -6
- package/js/src/pro/gemini.js +6 -6
- package/js/src/pro/hashkey.d.ts +6 -6
- package/js/src/pro/hashkey.js +6 -6
- package/js/src/pro/hitbtc.d.ts +8 -8
- package/js/src/pro/hitbtc.js +8 -8
- package/js/src/pro/hollaex.d.ts +5 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.d.ts +9 -9
- package/js/src/pro/htx.js +9 -9
- package/js/src/pro/hyperliquid.d.ts +38 -14
- package/js/src/pro/hyperliquid.js +103 -14
- package/js/src/pro/independentreserve.d.ts +2 -2
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +15 -15
- package/js/src/pro/kraken.js +15 -15
- package/js/src/pro/krakenfutures.d.ts +10 -10
- package/js/src/pro/krakenfutures.js +10 -10
- package/js/src/pro/kucoin.d.ts +15 -15
- package/js/src/pro/kucoin.js +15 -15
- package/js/src/pro/kucoinfutures.d.ts +13 -13
- package/js/src/pro/kucoinfutures.js +13 -13
- package/js/src/pro/lbank.d.ts +5 -5
- package/js/src/pro/lbank.js +5 -5
- package/js/src/pro/luno.d.ts +2 -2
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +13 -13
- package/js/src/pro/mexc.js +13 -13
- package/js/src/pro/modetrade.d.ts +8 -8
- package/js/src/pro/modetrade.js +8 -8
- package/js/src/pro/ndax.d.ts +3 -3
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okx.d.ts +25 -25
- package/js/src/pro/okx.js +25 -25
- package/js/src/pro/onetrading.d.ts +6 -6
- package/js/src/pro/onetrading.js +6 -6
- package/js/src/pro/oxfun.d.ts +13 -13
- package/js/src/pro/oxfun.js +13 -13
- package/js/src/pro/p2b.d.ts +5 -5
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/paradex.d.ts +8 -8
- package/js/src/pro/paradex.js +8 -8
- package/js/src/pro/phemex.d.ts +7 -7
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.d.ts +8 -8
- package/js/src/pro/poloniex.js +8 -8
- package/js/src/pro/probit.d.ts +6 -6
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/toobit.d.ts +9 -9
- package/js/src/pro/toobit.js +9 -9
- package/js/src/pro/upbit.d.ts +9 -9
- package/js/src/pro/upbit.js +9 -9
- package/js/src/pro/whitebit.d.ts +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.d.ts +13 -13
- package/js/src/pro/woo.js +13 -13
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +20 -20
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +2 -2
- package/js/src/probit.d.ts +18 -18
- package/js/src/probit.js +18 -18
- package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
- package/js/src/static_dependencies/ethers/utils/index.js +8 -1
- package/js/src/timex.d.ts +16 -16
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.d.ts +17 -17
- package/js/src/tokocrypto.js +17 -17
- package/js/src/toobit.d.ts +27 -27
- package/js/src/toobit.js +31 -29
- package/js/src/upbit.d.ts +23 -23
- package/js/src/upbit.js +23 -23
- package/js/src/wavesexchange.d.ts +15 -15
- package/js/src/wavesexchange.js +86 -85
- package/js/src/whitebit.d.ts +44 -44
- package/js/src/whitebit.js +44 -44
- package/js/src/woo.d.ts +45 -45
- package/js/src/woo.js +51 -49
- package/js/src/woofipro.d.ts +77 -77
- package/js/src/woofipro.js +104 -82
- package/js/src/xt.d.ts +12 -12
- package/js/src/xt.js +17 -12
- package/js/src/yobit.d.ts +15 -15
- package/js/src/yobit.js +15 -15
- package/js/src/zaif.d.ts +9 -9
- package/js/src/zaif.js +38 -9
- package/js/src/zebpay.d.ts +20 -20
- package/js/src/zebpay.js +35 -20
- package/js/src/zonda.d.ts +14 -14
- package/js/src/zonda.js +14 -14
- package/package.json +1 -1
package/js/src/ascendex.js
CHANGED
|
@@ -882,7 +882,7 @@ export default class ascendex extends Exchange {
|
|
|
882
882
|
* @name ascendex#fetchAccounts
|
|
883
883
|
* @description fetch all the accounts associated with a profile
|
|
884
884
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
885
|
-
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com
|
|
885
|
+
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/?id=account-structure} indexed by the account type
|
|
886
886
|
*/
|
|
887
887
|
async fetchAccounts(params = {}) {
|
|
888
888
|
let accountGroup = this.safeString(this.options, 'account-group');
|
|
@@ -982,7 +982,7 @@ export default class ascendex extends Exchange {
|
|
|
982
982
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
983
983
|
* @param {string} [params.type] wallet type, 'spot', 'margin', or 'swap'
|
|
984
984
|
* @param {string} [params.marginMode] 'cross' or undefined, for spot margin trading, value of 'isolated' is invalid
|
|
985
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
985
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
986
986
|
*/
|
|
987
987
|
async fetchBalance(params = {}) {
|
|
988
988
|
await this.loadMarkets();
|
|
@@ -1078,7 +1078,7 @@ export default class ascendex extends Exchange {
|
|
|
1078
1078
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1079
1079
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1080
1080
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1081
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
1081
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
1082
1082
|
*/
|
|
1083
1083
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1084
1084
|
await this.loadMarkets();
|
|
@@ -1169,7 +1169,7 @@ export default class ascendex extends Exchange {
|
|
|
1169
1169
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1170
1170
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1171
1171
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1172
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
1172
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1173
1173
|
*/
|
|
1174
1174
|
async fetchTicker(symbol, params = {}) {
|
|
1175
1175
|
await this.loadMarkets();
|
|
@@ -1205,7 +1205,7 @@ export default class ascendex extends Exchange {
|
|
|
1205
1205
|
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#ticker
|
|
1206
1206
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1207
1207
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1208
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
1208
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1209
1209
|
*/
|
|
1210
1210
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
1211
1211
|
await this.loadMarkets();
|
|
@@ -1396,7 +1396,7 @@ export default class ascendex extends Exchange {
|
|
|
1396
1396
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1397
1397
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1398
1398
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1399
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1399
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
1400
1400
|
*/
|
|
1401
1401
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1402
1402
|
await this.loadMarkets();
|
|
@@ -1624,7 +1624,7 @@ export default class ascendex extends Exchange {
|
|
|
1624
1624
|
* @name ascendex#fetchTradingFees
|
|
1625
1625
|
* @description fetch the trading fees for multiple markets
|
|
1626
1626
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1627
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
1627
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
1628
1628
|
*/
|
|
1629
1629
|
async fetchTradingFees(params = {}) {
|
|
1630
1630
|
await this.loadMarkets();
|
|
@@ -1777,7 +1777,7 @@ export default class ascendex extends Exchange {
|
|
|
1777
1777
|
* @param {float} [params.takeProfit.triggerPrice] *swap only* take profit trigger price
|
|
1778
1778
|
* @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice that the attached stop loss order will be triggered (perpetual swap markets only)
|
|
1779
1779
|
* @param {float} [params.stopLoss.triggerPrice] *swap only* stop loss trigger price
|
|
1780
|
-
* @returns [An order structure]{@link https://docs.ccxt.com
|
|
1780
|
+
* @returns [An order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1781
1781
|
*/
|
|
1782
1782
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1783
1783
|
await this.loadMarkets();
|
|
@@ -1869,7 +1869,7 @@ export default class ascendex extends Exchange {
|
|
|
1869
1869
|
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
1870
1870
|
* @param {bool} [params.postOnly] true or false
|
|
1871
1871
|
* @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
1872
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1872
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1873
1873
|
*/
|
|
1874
1874
|
async createOrders(orders, params = {}) {
|
|
1875
1875
|
await this.loadMarkets();
|
|
@@ -1966,7 +1966,7 @@ export default class ascendex extends Exchange {
|
|
|
1966
1966
|
* @param {string} id the order id
|
|
1967
1967
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1968
1968
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1969
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1969
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1970
1970
|
*/
|
|
1971
1971
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1972
1972
|
await this.loadMarkets();
|
|
@@ -2076,7 +2076,7 @@ export default class ascendex extends Exchange {
|
|
|
2076
2076
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2077
2077
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2078
2078
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2079
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2079
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2080
2080
|
*/
|
|
2081
2081
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2082
2082
|
await this.loadMarkets();
|
|
@@ -2196,7 +2196,7 @@ export default class ascendex extends Exchange {
|
|
|
2196
2196
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2197
2197
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2198
2198
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
2199
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2199
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2200
2200
|
*/
|
|
2201
2201
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2202
2202
|
await this.loadMarkets();
|
|
@@ -2369,7 +2369,7 @@ export default class ascendex extends Exchange {
|
|
|
2369
2369
|
* @param {string} id order id
|
|
2370
2370
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2371
2371
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2372
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
2372
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2373
2373
|
*/
|
|
2374
2374
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
2375
2375
|
if (symbol === undefined) {
|
|
@@ -2484,7 +2484,7 @@ export default class ascendex extends Exchange {
|
|
|
2484
2484
|
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#cancel-all-open-orders
|
|
2485
2485
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2486
2486
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2487
|
-
* @returns {object[]} a list with a single [order structure]{@link https://docs.ccxt.com
|
|
2487
|
+
* @returns {object[]} a list with a single [order structure]{@link https://docs.ccxt.com/?id=order-structure} with the response assigned to the info property
|
|
2488
2488
|
*/
|
|
2489
2489
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
2490
2490
|
await this.loadMarkets();
|
|
@@ -2592,7 +2592,7 @@ export default class ascendex extends Exchange {
|
|
|
2592
2592
|
* @param {string} code unified currency code
|
|
2593
2593
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2594
2594
|
* @param {string} [params.network] unified network code for deposit chain
|
|
2595
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
2595
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
2596
2596
|
*/
|
|
2597
2597
|
async fetchDepositAddress(code, params = {}) {
|
|
2598
2598
|
await this.loadMarkets();
|
|
@@ -2668,7 +2668,7 @@ export default class ascendex extends Exchange {
|
|
|
2668
2668
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2669
2669
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2670
2670
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2671
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
2671
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2672
2672
|
*/
|
|
2673
2673
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2674
2674
|
const request = {
|
|
@@ -2684,7 +2684,7 @@ export default class ascendex extends Exchange {
|
|
|
2684
2684
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2685
2685
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2686
2686
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2687
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
2687
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2688
2688
|
*/
|
|
2689
2689
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2690
2690
|
const request = {
|
|
@@ -2700,7 +2700,7 @@ export default class ascendex extends Exchange {
|
|
|
2700
2700
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2701
2701
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2702
2702
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2703
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
2703
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2704
2704
|
*/
|
|
2705
2705
|
async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2706
2706
|
await this.loadMarkets();
|
|
@@ -2823,7 +2823,7 @@ export default class ascendex extends Exchange {
|
|
|
2823
2823
|
* @description fetch all open positions
|
|
2824
2824
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2825
2825
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2826
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
2826
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
2827
2827
|
*/
|
|
2828
2828
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
2829
2829
|
await this.loadMarkets();
|
|
@@ -2991,7 +2991,7 @@ export default class ascendex extends Exchange {
|
|
|
2991
2991
|
* @description fetch the funding rate for multiple markets
|
|
2992
2992
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2993
2993
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2994
|
-
* @returns {object[]} a list of [funding rates structures]{@link https://docs.ccxt.com
|
|
2994
|
+
* @returns {object[]} a list of [funding rates structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexe by market symbols
|
|
2995
2995
|
*/
|
|
2996
2996
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
2997
2997
|
await this.loadMarkets();
|
|
@@ -3083,7 +3083,7 @@ export default class ascendex extends Exchange {
|
|
|
3083
3083
|
* @param {string} symbol unified market symbol
|
|
3084
3084
|
* @param {float} amount the amount of margin to remove
|
|
3085
3085
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3086
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
3086
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=reduce-margin-structure}
|
|
3087
3087
|
*/
|
|
3088
3088
|
async reduceMargin(symbol, amount, params = {}) {
|
|
3089
3089
|
return await this.modifyMarginHelper(symbol, -amount, 'reduce', params);
|
|
@@ -3095,7 +3095,7 @@ export default class ascendex extends Exchange {
|
|
|
3095
3095
|
* @param {string} symbol unified market symbol
|
|
3096
3096
|
* @param {float} amount amount of margin to add
|
|
3097
3097
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3098
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
3098
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
|
|
3099
3099
|
*/
|
|
3100
3100
|
async addMargin(symbol, amount, params = {}) {
|
|
3101
3101
|
return await this.modifyMarginHelper(symbol, amount, 'add', params);
|
|
@@ -3174,7 +3174,7 @@ export default class ascendex extends Exchange {
|
|
|
3174
3174
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
3175
3175
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
3176
3176
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3177
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com
|
|
3177
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols
|
|
3178
3178
|
*/
|
|
3179
3179
|
async fetchLeverageTiers(symbols = undefined, params = {}) {
|
|
3180
3180
|
await this.loadMarkets();
|
|
@@ -3316,7 +3316,7 @@ export default class ascendex extends Exchange {
|
|
|
3316
3316
|
* @see https://ascendex.github.io/ascendex-pro-api/#list-all-assets
|
|
3317
3317
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
3318
3318
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3319
|
-
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com
|
|
3319
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
3320
3320
|
*/
|
|
3321
3321
|
async fetchDepositWithdrawFees(codes = undefined, params = {}) {
|
|
3322
3322
|
await this.loadMarkets();
|
|
@@ -3333,7 +3333,7 @@ export default class ascendex extends Exchange {
|
|
|
3333
3333
|
* @param {string} fromAccount account to transfer from
|
|
3334
3334
|
* @param {string} toAccount account to transfer to
|
|
3335
3335
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3336
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
3336
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
3337
3337
|
*/
|
|
3338
3338
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
3339
3339
|
await this.loadMarkets();
|
|
@@ -3403,7 +3403,7 @@ export default class ascendex extends Exchange {
|
|
|
3403
3403
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
3404
3404
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3405
3405
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
3406
|
-
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com
|
|
3406
|
+
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
3407
3407
|
*/
|
|
3408
3408
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3409
3409
|
await this.loadMarkets();
|
|
@@ -3477,7 +3477,7 @@ export default class ascendex extends Exchange {
|
|
|
3477
3477
|
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#position
|
|
3478
3478
|
* @param {string[]} [symbols] a list of unified market symbols
|
|
3479
3479
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3480
|
-
* @returns {object} a list of [margin mode structures]{@link https://docs.ccxt.com
|
|
3480
|
+
* @returns {object} a list of [margin mode structures]{@link https://docs.ccxt.com/?id=margin-mode-structure}
|
|
3481
3481
|
*/
|
|
3482
3482
|
async fetchMarginModes(symbols = undefined, params = {}) {
|
|
3483
3483
|
await this.loadMarkets();
|
|
@@ -3548,7 +3548,7 @@ export default class ascendex extends Exchange {
|
|
|
3548
3548
|
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#position
|
|
3549
3549
|
* @param {string[]} [symbols] a list of unified market symbols
|
|
3550
3550
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3551
|
-
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com
|
|
3551
|
+
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
3552
3552
|
*/
|
|
3553
3553
|
async fetchLeverages(symbols = undefined, params = {}) {
|
|
3554
3554
|
await this.loadMarkets();
|
package/js/src/backpack.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export default class backpack extends Exchange {
|
|
|
33
33
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
34
34
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
35
35
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
36
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
36
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
37
37
|
*/
|
|
38
38
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
39
39
|
/**
|
|
@@ -43,7 +43,7 @@ export default class backpack extends Exchange {
|
|
|
43
43
|
* @see https://docs.backpack.exchange/#tag/Markets/operation/get_ticker
|
|
44
44
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
45
45
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
46
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
46
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
47
47
|
*/
|
|
48
48
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
49
49
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
@@ -79,7 +79,7 @@ export default class backpack extends Exchange {
|
|
|
79
79
|
* @see https://docs.backpack.exchange/#tag/Markets/operation/get_mark_prices
|
|
80
80
|
* @param {string} symbol unified market symbol
|
|
81
81
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
82
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
82
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
83
83
|
*/
|
|
84
84
|
fetchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
|
|
85
85
|
parseFundingRate(contract: any, market?: Market): FundingRate;
|
|
@@ -90,7 +90,7 @@ export default class backpack extends Exchange {
|
|
|
90
90
|
* @see https://docs.backpack.exchange/#tag/Markets/operation/get_open_interest
|
|
91
91
|
* @param {string} symbol Unified CCXT market symbol
|
|
92
92
|
* @param {object} [params] exchange specific parameters
|
|
93
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com
|
|
93
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=interest-history-structure}
|
|
94
94
|
*/
|
|
95
95
|
fetchOpenInterest(symbol: string, params?: {}): Promise<import("./base/types.js").OpenInterest>;
|
|
96
96
|
parseOpenInterest(interest: any, market?: Market): import("./base/types.js").OpenInterest;
|
|
@@ -103,7 +103,7 @@ export default class backpack extends Exchange {
|
|
|
103
103
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
104
104
|
* @param {int} [limit] the maximum amount of funding rate structures
|
|
105
105
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
106
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
106
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
107
107
|
*/
|
|
108
108
|
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
|
109
109
|
/**
|
|
@@ -117,7 +117,7 @@ export default class backpack extends Exchange {
|
|
|
117
117
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
118
118
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
119
119
|
* @param {int} [params.offset] the number of trades to skip, default is 0
|
|
120
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
120
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
121
121
|
*/
|
|
122
122
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
123
123
|
/**
|
|
@@ -131,7 +131,7 @@ export default class backpack extends Exchange {
|
|
|
131
131
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
132
132
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
133
133
|
* @param {string} [params.fillType] 'User' (default) 'BookLiquidation' or 'Adl' or 'Backstop' or 'Liquidation' or 'AllLiquidation' or 'CollateralConversion' or 'CollateralConversionAndSpotLiquidation'
|
|
134
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
134
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
135
135
|
*/
|
|
136
136
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
137
137
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
@@ -141,7 +141,7 @@ export default class backpack extends Exchange {
|
|
|
141
141
|
* @description the latest known information on the availability of the exchange API
|
|
142
142
|
* @see https://docs.backpack.exchange/#tag/System/operation/get_status
|
|
143
143
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
144
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
144
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
145
145
|
*/
|
|
146
146
|
fetchStatus(params?: {}): Promise<{
|
|
147
147
|
status: string;
|
|
@@ -165,7 +165,7 @@ export default class backpack extends Exchange {
|
|
|
165
165
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
166
166
|
* @see https://docs.backpack.exchange/#tag/Capital/operation/get_balances
|
|
167
167
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
168
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
168
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
169
169
|
*/
|
|
170
170
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
171
171
|
parseBalance(response: any): Balances;
|
|
@@ -179,7 +179,7 @@ export default class backpack extends Exchange {
|
|
|
179
179
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
180
180
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
181
181
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
182
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
182
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
183
183
|
*/
|
|
184
184
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
185
185
|
/**
|
|
@@ -192,7 +192,7 @@ export default class backpack extends Exchange {
|
|
|
192
192
|
* @param {int} [limit] the maximum number of transfer structures to retrieve (default 50, max 200)
|
|
193
193
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
194
194
|
* @param {int} [params.until] the latest time in ms to fetch transfers for (default time now)
|
|
195
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
195
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
196
196
|
*/
|
|
197
197
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
198
198
|
/**
|
|
@@ -206,7 +206,7 @@ export default class backpack extends Exchange {
|
|
|
206
206
|
* @param {string} tag
|
|
207
207
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
208
208
|
* @param {string} params.network the network to withdraw on (mandatory)
|
|
209
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
209
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
210
210
|
*/
|
|
211
211
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
212
212
|
parseTransaction(transaction: any, currency?: Currency): Transaction;
|
|
@@ -219,7 +219,7 @@ export default class backpack extends Exchange {
|
|
|
219
219
|
* @param {string} code unified currency code
|
|
220
220
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
221
221
|
* @param {string} [params.networkCode] the network to fetch the deposit address (mandatory)
|
|
222
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
222
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
223
223
|
*/
|
|
224
224
|
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
225
225
|
parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
|
|
@@ -251,7 +251,7 @@ export default class backpack extends Exchange {
|
|
|
251
251
|
* @param {object} [params.stopLoss] *swap markets only - stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered
|
|
252
252
|
* @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
|
|
253
253
|
* @param {float} [params.stopLoss.price] stop loss order price (if not provided the order will be a market order)
|
|
254
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
254
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
255
255
|
*/
|
|
256
256
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
257
257
|
/**
|
|
@@ -261,7 +261,7 @@ export default class backpack extends Exchange {
|
|
|
261
261
|
* @see https://docs.backpack.exchange/#tag/Order/operation/execute_order_batch
|
|
262
262
|
* @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
|
|
263
263
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
264
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
264
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
265
265
|
*/
|
|
266
266
|
createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
|
|
267
267
|
createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): any;
|
|
@@ -275,7 +275,7 @@ export default class backpack extends Exchange {
|
|
|
275
275
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
276
276
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
277
277
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
278
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
278
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
279
279
|
*/
|
|
280
280
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
281
281
|
/**
|
|
@@ -286,7 +286,7 @@ export default class backpack extends Exchange {
|
|
|
286
286
|
* @param {string} id order id
|
|
287
287
|
* @param {string} symbol not used by hollaex fetchOpenOrder ()
|
|
288
288
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
289
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
289
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
290
290
|
*/
|
|
291
291
|
fetchOpenOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
292
292
|
/**
|
|
@@ -297,7 +297,7 @@ export default class backpack extends Exchange {
|
|
|
297
297
|
* @param {string} id order id
|
|
298
298
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
299
299
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
300
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
300
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
301
301
|
*/
|
|
302
302
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
303
303
|
/**
|
|
@@ -307,7 +307,7 @@ export default class backpack extends Exchange {
|
|
|
307
307
|
* @see https://docs.backpack.exchange/#tag/Order/operation/cancel_open_orders
|
|
308
308
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
309
309
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
310
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
310
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
311
311
|
*/
|
|
312
312
|
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
313
313
|
/**
|
|
@@ -332,7 +332,7 @@ export default class backpack extends Exchange {
|
|
|
332
332
|
* @see https://docs.backpack.exchange/#tag/Futures/operation/get_positions
|
|
333
333
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
334
334
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
335
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
335
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
336
336
|
*/
|
|
337
337
|
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
338
338
|
parsePosition(position: Dict, market?: Market): Position;
|
|
@@ -346,7 +346,7 @@ export default class backpack extends Exchange {
|
|
|
346
346
|
* @param {int} [limit] the maximum amount of trades to fetch (default 200, max 500)
|
|
347
347
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
348
348
|
* @param {int} [params.until] timestamp in ms of the latest trade to fetch (default now)
|
|
349
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
349
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
350
350
|
*/
|
|
351
351
|
fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").FundingHistory[]>;
|
|
352
352
|
parseIncome(income: any, market?: Market): {
|
package/js/src/backpack.js
CHANGED
|
@@ -809,7 +809,7 @@ export default class backpack extends Exchange {
|
|
|
809
809
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
810
810
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
811
811
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
812
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
812
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
813
813
|
*/
|
|
814
814
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
815
815
|
await this.loadMarkets();
|
|
@@ -825,7 +825,7 @@ export default class backpack extends Exchange {
|
|
|
825
825
|
* @see https://docs.backpack.exchange/#tag/Markets/operation/get_ticker
|
|
826
826
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
827
827
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
828
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
828
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
829
829
|
*/
|
|
830
830
|
async fetchTicker(symbol, params = {}) {
|
|
831
831
|
await this.loadMarkets();
|
|
@@ -1005,7 +1005,7 @@ export default class backpack extends Exchange {
|
|
|
1005
1005
|
* @see https://docs.backpack.exchange/#tag/Markets/operation/get_mark_prices
|
|
1006
1006
|
* @param {string} symbol unified market symbol
|
|
1007
1007
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1008
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
1008
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
1009
1009
|
*/
|
|
1010
1010
|
async fetchFundingRate(symbol, params = {}) {
|
|
1011
1011
|
await this.loadMarkets();
|
|
@@ -1062,7 +1062,7 @@ export default class backpack extends Exchange {
|
|
|
1062
1062
|
* @see https://docs.backpack.exchange/#tag/Markets/operation/get_open_interest
|
|
1063
1063
|
* @param {string} symbol Unified CCXT market symbol
|
|
1064
1064
|
* @param {object} [params] exchange specific parameters
|
|
1065
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com
|
|
1065
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=interest-history-structure}
|
|
1066
1066
|
*/
|
|
1067
1067
|
async fetchOpenInterest(symbol, params = {}) {
|
|
1068
1068
|
await this.loadMarkets();
|
|
@@ -1107,7 +1107,7 @@ export default class backpack extends Exchange {
|
|
|
1107
1107
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
1108
1108
|
* @param {int} [limit] the maximum amount of funding rate structures
|
|
1109
1109
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1110
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
1110
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
1111
1111
|
*/
|
|
1112
1112
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1113
1113
|
if (symbol === undefined) {
|
|
@@ -1158,7 +1158,7 @@ export default class backpack extends Exchange {
|
|
|
1158
1158
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1159
1159
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1160
1160
|
* @param {int} [params.offset] the number of trades to skip, default is 0
|
|
1161
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1161
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
1162
1162
|
*/
|
|
1163
1163
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1164
1164
|
await this.loadMarkets();
|
|
@@ -1190,7 +1190,7 @@ export default class backpack extends Exchange {
|
|
|
1190
1190
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1191
1191
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
1192
1192
|
* @param {string} [params.fillType] 'User' (default) 'BookLiquidation' or 'Adl' or 'Backstop' or 'Liquidation' or 'AllLiquidation' or 'CollateralConversion' or 'CollateralConversionAndSpotLiquidation'
|
|
1193
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1193
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
1194
1194
|
*/
|
|
1195
1195
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1196
1196
|
await this.loadMarkets();
|
|
@@ -1293,7 +1293,7 @@ export default class backpack extends Exchange {
|
|
|
1293
1293
|
* @description the latest known information on the availability of the exchange API
|
|
1294
1294
|
* @see https://docs.backpack.exchange/#tag/System/operation/get_status
|
|
1295
1295
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1296
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
1296
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
1297
1297
|
*/
|
|
1298
1298
|
async fetchStatus(params = {}) {
|
|
1299
1299
|
const response = await this.publicGetApiV1Status(params);
|
|
@@ -1333,7 +1333,7 @@ export default class backpack extends Exchange {
|
|
|
1333
1333
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1334
1334
|
* @see https://docs.backpack.exchange/#tag/Capital/operation/get_balances
|
|
1335
1335
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1336
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
1336
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
1337
1337
|
*/
|
|
1338
1338
|
async fetchBalance(params = {}) {
|
|
1339
1339
|
await this.loadMarkets();
|
|
@@ -1376,7 +1376,7 @@ export default class backpack extends Exchange {
|
|
|
1376
1376
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1377
1377
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1378
1378
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1379
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
1379
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1380
1380
|
*/
|
|
1381
1381
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1382
1382
|
await this.loadMarkets();
|
|
@@ -1409,7 +1409,7 @@ export default class backpack extends Exchange {
|
|
|
1409
1409
|
* @param {int} [limit] the maximum number of transfer structures to retrieve (default 50, max 200)
|
|
1410
1410
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1411
1411
|
* @param {int} [params.until] the latest time in ms to fetch transfers for (default time now)
|
|
1412
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
1412
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1413
1413
|
*/
|
|
1414
1414
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1415
1415
|
await this.loadMarkets();
|
|
@@ -1443,7 +1443,7 @@ export default class backpack extends Exchange {
|
|
|
1443
1443
|
* @param {string} tag
|
|
1444
1444
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1445
1445
|
* @param {string} params.network the network to withdraw on (mandatory)
|
|
1446
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
1446
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1447
1447
|
*/
|
|
1448
1448
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
1449
1449
|
await this.loadMarkets();
|
|
@@ -1603,14 +1603,14 @@ export default class backpack extends Exchange {
|
|
|
1603
1603
|
* @param {string} code unified currency code
|
|
1604
1604
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1605
1605
|
* @param {string} [params.networkCode] the network to fetch the deposit address (mandatory)
|
|
1606
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
1606
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
1607
1607
|
*/
|
|
1608
1608
|
async fetchDepositAddress(code, params = {}) {
|
|
1609
1609
|
await this.loadMarkets();
|
|
1610
1610
|
let networkCode = undefined;
|
|
1611
1611
|
[networkCode, params] = this.handleNetworkCodeAndParams(params);
|
|
1612
1612
|
if (networkCode === undefined) {
|
|
1613
|
-
throw new ArgumentsRequired(this.id + ' fetchDepositAddress() requires a network parameter, see https://docs.ccxt.com
|
|
1613
|
+
throw new ArgumentsRequired(this.id + ' fetchDepositAddress() requires a network parameter, see https://docs.ccxt.com/?id=network-codes');
|
|
1614
1614
|
}
|
|
1615
1615
|
const currency = this.currency(code);
|
|
1616
1616
|
const request = {
|
|
@@ -1664,7 +1664,7 @@ export default class backpack extends Exchange {
|
|
|
1664
1664
|
* @param {object} [params.stopLoss] *swap markets only - stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered
|
|
1665
1665
|
* @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
|
|
1666
1666
|
* @param {float} [params.stopLoss.price] stop loss order price (if not provided the order will be a market order)
|
|
1667
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1667
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1668
1668
|
*/
|
|
1669
1669
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1670
1670
|
await this.loadMarkets();
|
|
@@ -1680,7 +1680,7 @@ export default class backpack extends Exchange {
|
|
|
1680
1680
|
* @see https://docs.backpack.exchange/#tag/Order/operation/execute_order_batch
|
|
1681
1681
|
* @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
|
|
1682
1682
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1683
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1683
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1684
1684
|
*/
|
|
1685
1685
|
async createOrders(orders, params = {}) {
|
|
1686
1686
|
await this.loadMarkets();
|
|
@@ -1795,7 +1795,7 @@ export default class backpack extends Exchange {
|
|
|
1795
1795
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1796
1796
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1797
1797
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1798
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1798
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1799
1799
|
*/
|
|
1800
1800
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1801
1801
|
await this.loadMarkets();
|
|
@@ -1816,7 +1816,7 @@ export default class backpack extends Exchange {
|
|
|
1816
1816
|
* @param {string} id order id
|
|
1817
1817
|
* @param {string} symbol not used by hollaex fetchOpenOrder ()
|
|
1818
1818
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1819
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1819
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1820
1820
|
*/
|
|
1821
1821
|
async fetchOpenOrder(id, symbol = undefined, params = {}) {
|
|
1822
1822
|
await this.loadMarkets();
|
|
@@ -1839,7 +1839,7 @@ export default class backpack extends Exchange {
|
|
|
1839
1839
|
* @param {string} id order id
|
|
1840
1840
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1841
1841
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1842
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1842
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1843
1843
|
*/
|
|
1844
1844
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1845
1845
|
await this.loadMarkets();
|
|
@@ -1861,7 +1861,7 @@ export default class backpack extends Exchange {
|
|
|
1861
1861
|
* @see https://docs.backpack.exchange/#tag/Order/operation/cancel_open_orders
|
|
1862
1862
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1863
1863
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1864
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1864
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1865
1865
|
*/
|
|
1866
1866
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
1867
1867
|
await this.loadMarkets();
|
|
@@ -2067,7 +2067,7 @@ export default class backpack extends Exchange {
|
|
|
2067
2067
|
* @see https://docs.backpack.exchange/#tag/Futures/operation/get_positions
|
|
2068
2068
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2069
2069
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2070
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
2070
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
2071
2071
|
*/
|
|
2072
2072
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
2073
2073
|
await this.loadMarkets();
|
|
@@ -2174,7 +2174,7 @@ export default class backpack extends Exchange {
|
|
|
2174
2174
|
* @param {int} [limit] the maximum amount of trades to fetch (default 200, max 500)
|
|
2175
2175
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2176
2176
|
* @param {int} [params.until] timestamp in ms of the latest trade to fetch (default now)
|
|
2177
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
2177
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
2178
2178
|
*/
|
|
2179
2179
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2180
2180
|
await this.loadMarkets();
|