ccxt 4.5.28 → 4.5.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -7
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +6 -1
- package/dist/cjs/src/abstract/bydfi.js +11 -0
- package/dist/cjs/src/alpaca.js +21 -21
- package/dist/cjs/src/apex.js +20 -20
- package/dist/cjs/src/arkham.js +22 -22
- package/dist/cjs/src/ascendex.js +28 -28
- package/dist/cjs/src/backpack.js +22 -22
- package/dist/cjs/src/base/Exchange.js +48 -38
- package/dist/cjs/src/base/functions/throttle.js +54 -5
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +83 -82
- package/dist/cjs/src/bingx.js +47 -47
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +49 -48
- package/dist/cjs/src/bitbns.js +13 -13
- package/dist/cjs/src/bitfinex.js +33 -33
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitget.js +58 -57
- package/dist/cjs/src/bithumb.js +10 -10
- package/dist/cjs/src/bitmart.js +44 -44
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +20 -20
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +20 -20
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bittrade.js +20 -20
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/blofin.js +26 -26
- package/dist/cjs/src/btcalpha.js +35 -34
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +16 -16
- package/dist/cjs/src/btcturk.js +10 -10
- package/dist/cjs/src/bullish.js +27 -27
- package/dist/cjs/src/bybit.js +69 -67
- package/dist/cjs/src/bydfi.js +2907 -0
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +74 -41
- package/dist/cjs/src/coinbaseexchange.js +22 -22
- package/dist/cjs/src/coinbaseinternational.js +22 -22
- package/dist/cjs/src/coincatch.js +39 -39
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +48 -48
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinmetro.js +14 -14
- package/dist/cjs/src/coinone.js +11 -11
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +32 -32
- package/dist/cjs/src/cryptomus.js +9 -9
- package/dist/cjs/src/deepcoin.js +33 -33
- package/dist/cjs/src/defx.js +23 -23
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +36 -36
- package/dist/cjs/src/derive.js +19 -19
- package/dist/cjs/src/digifinex.js +36 -36
- package/dist/cjs/src/dydx.js +25 -25
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +60 -59
- package/dist/cjs/src/gemini.js +16 -16
- package/dist/cjs/src/hashkey.js +35 -35
- package/dist/cjs/src/hibachi.js +24 -24
- package/dist/cjs/src/hitbtc.js +38 -38
- package/dist/cjs/src/hollaex.js +22 -22
- package/dist/cjs/src/htx.js +50 -50
- package/dist/cjs/src/hyperliquid.js +86 -45
- package/dist/cjs/src/independentreserve.js +13 -13
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +30 -30
- package/dist/cjs/src/krakenfutures.js +21 -21
- package/dist/cjs/src/kucoin.js +156 -48
- package/dist/cjs/src/kucoinfutures.js +42 -40
- package/dist/cjs/src/latoken.js +16 -16
- package/dist/cjs/src/lbank.js +23 -23
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/mercado.js +11 -11
- package/dist/cjs/src/mexc.js +47 -47
- package/dist/cjs/src/modetrade.js +37 -35
- package/dist/cjs/src/ndax.js +19 -19
- package/dist/cjs/src/novadax.js +19 -19
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okx.js +83 -83
- package/dist/cjs/src/onetrading.js +34 -33
- package/dist/cjs/src/oxfun.js +25 -25
- package/dist/cjs/src/p2b.js +11 -11
- package/dist/cjs/src/paradex.js +54 -54
- package/dist/cjs/src/paymium.js +20 -21
- package/dist/cjs/src/phemex.js +35 -35
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +13 -11
- package/dist/cjs/src/pro/arkham.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/backpack.js +16 -16
- package/dist/cjs/src/pro/binance.js +45 -41
- package/dist/cjs/src/pro/bingx.js +14 -12
- package/dist/cjs/src/pro/bitfinex.js +8 -8
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bithumb.js +3 -3
- package/dist/cjs/src/pro/bitmart.js +393 -34
- package/dist/cjs/src/pro/bitmex.js +9 -9
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrade.js +3 -3
- package/dist/cjs/src/pro/bitvavo.js +19 -19
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +10 -10
- package/dist/cjs/src/pro/bullish.js +6 -6
- package/dist/cjs/src/pro/bybit.js +24 -22
- package/dist/cjs/src/pro/bydfi.js +1077 -0
- package/dist/cjs/src/pro/cex.js +13 -13
- package/dist/cjs/src/pro/coinbase.js +13 -13
- package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
- package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
- package/dist/cjs/src/pro/coincatch.js +10 -10
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +10 -10
- package/dist/cjs/src/pro/coinone.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +25 -23
- package/dist/cjs/src/pro/deepcoin.js +8 -8
- package/dist/cjs/src/pro/defx.js +15 -15
- package/dist/cjs/src/pro/deribit.js +10 -10
- package/dist/cjs/src/pro/derive.js +6 -6
- package/dist/cjs/src/pro/dydx.js +3 -3
- package/dist/cjs/src/pro/exmo.js +7 -7
- package/dist/cjs/src/pro/gate.js +26 -62
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +11 -9
- package/dist/cjs/src/pro/hitbtc.js +8 -8
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +9 -9
- package/dist/cjs/src/pro/hyperliquid.js +103 -14
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +15 -15
- package/dist/cjs/src/pro/krakenfutures.js +10 -10
- package/dist/cjs/src/pro/kucoin.js +15 -15
- package/dist/cjs/src/pro/kucoinfutures.js +18 -16
- package/dist/cjs/src/pro/lbank.js +5 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +13 -13
- package/dist/cjs/src/pro/modetrade.js +13 -11
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okx.js +25 -25
- package/dist/cjs/src/pro/onetrading.js +6 -6
- package/dist/cjs/src/pro/oxfun.js +13 -13
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/paradex.js +8 -8
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +8 -8
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/toobit.js +20 -16
- package/dist/cjs/src/pro/upbit.js +9 -9
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +18 -16
- package/dist/cjs/src/pro/woofipro.js +25 -23
- package/dist/cjs/src/pro/xt.js +7 -5
- package/dist/cjs/src/probit.js +18 -18
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +17 -17
- package/dist/cjs/src/toobit.js +33 -30
- package/dist/cjs/src/upbit.js +23 -23
- package/dist/cjs/src/wavesexchange.js +86 -85
- package/dist/cjs/src/whitebit.js +44 -44
- package/dist/cjs/src/woo.js +51 -49
- package/dist/cjs/src/woofipro.js +104 -82
- package/dist/cjs/src/xt.js +17 -12
- package/dist/cjs/src/yobit.js +15 -15
- package/dist/cjs/src/zaif.js +38 -9
- package/dist/cjs/src/zebpay.js +35 -20
- package/dist/cjs/src/zonda.js +14 -14
- package/js/ccxt.d.ts +8 -2
- package/js/ccxt.js +6 -2
- package/js/src/abstract/bydfi.d.ts +52 -0
- package/js/src/abstract/bydfi.js +11 -0
- package/js/src/alpaca.d.ts +21 -21
- package/js/src/alpaca.js +21 -21
- package/js/src/apex.d.ts +20 -20
- package/js/src/apex.js +20 -20
- package/js/src/arkham.d.ts +22 -22
- package/js/src/arkham.js +22 -22
- package/js/src/ascendex.d.ts +28 -28
- package/js/src/ascendex.js +28 -28
- package/js/src/backpack.d.ts +21 -21
- package/js/src/backpack.js +22 -22
- package/js/src/base/Exchange.d.ts +6 -3
- package/js/src/base/Exchange.js +48 -38
- package/js/src/base/functions/throttle.d.ts +22 -0
- package/js/src/base/functions/throttle.js +54 -5
- package/js/src/bigone.d.ts +19 -19
- package/js/src/bigone.js +19 -19
- package/js/src/binance.d.ts +82 -82
- package/js/src/binance.js +83 -82
- package/js/src/bingx.d.ts +46 -46
- package/js/src/bingx.js +47 -47
- package/js/src/bit2c.d.ts +11 -11
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.d.ts +12 -12
- package/js/src/bitbank.js +49 -48
- package/js/src/bitbns.d.ts +13 -13
- package/js/src/bitbns.js +13 -13
- package/js/src/bitfinex.d.ts +33 -33
- package/js/src/bitfinex.js +33 -33
- package/js/src/bitflyer.d.ts +17 -17
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitget.d.ts +57 -57
- package/js/src/bitget.js +58 -57
- package/js/src/bithumb.d.ts +10 -10
- package/js/src/bithumb.js +10 -10
- package/js/src/bitmart.d.ts +42 -42
- package/js/src/bitmart.js +44 -44
- package/js/src/bitmex.d.ts +24 -24
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.d.ts +20 -20
- package/js/src/bitopro.js +20 -20
- package/js/src/bitrue.d.ts +18 -18
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.d.ts +20 -20
- package/js/src/bitso.js +20 -20
- package/js/src/bitstamp.d.ts +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bittrade.d.ts +20 -20
- package/js/src/bittrade.js +20 -20
- package/js/src/bitvavo.d.ts +19 -19
- package/js/src/bitvavo.js +19 -19
- package/js/src/blockchaincom.d.ts +20 -20
- package/js/src/blockchaincom.js +20 -20
- package/js/src/blofin.d.ts +26 -26
- package/js/src/blofin.js +26 -26
- package/js/src/btcalpha.d.ts +14 -14
- package/js/src/btcalpha.js +35 -34
- package/js/src/btcbox.d.ts +10 -10
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.d.ts +16 -16
- package/js/src/btcmarkets.js +16 -16
- package/js/src/btcturk.d.ts +10 -10
- package/js/src/btcturk.js +10 -10
- package/js/src/bullish.d.ts +26 -26
- package/js/src/bullish.js +27 -27
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +69 -67
- package/js/src/bydfi.d.ts +472 -0
- package/js/src/bydfi.js +2905 -0
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +51 -40
- package/js/src/coinbase.js +74 -41
- package/js/src/coinbaseexchange.d.ts +22 -22
- package/js/src/coinbaseexchange.js +22 -22
- package/js/src/coinbaseinternational.d.ts +22 -22
- package/js/src/coinbaseinternational.js +22 -22
- package/js/src/coincatch.d.ts +39 -39
- package/js/src/coincatch.js +39 -39
- package/js/src/coincheck.d.ts +11 -11
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.d.ts +48 -48
- package/js/src/coinex.js +48 -48
- package/js/src/coinmate.d.ts +14 -14
- package/js/src/coinmate.js +14 -14
- package/js/src/coinmetro.d.ts +14 -14
- package/js/src/coinmetro.js +14 -14
- package/js/src/coinone.d.ts +11 -11
- package/js/src/coinone.js +11 -11
- package/js/src/coinsph.d.ts +20 -20
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.d.ts +8 -8
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.d.ts +32 -32
- package/js/src/cryptocom.js +32 -32
- package/js/src/cryptomus.d.ts +9 -9
- package/js/src/cryptomus.js +9 -9
- package/js/src/deepcoin.d.ts +33 -33
- package/js/src/deepcoin.js +33 -33
- package/js/src/defx.d.ts +23 -23
- package/js/src/defx.js +23 -23
- package/js/src/delta.d.ts +29 -29
- package/js/src/delta.js +29 -29
- package/js/src/deribit.d.ts +36 -36
- package/js/src/deribit.js +36 -36
- package/js/src/derive.d.ts +19 -19
- package/js/src/derive.js +19 -19
- package/js/src/digifinex.d.ts +36 -36
- package/js/src/digifinex.js +36 -36
- package/js/src/dydx.d.ts +22 -22
- package/js/src/dydx.js +25 -25
- package/js/src/exmo.d.ts +29 -29
- package/js/src/exmo.js +29 -29
- package/js/src/foxbit.d.ts +23 -23
- package/js/src/foxbit.js +23 -23
- package/js/src/gate.d.ts +57 -57
- package/js/src/gate.js +60 -59
- package/js/src/gemini.d.ts +16 -16
- package/js/src/gemini.js +16 -16
- package/js/src/hashkey.d.ts +35 -35
- package/js/src/hashkey.js +35 -35
- package/js/src/hibachi.d.ts +24 -24
- package/js/src/hibachi.js +24 -24
- package/js/src/hitbtc.d.ts +38 -38
- package/js/src/hitbtc.js +38 -38
- package/js/src/hollaex.d.ts +22 -22
- package/js/src/hollaex.js +22 -22
- package/js/src/htx.d.ts +50 -50
- package/js/src/htx.js +50 -50
- package/js/src/hyperliquid.d.ts +46 -36
- package/js/src/hyperliquid.js +86 -45
- package/js/src/independentreserve.d.ts +13 -13
- package/js/src/independentreserve.js +13 -13
- package/js/src/indodax.d.ts +14 -14
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.d.ts +30 -30
- package/js/src/kraken.js +30 -30
- package/js/src/krakenfutures.d.ts +21 -21
- package/js/src/krakenfutures.js +21 -21
- package/js/src/kucoin.d.ts +58 -44
- package/js/src/kucoin.js +156 -48
- package/js/src/kucoinfutures.d.ts +35 -35
- package/js/src/kucoinfutures.js +42 -40
- package/js/src/latoken.d.ts +16 -16
- package/js/src/latoken.js +16 -16
- package/js/src/lbank.d.ts +23 -23
- package/js/src/lbank.js +23 -23
- package/js/src/luno.d.ts +17 -17
- package/js/src/luno.js +17 -17
- package/js/src/mercado.d.ts +11 -11
- package/js/src/mercado.js +11 -11
- package/js/src/mexc.d.ts +47 -47
- package/js/src/mexc.js +47 -47
- package/js/src/modetrade.d.ts +31 -31
- package/js/src/modetrade.js +37 -35
- package/js/src/ndax.d.ts +19 -19
- package/js/src/ndax.js +19 -19
- package/js/src/novadax.d.ts +19 -19
- package/js/src/novadax.js +19 -19
- package/js/src/oceanex.d.ts +16 -16
- package/js/src/oceanex.js +16 -16
- package/js/src/okx.d.ts +74 -74
- package/js/src/okx.js +83 -83
- package/js/src/onetrading.d.ts +34 -33
- package/js/src/onetrading.js +34 -33
- package/js/src/oxfun.d.ts +25 -25
- package/js/src/oxfun.js +25 -25
- package/js/src/p2b.d.ts +11 -11
- package/js/src/p2b.js +11 -11
- package/js/src/paradex.d.ts +54 -54
- package/js/src/paradex.js +54 -54
- package/js/src/paymium.d.ts +20 -21
- package/js/src/paymium.js +20 -21
- package/js/src/phemex.d.ts +30 -30
- package/js/src/phemex.js +35 -35
- package/js/src/poloniex.d.ts +26 -26
- package/js/src/poloniex.js +27 -27
- package/js/src/pro/alpaca.d.ts +5 -5
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +8 -8
- package/js/src/pro/apex.js +13 -11
- package/js/src/pro/arkham.d.ts +5 -5
- package/js/src/pro/arkham.js +5 -5
- package/js/src/pro/ascendex.d.ts +5 -5
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/backpack.d.ts +16 -16
- package/js/src/pro/backpack.js +16 -16
- package/js/src/pro/binance.d.ts +35 -35
- package/js/src/pro/binance.js +45 -41
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +14 -12
- package/js/src/pro/bitfinex.d.ts +8 -8
- package/js/src/pro/bitfinex.js +8 -8
- package/js/src/pro/bitget.d.ts +12 -12
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bithumb.d.ts +3 -3
- package/js/src/pro/bithumb.js +3 -3
- package/js/src/pro/bitmart.d.ts +120 -9
- package/js/src/pro/bitmart.js +393 -34
- package/js/src/pro/bitmex.d.ts +9 -9
- package/js/src/pro/bitmex.js +9 -9
- package/js/src/pro/bitopro.d.ts +5 -5
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.d.ts +3 -3
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrade.d.ts +3 -3
- package/js/src/pro/bittrade.js +3 -3
- package/js/src/pro/bitvavo.d.ts +19 -19
- package/js/src/pro/bitvavo.js +19 -19
- package/js/src/pro/blockchaincom.d.ts +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +10 -10
- package/js/src/pro/blofin.js +10 -10
- package/js/src/pro/bullish.d.ts +6 -6
- package/js/src/pro/bullish.js +6 -6
- package/js/src/pro/bybit.d.ts +19 -19
- package/js/src/pro/bybit.js +24 -22
- package/js/src/pro/bydfi.d.ts +206 -0
- package/js/src/pro/bydfi.js +1076 -0
- package/js/src/pro/cex.d.ts +13 -13
- package/js/src/pro/cex.js +13 -13
- package/js/src/pro/coinbase.d.ts +13 -13
- package/js/src/pro/coinbase.js +13 -13
- package/js/src/pro/coinbaseexchange.d.ts +10 -10
- package/js/src/pro/coinbaseexchange.js +10 -10
- package/js/src/pro/coinbaseinternational.d.ts +8 -8
- package/js/src/pro/coinbaseinternational.js +8 -8
- package/js/src/pro/coincatch.d.ts +10 -10
- package/js/src/pro/coincatch.js +10 -10
- package/js/src/pro/coincheck.d.ts +2 -2
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +10 -10
- package/js/src/pro/coinex.js +10 -10
- package/js/src/pro/coinone.d.ts +3 -3
- package/js/src/pro/coinone.js +3 -3
- package/js/src/pro/cryptocom.d.ts +20 -20
- package/js/src/pro/cryptocom.js +25 -23
- package/js/src/pro/deepcoin.d.ts +8 -8
- package/js/src/pro/deepcoin.js +8 -8
- package/js/src/pro/defx.d.ts +15 -15
- package/js/src/pro/defx.js +15 -15
- package/js/src/pro/deribit.d.ts +10 -10
- package/js/src/pro/deribit.js +10 -10
- package/js/src/pro/derive.d.ts +6 -6
- package/js/src/pro/derive.js +6 -6
- package/js/src/pro/dydx.d.ts +3 -3
- package/js/src/pro/dydx.js +3 -3
- package/js/src/pro/exmo.d.ts +7 -7
- package/js/src/pro/exmo.js +7 -7
- package/js/src/pro/gate.d.ts +22 -23
- package/js/src/pro/gate.js +26 -62
- package/js/src/pro/gemini.d.ts +6 -6
- package/js/src/pro/gemini.js +6 -6
- package/js/src/pro/hashkey.d.ts +6 -6
- package/js/src/pro/hashkey.js +11 -9
- package/js/src/pro/hitbtc.d.ts +8 -8
- package/js/src/pro/hitbtc.js +8 -8
- package/js/src/pro/hollaex.d.ts +5 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.d.ts +9 -9
- package/js/src/pro/htx.js +9 -9
- package/js/src/pro/hyperliquid.d.ts +38 -14
- package/js/src/pro/hyperliquid.js +103 -14
- package/js/src/pro/independentreserve.d.ts +2 -2
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +15 -15
- package/js/src/pro/kraken.js +15 -15
- package/js/src/pro/krakenfutures.d.ts +10 -10
- package/js/src/pro/krakenfutures.js +10 -10
- package/js/src/pro/kucoin.d.ts +15 -15
- package/js/src/pro/kucoin.js +15 -15
- package/js/src/pro/kucoinfutures.d.ts +13 -13
- package/js/src/pro/kucoinfutures.js +18 -16
- package/js/src/pro/lbank.d.ts +5 -5
- package/js/src/pro/lbank.js +5 -5
- package/js/src/pro/luno.d.ts +2 -2
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +13 -13
- package/js/src/pro/mexc.js +13 -13
- package/js/src/pro/modetrade.d.ts +8 -8
- package/js/src/pro/modetrade.js +13 -11
- package/js/src/pro/ndax.d.ts +3 -3
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okx.d.ts +25 -25
- package/js/src/pro/okx.js +25 -25
- package/js/src/pro/onetrading.d.ts +6 -6
- package/js/src/pro/onetrading.js +6 -6
- package/js/src/pro/oxfun.d.ts +13 -13
- package/js/src/pro/oxfun.js +13 -13
- package/js/src/pro/p2b.d.ts +5 -5
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/paradex.d.ts +8 -8
- package/js/src/pro/paradex.js +8 -8
- package/js/src/pro/phemex.d.ts +7 -7
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.d.ts +8 -8
- package/js/src/pro/poloniex.js +8 -8
- package/js/src/pro/probit.d.ts +6 -6
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/toobit.d.ts +9 -9
- package/js/src/pro/toobit.js +20 -16
- package/js/src/pro/upbit.d.ts +9 -9
- package/js/src/pro/upbit.js +9 -9
- package/js/src/pro/whitebit.d.ts +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.d.ts +13 -13
- package/js/src/pro/woo.js +18 -16
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +25 -23
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +7 -5
- package/js/src/probit.d.ts +18 -18
- package/js/src/probit.js +18 -18
- package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
- package/js/src/static_dependencies/ethers/utils/index.js +8 -1
- package/js/src/timex.d.ts +16 -16
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.d.ts +17 -17
- package/js/src/tokocrypto.js +17 -17
- package/js/src/toobit.d.ts +27 -27
- package/js/src/toobit.js +33 -30
- package/js/src/upbit.d.ts +23 -23
- package/js/src/upbit.js +23 -23
- package/js/src/wavesexchange.d.ts +15 -15
- package/js/src/wavesexchange.js +86 -85
- package/js/src/whitebit.d.ts +44 -44
- package/js/src/whitebit.js +44 -44
- package/js/src/woo.d.ts +45 -45
- package/js/src/woo.js +51 -49
- package/js/src/woofipro.d.ts +77 -77
- package/js/src/woofipro.js +104 -82
- package/js/src/xt.d.ts +12 -12
- package/js/src/xt.js +17 -12
- package/js/src/yobit.d.ts +15 -15
- package/js/src/yobit.js +15 -15
- package/js/src/zaif.d.ts +9 -9
- package/js/src/zaif.js +38 -9
- package/js/src/zebpay.d.ts +20 -20
- package/js/src/zebpay.js +35 -20
- package/js/src/zonda.d.ts +14 -14
- package/js/src/zonda.js +14 -14
- package/package.json +1 -1
package/js/src/modetrade.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export default class modetrade extends Exchange {
|
|
|
13
13
|
* @description the latest known information on the availability of the exchange API
|
|
14
14
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/public/get-system-maintenance-status
|
|
15
15
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
16
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
16
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
17
17
|
*/
|
|
18
18
|
fetchStatus(params?: {}): Promise<{
|
|
19
19
|
status: string;
|
|
@@ -61,7 +61,7 @@ export default class modetrade extends Exchange {
|
|
|
61
61
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
62
62
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
63
63
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
64
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
64
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
65
65
|
*/
|
|
66
66
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
67
67
|
parseFundingRate(fundingRate: any, market?: Market): FundingRate;
|
|
@@ -73,7 +73,7 @@ export default class modetrade extends Exchange {
|
|
|
73
73
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/public/get-predicted-funding-rate-for-one-market
|
|
74
74
|
* @param {string} symbol unified market symbol
|
|
75
75
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
76
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
76
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
77
77
|
*/
|
|
78
78
|
fetchFundingInterval(symbol: string, params?: {}): Promise<FundingRate>;
|
|
79
79
|
/**
|
|
@@ -83,7 +83,7 @@ export default class modetrade extends Exchange {
|
|
|
83
83
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/public/get-predicted-funding-rate-for-one-market
|
|
84
84
|
* @param {string} symbol unified market symbol
|
|
85
85
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
86
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
86
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
87
87
|
*/
|
|
88
88
|
fetchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
|
|
89
89
|
/**
|
|
@@ -93,7 +93,7 @@ export default class modetrade extends Exchange {
|
|
|
93
93
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/public/get-predicted-funding-rates-for-all-markets
|
|
94
94
|
* @param {string[]} symbols unified market symbols
|
|
95
95
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
96
|
-
* @returns {object[]} an array of [funding rate structures]{@link https://docs.ccxt.com
|
|
96
|
+
* @returns {object[]} an array of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
97
97
|
*/
|
|
98
98
|
fetchFundingRates(symbols?: Strings, params?: {}): Promise<FundingRates>;
|
|
99
99
|
/**
|
|
@@ -103,11 +103,11 @@ export default class modetrade extends Exchange {
|
|
|
103
103
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/public/get-funding-rate-history-for-one-market
|
|
104
104
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
105
105
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
106
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com
|
|
106
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
107
107
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
108
108
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
109
109
|
* @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)
|
|
110
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
110
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
111
111
|
*/
|
|
112
112
|
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
|
113
113
|
parseIncome(income: any, market?: Market): {
|
|
@@ -130,7 +130,7 @@ export default class modetrade extends Exchange {
|
|
|
130
130
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
131
131
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
132
132
|
* @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)
|
|
133
|
-
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com
|
|
133
|
+
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
134
134
|
*/
|
|
135
135
|
fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingHistory[]>;
|
|
136
136
|
/**
|
|
@@ -139,7 +139,7 @@ export default class modetrade extends Exchange {
|
|
|
139
139
|
* @description fetch the trading fees for multiple markets
|
|
140
140
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/get-account-information
|
|
141
141
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
142
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
142
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
143
143
|
*/
|
|
144
144
|
fetchTradingFees(params?: {}): Promise<TradingFees>;
|
|
145
145
|
/**
|
|
@@ -150,7 +150,7 @@ export default class modetrade extends Exchange {
|
|
|
150
150
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
151
151
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
152
152
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
153
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
153
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
154
154
|
*/
|
|
155
155
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
156
156
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
@@ -192,7 +192,7 @@ export default class modetrade extends Exchange {
|
|
|
192
192
|
* @param {float} [params.algoType] 'STOP'or 'TP_SL' or 'POSITIONAL_TP_SL'
|
|
193
193
|
* @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
|
|
194
194
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
195
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
195
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
196
196
|
*/
|
|
197
197
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
198
198
|
/**
|
|
@@ -202,7 +202,7 @@ export default class modetrade extends Exchange {
|
|
|
202
202
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/batch-create-order
|
|
203
203
|
* @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
|
|
204
204
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
205
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
205
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
206
206
|
*/
|
|
207
207
|
createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
|
|
208
208
|
/**
|
|
@@ -221,7 +221,7 @@ export default class modetrade extends Exchange {
|
|
|
221
221
|
* @param {float} [params.triggerPrice] The price a trigger order is triggered at
|
|
222
222
|
* @param {float} [params.stopLossPrice] price to trigger stop-loss orders
|
|
223
223
|
* @param {float} [params.takeProfitPrice] price to trigger take-profit orders
|
|
224
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
224
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
225
225
|
*/
|
|
226
226
|
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
227
227
|
/**
|
|
@@ -237,7 +237,7 @@ export default class modetrade extends Exchange {
|
|
|
237
237
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
238
238
|
* @param {boolean} [params.trigger] whether the order is a stop/algo order
|
|
239
239
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
240
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
240
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
241
241
|
*/
|
|
242
242
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
243
243
|
/**
|
|
@@ -250,7 +250,7 @@ export default class modetrade extends Exchange {
|
|
|
250
250
|
* @param {string} [symbol] unified market symbol
|
|
251
251
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
252
252
|
* @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
|
|
253
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
253
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
254
254
|
*/
|
|
255
255
|
cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
|
|
256
256
|
/**
|
|
@@ -262,7 +262,7 @@ export default class modetrade extends Exchange {
|
|
|
262
262
|
* @param {string} symbol unified market symbol
|
|
263
263
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
264
264
|
* @param {boolean} [params.trigger] whether the order is a stop/algo order
|
|
265
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
265
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
266
266
|
*/
|
|
267
267
|
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
268
268
|
/**
|
|
@@ -278,7 +278,7 @@ export default class modetrade extends Exchange {
|
|
|
278
278
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
279
279
|
* @param {boolean} [params.trigger] whether the order is a stop/algo order
|
|
280
280
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
281
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
281
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
282
282
|
*/
|
|
283
283
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
284
284
|
/**
|
|
@@ -296,7 +296,7 @@ export default class modetrade extends Exchange {
|
|
|
296
296
|
* @param {string} [params.side] 'buy' or 'sell'
|
|
297
297
|
* @param {boolean} [params.paginate] set to true if you want to fetch orders with pagination
|
|
298
298
|
* @param {int} params.until timestamp in ms of the latest order to fetch
|
|
299
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
299
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
300
300
|
*/
|
|
301
301
|
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
302
302
|
/**
|
|
@@ -314,7 +314,7 @@ export default class modetrade extends Exchange {
|
|
|
314
314
|
* @param {string} [params.side] 'buy' or 'sell'
|
|
315
315
|
* @param {int} params.until timestamp in ms of the latest order to fetch
|
|
316
316
|
* @param {boolean} [params.paginate] set to true if you want to fetch orders with pagination
|
|
317
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
317
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
318
318
|
*/
|
|
319
319
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
320
320
|
/**
|
|
@@ -332,7 +332,7 @@ export default class modetrade extends Exchange {
|
|
|
332
332
|
* @param {string} [params.side] 'buy' or 'sell'
|
|
333
333
|
* @param {int} params.until timestamp in ms of the latest order to fetch
|
|
334
334
|
* @param {boolean} [params.paginate] set to true if you want to fetch orders with pagination
|
|
335
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
335
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
336
336
|
*/
|
|
337
337
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
338
338
|
/**
|
|
@@ -345,7 +345,7 @@ export default class modetrade extends Exchange {
|
|
|
345
345
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
346
346
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
347
347
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
348
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
348
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
349
349
|
*/
|
|
350
350
|
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
351
351
|
/**
|
|
@@ -359,7 +359,7 @@ export default class modetrade extends Exchange {
|
|
|
359
359
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
360
360
|
* @param {boolean} [params.paginate] set to true if you want to fetch trades with pagination
|
|
361
361
|
* @param {int} params.until timestamp in ms of the latest trade to fetch
|
|
362
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
362
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
363
363
|
*/
|
|
364
364
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
365
365
|
parseBalance(response: any): Balances;
|
|
@@ -369,7 +369,7 @@ export default class modetrade extends Exchange {
|
|
|
369
369
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
370
370
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/get-current-holding
|
|
371
371
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
372
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
372
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
373
373
|
*/
|
|
374
374
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
375
375
|
getAssetHistoryRows(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
@@ -384,7 +384,7 @@ export default class modetrade extends Exchange {
|
|
|
384
384
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
385
385
|
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
386
386
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
387
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
387
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
388
388
|
*/
|
|
389
389
|
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
|
|
390
390
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
@@ -398,7 +398,7 @@ export default class modetrade extends Exchange {
|
|
|
398
398
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
399
399
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
400
400
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
401
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
401
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
402
402
|
*/
|
|
403
403
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
404
404
|
/**
|
|
@@ -410,7 +410,7 @@ export default class modetrade extends Exchange {
|
|
|
410
410
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
411
411
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
412
412
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
413
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
413
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
414
414
|
*/
|
|
415
415
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
416
416
|
/**
|
|
@@ -422,7 +422,7 @@ export default class modetrade extends Exchange {
|
|
|
422
422
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
423
423
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
424
424
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
425
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
425
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
426
426
|
*/
|
|
427
427
|
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
428
428
|
getWithdrawNonce(params?: {}): Promise<number>;
|
|
@@ -439,7 +439,7 @@ export default class modetrade extends Exchange {
|
|
|
439
439
|
* @param {string} address the address to withdraw to
|
|
440
440
|
* @param {string} tag
|
|
441
441
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
442
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
442
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
443
443
|
*/
|
|
444
444
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
445
445
|
parseLeverage(leverage: any, market?: any): Leverage;
|
|
@@ -450,7 +450,7 @@ export default class modetrade extends Exchange {
|
|
|
450
450
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/get-account-information
|
|
451
451
|
* @param {string} symbol unified market symbol
|
|
452
452
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
453
|
-
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com
|
|
453
|
+
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
454
454
|
*/
|
|
455
455
|
fetchLeverage(symbol: string, params?: {}): Promise<Leverage>;
|
|
456
456
|
/**
|
|
@@ -472,7 +472,7 @@ export default class modetrade extends Exchange {
|
|
|
472
472
|
* @description fetch data on an open position
|
|
473
473
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
474
474
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
475
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
475
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
476
476
|
*/
|
|
477
477
|
fetchPosition(symbol: Str, params?: {}): Promise<Position>;
|
|
478
478
|
/**
|
|
@@ -482,7 +482,7 @@ export default class modetrade extends Exchange {
|
|
|
482
482
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/get-all-positions-info
|
|
483
483
|
* @param {string[]} [symbols] list of unified market symbols
|
|
484
484
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
485
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
485
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
486
486
|
*/
|
|
487
487
|
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
488
488
|
nonce(): number;
|
package/js/src/modetrade.js
CHANGED
|
@@ -430,7 +430,7 @@ export default class modetrade extends Exchange {
|
|
|
430
430
|
* @description the latest known information on the availability of the exchange API
|
|
431
431
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/public/get-system-maintenance-status
|
|
432
432
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
433
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
433
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
434
434
|
*/
|
|
435
435
|
async fetchStatus(params = {}) {
|
|
436
436
|
const response = await this.v1PublicGetPublicSystemInfo(params);
|
|
@@ -805,7 +805,7 @@ export default class modetrade extends Exchange {
|
|
|
805
805
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
806
806
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
807
807
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
808
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
808
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
809
809
|
*/
|
|
810
810
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
811
811
|
await this.loadMarkets();
|
|
@@ -894,7 +894,7 @@ export default class modetrade extends Exchange {
|
|
|
894
894
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/public/get-predicted-funding-rate-for-one-market
|
|
895
895
|
* @param {string} symbol unified market symbol
|
|
896
896
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
897
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
897
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
898
898
|
*/
|
|
899
899
|
async fetchFundingInterval(symbol, params = {}) {
|
|
900
900
|
return await this.fetchFundingRate(symbol, params);
|
|
@@ -906,7 +906,7 @@ export default class modetrade extends Exchange {
|
|
|
906
906
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/public/get-predicted-funding-rate-for-one-market
|
|
907
907
|
* @param {string} symbol unified market symbol
|
|
908
908
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
909
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
909
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
910
910
|
*/
|
|
911
911
|
async fetchFundingRate(symbol, params = {}) {
|
|
912
912
|
await this.loadMarkets();
|
|
@@ -940,7 +940,7 @@ export default class modetrade extends Exchange {
|
|
|
940
940
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/public/get-predicted-funding-rates-for-all-markets
|
|
941
941
|
* @param {string[]} symbols unified market symbols
|
|
942
942
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
943
|
-
* @returns {object[]} an array of [funding rate structures]{@link https://docs.ccxt.com
|
|
943
|
+
* @returns {object[]} an array of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
944
944
|
*/
|
|
945
945
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
946
946
|
await this.loadMarkets();
|
|
@@ -974,11 +974,11 @@ export default class modetrade extends Exchange {
|
|
|
974
974
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/public/get-funding-rate-history-for-one-market
|
|
975
975
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
976
976
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
977
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com
|
|
977
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
978
978
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
979
979
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
980
980
|
* @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)
|
|
981
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
981
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
982
982
|
*/
|
|
983
983
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
984
984
|
await this.loadMarkets();
|
|
@@ -1077,7 +1077,7 @@ export default class modetrade extends Exchange {
|
|
|
1077
1077
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
1078
1078
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1079
1079
|
* @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)
|
|
1080
|
-
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com
|
|
1080
|
+
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
1081
1081
|
*/
|
|
1082
1082
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1083
1083
|
await this.loadMarkets();
|
|
@@ -1137,7 +1137,7 @@ export default class modetrade extends Exchange {
|
|
|
1137
1137
|
* @description fetch the trading fees for multiple markets
|
|
1138
1138
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/get-account-information
|
|
1139
1139
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1140
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
1140
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
1141
1141
|
*/
|
|
1142
1142
|
async fetchTradingFees(params = {}) {
|
|
1143
1143
|
await this.loadMarkets();
|
|
@@ -1194,7 +1194,7 @@ export default class modetrade extends Exchange {
|
|
|
1194
1194
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1195
1195
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1196
1196
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1197
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
1197
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
1198
1198
|
*/
|
|
1199
1199
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1200
1200
|
await this.loadMarkets();
|
|
@@ -1458,8 +1458,10 @@ export default class modetrade extends Exchange {
|
|
|
1458
1458
|
const triggerPrice = this.safeString2(params, 'triggerPrice', 'stopPrice');
|
|
1459
1459
|
const stopLoss = this.safeValue(params, 'stopLoss');
|
|
1460
1460
|
const takeProfit = this.safeValue(params, 'takeProfit');
|
|
1461
|
+
const hasStopLoss = stopLoss !== undefined;
|
|
1462
|
+
const hasTakeProfit = takeProfit !== undefined;
|
|
1461
1463
|
const algoType = this.safeString(params, 'algoType');
|
|
1462
|
-
const isConditional = triggerPrice !== undefined ||
|
|
1464
|
+
const isConditional = triggerPrice !== undefined || hasStopLoss || hasTakeProfit || (this.safeValue(params, 'childOrders') !== undefined);
|
|
1463
1465
|
const isMarket = orderType === 'MARKET';
|
|
1464
1466
|
const timeInForce = this.safeStringLower(params, 'timeInForce');
|
|
1465
1467
|
const postOnly = this.isPostOnly(isMarket, undefined, params);
|
|
@@ -1498,7 +1500,7 @@ export default class modetrade extends Exchange {
|
|
|
1498
1500
|
request['trigger_price'] = this.priceToPrecision(symbol, triggerPrice);
|
|
1499
1501
|
request['algo_type'] = 'STOP';
|
|
1500
1502
|
}
|
|
1501
|
-
else if (
|
|
1503
|
+
else if (hasStopLoss || hasTakeProfit) {
|
|
1502
1504
|
request['algo_type'] = 'TP_SL';
|
|
1503
1505
|
const outterOrder = {
|
|
1504
1506
|
'symbol': market['id'],
|
|
@@ -1508,7 +1510,7 @@ export default class modetrade extends Exchange {
|
|
|
1508
1510
|
};
|
|
1509
1511
|
const childOrders = outterOrder['child_orders'];
|
|
1510
1512
|
const closeSide = (orderSide === 'BUY') ? 'SELL' : 'BUY';
|
|
1511
|
-
if (
|
|
1513
|
+
if (hasStopLoss) {
|
|
1512
1514
|
const stopLossPrice = this.safeNumber2(stopLoss, 'triggerPrice', 'price', stopLoss);
|
|
1513
1515
|
const stopLossOrder = {
|
|
1514
1516
|
'side': closeSide,
|
|
@@ -1519,7 +1521,7 @@ export default class modetrade extends Exchange {
|
|
|
1519
1521
|
};
|
|
1520
1522
|
childOrders.push(stopLossOrder);
|
|
1521
1523
|
}
|
|
1522
|
-
if (
|
|
1524
|
+
if (hasTakeProfit) {
|
|
1523
1525
|
const takeProfitPrice = this.safeNumber2(takeProfit, 'triggerPrice', 'price', takeProfit);
|
|
1524
1526
|
const takeProfitOrder = {
|
|
1525
1527
|
'side': closeSide,
|
|
@@ -1555,7 +1557,7 @@ export default class modetrade extends Exchange {
|
|
|
1555
1557
|
* @param {float} [params.algoType] 'STOP'or 'TP_SL' or 'POSITIONAL_TP_SL'
|
|
1556
1558
|
* @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
|
|
1557
1559
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
1558
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1560
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1559
1561
|
*/
|
|
1560
1562
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1561
1563
|
await this.loadMarkets();
|
|
@@ -1612,7 +1614,7 @@ export default class modetrade extends Exchange {
|
|
|
1612
1614
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/batch-create-order
|
|
1613
1615
|
* @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
|
|
1614
1616
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1615
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1617
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1616
1618
|
*/
|
|
1617
1619
|
async createOrders(orders, params = {}) {
|
|
1618
1620
|
await this.loadMarkets();
|
|
@@ -1676,7 +1678,7 @@ export default class modetrade extends Exchange {
|
|
|
1676
1678
|
* @param {float} [params.triggerPrice] The price a trigger order is triggered at
|
|
1677
1679
|
* @param {float} [params.stopLossPrice] price to trigger stop-loss orders
|
|
1678
1680
|
* @param {float} [params.takeProfitPrice] price to trigger take-profit orders
|
|
1679
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1681
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1680
1682
|
*/
|
|
1681
1683
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
1682
1684
|
await this.loadMarkets();
|
|
@@ -1756,7 +1758,7 @@ export default class modetrade extends Exchange {
|
|
|
1756
1758
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1757
1759
|
* @param {boolean} [params.trigger] whether the order is a stop/algo order
|
|
1758
1760
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
1759
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1761
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1760
1762
|
*/
|
|
1761
1763
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1762
1764
|
const trigger = this.safeBool2(params, 'stop', 'trigger', false);
|
|
@@ -1836,7 +1838,7 @@ export default class modetrade extends Exchange {
|
|
|
1836
1838
|
* @param {string} [symbol] unified market symbol
|
|
1837
1839
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1838
1840
|
* @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
|
|
1839
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
1841
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1840
1842
|
*/
|
|
1841
1843
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
1842
1844
|
await this.loadMarkets();
|
|
@@ -1874,7 +1876,7 @@ export default class modetrade extends Exchange {
|
|
|
1874
1876
|
* @param {string} symbol unified market symbol
|
|
1875
1877
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1876
1878
|
* @param {boolean} [params.trigger] whether the order is a stop/algo order
|
|
1877
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
1879
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1878
1880
|
*/
|
|
1879
1881
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
1880
1882
|
await this.loadMarkets();
|
|
@@ -1926,7 +1928,7 @@ export default class modetrade extends Exchange {
|
|
|
1926
1928
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1927
1929
|
* @param {boolean} [params.trigger] whether the order is a stop/algo order
|
|
1928
1930
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
1929
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1931
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1930
1932
|
*/
|
|
1931
1933
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1932
1934
|
await this.loadMarkets();
|
|
@@ -2004,7 +2006,7 @@ export default class modetrade extends Exchange {
|
|
|
2004
2006
|
* @param {string} [params.side] 'buy' or 'sell'
|
|
2005
2007
|
* @param {boolean} [params.paginate] set to true if you want to fetch orders with pagination
|
|
2006
2008
|
* @param {int} params.until timestamp in ms of the latest order to fetch
|
|
2007
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2009
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2008
2010
|
*/
|
|
2009
2011
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2010
2012
|
await this.loadMarkets();
|
|
@@ -2095,7 +2097,7 @@ export default class modetrade extends Exchange {
|
|
|
2095
2097
|
* @param {string} [params.side] 'buy' or 'sell'
|
|
2096
2098
|
* @param {int} params.until timestamp in ms of the latest order to fetch
|
|
2097
2099
|
* @param {boolean} [params.paginate] set to true if you want to fetch orders with pagination
|
|
2098
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2100
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2099
2101
|
*/
|
|
2100
2102
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2101
2103
|
await this.loadMarkets();
|
|
@@ -2117,7 +2119,7 @@ export default class modetrade extends Exchange {
|
|
|
2117
2119
|
* @param {string} [params.side] 'buy' or 'sell'
|
|
2118
2120
|
* @param {int} params.until timestamp in ms of the latest order to fetch
|
|
2119
2121
|
* @param {boolean} [params.paginate] set to true if you want to fetch orders with pagination
|
|
2120
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2122
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2121
2123
|
*/
|
|
2122
2124
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2123
2125
|
await this.loadMarkets();
|
|
@@ -2134,7 +2136,7 @@ export default class modetrade extends Exchange {
|
|
|
2134
2136
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2135
2137
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
2136
2138
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2137
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
2139
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
2138
2140
|
*/
|
|
2139
2141
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2140
2142
|
await this.loadMarkets();
|
|
@@ -2182,7 +2184,7 @@ export default class modetrade extends Exchange {
|
|
|
2182
2184
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2183
2185
|
* @param {boolean} [params.paginate] set to true if you want to fetch trades with pagination
|
|
2184
2186
|
* @param {int} params.until timestamp in ms of the latest trade to fetch
|
|
2185
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
2187
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
2186
2188
|
*/
|
|
2187
2189
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2188
2190
|
await this.loadMarkets();
|
|
@@ -2259,7 +2261,7 @@ export default class modetrade extends Exchange {
|
|
|
2259
2261
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
2260
2262
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/get-current-holding
|
|
2261
2263
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2262
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
2264
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
2263
2265
|
*/
|
|
2264
2266
|
async fetchBalance(params = {}) {
|
|
2265
2267
|
await this.loadMarkets();
|
|
@@ -2373,7 +2375,7 @@ export default class modetrade extends Exchange {
|
|
|
2373
2375
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2374
2376
|
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
2375
2377
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2376
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
2378
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
2377
2379
|
*/
|
|
2378
2380
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2379
2381
|
const currencyRows = await this.getAssetHistoryRows(code, since, limit, params);
|
|
@@ -2434,7 +2436,7 @@ export default class modetrade extends Exchange {
|
|
|
2434
2436
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2435
2437
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2436
2438
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2437
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
2439
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2438
2440
|
*/
|
|
2439
2441
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2440
2442
|
const request = {
|
|
@@ -2451,7 +2453,7 @@ export default class modetrade extends Exchange {
|
|
|
2451
2453
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2452
2454
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2453
2455
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2454
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
2456
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2455
2457
|
*/
|
|
2456
2458
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2457
2459
|
const request = {
|
|
@@ -2468,7 +2470,7 @@ export default class modetrade extends Exchange {
|
|
|
2468
2470
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2469
2471
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2470
2472
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2471
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
2473
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2472
2474
|
*/
|
|
2473
2475
|
async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2474
2476
|
const request = {};
|
|
@@ -2525,7 +2527,7 @@ export default class modetrade extends Exchange {
|
|
|
2525
2527
|
* @param {string} address the address to withdraw to
|
|
2526
2528
|
* @param {string} tag
|
|
2527
2529
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2528
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
2530
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2529
2531
|
*/
|
|
2530
2532
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
2531
2533
|
await this.loadMarkets();
|
|
@@ -2612,7 +2614,7 @@ export default class modetrade extends Exchange {
|
|
|
2612
2614
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/get-account-information
|
|
2613
2615
|
* @param {string} symbol unified market symbol
|
|
2614
2616
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2615
|
-
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com
|
|
2617
|
+
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
2616
2618
|
*/
|
|
2617
2619
|
async fetchLeverage(symbol, params = {}) {
|
|
2618
2620
|
await this.loadMarkets();
|
|
@@ -2748,7 +2750,7 @@ export default class modetrade extends Exchange {
|
|
|
2748
2750
|
* @description fetch data on an open position
|
|
2749
2751
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
2750
2752
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2751
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
2753
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
2752
2754
|
*/
|
|
2753
2755
|
async fetchPosition(symbol, params = {}) {
|
|
2754
2756
|
await this.loadMarkets();
|
|
@@ -2793,7 +2795,7 @@ export default class modetrade extends Exchange {
|
|
|
2793
2795
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/get-all-positions-info
|
|
2794
2796
|
* @param {string[]} [symbols] list of unified market symbols
|
|
2795
2797
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2796
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
2798
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
2797
2799
|
*/
|
|
2798
2800
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
2799
2801
|
await this.loadMarkets();
|