ccxt 4.5.82 → 4.5.83
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 +5 -4
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +3 -1
- package/dist/cjs/src/abstract/prediction/sxbet.js +11 -0
- package/dist/cjs/src/apex.js +1 -0
- package/dist/cjs/src/aster.js +2 -2
- package/dist/cjs/src/base/Exchange.js +1 -1
- package/dist/cjs/src/bigone.js +2 -2
- package/dist/cjs/src/binance.js +10 -10
- package/dist/cjs/src/bingx.js +3 -3
- package/dist/cjs/src/bit2c.js +4 -4
- package/dist/cjs/src/bitbank.js +15 -15
- package/dist/cjs/src/bitfinex.js +15 -15
- package/dist/cjs/src/bitget.js +109 -73
- package/dist/cjs/src/bitmex.js +7 -7
- package/dist/cjs/src/bitopro.js +2 -2
- package/dist/cjs/src/bitrue.js +6 -6
- package/dist/cjs/src/bitso.js +18 -18
- package/dist/cjs/src/bitstamp.js +5 -5
- package/dist/cjs/src/bitteam.js +32 -32
- package/dist/cjs/src/bittrade.js +10 -10
- package/dist/cjs/src/bitvavo.js +9 -9
- package/dist/cjs/src/blockchaincom.js +2 -2
- package/dist/cjs/src/btcbox.js +2 -2
- package/dist/cjs/src/btcmarkets.js +2 -2
- package/dist/cjs/src/btcturk.js +2 -2
- package/dist/cjs/src/btse.js +2 -2
- package/dist/cjs/src/bybitid.js +4 -0
- package/dist/cjs/src/coinbase.js +1 -1
- package/dist/cjs/src/coinbaseexchange.js +13 -13
- package/dist/cjs/src/coincheck.js +4 -4
- package/dist/cjs/src/coinex.js +10 -10
- package/dist/cjs/src/coinmate.js +4 -4
- package/dist/cjs/src/coinone.js +4 -4
- package/dist/cjs/src/coinsph.js +5 -5
- package/dist/cjs/src/cryptocom.js +5 -5
- package/dist/cjs/src/deribit.js +31 -31
- package/dist/cjs/src/derive.js +1 -1
- package/dist/cjs/src/digifinex.js +31 -31
- package/dist/cjs/src/gate.js +25 -25
- package/dist/cjs/src/gemini.js +5 -5
- package/dist/cjs/src/grvt.js +1 -1
- package/dist/cjs/src/hibachi.js +5 -5
- package/dist/cjs/src/hitbtc.js +15 -15
- package/dist/cjs/src/hollaex.js +15 -15
- package/dist/cjs/src/htx.js +52 -52
- package/dist/cjs/src/hyperliquid.js +2 -2
- package/dist/cjs/src/independentreserve.js +2 -2
- package/dist/cjs/src/indodax.js +8 -8
- package/dist/cjs/src/kraken.js +29 -29
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +15 -15
- package/dist/cjs/src/latoken.js +8 -8
- package/dist/cjs/src/lbank.js +31 -31
- package/dist/cjs/src/lighter.js +2 -2
- package/dist/cjs/src/luno.js +2 -2
- package/dist/cjs/src/mercado.js +12 -12
- package/dist/cjs/src/mexc.js +27 -27
- package/dist/cjs/src/modetrade.js +10 -10
- package/dist/cjs/src/ndax.js +4 -4
- package/dist/cjs/src/okx.js +19 -20
- package/dist/cjs/src/onetrading.js +7 -7
- package/dist/cjs/src/p2b.js +8 -8
- package/dist/cjs/src/pacifica.js +9 -3
- package/dist/cjs/src/paymium.js +2 -2
- package/dist/cjs/src/phemex.js +37 -37
- package/dist/cjs/src/poloniex.js +14 -14
- package/dist/cjs/src/prediction/sxbet.js +2710 -0
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +6 -6
- package/dist/cjs/src/pro/aster.js +8 -8
- package/dist/cjs/src/pro/backpack.js +1 -1
- package/dist/cjs/src/pro/binance.js +26 -26
- package/dist/cjs/src/pro/bingx.js +11 -11
- package/dist/cjs/src/pro/bitfinex.js +11 -11
- package/dist/cjs/src/pro/bitget.js +20 -20
- package/dist/cjs/src/pro/bithumb.js +1 -1
- package/dist/cjs/src/pro/bitmex.js +12 -12
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +7 -7
- package/dist/cjs/src/pro/bitstamp.js +5 -5
- package/dist/cjs/src/pro/bittrade.js +11 -11
- package/dist/cjs/src/pro/bitvavo.js +16 -16
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +2 -2
- package/dist/cjs/src/pro/bybit.js +21 -21
- package/dist/cjs/src/pro/bydfi.js +2 -2
- package/dist/cjs/src/pro/cex.js +19 -19
- package/dist/cjs/src/pro/coinbase.js +2 -2
- package/dist/cjs/src/pro/coinbaseexchange.js +9 -9
- package/dist/cjs/src/pro/coinbaseinternational.js +2 -2
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/coinone.js +6 -6
- package/dist/cjs/src/pro/cryptocom.js +10 -10
- package/dist/cjs/src/pro/deribit.js +13 -13
- package/dist/cjs/src/pro/derive.js +4 -4
- package/dist/cjs/src/pro/dydx.js +1 -1
- package/dist/cjs/src/pro/extended.js +16 -10
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/grvt.js +2 -2
- package/dist/cjs/src/pro/hashkey.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +6 -6
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/htx.js +28 -28
- package/dist/cjs/src/pro/hyperliquid.js +1 -1
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +7 -7
- package/dist/cjs/src/pro/krakenfutures.js +12 -12
- package/dist/cjs/src/pro/kucoin.js +12 -12
- package/dist/cjs/src/pro/lbank.js +16 -16
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +8 -8
- package/dist/cjs/src/pro/modetrade.js +3 -3
- package/dist/cjs/src/pro/mudrex.js +2 -2
- package/dist/cjs/src/pro/nado.js +3 -3
- package/dist/cjs/src/pro/ndax.js +6 -6
- package/dist/cjs/src/pro/okx.js +20 -20
- package/dist/cjs/src/pro/onetrading.js +14 -14
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/pacifica.js +1 -1
- package/dist/cjs/src/pro/paradex.js +1 -1
- package/dist/cjs/src/pro/phemex.js +13 -13
- package/dist/cjs/src/pro/poloniex.js +17 -17
- package/dist/cjs/src/pro/toobit.js +2 -2
- package/dist/cjs/src/pro/upbit.js +4 -4
- package/dist/cjs/src/pro/weex.js +2 -2
- package/dist/cjs/src/pro/whitebit.js +12 -12
- package/dist/cjs/src/pro/woo.js +13 -13
- package/dist/cjs/src/pro/woofipro.js +3 -3
- package/dist/cjs/src/pro/xt.js +3 -3
- package/dist/cjs/src/tokocrypto.js +20 -20
- package/dist/cjs/src/upbit.js +12 -12
- package/dist/cjs/src/whitebit.js +15 -15
- package/dist/cjs/src/woo.js +3 -3
- package/dist/cjs/src/woofipro.js +14 -14
- package/dist/cjs/src/zaif.js +9 -3
- package/dist/cjs/src/zebpay.js +1 -1
- package/js/ccxt.d.ts +4 -1
- package/js/ccxt.js +3 -1
- package/js/src/abstract/prediction/sxbet.d.ts +41 -0
- package/js/src/abstract/prediction/sxbet.js +11 -0
- package/js/src/alpaca.d.ts +28 -33
- package/js/src/apex.d.ts +28 -42
- package/js/src/apex.js +1 -0
- package/js/src/aster.d.ts +58 -108
- package/js/src/aster.js +2 -2
- package/js/src/backpack.d.ts +34 -48
- package/js/src/base/Exchange.d.ts +304 -320
- package/js/src/base/Exchange.js +1 -1
- package/js/src/bigone.d.ts +24 -29
- package/js/src/bigone.js +2 -2
- package/js/src/binance.d.ts +112 -138
- package/js/src/binance.js +10 -10
- package/js/src/binancecoinm.d.ts +3 -2
- package/js/src/binanceusdm.d.ts +3 -2
- package/js/src/bingx.d.ts +65 -84
- package/js/src/bingx.js +3 -3
- package/js/src/bit2c.d.ts +13 -18
- package/js/src/bit2c.js +4 -4
- package/js/src/bitbank.d.ts +16 -21
- package/js/src/bitbank.js +15 -15
- package/js/src/bitbns.d.ts +15 -20
- package/js/src/bitfinex.d.ts +46 -51
- package/js/src/bitfinex.js +15 -15
- package/js/src/bitflyer.d.ts +20 -25
- package/js/src/bitget.d.ts +105 -93
- package/js/src/bitget.js +109 -73
- package/js/src/bithumb.d.ts +26 -31
- package/js/src/bitmex.d.ts +48 -65
- package/js/src/bitmex.js +7 -7
- package/js/src/bitopro.d.ts +25 -41
- package/js/src/bitopro.js +2 -2
- package/js/src/bitrue.d.ts +30 -45
- package/js/src/bitrue.js +6 -6
- package/js/src/bitso.d.ts +24 -29
- package/js/src/bitso.js +18 -18
- package/js/src/bitstamp.d.ts +36 -47
- package/js/src/bitstamp.js +5 -5
- package/js/src/bitteam.d.ts +22 -27
- package/js/src/bitteam.js +32 -32
- package/js/src/bittrade.d.ts +35 -46
- package/js/src/bittrade.js +10 -10
- package/js/src/bitvavo.d.ts +43 -48
- package/js/src/bitvavo.js +9 -9
- package/js/src/blockchaincom.d.ts +26 -31
- package/js/src/blockchaincom.js +2 -2
- package/js/src/blofin.d.ts +38 -43
- package/js/src/btcbox.d.ts +14 -19
- package/js/src/btcbox.js +2 -2
- package/js/src/btcmarkets.d.ts +25 -30
- package/js/src/btcmarkets.js +2 -2
- package/js/src/btcturk.d.ts +13 -18
- package/js/src/btcturk.js +2 -2
- package/js/src/btse.d.ts +44 -50
- package/js/src/btse.js +2 -2
- package/js/src/bullish.d.ts +35 -57
- package/js/src/bybit.d.ts +95 -106
- package/js/src/bybitid.js +4 -0
- package/js/src/bydfi.d.ts +37 -48
- package/js/src/cex.d.ts +29 -34
- package/js/src/coinbase.d.ts +66 -82
- package/js/src/coinbase.js +1 -1
- package/js/src/coinbaseexchange.d.ts +33 -43
- package/js/src/coinbaseexchange.js +13 -13
- package/js/src/coinbaseinternational.d.ts +34 -73
- package/js/src/coincheck.d.ts +13 -18
- package/js/src/coincheck.js +4 -4
- package/js/src/coinex.d.ts +63 -68
- package/js/src/coinex.js +10 -10
- package/js/src/coinmate.d.ts +15 -20
- package/js/src/coinmate.js +4 -4
- package/js/src/coinone.d.ts +14 -19
- package/js/src/coinone.js +4 -4
- package/js/src/coinsph.d.ts +32 -37
- package/js/src/coinsph.js +5 -5
- package/js/src/coinspot.d.ts +10 -15
- package/js/src/cryptocom.d.ts +48 -64
- package/js/src/cryptocom.js +5 -5
- package/js/src/cryptomus.d.ts +15 -23
- package/js/src/deepcoin.d.ts +43 -48
- package/js/src/delta.d.ts +43 -54
- package/js/src/deribit.d.ts +48 -69
- package/js/src/deribit.js +31 -31
- package/js/src/derive.d.ts +28 -42
- package/js/src/derive.js +1 -1
- package/js/src/digifinex.d.ts +54 -67
- package/js/src/digifinex.js +31 -31
- package/js/src/dydx.d.ts +26 -31
- package/js/src/extended.d.ts +51 -56
- package/js/src/foxbit.d.ts +34 -64
- package/js/src/gate.d.ts +94 -162
- package/js/src/gate.js +25 -25
- package/js/src/gemini.d.ts +33 -43
- package/js/src/gemini.js +5 -5
- package/js/src/grvt.d.ts +36 -47
- package/js/src/grvt.js +1 -1
- package/js/src/hashkey.d.ts +58 -78
- package/js/src/hibachi.d.ts +42 -52
- package/js/src/hibachi.js +5 -5
- package/js/src/hitbtc.d.ts +49 -56
- package/js/src/hitbtc.js +15 -15
- package/js/src/hollaex.d.ts +26 -31
- package/js/src/hollaex.js +15 -15
- package/js/src/htx.d.ts +80 -121
- package/js/src/htx.js +52 -52
- package/js/src/hyperliquid.d.ts +77 -127
- package/js/src/hyperliquid.js +2 -2
- package/js/src/independentreserve.d.ts +15 -20
- package/js/src/independentreserve.js +2 -2
- package/js/src/indodax.d.ts +19 -24
- package/js/src/indodax.js +8 -8
- package/js/src/kraken.d.ts +43 -55
- package/js/src/kraken.js +29 -29
- package/js/src/krakenfutures.d.ts +34 -39
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.d.ts +121 -132
- package/js/src/kucoin.js +15 -15
- package/js/src/kucoinfutures.d.ts +4 -4
- package/js/src/latoken.d.ts +24 -29
- package/js/src/latoken.js +8 -8
- package/js/src/lbank.d.ts +40 -53
- package/js/src/lbank.js +31 -31
- package/js/src/lighter.d.ts +40 -45
- package/js/src/lighter.js +2 -2
- package/js/src/luno.d.ts +25 -30
- package/js/src/luno.js +2 -2
- package/js/src/mercado.d.ts +15 -20
- package/js/src/mercado.js +12 -12
- package/js/src/mexc.d.ts +70 -83
- package/js/src/mexc.js +27 -27
- package/js/src/modetrade.d.ts +43 -57
- package/js/src/modetrade.js +10 -10
- package/js/src/mudrex.d.ts +25 -35
- package/js/src/nado.d.ts +45 -50
- package/js/src/ndax.d.ts +27 -32
- package/js/src/ndax.js +4 -4
- package/js/src/okx.d.ts +97 -108
- package/js/src/okx.js +19 -20
- package/js/src/onetrading.d.ts +23 -31
- package/js/src/onetrading.js +7 -7
- package/js/src/p2b.d.ts +17 -22
- package/js/src/p2b.js +8 -8
- package/js/src/pacifica.d.ts +55 -73
- package/js/src/pacifica.js +9 -3
- package/js/src/paradex.d.ts +47 -68
- package/js/src/paymium.d.ts +12 -17
- package/js/src/paymium.js +2 -2
- package/js/src/phemex.d.ts +47 -52
- package/js/src/phemex.js +37 -37
- package/js/src/poloniex.d.ts +45 -50
- package/js/src/poloniex.js +14 -14
- package/js/src/prediction/sxbet.d.ts +595 -0
- package/js/src/prediction/sxbet.js +2708 -0
- package/js/src/pro/alpaca.d.ts +23 -23
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +28 -28
- package/js/src/pro/apex.js +6 -6
- package/js/src/pro/aster.d.ts +33 -33
- package/js/src/pro/aster.js +8 -8
- package/js/src/pro/backpack.d.ts +28 -28
- package/js/src/pro/backpack.js +1 -1
- package/js/src/pro/binance.d.ts +57 -57
- package/js/src/pro/binance.js +26 -26
- package/js/src/pro/bingx.d.ts +26 -26
- package/js/src/pro/bingx.js +11 -11
- package/js/src/pro/bitfinex.d.ts +25 -25
- package/js/src/pro/bitfinex.js +11 -11
- package/js/src/pro/bitget.d.ts +41 -41
- package/js/src/pro/bitget.js +20 -20
- package/js/src/pro/bithumb.d.ts +15 -15
- package/js/src/pro/bithumb.js +1 -1
- package/js/src/pro/bitmex.d.ts +29 -29
- package/js/src/pro/bitmex.js +12 -12
- package/js/src/pro/bitopro.d.ts +13 -13
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +25 -25
- package/js/src/pro/bitrue.js +7 -7
- package/js/src/pro/bitstamp.d.ts +21 -21
- package/js/src/pro/bitstamp.js +5 -5
- package/js/src/pro/bittrade.d.ts +19 -19
- package/js/src/pro/bittrade.js +11 -11
- package/js/src/pro/bitvavo.d.ts +62 -62
- package/js/src/pro/bitvavo.js +16 -16
- package/js/src/pro/blockchaincom.d.ts +19 -19
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +23 -23
- package/js/src/pro/blofin.js +2 -2
- package/js/src/pro/bullish.d.ts +19 -25
- package/js/src/pro/bybit.d.ts +42 -45
- package/js/src/pro/bybit.js +21 -21
- package/js/src/pro/bydfi.d.ts +24 -24
- package/js/src/pro/bydfi.js +2 -2
- package/js/src/pro/cex.d.ts +37 -37
- package/js/src/pro/cex.js +19 -19
- package/js/src/pro/coinbase.d.ts +19 -19
- package/js/src/pro/coinbase.js +2 -2
- package/js/src/pro/coinbaseexchange.d.ts +25 -25
- package/js/src/pro/coinbaseexchange.js +9 -9
- package/js/src/pro/coinbaseinternational.d.ts +20 -20
- package/js/src/pro/coinbaseinternational.js +2 -2
- package/js/src/pro/coincheck.d.ts +5 -5
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +24 -24
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/coinone.d.ts +9 -11
- package/js/src/pro/coinone.js +6 -6
- package/js/src/pro/cryptocom.d.ts +40 -40
- package/js/src/pro/cryptocom.js +10 -10
- package/js/src/pro/deepcoin.d.ts +24 -32
- package/js/src/pro/deribit.d.ts +24 -24
- package/js/src/pro/deribit.js +13 -13
- package/js/src/pro/derive.d.ts +22 -22
- package/js/src/pro/derive.js +4 -4
- package/js/src/pro/dydx.d.ts +9 -9
- package/js/src/pro/dydx.js +1 -1
- package/js/src/pro/extended.d.ts +22 -22
- package/js/src/pro/extended.js +16 -10
- package/js/src/pro/gate.d.ts +50 -50
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.d.ts +26 -26
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/grvt.d.ts +22 -22
- package/js/src/pro/grvt.js +2 -2
- package/js/src/pro/hashkey.d.ts +19 -19
- package/js/src/pro/hashkey.js +2 -2
- package/js/src/pro/hitbtc.d.ts +32 -32
- package/js/src/pro/hitbtc.js +6 -6
- package/js/src/pro/hollaex.d.ts +15 -17
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/htx.d.ts +36 -36
- package/js/src/pro/htx.js +28 -28
- package/js/src/pro/hyperliquid.d.ts +29 -31
- package/js/src/pro/hyperliquid.js +1 -1
- package/js/src/pro/independentreserve.d.ts +10 -10
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +41 -55
- package/js/src/pro/kraken.js +7 -7
- package/js/src/pro/krakenfutures.d.ts +32 -32
- package/js/src/pro/krakenfutures.js +12 -12
- package/js/src/pro/kucoin.d.ts +69 -72
- package/js/src/pro/kucoin.js +12 -12
- package/js/src/pro/kucoinfutures.d.ts +4 -4
- package/js/src/pro/lbank.d.ts +22 -22
- package/js/src/pro/lbank.js +16 -16
- package/js/src/pro/lighter.d.ts +27 -27
- package/js/src/pro/luno.d.ts +8 -8
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +33 -33
- package/js/src/pro/mexc.js +8 -8
- package/js/src/pro/modetrade.d.ts +37 -39
- package/js/src/pro/modetrade.js +3 -3
- package/js/src/pro/mudrex.d.ts +8 -8
- package/js/src/pro/mudrex.js +2 -2
- package/js/src/pro/nado.d.ts +42 -46
- package/js/src/pro/nado.js +3 -3
- package/js/src/pro/ndax.d.ts +12 -12
- package/js/src/pro/ndax.js +6 -6
- package/js/src/pro/okx.d.ts +49 -49
- package/js/src/pro/okx.js +20 -20
- package/js/src/pro/onetrading.d.ts +28 -28
- package/js/src/pro/onetrading.js +14 -14
- package/js/src/pro/p2b.d.ts +15 -19
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/pacifica.d.ts +22 -22
- package/js/src/pro/pacifica.js +1 -1
- package/js/src/pro/paradex.d.ts +18 -18
- package/js/src/pro/paradex.js +1 -1
- package/js/src/pro/phemex.d.ts +25 -25
- package/js/src/pro/phemex.js +13 -13
- package/js/src/pro/poloniex.d.ts +30 -32
- package/js/src/pro/poloniex.js +17 -17
- package/js/src/pro/toobit.d.ts +31 -31
- package/js/src/pro/toobit.js +2 -2
- package/js/src/pro/upbit.d.ts +24 -24
- package/js/src/pro/upbit.js +4 -4
- package/js/src/pro/weex.d.ts +39 -39
- package/js/src/pro/weex.js +2 -2
- package/js/src/pro/whitebit.d.ts +26 -30
- package/js/src/pro/whitebit.js +12 -12
- package/js/src/pro/woo.d.ts +44 -46
- package/js/src/pro/woo.js +13 -13
- package/js/src/pro/woofipro.d.ts +39 -41
- package/js/src/pro/woofipro.js +3 -3
- package/js/src/pro/xt.d.ts +20 -20
- package/js/src/pro/xt.js +3 -3
- package/js/src/revolutx.d.ts +17 -17
- package/js/src/tokocrypto.d.ts +25 -30
- package/js/src/tokocrypto.js +20 -20
- package/js/src/toobit.d.ts +45 -79
- package/js/src/upbit.d.ts +28 -61
- package/js/src/upbit.js +12 -12
- package/js/src/weex.d.ts +57 -68
- package/js/src/whitebit.d.ts +53 -64
- package/js/src/whitebit.js +15 -15
- package/js/src/woo.d.ts +61 -75
- package/js/src/woo.js +3 -3
- package/js/src/woofipro.d.ts +53 -67
- package/js/src/woofipro.js +14 -14
- package/js/src/xt.d.ts +57 -67
- package/js/src/zaif.d.ts +11 -16
- package/js/src/zaif.js +9 -3
- package/js/src/zebpay.d.ts +32 -37
- package/js/src/zebpay.js +1 -1
- package/package.json +2 -2
package/js/src/woofipro.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export default class woofipro extends Exchange {
|
|
|
15
15
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
16
16
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
17
17
|
*/
|
|
18
|
-
fetchStatus(params?:
|
|
18
|
+
fetchStatus(params?: Dict): Promise<Status>;
|
|
19
19
|
/**
|
|
20
20
|
* @method
|
|
21
21
|
* @name woofipro#fetchTime
|
|
@@ -24,7 +24,7 @@ export default class woofipro extends Exchange {
|
|
|
24
24
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
25
25
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
26
26
|
*/
|
|
27
|
-
fetchTime(params?:
|
|
27
|
+
fetchTime(params?: Dict): Promise<Int>;
|
|
28
28
|
parseMarket(market: Dict): Market;
|
|
29
29
|
/**
|
|
30
30
|
* @method
|
|
@@ -34,7 +34,7 @@ export default class woofipro extends Exchange {
|
|
|
34
34
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
35
35
|
* @returns {object[]} an array of objects representing market data
|
|
36
36
|
*/
|
|
37
|
-
fetchMarkets(params?:
|
|
37
|
+
fetchMarkets(params?: Dict): Promise<Market[]>;
|
|
38
38
|
/**
|
|
39
39
|
* @method
|
|
40
40
|
* @name woofipro#fetchCurrencies
|
|
@@ -44,9 +44,9 @@ export default class woofipro extends Exchange {
|
|
|
44
44
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
45
45
|
* @returns {object} an associative dictionary of currencies
|
|
46
46
|
*/
|
|
47
|
-
fetchCurrencies(params?:
|
|
47
|
+
fetchCurrencies(params?: Dict): Promise<Currencies>;
|
|
48
48
|
parseCurrency(rawCurrency: Dict): CurrencyInterface;
|
|
49
|
-
parseTokenAndFeeTemp(item:
|
|
49
|
+
parseTokenAndFeeTemp(item: Dict, feeTokenKey: string, feeAmountKey: string): FeeString;
|
|
50
50
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
51
51
|
/**
|
|
52
52
|
* @method
|
|
@@ -59,9 +59,9 @@ export default class woofipro extends Exchange {
|
|
|
59
59
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
60
60
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
61
61
|
*/
|
|
62
|
-
fetchTrades(symbol: string, since?: Int, limit?: Int, params?:
|
|
62
|
+
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
63
63
|
parseFundingRate(fundingRate: any, market?: Market): FundingRate;
|
|
64
|
-
parseFundingInterval(interval:
|
|
64
|
+
parseFundingInterval(interval: Str): Str;
|
|
65
65
|
/**
|
|
66
66
|
* @method
|
|
67
67
|
* @name woofipro#fetchFundingInterval
|
|
@@ -71,7 +71,7 @@ export default class woofipro extends Exchange {
|
|
|
71
71
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
72
72
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
73
73
|
*/
|
|
74
|
-
fetchFundingInterval(symbol: string, params?:
|
|
74
|
+
fetchFundingInterval(symbol: string, params?: Dict): Promise<FundingRate>;
|
|
75
75
|
/**
|
|
76
76
|
* @method
|
|
77
77
|
* @name woofipro#fetchFundingRate
|
|
@@ -91,7 +91,7 @@ export default class woofipro extends Exchange {
|
|
|
91
91
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
92
92
|
* @returns {object[]} an array of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
93
93
|
*/
|
|
94
|
-
fetchFundingRates(symbols?: Strings, params?:
|
|
94
|
+
fetchFundingRates(symbols?: Strings, params?: Dict): Promise<FundingRates>;
|
|
95
95
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
96
96
|
/**
|
|
97
97
|
* @method
|
|
@@ -102,7 +102,7 @@ export default class woofipro extends Exchange {
|
|
|
102
102
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
103
103
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
104
104
|
*/
|
|
105
|
-
fetchTicker(symbol: string, params?:
|
|
105
|
+
fetchTicker(symbol: string, params?: Dict): Promise<Ticker>;
|
|
106
106
|
/**
|
|
107
107
|
* @method
|
|
108
108
|
* @name woofipro#fetchTickers
|
|
@@ -112,7 +112,7 @@ export default class woofipro extends Exchange {
|
|
|
112
112
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
113
113
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
114
114
|
*/
|
|
115
|
-
fetchTickers(symbols?: Strings, params?:
|
|
115
|
+
fetchTickers(symbols?: Strings, params?: Dict): Promise<Tickers>;
|
|
116
116
|
parseOpenInterest(interest: any, market?: Market): OpenInterest;
|
|
117
117
|
/**
|
|
118
118
|
* @method
|
|
@@ -123,7 +123,7 @@ export default class woofipro extends Exchange {
|
|
|
123
123
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
124
124
|
* @returns {object} an [open interest structure]{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
125
125
|
*/
|
|
126
|
-
fetchOpenInterest(symbol: string, params?:
|
|
126
|
+
fetchOpenInterest(symbol: string, params?: Dict): Promise<OpenInterest>;
|
|
127
127
|
/**
|
|
128
128
|
* @method
|
|
129
129
|
* @name woofipro#fetchOpenInterests
|
|
@@ -133,7 +133,7 @@ export default class woofipro extends Exchange {
|
|
|
133
133
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
134
134
|
* @returns {object} a dictionary of [open interest structures]{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
135
135
|
*/
|
|
136
|
-
fetchOpenInterests(symbols?: Strings, params?:
|
|
136
|
+
fetchOpenInterests(symbols?: Strings, params?: Dict): Promise<OpenInterests>;
|
|
137
137
|
/**
|
|
138
138
|
* @method
|
|
139
139
|
* @name woofipro#fetchFundingRateHistory
|
|
@@ -147,17 +147,8 @@ export default class woofipro extends Exchange {
|
|
|
147
147
|
* @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)
|
|
148
148
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
149
149
|
*/
|
|
150
|
-
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
151
|
-
parseIncome(income: any, market?: Market):
|
|
152
|
-
info: any;
|
|
153
|
-
symbol: string;
|
|
154
|
-
code: Str;
|
|
155
|
-
timestamp: Int;
|
|
156
|
-
datetime: string | undefined;
|
|
157
|
-
id: undefined;
|
|
158
|
-
amount: number;
|
|
159
|
-
rate: Num;
|
|
160
|
-
};
|
|
150
|
+
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<FundingRateHistory[]>;
|
|
151
|
+
parseIncome(income: any, market?: Market): object;
|
|
161
152
|
/**
|
|
162
153
|
* @method
|
|
163
154
|
* @name woofipro#fetchFundingHistory
|
|
@@ -170,7 +161,7 @@ export default class woofipro extends Exchange {
|
|
|
170
161
|
* @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)
|
|
171
162
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
172
163
|
*/
|
|
173
|
-
fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
164
|
+
fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<FundingHistory[]>;
|
|
174
165
|
/**
|
|
175
166
|
* @method
|
|
176
167
|
* @name woofipro#fetchTradingFees
|
|
@@ -179,7 +170,7 @@ export default class woofipro extends Exchange {
|
|
|
179
170
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
180
171
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
181
172
|
*/
|
|
182
|
-
fetchTradingFees(params?:
|
|
173
|
+
fetchTradingFees(params?: Dict): Promise<TradingFees>;
|
|
183
174
|
/**
|
|
184
175
|
* @method
|
|
185
176
|
* @name woofipro#fetchOrderBook
|
|
@@ -190,7 +181,7 @@ export default class woofipro extends Exchange {
|
|
|
190
181
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
191
182
|
* @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
192
183
|
*/
|
|
193
|
-
fetchOrderBook(symbol: string, limit?: Int, params?:
|
|
184
|
+
fetchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise<OrderBook>;
|
|
194
185
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
195
186
|
/**
|
|
196
187
|
* @method
|
|
@@ -204,12 +195,12 @@ export default class woofipro extends Exchange {
|
|
|
204
195
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
205
196
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
206
197
|
*/
|
|
207
|
-
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?:
|
|
198
|
+
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise<OHLCV[]>;
|
|
208
199
|
parseOrder(order: Dict, market?: Market): Order;
|
|
209
200
|
parseTimeInForce(timeInForce: Str): Str;
|
|
210
201
|
parseOrderStatus(status: Str): string | undefined;
|
|
211
202
|
parseOrderType(type: Str): Str;
|
|
212
|
-
createOrderRequest(symbol: Str, type: Str, side: Str, amount: Num, price?: Num, params?:
|
|
203
|
+
createOrderRequest(symbol: Str, type: Str, side: Str, amount: Num, price?: Num, params?: Dict): Dict;
|
|
213
204
|
/**
|
|
214
205
|
* @method
|
|
215
206
|
* @name woofipro#createOrder
|
|
@@ -232,7 +223,7 @@ export default class woofipro extends Exchange {
|
|
|
232
223
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
233
224
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
234
225
|
*/
|
|
235
|
-
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?:
|
|
226
|
+
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Promise<Order>;
|
|
236
227
|
/**
|
|
237
228
|
* @method
|
|
238
229
|
* @name woofipro#createOrders
|
|
@@ -242,7 +233,7 @@ export default class woofipro extends Exchange {
|
|
|
242
233
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
243
234
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
244
235
|
*/
|
|
245
|
-
createOrders(orders: OrderRequest[], params?:
|
|
236
|
+
createOrders(orders: OrderRequest[], params?: Dict): Promise<Order[]>;
|
|
246
237
|
/**
|
|
247
238
|
* @method
|
|
248
239
|
* @name woofipro#editOrder
|
|
@@ -261,7 +252,7 @@ export default class woofipro extends Exchange {
|
|
|
261
252
|
* @param {float} [params.takeProfitPrice] price to trigger take-profit orders
|
|
262
253
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
263
254
|
*/
|
|
264
|
-
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?:
|
|
255
|
+
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: Dict): Promise<Order>;
|
|
265
256
|
/**
|
|
266
257
|
* @method
|
|
267
258
|
* @name woofipro#cancelOrder
|
|
@@ -277,7 +268,7 @@ export default class woofipro extends Exchange {
|
|
|
277
268
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
278
269
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
279
270
|
*/
|
|
280
|
-
cancelOrder(id: string, symbol?: Str, params?:
|
|
271
|
+
cancelOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
|
|
281
272
|
/**
|
|
282
273
|
* @method
|
|
283
274
|
* @name woofipro#cancelOrders
|
|
@@ -290,7 +281,7 @@ export default class woofipro extends Exchange {
|
|
|
290
281
|
* @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
|
|
291
282
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
292
283
|
*/
|
|
293
|
-
cancelOrders(ids: string[], symbol?: Str, params?:
|
|
284
|
+
cancelOrders(ids: string[], symbol?: Str, params?: Dict): Promise<Order[]>;
|
|
294
285
|
/**
|
|
295
286
|
* @method
|
|
296
287
|
* @name woofipro#cancelAllOrders
|
|
@@ -302,7 +293,7 @@ export default class woofipro extends Exchange {
|
|
|
302
293
|
* @param {boolean} [params.trigger] whether the order is a stop/algo order
|
|
303
294
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
304
295
|
*/
|
|
305
|
-
cancelAllOrders(symbol?: Str, params?:
|
|
296
|
+
cancelAllOrders(symbol?: Str, params?: Dict): Promise<Order[]>;
|
|
306
297
|
/**
|
|
307
298
|
* @method
|
|
308
299
|
* @name woofipro#fetchOrder
|
|
@@ -318,7 +309,7 @@ export default class woofipro extends Exchange {
|
|
|
318
309
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
319
310
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
320
311
|
*/
|
|
321
|
-
fetchOrder(id: string, symbol?: Str, params?:
|
|
312
|
+
fetchOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
|
|
322
313
|
/**
|
|
323
314
|
* @method
|
|
324
315
|
* @name woofipro#fetchOrders
|
|
@@ -336,7 +327,7 @@ export default class woofipro extends Exchange {
|
|
|
336
327
|
* @param {int} params.until timestamp in ms of the latest order to fetch
|
|
337
328
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
338
329
|
*/
|
|
339
|
-
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
330
|
+
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
340
331
|
/**
|
|
341
332
|
* @method
|
|
342
333
|
* @name woofipro#fetchOpenOrders
|
|
@@ -354,7 +345,7 @@ export default class woofipro extends Exchange {
|
|
|
354
345
|
* @param {boolean} [params.paginate] set to true if you want to fetch orders with pagination
|
|
355
346
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
356
347
|
*/
|
|
357
|
-
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
348
|
+
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
358
349
|
/**
|
|
359
350
|
* @method
|
|
360
351
|
* @name woofipro#fetchClosedOrders
|
|
@@ -372,7 +363,7 @@ export default class woofipro extends Exchange {
|
|
|
372
363
|
* @param {boolean} [params.paginate] set to true if you want to fetch orders with pagination
|
|
373
364
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
374
365
|
*/
|
|
375
|
-
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
366
|
+
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
376
367
|
/**
|
|
377
368
|
* @method
|
|
378
369
|
* @name woofipro#fetchOrderTrades
|
|
@@ -385,7 +376,7 @@ export default class woofipro extends Exchange {
|
|
|
385
376
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
386
377
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
387
378
|
*/
|
|
388
|
-
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?:
|
|
379
|
+
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
389
380
|
/**
|
|
390
381
|
* @method
|
|
391
382
|
* @name woofipro#fetchMyTrades
|
|
@@ -399,7 +390,7 @@ export default class woofipro extends Exchange {
|
|
|
399
390
|
* @param {int} params.until timestamp in ms of the latest trade to fetch
|
|
400
391
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
401
392
|
*/
|
|
402
|
-
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
393
|
+
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
403
394
|
parseBalance(response: any): Balances;
|
|
404
395
|
/**
|
|
405
396
|
* @method
|
|
@@ -409,10 +400,10 @@ export default class woofipro extends Exchange {
|
|
|
409
400
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
410
401
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
411
402
|
*/
|
|
412
|
-
fetchBalance(params?:
|
|
403
|
+
fetchBalance(params?: Dict): Promise<Balances>;
|
|
413
404
|
getAssetHistoryRows(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
414
405
|
parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
|
|
415
|
-
parseLedgerEntryType(type:
|
|
406
|
+
parseLedgerEntryType(type: Str): Str;
|
|
416
407
|
/**
|
|
417
408
|
* @method
|
|
418
409
|
* @name woofipro#fetchLedger
|
|
@@ -424,7 +415,7 @@ export default class woofipro extends Exchange {
|
|
|
424
415
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
425
416
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure}
|
|
426
417
|
*/
|
|
427
|
-
fetchLedger(code?: Str, since?: Int, limit?: Int, params?:
|
|
418
|
+
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<LedgerEntry[]>;
|
|
428
419
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
429
420
|
parseTransactionStatus(status: Str): Str;
|
|
430
421
|
/**
|
|
@@ -438,7 +429,7 @@ export default class woofipro extends Exchange {
|
|
|
438
429
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
439
430
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
440
431
|
*/
|
|
441
|
-
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?:
|
|
432
|
+
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
|
|
442
433
|
/**
|
|
443
434
|
* @method
|
|
444
435
|
* @name woofipro#fetchWithdrawals
|
|
@@ -450,7 +441,7 @@ export default class woofipro extends Exchange {
|
|
|
450
441
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
451
442
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
452
443
|
*/
|
|
453
|
-
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?:
|
|
444
|
+
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
|
|
454
445
|
/**
|
|
455
446
|
* @method
|
|
456
447
|
* @name woofipro#fetchDepositsWithdrawals
|
|
@@ -462,11 +453,11 @@ export default class woofipro extends Exchange {
|
|
|
462
453
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
463
454
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
464
455
|
*/
|
|
465
|
-
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?:
|
|
466
|
-
getWithdrawNonce(params?:
|
|
456
|
+
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
|
|
457
|
+
getWithdrawNonce(params?: Dict): Promise<Num>;
|
|
467
458
|
hashMessage(message: any): string;
|
|
468
|
-
signHash(hash:
|
|
469
|
-
signMessage(message: any, privateKey:
|
|
459
|
+
signHash(hash: string, privateKey: string): string;
|
|
460
|
+
signMessage(message: any, privateKey: string): string;
|
|
470
461
|
/**
|
|
471
462
|
* @method
|
|
472
463
|
* @name woofipro#withdraw
|
|
@@ -479,7 +470,7 @@ export default class woofipro extends Exchange {
|
|
|
479
470
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
480
471
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
481
472
|
*/
|
|
482
|
-
withdraw(code: string, amount: number, address: string, tag?: Str, params?:
|
|
473
|
+
withdraw(code: string, amount: number, address: string, tag?: Str, params?: Dict): Promise<Transaction>;
|
|
483
474
|
parseMarginMode(marginMode: Dict, market?: Market): MarginMode;
|
|
484
475
|
/**
|
|
485
476
|
* @method
|
|
@@ -490,7 +481,7 @@ export default class woofipro extends Exchange {
|
|
|
490
481
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
491
482
|
* @returns {object} a list of [margin mode structures]{@link https://docs.ccxt.com/?id=margin-mode-structure}
|
|
492
483
|
*/
|
|
493
|
-
fetchMarginModes(symbols?: Strings, params?:
|
|
484
|
+
fetchMarginModes(symbols?: Strings, params?: Dict): Promise<MarginModes>;
|
|
494
485
|
/**
|
|
495
486
|
* @method
|
|
496
487
|
* @name woofipro#fetchMarginMode
|
|
@@ -500,7 +491,7 @@ export default class woofipro extends Exchange {
|
|
|
500
491
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
501
492
|
* @returns {object} a [margin mode structure]{@link https://docs.ccxt.com/?id=margin-mode-structure}
|
|
502
493
|
*/
|
|
503
|
-
fetchMarginMode(symbol: string, params?:
|
|
494
|
+
fetchMarginMode(symbol: string, params?: Dict): Promise<MarginMode>;
|
|
504
495
|
/**
|
|
505
496
|
* @method
|
|
506
497
|
* @name woofipro#setMarginMode
|
|
@@ -511,7 +502,7 @@ export default class woofipro extends Exchange {
|
|
|
511
502
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
512
503
|
* @returns {object} response from the exchange
|
|
513
504
|
*/
|
|
514
|
-
setMarginMode(marginMode: string, symbol?: Str, params?:
|
|
505
|
+
setMarginMode(marginMode: string, symbol?: Str, params?: Dict): Promise<Dict>;
|
|
515
506
|
parseMarginModification(data: Dict, market?: Market): MarginModification;
|
|
516
507
|
/**
|
|
517
508
|
* @method
|
|
@@ -525,7 +516,7 @@ export default class woofipro extends Exchange {
|
|
|
525
516
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
526
517
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
|
|
527
518
|
*/
|
|
528
|
-
modifyMarginHelper(symbol: string, amount:
|
|
519
|
+
modifyMarginHelper(symbol: string, amount: number, type: string, params?: Dict): Promise<MarginModification>;
|
|
529
520
|
/**
|
|
530
521
|
* @method
|
|
531
522
|
* @name woofipro#addMargin
|
|
@@ -536,7 +527,7 @@ export default class woofipro extends Exchange {
|
|
|
536
527
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
537
528
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
|
|
538
529
|
*/
|
|
539
|
-
addMargin(symbol: string, amount: number, params?:
|
|
530
|
+
addMargin(symbol: string, amount: number, params?: Dict): Promise<MarginModification>;
|
|
540
531
|
/**
|
|
541
532
|
* @method
|
|
542
533
|
* @name woofipro#reduceMargin
|
|
@@ -547,7 +538,7 @@ export default class woofipro extends Exchange {
|
|
|
547
538
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
548
539
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=reduce-margin-structure}
|
|
549
540
|
*/
|
|
550
|
-
reduceMargin(symbol: string, amount: number, params?:
|
|
541
|
+
reduceMargin(symbol: string, amount: number, params?: Dict): Promise<MarginModification>;
|
|
551
542
|
parseLeverage(leverage: Dict, market?: Market): Leverage;
|
|
552
543
|
/**
|
|
553
544
|
* @method
|
|
@@ -558,7 +549,7 @@ export default class woofipro extends Exchange {
|
|
|
558
549
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
559
550
|
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
560
551
|
*/
|
|
561
|
-
fetchLeverage(symbol: string, params?:
|
|
552
|
+
fetchLeverage(symbol: string, params?: Dict): Promise<Leverage>;
|
|
562
553
|
/**
|
|
563
554
|
* @method
|
|
564
555
|
* @name woofipro#setLeverage
|
|
@@ -569,7 +560,7 @@ export default class woofipro extends Exchange {
|
|
|
569
560
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
570
561
|
* @returns {object} response from the exchange
|
|
571
562
|
*/
|
|
572
|
-
setLeverage(leverage: int, symbol?: Str, params?:
|
|
563
|
+
setLeverage(leverage: int, symbol?: Str, params?: Dict): Promise<Dict>;
|
|
573
564
|
parsePosition(position: Dict, market?: Market): Position;
|
|
574
565
|
/**
|
|
575
566
|
* @method
|
|
@@ -580,7 +571,7 @@ export default class woofipro extends Exchange {
|
|
|
580
571
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
581
572
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
582
573
|
*/
|
|
583
|
-
fetchPosition(symbol: string, params?:
|
|
574
|
+
fetchPosition(symbol: string, params?: Dict): Promise<Position>;
|
|
584
575
|
/**
|
|
585
576
|
* @method
|
|
586
577
|
* @name woofipro#fetchPositions
|
|
@@ -590,13 +581,8 @@ export default class woofipro extends Exchange {
|
|
|
590
581
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
591
582
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
592
583
|
*/
|
|
593
|
-
fetchPositions(symbols?: Strings, params?:
|
|
584
|
+
fetchPositions(symbols?: Strings, params?: Dict): Promise<Position[]>;
|
|
594
585
|
nonce(): number;
|
|
595
|
-
sign(path: any, section?: string, method?: string, params?: Dict, headers?: NullableDict, body?: Str):
|
|
596
|
-
url: string;
|
|
597
|
-
method: string;
|
|
598
|
-
body: Str;
|
|
599
|
-
headers: NullableDict;
|
|
600
|
-
};
|
|
586
|
+
sign(path: any, section?: string, method?: string, params?: Dict, headers?: NullableDict, body?: Str): Dict;
|
|
601
587
|
handleErrors(httpCode: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): undefined;
|
|
602
588
|
}
|
package/js/src/woofipro.js
CHANGED
|
@@ -1701,7 +1701,7 @@ export default class woofipro extends Exchange {
|
|
|
1701
1701
|
const amount = this.safeString2(order, 'order_quantity', 'quantity'); // This is base amount
|
|
1702
1702
|
const cost = this.safeString2(order, 'order_amount', 'amount'); // This is quote amount
|
|
1703
1703
|
const orderType = this.safeStringLower2(order, 'order_type', 'type');
|
|
1704
|
-
let status = this.
|
|
1704
|
+
let status = this.safeString2(order, 'status', 'algoStatus');
|
|
1705
1705
|
const success = this.safeBool(order, 'success');
|
|
1706
1706
|
if (success !== undefined) {
|
|
1707
1707
|
status = (success) ? 'NEW' : 'REJECTED';
|
|
@@ -1716,14 +1716,14 @@ export default class woofipro extends Exchange {
|
|
|
1716
1716
|
const triggerPrice = this.safeNumber(order, 'triggerPrice');
|
|
1717
1717
|
let takeProfitPrice = undefined;
|
|
1718
1718
|
let stopLossPrice = undefined;
|
|
1719
|
-
const childOrders = this.
|
|
1719
|
+
const childOrders = this.safeList(order, 'childOrders');
|
|
1720
1720
|
if (childOrders !== undefined) {
|
|
1721
|
-
const first = this.
|
|
1721
|
+
const first = this.safeDict(childOrders, 0);
|
|
1722
1722
|
const innerChildOrders = this.safeList(first, 'childOrders', []);
|
|
1723
1723
|
const innerChildOrdersLength = innerChildOrders.length;
|
|
1724
1724
|
if (innerChildOrdersLength > 0) {
|
|
1725
|
-
const takeProfitOrder = this.
|
|
1726
|
-
const stopLossOrder = this.
|
|
1725
|
+
const takeProfitOrder = this.safeDict(innerChildOrders, 0);
|
|
1726
|
+
const stopLossOrder = this.safeDict(innerChildOrders, 1);
|
|
1727
1727
|
takeProfitPrice = this.safeNumber(takeProfitOrder, 'triggerPrice');
|
|
1728
1728
|
stopLossPrice = this.safeNumber(stopLossOrder, 'triggerPrice');
|
|
1729
1729
|
}
|
|
@@ -1825,8 +1825,8 @@ export default class woofipro extends Exchange {
|
|
|
1825
1825
|
'side': orderSide,
|
|
1826
1826
|
};
|
|
1827
1827
|
const triggerPrice = this.safeString2(params, 'triggerPrice', 'stopPrice');
|
|
1828
|
-
const stopLoss = this.
|
|
1829
|
-
const takeProfit = this.
|
|
1828
|
+
const stopLoss = this.safeDict(params, 'stopLoss');
|
|
1829
|
+
const takeProfit = this.safeDict(params, 'takeProfit');
|
|
1830
1830
|
const hasStopLoss = (stopLoss !== undefined);
|
|
1831
1831
|
const hasTakeProfit = (takeProfit !== undefined);
|
|
1832
1832
|
const algoType = this.safeString(params, 'algoType');
|
|
@@ -1935,9 +1935,9 @@ export default class woofipro extends Exchange {
|
|
|
1935
1935
|
const market = this.market(symbol);
|
|
1936
1936
|
const request = this.createOrderRequest(symbol, type, side, amount, price, params);
|
|
1937
1937
|
const triggerPrice = this.safeString2(params, 'triggerPrice', 'stopPrice');
|
|
1938
|
-
const stopLoss = this.
|
|
1939
|
-
const takeProfit = this.
|
|
1940
|
-
const isConditional = triggerPrice !== undefined || stopLoss !== undefined || takeProfit !== undefined || (this.
|
|
1938
|
+
const stopLoss = this.safeDict(params, 'stopLoss');
|
|
1939
|
+
const takeProfit = this.safeDict(params, 'takeProfit');
|
|
1940
|
+
const isConditional = triggerPrice !== undefined || stopLoss !== undefined || takeProfit !== undefined || (this.safeList(params, 'childOrders') !== undefined);
|
|
1941
1941
|
let response = undefined;
|
|
1942
1942
|
if (isConditional) {
|
|
1943
1943
|
response = await this.v1PrivatePostAlgoOrder(request);
|
|
@@ -2001,9 +2001,9 @@ export default class woofipro extends Exchange {
|
|
|
2001
2001
|
const price = this.safeValue(rawOrder, 'price');
|
|
2002
2002
|
const orderParams = this.safeDict(rawOrder, 'params', {});
|
|
2003
2003
|
const triggerPrice = this.safeString2(orderParams, 'triggerPrice', 'stopPrice');
|
|
2004
|
-
const stopLoss = this.
|
|
2005
|
-
const takeProfit = this.
|
|
2006
|
-
const isConditional = triggerPrice !== undefined || stopLoss !== undefined || takeProfit !== undefined || (this.
|
|
2004
|
+
const stopLoss = this.safeDict(orderParams, 'stopLoss');
|
|
2005
|
+
const takeProfit = this.safeDict(orderParams, 'takeProfit');
|
|
2006
|
+
const isConditional = triggerPrice !== undefined || stopLoss !== undefined || takeProfit !== undefined || (this.safeList(orderParams, 'childOrders') !== undefined);
|
|
2007
2007
|
if (isConditional) {
|
|
2008
2008
|
throw new NotSupported(this.id + ' createOrders() only support non-stop order');
|
|
2009
2009
|
}
|
|
@@ -2468,7 +2468,7 @@ export default class woofipro extends Exchange {
|
|
|
2468
2468
|
// }
|
|
2469
2469
|
// }
|
|
2470
2470
|
//
|
|
2471
|
-
const data = this.
|
|
2471
|
+
const data = this.safeDict(response, 'data', response);
|
|
2472
2472
|
const orders = this.safeList(data, 'rows');
|
|
2473
2473
|
return this.parseOrders(orders, market, since, limit);
|
|
2474
2474
|
}
|