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
|
@@ -429,7 +429,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
429
429
|
* @description the latest known information on the availability of the exchange API
|
|
430
430
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/public/get-system-maintenance-status
|
|
431
431
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
432
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
432
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
433
433
|
*/
|
|
434
434
|
async fetchStatus(params = {}) {
|
|
435
435
|
const response = await this.v1PublicGetPublicSystemInfo(params);
|
|
@@ -804,7 +804,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
804
804
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
805
805
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
806
806
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
807
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
807
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
808
808
|
*/
|
|
809
809
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
810
810
|
await this.loadMarkets();
|
|
@@ -893,7 +893,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
893
893
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/public/get-predicted-funding-rate-for-one-market
|
|
894
894
|
* @param {string} symbol unified market symbol
|
|
895
895
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
896
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
896
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
897
897
|
*/
|
|
898
898
|
async fetchFundingInterval(symbol, params = {}) {
|
|
899
899
|
return await this.fetchFundingRate(symbol, params);
|
|
@@ -905,7 +905,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
905
905
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/public/get-predicted-funding-rate-for-one-market
|
|
906
906
|
* @param {string} symbol unified market symbol
|
|
907
907
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
908
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
908
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
909
909
|
*/
|
|
910
910
|
async fetchFundingRate(symbol, params = {}) {
|
|
911
911
|
await this.loadMarkets();
|
|
@@ -939,7 +939,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
939
939
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/public/get-predicted-funding-rates-for-all-markets
|
|
940
940
|
* @param {string[]} symbols unified market symbols
|
|
941
941
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
942
|
-
* @returns {object[]} an array of [funding rate structures]{@link https://docs.ccxt.com
|
|
942
|
+
* @returns {object[]} an array of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
943
943
|
*/
|
|
944
944
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
945
945
|
await this.loadMarkets();
|
|
@@ -973,11 +973,11 @@ class modetrade extends modetrade$1["default"] {
|
|
|
973
973
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/public/get-funding-rate-history-for-one-market
|
|
974
974
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
975
975
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
976
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com
|
|
976
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
977
977
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
978
978
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
979
979
|
* @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)
|
|
980
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
980
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
981
981
|
*/
|
|
982
982
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
983
983
|
await this.loadMarkets();
|
|
@@ -1076,7 +1076,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
1076
1076
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
1077
1077
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1078
1078
|
* @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)
|
|
1079
|
-
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com
|
|
1079
|
+
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
1080
1080
|
*/
|
|
1081
1081
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1082
1082
|
await this.loadMarkets();
|
|
@@ -1136,7 +1136,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
1136
1136
|
* @description fetch the trading fees for multiple markets
|
|
1137
1137
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/get-account-information
|
|
1138
1138
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1139
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
1139
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
1140
1140
|
*/
|
|
1141
1141
|
async fetchTradingFees(params = {}) {
|
|
1142
1142
|
await this.loadMarkets();
|
|
@@ -1193,7 +1193,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
1193
1193
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1194
1194
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1195
1195
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1196
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
1196
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
1197
1197
|
*/
|
|
1198
1198
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1199
1199
|
await this.loadMarkets();
|
|
@@ -1457,8 +1457,10 @@ class modetrade extends modetrade$1["default"] {
|
|
|
1457
1457
|
const triggerPrice = this.safeString2(params, 'triggerPrice', 'stopPrice');
|
|
1458
1458
|
const stopLoss = this.safeValue(params, 'stopLoss');
|
|
1459
1459
|
const takeProfit = this.safeValue(params, 'takeProfit');
|
|
1460
|
+
const hasStopLoss = stopLoss !== undefined;
|
|
1461
|
+
const hasTakeProfit = takeProfit !== undefined;
|
|
1460
1462
|
const algoType = this.safeString(params, 'algoType');
|
|
1461
|
-
const isConditional = triggerPrice !== undefined ||
|
|
1463
|
+
const isConditional = triggerPrice !== undefined || hasStopLoss || hasTakeProfit || (this.safeValue(params, 'childOrders') !== undefined);
|
|
1462
1464
|
const isMarket = orderType === 'MARKET';
|
|
1463
1465
|
const timeInForce = this.safeStringLower(params, 'timeInForce');
|
|
1464
1466
|
const postOnly = this.isPostOnly(isMarket, undefined, params);
|
|
@@ -1497,7 +1499,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
1497
1499
|
request['trigger_price'] = this.priceToPrecision(symbol, triggerPrice);
|
|
1498
1500
|
request['algo_type'] = 'STOP';
|
|
1499
1501
|
}
|
|
1500
|
-
else if (
|
|
1502
|
+
else if (hasStopLoss || hasTakeProfit) {
|
|
1501
1503
|
request['algo_type'] = 'TP_SL';
|
|
1502
1504
|
const outterOrder = {
|
|
1503
1505
|
'symbol': market['id'],
|
|
@@ -1507,7 +1509,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
1507
1509
|
};
|
|
1508
1510
|
const childOrders = outterOrder['child_orders'];
|
|
1509
1511
|
const closeSide = (orderSide === 'BUY') ? 'SELL' : 'BUY';
|
|
1510
|
-
if (
|
|
1512
|
+
if (hasStopLoss) {
|
|
1511
1513
|
const stopLossPrice = this.safeNumber2(stopLoss, 'triggerPrice', 'price', stopLoss);
|
|
1512
1514
|
const stopLossOrder = {
|
|
1513
1515
|
'side': closeSide,
|
|
@@ -1518,7 +1520,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
1518
1520
|
};
|
|
1519
1521
|
childOrders.push(stopLossOrder);
|
|
1520
1522
|
}
|
|
1521
|
-
if (
|
|
1523
|
+
if (hasTakeProfit) {
|
|
1522
1524
|
const takeProfitPrice = this.safeNumber2(takeProfit, 'triggerPrice', 'price', takeProfit);
|
|
1523
1525
|
const takeProfitOrder = {
|
|
1524
1526
|
'side': closeSide,
|
|
@@ -1554,7 +1556,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
1554
1556
|
* @param {float} [params.algoType] 'STOP'or 'TP_SL' or 'POSITIONAL_TP_SL'
|
|
1555
1557
|
* @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
|
|
1556
1558
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
1557
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1559
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1558
1560
|
*/
|
|
1559
1561
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1560
1562
|
await this.loadMarkets();
|
|
@@ -1611,7 +1613,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
1611
1613
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/batch-create-order
|
|
1612
1614
|
* @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
|
|
1613
1615
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1614
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1616
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1615
1617
|
*/
|
|
1616
1618
|
async createOrders(orders, params = {}) {
|
|
1617
1619
|
await this.loadMarkets();
|
|
@@ -1675,7 +1677,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
1675
1677
|
* @param {float} [params.triggerPrice] The price a trigger order is triggered at
|
|
1676
1678
|
* @param {float} [params.stopLossPrice] price to trigger stop-loss orders
|
|
1677
1679
|
* @param {float} [params.takeProfitPrice] price to trigger take-profit orders
|
|
1678
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1680
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1679
1681
|
*/
|
|
1680
1682
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
1681
1683
|
await this.loadMarkets();
|
|
@@ -1755,7 +1757,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
1755
1757
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1756
1758
|
* @param {boolean} [params.trigger] whether the order is a stop/algo order
|
|
1757
1759
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
1758
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1760
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1759
1761
|
*/
|
|
1760
1762
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1761
1763
|
const trigger = this.safeBool2(params, 'stop', 'trigger', false);
|
|
@@ -1835,7 +1837,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
1835
1837
|
* @param {string} [symbol] unified market symbol
|
|
1836
1838
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1837
1839
|
* @param {string[]} [params.client_order_ids] max length 10 e.g. ["my_id_1","my_id_2"], encode the double quotes. No space after comma
|
|
1838
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
1840
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1839
1841
|
*/
|
|
1840
1842
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
1841
1843
|
await this.loadMarkets();
|
|
@@ -1873,7 +1875,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
1873
1875
|
* @param {string} symbol unified market symbol
|
|
1874
1876
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1875
1877
|
* @param {boolean} [params.trigger] whether the order is a stop/algo order
|
|
1876
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
1878
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1877
1879
|
*/
|
|
1878
1880
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
1879
1881
|
await this.loadMarkets();
|
|
@@ -1925,7 +1927,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
1925
1927
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1926
1928
|
* @param {boolean} [params.trigger] whether the order is a stop/algo order
|
|
1927
1929
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
1928
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1930
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1929
1931
|
*/
|
|
1930
1932
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1931
1933
|
await this.loadMarkets();
|
|
@@ -2003,7 +2005,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
2003
2005
|
* @param {string} [params.side] 'buy' or 'sell'
|
|
2004
2006
|
* @param {boolean} [params.paginate] set to true if you want to fetch orders with pagination
|
|
2005
2007
|
* @param {int} params.until timestamp in ms of the latest order to fetch
|
|
2006
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2008
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2007
2009
|
*/
|
|
2008
2010
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2009
2011
|
await this.loadMarkets();
|
|
@@ -2094,7 +2096,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
2094
2096
|
* @param {string} [params.side] 'buy' or 'sell'
|
|
2095
2097
|
* @param {int} params.until timestamp in ms of the latest order to fetch
|
|
2096
2098
|
* @param {boolean} [params.paginate] set to true if you want to fetch orders with pagination
|
|
2097
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2099
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2098
2100
|
*/
|
|
2099
2101
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2100
2102
|
await this.loadMarkets();
|
|
@@ -2116,7 +2118,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
2116
2118
|
* @param {string} [params.side] 'buy' or 'sell'
|
|
2117
2119
|
* @param {int} params.until timestamp in ms of the latest order to fetch
|
|
2118
2120
|
* @param {boolean} [params.paginate] set to true if you want to fetch orders with pagination
|
|
2119
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2121
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2120
2122
|
*/
|
|
2121
2123
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2122
2124
|
await this.loadMarkets();
|
|
@@ -2133,7 +2135,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
2133
2135
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2134
2136
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
2135
2137
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2136
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
2138
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
2137
2139
|
*/
|
|
2138
2140
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2139
2141
|
await this.loadMarkets();
|
|
@@ -2181,7 +2183,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
2181
2183
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2182
2184
|
* @param {boolean} [params.paginate] set to true if you want to fetch trades with pagination
|
|
2183
2185
|
* @param {int} params.until timestamp in ms of the latest trade to fetch
|
|
2184
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
2186
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
2185
2187
|
*/
|
|
2186
2188
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2187
2189
|
await this.loadMarkets();
|
|
@@ -2258,7 +2260,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
2258
2260
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
2259
2261
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/get-current-holding
|
|
2260
2262
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2261
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
2263
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
2262
2264
|
*/
|
|
2263
2265
|
async fetchBalance(params = {}) {
|
|
2264
2266
|
await this.loadMarkets();
|
|
@@ -2372,7 +2374,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
2372
2374
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2373
2375
|
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
2374
2376
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2375
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
2377
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
2376
2378
|
*/
|
|
2377
2379
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2378
2380
|
const currencyRows = await this.getAssetHistoryRows(code, since, limit, params);
|
|
@@ -2433,7 +2435,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
2433
2435
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2434
2436
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2435
2437
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2436
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
2438
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2437
2439
|
*/
|
|
2438
2440
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2439
2441
|
const request = {
|
|
@@ -2450,7 +2452,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
2450
2452
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2451
2453
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2452
2454
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2453
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
2455
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2454
2456
|
*/
|
|
2455
2457
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2456
2458
|
const request = {
|
|
@@ -2467,7 +2469,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
2467
2469
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2468
2470
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2469
2471
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2470
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
2472
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2471
2473
|
*/
|
|
2472
2474
|
async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2473
2475
|
const request = {};
|
|
@@ -2524,7 +2526,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
2524
2526
|
* @param {string} address the address to withdraw to
|
|
2525
2527
|
* @param {string} tag
|
|
2526
2528
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2527
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
2529
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2528
2530
|
*/
|
|
2529
2531
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
2530
2532
|
await this.loadMarkets();
|
|
@@ -2611,7 +2613,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
2611
2613
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/get-account-information
|
|
2612
2614
|
* @param {string} symbol unified market symbol
|
|
2613
2615
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2614
|
-
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com
|
|
2616
|
+
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
2615
2617
|
*/
|
|
2616
2618
|
async fetchLeverage(symbol, params = {}) {
|
|
2617
2619
|
await this.loadMarkets();
|
|
@@ -2747,7 +2749,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
2747
2749
|
* @description fetch data on an open position
|
|
2748
2750
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
2749
2751
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2750
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
2752
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
2751
2753
|
*/
|
|
2752
2754
|
async fetchPosition(symbol, params = {}) {
|
|
2753
2755
|
await this.loadMarkets();
|
|
@@ -2792,7 +2794,7 @@ class modetrade extends modetrade$1["default"] {
|
|
|
2792
2794
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/get-all-positions-info
|
|
2793
2795
|
* @param {string[]} [symbols] list of unified market symbols
|
|
2794
2796
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2795
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
2797
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
2796
2798
|
*/
|
|
2797
2799
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
2798
2800
|
await this.loadMarkets();
|
package/dist/cjs/src/ndax.js
CHANGED
|
@@ -687,7 +687,7 @@ class ndax extends ndax$1["default"] {
|
|
|
687
687
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
688
688
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
689
689
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
690
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
690
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
691
691
|
*/
|
|
692
692
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
693
693
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -797,7 +797,7 @@ class ndax extends ndax$1["default"] {
|
|
|
797
797
|
* @see https://apidoc.ndax.io/#getlevel1
|
|
798
798
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
799
799
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
800
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
800
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
801
801
|
*/
|
|
802
802
|
async fetchTicker(symbol, params = {}) {
|
|
803
803
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1087,7 +1087,7 @@ class ndax extends ndax$1["default"] {
|
|
|
1087
1087
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1088
1088
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1089
1089
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1090
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1090
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
1091
1091
|
*/
|
|
1092
1092
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1093
1093
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1116,7 +1116,7 @@ class ndax extends ndax$1["default"] {
|
|
|
1116
1116
|
* @description fetch all the accounts associated with a profile
|
|
1117
1117
|
* @see https://apidoc.ndax.io/#getuseraccounts
|
|
1118
1118
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1119
|
-
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com
|
|
1119
|
+
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/?id=account-structure} indexed by the account type
|
|
1120
1120
|
*/
|
|
1121
1121
|
async fetchAccounts(params = {}) {
|
|
1122
1122
|
if (!this.login) {
|
|
@@ -1170,7 +1170,7 @@ class ndax extends ndax$1["default"] {
|
|
|
1170
1170
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1171
1171
|
* @see https://apidoc.ndax.io/#getaccountpositions
|
|
1172
1172
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1173
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
1173
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
1174
1174
|
*/
|
|
1175
1175
|
async fetchBalance(params = {}) {
|
|
1176
1176
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1305,7 +1305,7 @@ class ndax extends ndax$1["default"] {
|
|
|
1305
1305
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1306
1306
|
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
1307
1307
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1308
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
1308
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
1309
1309
|
*/
|
|
1310
1310
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1311
1311
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1464,7 +1464,7 @@ class ndax extends ndax$1["default"] {
|
|
|
1464
1464
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1465
1465
|
* @param {float} [params.triggerPrice] the price at which a trigger order would be triggered
|
|
1466
1466
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
1467
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1467
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1468
1468
|
*/
|
|
1469
1469
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1470
1470
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1580,7 +1580,7 @@ class ndax extends ndax$1["default"] {
|
|
|
1580
1580
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1581
1581
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1582
1582
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1583
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1583
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
1584
1584
|
*/
|
|
1585
1585
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1586
1586
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1666,7 +1666,7 @@ class ndax extends ndax$1["default"] {
|
|
|
1666
1666
|
* @see https://apidoc.ndax.io/#cancelallorders
|
|
1667
1667
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1668
1668
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1669
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1669
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1670
1670
|
*/
|
|
1671
1671
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
1672
1672
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1707,7 +1707,7 @@ class ndax extends ndax$1["default"] {
|
|
|
1707
1707
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1708
1708
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1709
1709
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
1710
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1710
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1711
1711
|
*/
|
|
1712
1712
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1713
1713
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1748,7 +1748,7 @@ class ndax extends ndax$1["default"] {
|
|
|
1748
1748
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1749
1749
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1750
1750
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1751
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1751
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1752
1752
|
*/
|
|
1753
1753
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1754
1754
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1827,7 +1827,7 @@ class ndax extends ndax$1["default"] {
|
|
|
1827
1827
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1828
1828
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1829
1829
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1830
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1830
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1831
1831
|
*/
|
|
1832
1832
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1833
1833
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -1921,7 +1921,7 @@ class ndax extends ndax$1["default"] {
|
|
|
1921
1921
|
* @param {string} id order id
|
|
1922
1922
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1923
1923
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1924
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1924
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1925
1925
|
*/
|
|
1926
1926
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1927
1927
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -2000,7 +2000,7 @@ class ndax extends ndax$1["default"] {
|
|
|
2000
2000
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2001
2001
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
2002
2002
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2003
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
2003
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
2004
2004
|
*/
|
|
2005
2005
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2006
2006
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -2079,7 +2079,7 @@ class ndax extends ndax$1["default"] {
|
|
|
2079
2079
|
* @description fetch the deposit address for a currency associated with this account
|
|
2080
2080
|
* @param {string} code unified currency code
|
|
2081
2081
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2082
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
2082
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
2083
2083
|
*/
|
|
2084
2084
|
async fetchDepositAddress(code, params = {}) {
|
|
2085
2085
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -2151,7 +2151,7 @@ class ndax extends ndax$1["default"] {
|
|
|
2151
2151
|
* @description create a currency deposit address
|
|
2152
2152
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
2153
2153
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2154
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
2154
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
2155
2155
|
*/
|
|
2156
2156
|
async createDepositAddress(code, params = {}) {
|
|
2157
2157
|
const request = {
|
|
@@ -2168,7 +2168,7 @@ class ndax extends ndax$1["default"] {
|
|
|
2168
2168
|
* @param {int} [since] not used by ndax fetchDeposits
|
|
2169
2169
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2170
2170
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2171
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
2171
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2172
2172
|
*/
|
|
2173
2173
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2174
2174
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -2228,7 +2228,7 @@ class ndax extends ndax$1["default"] {
|
|
|
2228
2228
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2229
2229
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2230
2230
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2231
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
2231
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2232
2232
|
*/
|
|
2233
2233
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2234
2234
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -2428,7 +2428,7 @@ class ndax extends ndax$1["default"] {
|
|
|
2428
2428
|
* @param {string} address the address to withdraw to
|
|
2429
2429
|
* @param {string} tag
|
|
2430
2430
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2431
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
2431
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2432
2432
|
*/
|
|
2433
2433
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
2434
2434
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|