ccxt 4.5.28 → 4.5.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -5
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/alpaca.js +21 -21
- package/dist/cjs/src/apex.js +20 -20
- package/dist/cjs/src/arkham.js +22 -22
- package/dist/cjs/src/ascendex.js +28 -28
- package/dist/cjs/src/backpack.js +22 -22
- package/dist/cjs/src/base/Exchange.js +48 -38
- package/dist/cjs/src/base/functions/throttle.js +54 -5
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +83 -82
- package/dist/cjs/src/bingx.js +46 -46
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +49 -48
- package/dist/cjs/src/bitbns.js +13 -13
- package/dist/cjs/src/bitfinex.js +33 -33
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitget.js +58 -57
- package/dist/cjs/src/bithumb.js +10 -10
- package/dist/cjs/src/bitmart.js +44 -44
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +20 -20
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +20 -20
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bittrade.js +20 -20
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/blofin.js +26 -26
- package/dist/cjs/src/btcalpha.js +35 -34
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +16 -16
- package/dist/cjs/src/btcturk.js +10 -10
- package/dist/cjs/src/bullish.js +26 -26
- package/dist/cjs/src/bybit.js +67 -67
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +40 -40
- package/dist/cjs/src/coinbaseexchange.js +22 -22
- package/dist/cjs/src/coinbaseinternational.js +22 -22
- package/dist/cjs/src/coincatch.js +39 -39
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +48 -48
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinmetro.js +14 -14
- package/dist/cjs/src/coinone.js +11 -11
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +32 -32
- package/dist/cjs/src/cryptomus.js +9 -9
- package/dist/cjs/src/deepcoin.js +33 -33
- package/dist/cjs/src/defx.js +23 -23
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +36 -36
- package/dist/cjs/src/derive.js +19 -19
- package/dist/cjs/src/digifinex.js +36 -36
- package/dist/cjs/src/dydx.js +22 -22
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +57 -57
- package/dist/cjs/src/gemini.js +16 -16
- package/dist/cjs/src/hashkey.js +35 -35
- package/dist/cjs/src/hibachi.js +24 -24
- package/dist/cjs/src/hitbtc.js +38 -38
- package/dist/cjs/src/hollaex.js +22 -22
- package/dist/cjs/src/htx.js +50 -50
- package/dist/cjs/src/hyperliquid.js +76 -42
- package/dist/cjs/src/independentreserve.js +13 -13
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +30 -30
- package/dist/cjs/src/krakenfutures.js +21 -21
- package/dist/cjs/src/kucoin.js +44 -44
- package/dist/cjs/src/kucoinfutures.js +42 -40
- package/dist/cjs/src/latoken.js +16 -16
- package/dist/cjs/src/lbank.js +23 -23
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/mercado.js +11 -11
- package/dist/cjs/src/mexc.js +47 -47
- package/dist/cjs/src/modetrade.js +37 -35
- package/dist/cjs/src/ndax.js +19 -19
- package/dist/cjs/src/novadax.js +19 -19
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okx.js +83 -83
- package/dist/cjs/src/onetrading.js +34 -33
- package/dist/cjs/src/oxfun.js +25 -25
- package/dist/cjs/src/p2b.js +11 -11
- package/dist/cjs/src/paradex.js +54 -54
- package/dist/cjs/src/paymium.js +20 -21
- package/dist/cjs/src/phemex.js +35 -35
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +8 -8
- package/dist/cjs/src/pro/arkham.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/backpack.js +16 -16
- package/dist/cjs/src/pro/binance.js +35 -35
- package/dist/cjs/src/pro/bingx.js +9 -9
- package/dist/cjs/src/pro/bitfinex.js +8 -8
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bithumb.js +3 -3
- package/dist/cjs/src/pro/bitmart.js +388 -31
- package/dist/cjs/src/pro/bitmex.js +9 -9
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrade.js +3 -3
- package/dist/cjs/src/pro/bitvavo.js +19 -19
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +10 -10
- package/dist/cjs/src/pro/bullish.js +6 -6
- package/dist/cjs/src/pro/bybit.js +19 -19
- package/dist/cjs/src/pro/cex.js +13 -13
- package/dist/cjs/src/pro/coinbase.js +13 -13
- package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
- package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
- package/dist/cjs/src/pro/coincatch.js +10 -10
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +10 -10
- package/dist/cjs/src/pro/coinone.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +20 -20
- package/dist/cjs/src/pro/deepcoin.js +8 -8
- package/dist/cjs/src/pro/defx.js +15 -15
- package/dist/cjs/src/pro/deribit.js +10 -10
- package/dist/cjs/src/pro/derive.js +6 -6
- package/dist/cjs/src/pro/dydx.js +3 -3
- package/dist/cjs/src/pro/exmo.js +7 -7
- package/dist/cjs/src/pro/gate.js +21 -59
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +6 -6
- package/dist/cjs/src/pro/hitbtc.js +8 -8
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +9 -9
- package/dist/cjs/src/pro/hyperliquid.js +103 -14
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +15 -15
- package/dist/cjs/src/pro/krakenfutures.js +10 -10
- package/dist/cjs/src/pro/kucoin.js +15 -15
- package/dist/cjs/src/pro/kucoinfutures.js +13 -13
- package/dist/cjs/src/pro/lbank.js +5 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +13 -13
- package/dist/cjs/src/pro/modetrade.js +8 -8
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okx.js +25 -25
- package/dist/cjs/src/pro/onetrading.js +6 -6
- package/dist/cjs/src/pro/oxfun.js +13 -13
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/paradex.js +8 -8
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +8 -8
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/toobit.js +9 -9
- package/dist/cjs/src/pro/upbit.js +9 -9
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +13 -13
- package/dist/cjs/src/pro/woofipro.js +20 -20
- package/dist/cjs/src/pro/xt.js +2 -2
- package/dist/cjs/src/probit.js +18 -18
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +17 -17
- package/dist/cjs/src/toobit.js +31 -29
- package/dist/cjs/src/upbit.js +23 -23
- package/dist/cjs/src/wavesexchange.js +86 -85
- package/dist/cjs/src/whitebit.js +44 -44
- package/dist/cjs/src/woo.js +51 -49
- package/dist/cjs/src/woofipro.js +104 -82
- package/dist/cjs/src/xt.js +17 -12
- package/dist/cjs/src/yobit.js +15 -15
- package/dist/cjs/src/zaif.js +38 -9
- package/dist/cjs/src/zebpay.js +35 -20
- package/dist/cjs/src/zonda.js +14 -14
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/alpaca.d.ts +21 -21
- package/js/src/alpaca.js +21 -21
- package/js/src/apex.d.ts +20 -20
- package/js/src/apex.js +20 -20
- package/js/src/arkham.d.ts +22 -22
- package/js/src/arkham.js +22 -22
- package/js/src/ascendex.d.ts +28 -28
- package/js/src/ascendex.js +28 -28
- package/js/src/backpack.d.ts +21 -21
- package/js/src/backpack.js +22 -22
- package/js/src/base/Exchange.d.ts +6 -3
- package/js/src/base/Exchange.js +48 -38
- package/js/src/base/functions/throttle.d.ts +22 -0
- package/js/src/base/functions/throttle.js +54 -5
- package/js/src/bigone.d.ts +19 -19
- package/js/src/bigone.js +19 -19
- package/js/src/binance.d.ts +82 -82
- package/js/src/binance.js +83 -82
- package/js/src/bingx.d.ts +46 -46
- package/js/src/bingx.js +46 -46
- package/js/src/bit2c.d.ts +11 -11
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.d.ts +12 -12
- package/js/src/bitbank.js +49 -48
- package/js/src/bitbns.d.ts +13 -13
- package/js/src/bitbns.js +13 -13
- package/js/src/bitfinex.d.ts +33 -33
- package/js/src/bitfinex.js +33 -33
- package/js/src/bitflyer.d.ts +17 -17
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitget.d.ts +57 -57
- package/js/src/bitget.js +58 -57
- package/js/src/bithumb.d.ts +10 -10
- package/js/src/bithumb.js +10 -10
- package/js/src/bitmart.d.ts +42 -42
- package/js/src/bitmart.js +44 -44
- package/js/src/bitmex.d.ts +24 -24
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.d.ts +20 -20
- package/js/src/bitopro.js +20 -20
- package/js/src/bitrue.d.ts +18 -18
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.d.ts +20 -20
- package/js/src/bitso.js +20 -20
- package/js/src/bitstamp.d.ts +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bittrade.d.ts +20 -20
- package/js/src/bittrade.js +20 -20
- package/js/src/bitvavo.d.ts +19 -19
- package/js/src/bitvavo.js +19 -19
- package/js/src/blockchaincom.d.ts +20 -20
- package/js/src/blockchaincom.js +20 -20
- package/js/src/blofin.d.ts +26 -26
- package/js/src/blofin.js +26 -26
- package/js/src/btcalpha.d.ts +14 -14
- package/js/src/btcalpha.js +35 -34
- package/js/src/btcbox.d.ts +10 -10
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.d.ts +16 -16
- package/js/src/btcmarkets.js +16 -16
- package/js/src/btcturk.d.ts +10 -10
- package/js/src/btcturk.js +10 -10
- package/js/src/bullish.d.ts +26 -26
- package/js/src/bullish.js +26 -26
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +67 -67
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +40 -40
- package/js/src/coinbase.js +40 -40
- package/js/src/coinbaseexchange.d.ts +22 -22
- package/js/src/coinbaseexchange.js +22 -22
- package/js/src/coinbaseinternational.d.ts +22 -22
- package/js/src/coinbaseinternational.js +22 -22
- package/js/src/coincatch.d.ts +39 -39
- package/js/src/coincatch.js +39 -39
- package/js/src/coincheck.d.ts +11 -11
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.d.ts +48 -48
- package/js/src/coinex.js +48 -48
- package/js/src/coinmate.d.ts +14 -14
- package/js/src/coinmate.js +14 -14
- package/js/src/coinmetro.d.ts +14 -14
- package/js/src/coinmetro.js +14 -14
- package/js/src/coinone.d.ts +11 -11
- package/js/src/coinone.js +11 -11
- package/js/src/coinsph.d.ts +20 -20
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.d.ts +8 -8
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.d.ts +32 -32
- package/js/src/cryptocom.js +32 -32
- package/js/src/cryptomus.d.ts +9 -9
- package/js/src/cryptomus.js +9 -9
- package/js/src/deepcoin.d.ts +33 -33
- package/js/src/deepcoin.js +33 -33
- package/js/src/defx.d.ts +23 -23
- package/js/src/defx.js +23 -23
- package/js/src/delta.d.ts +29 -29
- package/js/src/delta.js +29 -29
- package/js/src/deribit.d.ts +36 -36
- package/js/src/deribit.js +36 -36
- package/js/src/derive.d.ts +19 -19
- package/js/src/derive.js +19 -19
- package/js/src/digifinex.d.ts +36 -36
- package/js/src/digifinex.js +36 -36
- package/js/src/dydx.d.ts +22 -22
- package/js/src/dydx.js +22 -22
- package/js/src/exmo.d.ts +29 -29
- package/js/src/exmo.js +29 -29
- package/js/src/foxbit.d.ts +23 -23
- package/js/src/foxbit.js +23 -23
- package/js/src/gate.d.ts +57 -57
- package/js/src/gate.js +57 -57
- package/js/src/gemini.d.ts +16 -16
- package/js/src/gemini.js +16 -16
- package/js/src/hashkey.d.ts +35 -35
- package/js/src/hashkey.js +35 -35
- package/js/src/hibachi.d.ts +24 -24
- package/js/src/hibachi.js +24 -24
- package/js/src/hitbtc.d.ts +38 -38
- package/js/src/hitbtc.js +38 -38
- package/js/src/hollaex.d.ts +22 -22
- package/js/src/hollaex.js +22 -22
- package/js/src/htx.d.ts +50 -50
- package/js/src/htx.js +50 -50
- package/js/src/hyperliquid.d.ts +46 -36
- package/js/src/hyperliquid.js +76 -42
- package/js/src/independentreserve.d.ts +13 -13
- package/js/src/independentreserve.js +13 -13
- package/js/src/indodax.d.ts +14 -14
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.d.ts +30 -30
- package/js/src/kraken.js +30 -30
- package/js/src/krakenfutures.d.ts +21 -21
- package/js/src/krakenfutures.js +21 -21
- package/js/src/kucoin.d.ts +44 -44
- package/js/src/kucoin.js +44 -44
- package/js/src/kucoinfutures.d.ts +35 -35
- package/js/src/kucoinfutures.js +42 -40
- package/js/src/latoken.d.ts +16 -16
- package/js/src/latoken.js +16 -16
- package/js/src/lbank.d.ts +23 -23
- package/js/src/lbank.js +23 -23
- package/js/src/luno.d.ts +17 -17
- package/js/src/luno.js +17 -17
- package/js/src/mercado.d.ts +11 -11
- package/js/src/mercado.js +11 -11
- package/js/src/mexc.d.ts +47 -47
- package/js/src/mexc.js +47 -47
- package/js/src/modetrade.d.ts +31 -31
- package/js/src/modetrade.js +37 -35
- package/js/src/ndax.d.ts +19 -19
- package/js/src/ndax.js +19 -19
- package/js/src/novadax.d.ts +19 -19
- package/js/src/novadax.js +19 -19
- package/js/src/oceanex.d.ts +16 -16
- package/js/src/oceanex.js +16 -16
- package/js/src/okx.d.ts +74 -74
- package/js/src/okx.js +83 -83
- package/js/src/onetrading.d.ts +34 -33
- package/js/src/onetrading.js +34 -33
- package/js/src/oxfun.d.ts +25 -25
- package/js/src/oxfun.js +25 -25
- package/js/src/p2b.d.ts +11 -11
- package/js/src/p2b.js +11 -11
- package/js/src/paradex.d.ts +54 -54
- package/js/src/paradex.js +54 -54
- package/js/src/paymium.d.ts +20 -21
- package/js/src/paymium.js +20 -21
- package/js/src/phemex.d.ts +30 -30
- package/js/src/phemex.js +35 -35
- package/js/src/poloniex.d.ts +26 -26
- package/js/src/poloniex.js +27 -27
- package/js/src/pro/alpaca.d.ts +5 -5
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +8 -8
- package/js/src/pro/apex.js +8 -8
- package/js/src/pro/arkham.d.ts +5 -5
- package/js/src/pro/arkham.js +5 -5
- package/js/src/pro/ascendex.d.ts +5 -5
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/backpack.d.ts +16 -16
- package/js/src/pro/backpack.js +16 -16
- package/js/src/pro/binance.d.ts +35 -35
- package/js/src/pro/binance.js +35 -35
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +9 -9
- package/js/src/pro/bitfinex.d.ts +8 -8
- package/js/src/pro/bitfinex.js +8 -8
- package/js/src/pro/bitget.d.ts +12 -12
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bithumb.d.ts +3 -3
- package/js/src/pro/bithumb.js +3 -3
- package/js/src/pro/bitmart.d.ts +120 -9
- package/js/src/pro/bitmart.js +388 -31
- package/js/src/pro/bitmex.d.ts +9 -9
- package/js/src/pro/bitmex.js +9 -9
- package/js/src/pro/bitopro.d.ts +5 -5
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.d.ts +3 -3
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrade.d.ts +3 -3
- package/js/src/pro/bittrade.js +3 -3
- package/js/src/pro/bitvavo.d.ts +19 -19
- package/js/src/pro/bitvavo.js +19 -19
- package/js/src/pro/blockchaincom.d.ts +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +10 -10
- package/js/src/pro/blofin.js +10 -10
- package/js/src/pro/bullish.d.ts +6 -6
- package/js/src/pro/bullish.js +6 -6
- package/js/src/pro/bybit.d.ts +19 -19
- package/js/src/pro/bybit.js +19 -19
- package/js/src/pro/cex.d.ts +13 -13
- package/js/src/pro/cex.js +13 -13
- package/js/src/pro/coinbase.d.ts +13 -13
- package/js/src/pro/coinbase.js +13 -13
- package/js/src/pro/coinbaseexchange.d.ts +10 -10
- package/js/src/pro/coinbaseexchange.js +10 -10
- package/js/src/pro/coinbaseinternational.d.ts +8 -8
- package/js/src/pro/coinbaseinternational.js +8 -8
- package/js/src/pro/coincatch.d.ts +10 -10
- package/js/src/pro/coincatch.js +10 -10
- package/js/src/pro/coincheck.d.ts +2 -2
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +10 -10
- package/js/src/pro/coinex.js +10 -10
- package/js/src/pro/coinone.d.ts +3 -3
- package/js/src/pro/coinone.js +3 -3
- package/js/src/pro/cryptocom.d.ts +20 -20
- package/js/src/pro/cryptocom.js +20 -20
- package/js/src/pro/deepcoin.d.ts +8 -8
- package/js/src/pro/deepcoin.js +8 -8
- package/js/src/pro/defx.d.ts +15 -15
- package/js/src/pro/defx.js +15 -15
- package/js/src/pro/deribit.d.ts +10 -10
- package/js/src/pro/deribit.js +10 -10
- package/js/src/pro/derive.d.ts +6 -6
- package/js/src/pro/derive.js +6 -6
- package/js/src/pro/dydx.d.ts +3 -3
- package/js/src/pro/dydx.js +3 -3
- package/js/src/pro/exmo.d.ts +7 -7
- package/js/src/pro/exmo.js +7 -7
- package/js/src/pro/gate.d.ts +22 -23
- package/js/src/pro/gate.js +21 -59
- package/js/src/pro/gemini.d.ts +6 -6
- package/js/src/pro/gemini.js +6 -6
- package/js/src/pro/hashkey.d.ts +6 -6
- package/js/src/pro/hashkey.js +6 -6
- package/js/src/pro/hitbtc.d.ts +8 -8
- package/js/src/pro/hitbtc.js +8 -8
- package/js/src/pro/hollaex.d.ts +5 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.d.ts +9 -9
- package/js/src/pro/htx.js +9 -9
- package/js/src/pro/hyperliquid.d.ts +38 -14
- package/js/src/pro/hyperliquid.js +103 -14
- package/js/src/pro/independentreserve.d.ts +2 -2
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +15 -15
- package/js/src/pro/kraken.js +15 -15
- package/js/src/pro/krakenfutures.d.ts +10 -10
- package/js/src/pro/krakenfutures.js +10 -10
- package/js/src/pro/kucoin.d.ts +15 -15
- package/js/src/pro/kucoin.js +15 -15
- package/js/src/pro/kucoinfutures.d.ts +13 -13
- package/js/src/pro/kucoinfutures.js +13 -13
- package/js/src/pro/lbank.d.ts +5 -5
- package/js/src/pro/lbank.js +5 -5
- package/js/src/pro/luno.d.ts +2 -2
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +13 -13
- package/js/src/pro/mexc.js +13 -13
- package/js/src/pro/modetrade.d.ts +8 -8
- package/js/src/pro/modetrade.js +8 -8
- package/js/src/pro/ndax.d.ts +3 -3
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okx.d.ts +25 -25
- package/js/src/pro/okx.js +25 -25
- package/js/src/pro/onetrading.d.ts +6 -6
- package/js/src/pro/onetrading.js +6 -6
- package/js/src/pro/oxfun.d.ts +13 -13
- package/js/src/pro/oxfun.js +13 -13
- package/js/src/pro/p2b.d.ts +5 -5
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/paradex.d.ts +8 -8
- package/js/src/pro/paradex.js +8 -8
- package/js/src/pro/phemex.d.ts +7 -7
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.d.ts +8 -8
- package/js/src/pro/poloniex.js +8 -8
- package/js/src/pro/probit.d.ts +6 -6
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/toobit.d.ts +9 -9
- package/js/src/pro/toobit.js +9 -9
- package/js/src/pro/upbit.d.ts +9 -9
- package/js/src/pro/upbit.js +9 -9
- package/js/src/pro/whitebit.d.ts +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.d.ts +13 -13
- package/js/src/pro/woo.js +13 -13
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +20 -20
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +2 -2
- package/js/src/probit.d.ts +18 -18
- package/js/src/probit.js +18 -18
- package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
- package/js/src/static_dependencies/ethers/utils/index.js +8 -1
- package/js/src/timex.d.ts +16 -16
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.d.ts +17 -17
- package/js/src/tokocrypto.js +17 -17
- package/js/src/toobit.d.ts +27 -27
- package/js/src/toobit.js +31 -29
- package/js/src/upbit.d.ts +23 -23
- package/js/src/upbit.js +23 -23
- package/js/src/wavesexchange.d.ts +15 -15
- package/js/src/wavesexchange.js +86 -85
- package/js/src/whitebit.d.ts +44 -44
- package/js/src/whitebit.js +44 -44
- package/js/src/woo.d.ts +45 -45
- package/js/src/woo.js +51 -49
- package/js/src/woofipro.d.ts +77 -77
- package/js/src/woofipro.js +104 -82
- package/js/src/xt.d.ts +12 -12
- package/js/src/xt.js +17 -12
- package/js/src/yobit.d.ts +15 -15
- package/js/src/yobit.js +15 -15
- package/js/src/zaif.d.ts +9 -9
- package/js/src/zaif.js +38 -9
- package/js/src/zebpay.d.ts +20 -20
- package/js/src/zebpay.js +35 -20
- package/js/src/zonda.d.ts +14 -14
- package/js/src/zonda.js +14 -14
- package/package.json +1 -1
package/js/src/phemex.js
CHANGED
|
@@ -1214,7 +1214,7 @@ export default class phemex extends Exchange {
|
|
|
1214
1214
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1215
1215
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1216
1216
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1217
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
1217
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
1218
1218
|
*/
|
|
1219
1219
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1220
1220
|
await this.loadMarkets();
|
|
@@ -1532,7 +1532,7 @@ export default class phemex extends Exchange {
|
|
|
1532
1532
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#query24hrsticker
|
|
1533
1533
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1534
1534
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1535
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
1535
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1536
1536
|
*/
|
|
1537
1537
|
async fetchTicker(symbol, params = {}) {
|
|
1538
1538
|
await this.loadMarkets();
|
|
@@ -1609,7 +1609,7 @@ export default class phemex extends Exchange {
|
|
|
1609
1609
|
* @see https://phemex-docs.github.io/#query-24-hours-ticker-for-all-symbols // inverse
|
|
1610
1610
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1611
1611
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1612
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
1612
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1613
1613
|
*/
|
|
1614
1614
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
1615
1615
|
await this.loadMarkets();
|
|
@@ -1645,7 +1645,7 @@ export default class phemex extends Exchange {
|
|
|
1645
1645
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1646
1646
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1647
1647
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1648
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1648
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
1649
1649
|
*/
|
|
1650
1650
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1651
1651
|
await this.loadMarkets();
|
|
@@ -2096,7 +2096,7 @@ export default class phemex extends Exchange {
|
|
|
2096
2096
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2097
2097
|
* @param {string} [params.type] spot or swap
|
|
2098
2098
|
* @param {string} [params.code] *swap only* currency code of the balance to query (USD, USDT, etc), default is USDT
|
|
2099
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
2099
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
2100
2100
|
*/
|
|
2101
2101
|
async fetchBalance(params = {}) {
|
|
2102
2102
|
await this.loadMarkets();
|
|
@@ -2636,7 +2636,7 @@ export default class phemex extends Exchange {
|
|
|
2636
2636
|
* @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
|
|
2637
2637
|
* @param {string} [params.posSide] *swap only* "Merged" for one way mode, "Long" for buy side of hedged mode, "Short" for sell side of hedged mode
|
|
2638
2638
|
* @param {bool} [params.hedged] *swap only* true for hedged mode, false for one way mode, default is false
|
|
2639
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2639
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2640
2640
|
*/
|
|
2641
2641
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
2642
2642
|
await this.loadMarkets();
|
|
@@ -2673,9 +2673,9 @@ export default class phemex extends Exchange {
|
|
|
2673
2673
|
};
|
|
2674
2674
|
const clientOrderId = this.safeString2(params, 'clOrdID', 'clientOrderId');
|
|
2675
2675
|
const stopLoss = this.safeValue(params, 'stopLoss');
|
|
2676
|
-
const stopLossDefined = (stopLoss !== undefined);
|
|
2677
2676
|
const takeProfit = this.safeValue(params, 'takeProfit');
|
|
2678
|
-
const
|
|
2677
|
+
const hasStopLoss = (stopLoss !== undefined);
|
|
2678
|
+
const hasTakeProfit = (takeProfit !== undefined);
|
|
2679
2679
|
const isStableSettled = (market['settle'] === 'USDT') || (market['settle'] === 'USDC');
|
|
2680
2680
|
if (clientOrderId === undefined) {
|
|
2681
2681
|
const brokerId = this.safeString(this.options, 'brokerId', 'CCXT123456');
|
|
@@ -2789,8 +2789,8 @@ export default class phemex extends Exchange {
|
|
|
2789
2789
|
}
|
|
2790
2790
|
}
|
|
2791
2791
|
}
|
|
2792
|
-
if (
|
|
2793
|
-
if (
|
|
2792
|
+
if (hasStopLoss || hasTakeProfit) {
|
|
2793
|
+
if (hasStopLoss) {
|
|
2794
2794
|
const stopLossTriggerPrice = this.safeValue2(stopLoss, 'triggerPrice', 'stopPrice');
|
|
2795
2795
|
if (stopLossTriggerPrice === undefined) {
|
|
2796
2796
|
throw new InvalidOrder(this.id + ' createOrder() requires a trigger price in params["stopLoss"]["triggerPrice"] for a stop loss order');
|
|
@@ -2810,7 +2810,7 @@ export default class phemex extends Exchange {
|
|
|
2810
2810
|
request['slPxRp'] = this.priceToPrecision(symbol, slLimitPrice);
|
|
2811
2811
|
}
|
|
2812
2812
|
}
|
|
2813
|
-
if (
|
|
2813
|
+
if (hasTakeProfit) {
|
|
2814
2814
|
const takeProfitTriggerPrice = this.safeValue2(takeProfit, 'triggerPrice', 'stopPrice');
|
|
2815
2815
|
if (takeProfitTriggerPrice === undefined) {
|
|
2816
2816
|
throw new InvalidOrder(this.id + ' createOrder() requires a trigger price in params["takeProfit"]["triggerPrice"] for a take profit order');
|
|
@@ -2963,7 +2963,7 @@ export default class phemex extends Exchange {
|
|
|
2963
2963
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
2964
2964
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2965
2965
|
* @param {string} [params.posSide] either 'Merged' or 'Long' or 'Short'
|
|
2966
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2966
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2967
2967
|
*/
|
|
2968
2968
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
2969
2969
|
await this.loadMarkets();
|
|
@@ -3038,7 +3038,7 @@ export default class phemex extends Exchange {
|
|
|
3038
3038
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
3039
3039
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3040
3040
|
* @param {string} [params.posSide] either 'Merged' or 'Long' or 'Short'
|
|
3041
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
3041
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3042
3042
|
*/
|
|
3043
3043
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
3044
3044
|
if (symbol === undefined) {
|
|
@@ -3081,7 +3081,7 @@ export default class phemex extends Exchange {
|
|
|
3081
3081
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#cancelall
|
|
3082
3082
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
3083
3083
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3084
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
3084
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3085
3085
|
*/
|
|
3086
3086
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
3087
3087
|
if (symbol === undefined) {
|
|
@@ -3146,7 +3146,7 @@ export default class phemex extends Exchange {
|
|
|
3146
3146
|
* @param {string} id the order id
|
|
3147
3147
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
3148
3148
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3149
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
3149
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3150
3150
|
*/
|
|
3151
3151
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
3152
3152
|
if (symbol === undefined) {
|
|
@@ -3204,7 +3204,7 @@ export default class phemex extends Exchange {
|
|
|
3204
3204
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
3205
3205
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
3206
3206
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3207
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
3207
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3208
3208
|
*/
|
|
3209
3209
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3210
3210
|
if (symbol === undefined) {
|
|
@@ -3247,7 +3247,7 @@ export default class phemex extends Exchange {
|
|
|
3247
3247
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
3248
3248
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
3249
3249
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3250
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
3250
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3251
3251
|
*/
|
|
3252
3252
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3253
3253
|
await this.loadMarkets();
|
|
@@ -3299,7 +3299,7 @@ export default class phemex extends Exchange {
|
|
|
3299
3299
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
3300
3300
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3301
3301
|
* @param {string} [params.settle] the settlement currency to fetch orders for
|
|
3302
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
3302
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3303
3303
|
*/
|
|
3304
3304
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3305
3305
|
await this.loadMarkets();
|
|
@@ -3384,7 +3384,7 @@ export default class phemex extends Exchange {
|
|
|
3384
3384
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3385
3385
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
3386
3386
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3387
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
3387
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
3388
3388
|
*/
|
|
3389
3389
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3390
3390
|
await this.loadMarkets();
|
|
@@ -3545,7 +3545,7 @@ export default class phemex extends Exchange {
|
|
|
3545
3545
|
* @param {string} code unified currency code
|
|
3546
3546
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3547
3547
|
* @param {string} [params.network] the chain name to fetch the deposit address e.g. ETH, TRX, EOS, SOL, etc.
|
|
3548
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
3548
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
3549
3549
|
*/
|
|
3550
3550
|
async fetchDepositAddress(code, params = {}) {
|
|
3551
3551
|
await this.loadMarkets();
|
|
@@ -3601,7 +3601,7 @@ export default class phemex extends Exchange {
|
|
|
3601
3601
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
3602
3602
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
3603
3603
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3604
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
3604
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
3605
3605
|
*/
|
|
3606
3606
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3607
3607
|
await this.loadMarkets();
|
|
@@ -3641,7 +3641,7 @@ export default class phemex extends Exchange {
|
|
|
3641
3641
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
3642
3642
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
3643
3643
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3644
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
3644
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
3645
3645
|
*/
|
|
3646
3646
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3647
3647
|
await this.loadMarkets();
|
|
@@ -3822,7 +3822,7 @@ export default class phemex extends Exchange {
|
|
|
3822
3822
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3823
3823
|
* @param {string} [params.code] the currency code to fetch positions for, USD, BTC or USDT, USDT is the default
|
|
3824
3824
|
* @param {string} [params.method] *USDT contracts only* 'privateGetGAccountsAccountPositions' or 'privateGetGAccountsAccountPositions' default is 'privateGetGAccountsAccountPositions'
|
|
3825
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
3825
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
3826
3826
|
*/
|
|
3827
3827
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
3828
3828
|
await this.loadMarkets();
|
|
@@ -4115,7 +4115,7 @@ export default class phemex extends Exchange {
|
|
|
4115
4115
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
4116
4116
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
4117
4117
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4118
|
-
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com
|
|
4118
|
+
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
4119
4119
|
*/
|
|
4120
4120
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
4121
4121
|
if (symbol === undefined) {
|
|
@@ -4204,7 +4204,7 @@ export default class phemex extends Exchange {
|
|
|
4204
4204
|
* @description fetch the current funding rate
|
|
4205
4205
|
* @param {string} symbol unified market symbol
|
|
4206
4206
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4207
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
4207
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
4208
4208
|
*/
|
|
4209
4209
|
async fetchFundingRate(symbol, params = {}) {
|
|
4210
4210
|
await this.loadMarkets();
|
|
@@ -4322,7 +4322,7 @@ export default class phemex extends Exchange {
|
|
|
4322
4322
|
* @param {string} symbol unified market symbol of the market to set margin in
|
|
4323
4323
|
* @param {float} amount the amount to set the margin to
|
|
4324
4324
|
* @param {object} [params] parameters specific to the exchange API endpoint
|
|
4325
|
-
* @returns {object} A [margin structure]{@link https://docs.ccxt.com
|
|
4325
|
+
* @returns {object} A [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
|
|
4326
4326
|
*/
|
|
4327
4327
|
async setMargin(symbol, amount, params = {}) {
|
|
4328
4328
|
await this.loadMarkets();
|
|
@@ -4452,7 +4452,7 @@ export default class phemex extends Exchange {
|
|
|
4452
4452
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
4453
4453
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
4454
4454
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4455
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com
|
|
4455
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols
|
|
4456
4456
|
*/
|
|
4457
4457
|
async fetchLeverageTiers(symbols = undefined, params = {}) {
|
|
4458
4458
|
await this.loadMarkets();
|
|
@@ -4685,7 +4685,7 @@ export default class phemex extends Exchange {
|
|
|
4685
4685
|
* @param {string} toAccount account to transfer to
|
|
4686
4686
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4687
4687
|
* @param {string} [params.bizType] for transferring between main and sub-acounts either 'SPOT' or 'PERPETUAL' default is 'SPOT'
|
|
4688
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
4688
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
4689
4689
|
*/
|
|
4690
4690
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
4691
4691
|
await this.loadMarkets();
|
|
@@ -4771,7 +4771,7 @@ export default class phemex extends Exchange {
|
|
|
4771
4771
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
4772
4772
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
4773
4773
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4774
|
-
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com
|
|
4774
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
4775
4775
|
*/
|
|
4776
4776
|
async fetchTransfers(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
4777
4777
|
await this.loadMarkets();
|
|
@@ -4885,11 +4885,11 @@ export default class phemex extends Exchange {
|
|
|
4885
4885
|
* @see https://phemex-docs.github.io/#query-funding-rate-history-2
|
|
4886
4886
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
4887
4887
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
4888
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com
|
|
4888
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
4889
4889
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4890
4890
|
* @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)
|
|
4891
4891
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
4892
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
4892
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
4893
4893
|
*/
|
|
4894
4894
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
4895
4895
|
if (symbol === undefined) {
|
|
@@ -5043,7 +5043,7 @@ export default class phemex extends Exchange {
|
|
|
5043
5043
|
* @see https://phemex-docs.github.io/#query-24-hours-ticker
|
|
5044
5044
|
* @param {string} symbol unified CCXT market symbol
|
|
5045
5045
|
* @param {object} [params] exchange specific parameters
|
|
5046
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com
|
|
5046
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
5047
5047
|
*/
|
|
5048
5048
|
async fetchOpenInterest(symbol, params = {}) {
|
|
5049
5049
|
await this.loadMarkets();
|
|
@@ -5119,7 +5119,7 @@ export default class phemex extends Exchange {
|
|
|
5119
5119
|
* @param {string} toCode the currency that you want to buy and convert into
|
|
5120
5120
|
* @param {float} amount how much you want to trade in units of the from currency
|
|
5121
5121
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5122
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
5122
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
5123
5123
|
*/
|
|
5124
5124
|
async fetchConvertQuote(fromCode, toCode, amount = undefined, params = {}) {
|
|
5125
5125
|
await this.loadMarkets();
|
|
@@ -5163,7 +5163,7 @@ export default class phemex extends Exchange {
|
|
|
5163
5163
|
* @param {string} toCode the currency that you want to buy and convert into
|
|
5164
5164
|
* @param {float} [amount] how much you want to trade in units of the from currency
|
|
5165
5165
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5166
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
5166
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
5167
5167
|
*/
|
|
5168
5168
|
async createConvertTrade(id, fromCode, toCode, amount = undefined, params = {}) {
|
|
5169
5169
|
await this.loadMarkets();
|
|
@@ -5213,7 +5213,7 @@ export default class phemex extends Exchange {
|
|
|
5213
5213
|
* @param {string} [params.until] the end time in ms
|
|
5214
5214
|
* @param {string} [params.fromCurrency] the currency that you sold and converted from
|
|
5215
5215
|
* @param {string} [params.toCurrency] the currency that you bought and converted into
|
|
5216
|
-
* @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com
|
|
5216
|
+
* @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
5217
5217
|
*/
|
|
5218
5218
|
async fetchConvertTradeHistory(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5219
5219
|
await this.loadMarkets();
|
package/js/src/poloniex.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export default class poloniex extends Exchange {
|
|
|
57
57
|
* @see https://api-docs.poloniex.com/v3/futures/api/market/get-market-info
|
|
58
58
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
59
59
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
60
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
60
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
61
61
|
*/
|
|
62
62
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
63
63
|
/**
|
|
@@ -77,7 +77,7 @@ export default class poloniex extends Exchange {
|
|
|
77
77
|
* @see https://api-docs.poloniex.com/v3/futures/api/market/get-market-info
|
|
78
78
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
79
79
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
80
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
80
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
81
81
|
*/
|
|
82
82
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
83
83
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
@@ -91,7 +91,7 @@ export default class poloniex extends Exchange {
|
|
|
91
91
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
92
92
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
93
93
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
94
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
94
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
95
95
|
*/
|
|
96
96
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
97
97
|
/**
|
|
@@ -106,7 +106,7 @@ export default class poloniex extends Exchange {
|
|
|
106
106
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
107
107
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
108
108
|
* @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)
|
|
109
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
109
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
110
110
|
*/
|
|
111
111
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
112
112
|
parseOrderStatus(status: Str): string;
|
|
@@ -125,7 +125,7 @@ export default class poloniex extends Exchange {
|
|
|
125
125
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
126
126
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
127
127
|
* @param {boolean} [params.trigger] set true to fetch trigger orders instead of regular orders
|
|
128
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
128
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
129
129
|
*/
|
|
130
130
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
131
131
|
/**
|
|
@@ -138,7 +138,7 @@ export default class poloniex extends Exchange {
|
|
|
138
138
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
139
139
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
140
140
|
* @param {int} [params.until] timestamp in ms of the latest entry
|
|
141
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
141
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
142
142
|
*/
|
|
143
143
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
144
144
|
/**
|
|
@@ -155,7 +155,7 @@ export default class poloniex extends Exchange {
|
|
|
155
155
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
156
156
|
* @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
157
157
|
* @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
|
|
158
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
158
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
159
159
|
*/
|
|
160
160
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
161
161
|
orderRequest(symbol: any, type: any, side: any, amount: any, request: any, price?: any, params?: {}): any[];
|
|
@@ -173,7 +173,7 @@ export default class poloniex extends Exchange {
|
|
|
173
173
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
174
174
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
175
175
|
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
176
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
176
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
177
177
|
*/
|
|
178
178
|
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
179
179
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
@@ -187,7 +187,7 @@ export default class poloniex extends Exchange {
|
|
|
187
187
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
188
188
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
189
189
|
* @param {boolean} [params.trigger] true if canceling trigger orders
|
|
190
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
190
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
191
191
|
*/
|
|
192
192
|
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
193
193
|
/**
|
|
@@ -200,7 +200,7 @@ export default class poloniex extends Exchange {
|
|
|
200
200
|
* @param {string} symbol unified market symbol, default is undefined
|
|
201
201
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
202
202
|
* @param {boolean} [params.trigger] true if fetching a trigger order
|
|
203
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
203
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
204
204
|
*/
|
|
205
205
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
206
206
|
fetchOrderStatus(id: string, symbol?: Str, params?: {}): Promise<"open" | "closed">;
|
|
@@ -214,7 +214,7 @@ export default class poloniex extends Exchange {
|
|
|
214
214
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
215
215
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
216
216
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
217
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
217
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
218
218
|
*/
|
|
219
219
|
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
220
220
|
parseBalance(response: any): Balances;
|
|
@@ -225,7 +225,7 @@ export default class poloniex extends Exchange {
|
|
|
225
225
|
* @see https://api-docs.poloniex.com/spot/api/private/account#all-account-balances
|
|
226
226
|
* @see https://api-docs.poloniex.com/v3/futures/api/account/balance
|
|
227
227
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
228
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
228
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
229
229
|
*/
|
|
230
230
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
231
231
|
/**
|
|
@@ -234,7 +234,7 @@ export default class poloniex extends Exchange {
|
|
|
234
234
|
* @description fetch the trading fees for multiple markets
|
|
235
235
|
* @see https://api-docs.poloniex.com/spot/api/private/account#fee-info
|
|
236
236
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
237
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
237
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
238
238
|
*/
|
|
239
239
|
fetchTradingFees(params?: {}): Promise<TradingFees>;
|
|
240
240
|
/**
|
|
@@ -246,7 +246,7 @@ export default class poloniex extends Exchange {
|
|
|
246
246
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
247
247
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
248
248
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
249
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
249
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
250
250
|
*/
|
|
251
251
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
252
252
|
/**
|
|
@@ -256,7 +256,7 @@ export default class poloniex extends Exchange {
|
|
|
256
256
|
* @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
|
|
257
257
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
258
258
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
259
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
259
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
260
260
|
*/
|
|
261
261
|
createDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
262
262
|
/**
|
|
@@ -266,7 +266,7 @@ export default class poloniex extends Exchange {
|
|
|
266
266
|
* @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
|
|
267
267
|
* @param {string} code unified currency code
|
|
268
268
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
269
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
269
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
270
270
|
*/
|
|
271
271
|
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
272
272
|
prepareRequestForDepositAddress(code: string, params?: Dict): any;
|
|
@@ -281,7 +281,7 @@ export default class poloniex extends Exchange {
|
|
|
281
281
|
* @param {string} fromAccount account to transfer from
|
|
282
282
|
* @param {string} toAccount account to transfer to
|
|
283
283
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
284
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
284
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
285
285
|
*/
|
|
286
286
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
287
287
|
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
@@ -295,7 +295,7 @@ export default class poloniex extends Exchange {
|
|
|
295
295
|
* @param {string} address the address to withdraw to
|
|
296
296
|
* @param {string} tag
|
|
297
297
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
298
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
298
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
299
299
|
*/
|
|
300
300
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
301
301
|
fetchTransactionsHelper(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
@@ -308,7 +308,7 @@ export default class poloniex extends Exchange {
|
|
|
308
308
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
309
309
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
310
310
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
311
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
311
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
312
312
|
*/
|
|
313
313
|
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
314
314
|
/**
|
|
@@ -320,7 +320,7 @@ export default class poloniex extends Exchange {
|
|
|
320
320
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
321
321
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
322
322
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
323
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
323
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
324
324
|
*/
|
|
325
325
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
326
326
|
/**
|
|
@@ -330,7 +330,7 @@ export default class poloniex extends Exchange {
|
|
|
330
330
|
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
|
|
331
331
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
332
332
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
333
|
-
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com
|
|
333
|
+
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
334
334
|
*/
|
|
335
335
|
fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<Dict>;
|
|
336
336
|
parseDepositWithdrawFees(response: any, codes?: any, currencyIdKey?: any): Dict;
|
|
@@ -344,7 +344,7 @@ export default class poloniex extends Exchange {
|
|
|
344
344
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
345
345
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
346
346
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
347
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
347
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
348
348
|
*/
|
|
349
349
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
350
350
|
parseTransactionStatus(status: Str): string;
|
|
@@ -368,7 +368,7 @@ export default class poloniex extends Exchange {
|
|
|
368
368
|
* @see https://api-docs.poloniex.com/v3/futures/api/positions/get-leverages
|
|
369
369
|
* @param {string} symbol unified market symbol
|
|
370
370
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
371
|
-
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com
|
|
371
|
+
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
372
372
|
*/
|
|
373
373
|
fetchLeverage(symbol: string, params?: {}): Promise<Leverage>;
|
|
374
374
|
parseLeverage(leverage: Dict, market?: Market): Leverage;
|
|
@@ -404,7 +404,7 @@ export default class poloniex extends Exchange {
|
|
|
404
404
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
405
405
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
406
406
|
* @param {boolean} [params.standard] whether to fetch standard contract positions
|
|
407
|
-
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com
|
|
407
|
+
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
408
408
|
*/
|
|
409
409
|
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
410
410
|
parsePosition(position: Dict, market?: Market): Position;
|
|
@@ -417,7 +417,7 @@ export default class poloniex extends Exchange {
|
|
|
417
417
|
* @param {string} symbol unified market symbol
|
|
418
418
|
* @param {float} amount the amount of margin to remove
|
|
419
419
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
420
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
420
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=reduce-margin-structure}
|
|
421
421
|
*/
|
|
422
422
|
reduceMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
|
|
423
423
|
/**
|
|
@@ -427,7 +427,7 @@ export default class poloniex extends Exchange {
|
|
|
427
427
|
* @param {string} symbol unified market symbol
|
|
428
428
|
* @param {float} amount amount of margin to add
|
|
429
429
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
430
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
430
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
|
|
431
431
|
*/
|
|
432
432
|
addMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
|
|
433
433
|
nonce(): number;
|