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/whitebit.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export default class whitebit extends Exchange {
|
|
|
14
14
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
15
15
|
* @returns {object[]} an array of objects representing market data
|
|
16
16
|
*/
|
|
17
|
-
fetchMarkets(params?:
|
|
17
|
+
fetchMarkets(params?: Dict): Promise<Market[]>;
|
|
18
18
|
parseMarket(market: Dict): Market;
|
|
19
19
|
/**
|
|
20
20
|
* @method
|
|
@@ -24,7 +24,7 @@ export default class whitebit extends Exchange {
|
|
|
24
24
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
25
25
|
* @returns {object} an associative dictionary of currencies
|
|
26
26
|
*/
|
|
27
|
-
fetchCurrencies(params?:
|
|
27
|
+
fetchCurrencies(params?: Dict): Promise<Currencies>;
|
|
28
28
|
parseCurrency(rawCurrency: Dict): CurrencyInterface;
|
|
29
29
|
/**
|
|
30
30
|
* @method
|
|
@@ -36,7 +36,7 @@ export default class whitebit extends Exchange {
|
|
|
36
36
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
37
37
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
38
38
|
*/
|
|
39
|
-
fetchTransactionFees(codes?: Strings, params?:
|
|
39
|
+
fetchTransactionFees(codes?: Strings, params?: Dict): Promise<{
|
|
40
40
|
withdraw: Dict;
|
|
41
41
|
deposit: Dict;
|
|
42
42
|
info: Dict;
|
|
@@ -50,8 +50,8 @@ export default class whitebit extends Exchange {
|
|
|
50
50
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
51
51
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
52
52
|
*/
|
|
53
|
-
fetchDepositWithdrawFees(codes?: Strings, params?:
|
|
54
|
-
parseDepositWithdrawFees(response: any, codes?: Strings, currencyIdKey?: Str):
|
|
53
|
+
fetchDepositWithdrawFees(codes?: Strings, params?: Dict): Promise<DepositWithdrawFees>;
|
|
54
|
+
parseDepositWithdrawFees(response: any, codes?: Strings, currencyIdKey?: Str): any;
|
|
55
55
|
/**
|
|
56
56
|
* @method
|
|
57
57
|
* @name whitebit#fetchTradingFees
|
|
@@ -60,7 +60,7 @@ export default class whitebit extends Exchange {
|
|
|
60
60
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
61
61
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
62
62
|
*/
|
|
63
|
-
fetchTradingFees(params?:
|
|
63
|
+
fetchTradingFees(params?: Dict): Promise<TradingFees>;
|
|
64
64
|
/**
|
|
65
65
|
* @method
|
|
66
66
|
* @name whitebit#fetchTradingLimits
|
|
@@ -70,7 +70,7 @@ export default class whitebit extends Exchange {
|
|
|
70
70
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
71
71
|
* @returns {object} a [trading limits structure]{@link https://docs.ccxt.com/?id=trading-limits-structure}
|
|
72
72
|
*/
|
|
73
|
-
fetchTradingLimits(symbols?: Strings, params?:
|
|
73
|
+
fetchTradingLimits(symbols?: Strings, params?: Dict): Promise<Dict>;
|
|
74
74
|
/**
|
|
75
75
|
* @method
|
|
76
76
|
* @name whitebit#fetchFundingLimits
|
|
@@ -81,7 +81,7 @@ export default class whitebit extends Exchange {
|
|
|
81
81
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
82
82
|
* @returns {object} a [funding limits structure]{@link https://docs.ccxt.com/?id=funding-limits-structure}
|
|
83
83
|
*/
|
|
84
|
-
fetchFundingLimits(codes?: Strings, params?:
|
|
84
|
+
fetchFundingLimits(codes?: Strings, params?: Dict): Promise<Dict>;
|
|
85
85
|
/**
|
|
86
86
|
* @method
|
|
87
87
|
* @name whitebit#fetchTicker
|
|
@@ -91,7 +91,7 @@ export default class whitebit extends Exchange {
|
|
|
91
91
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
92
92
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
93
93
|
*/
|
|
94
|
-
fetchTicker(symbol: string, params?:
|
|
94
|
+
fetchTicker(symbol: string, params?: Dict): Promise<Ticker>;
|
|
95
95
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
96
96
|
/**
|
|
97
97
|
* @method
|
|
@@ -106,7 +106,7 @@ export default class whitebit extends Exchange {
|
|
|
106
106
|
* @param {boolean} [params.checkExecuted] whether to check executed orders (default: true)
|
|
107
107
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
108
108
|
*/
|
|
109
|
-
fetchOrder(id: string, symbol?: Str, params?:
|
|
109
|
+
fetchOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
|
|
110
110
|
/**
|
|
111
111
|
* @method
|
|
112
112
|
* @name whitebit#fetchTickers
|
|
@@ -118,7 +118,7 @@ export default class whitebit extends Exchange {
|
|
|
118
118
|
* @param {string} [params.method] either v2PublicGetTicker or v4PublicGetTicker or v4PublicGetFutures - default is v4PublicGetTicker for spot and mixed markets, and v4PublicGetFutures for swap
|
|
119
119
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
120
120
|
*/
|
|
121
|
-
fetchTickers(symbols?: Strings, params?:
|
|
121
|
+
fetchTickers(symbols?: Strings, params?: Dict): Promise<Tickers>;
|
|
122
122
|
/**
|
|
123
123
|
* @method
|
|
124
124
|
* @name whitebit#fetchOrderBook
|
|
@@ -129,7 +129,7 @@ export default class whitebit extends Exchange {
|
|
|
129
129
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
130
130
|
* @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
131
131
|
*/
|
|
132
|
-
fetchOrderBook(symbol: string, limit?: Int, params?:
|
|
132
|
+
fetchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise<OrderBook>;
|
|
133
133
|
/**
|
|
134
134
|
* @method
|
|
135
135
|
* @name whitebit#fetchTrades
|
|
@@ -141,7 +141,7 @@ export default class whitebit extends Exchange {
|
|
|
141
141
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
142
142
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
143
143
|
*/
|
|
144
|
-
fetchTrades(symbol: string, since?: Int, limit?: Int, params?:
|
|
144
|
+
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
145
145
|
/**
|
|
146
146
|
* @method
|
|
147
147
|
* @name whitebit#fetchMyTrades
|
|
@@ -153,7 +153,7 @@ export default class whitebit extends Exchange {
|
|
|
153
153
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
154
154
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
155
155
|
*/
|
|
156
|
-
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
156
|
+
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
157
157
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
158
158
|
/**
|
|
159
159
|
* @method
|
|
@@ -167,7 +167,7 @@ export default class whitebit extends Exchange {
|
|
|
167
167
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
168
168
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
169
169
|
*/
|
|
170
|
-
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?:
|
|
170
|
+
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise<OHLCV[]>;
|
|
171
171
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
172
172
|
/**
|
|
173
173
|
* @method
|
|
@@ -177,7 +177,7 @@ export default class whitebit extends Exchange {
|
|
|
177
177
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
178
178
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
179
179
|
*/
|
|
180
|
-
fetchStatus(params?:
|
|
180
|
+
fetchStatus(params?: Dict): Promise<Status>;
|
|
181
181
|
/**
|
|
182
182
|
* @method
|
|
183
183
|
* @name whitebit#fetchTime
|
|
@@ -186,7 +186,7 @@ export default class whitebit extends Exchange {
|
|
|
186
186
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
187
187
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
188
188
|
*/
|
|
189
|
-
fetchTime(params?:
|
|
189
|
+
fetchTime(params?: Dict): Promise<Int>;
|
|
190
190
|
/**
|
|
191
191
|
* @method
|
|
192
192
|
* @name whitebit#createMarketOrderWithCost
|
|
@@ -197,7 +197,7 @@ export default class whitebit extends Exchange {
|
|
|
197
197
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
198
198
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
199
199
|
*/
|
|
200
|
-
createMarketOrderWithCost(symbol: string, side: OrderSide, cost: number, params?:
|
|
200
|
+
createMarketOrderWithCost(symbol: string, side: OrderSide, cost: number, params?: Dict): Promise<Order>;
|
|
201
201
|
/**
|
|
202
202
|
* @method
|
|
203
203
|
* @name whitebit#createMarketBuyOrderWithCost
|
|
@@ -207,7 +207,7 @@ export default class whitebit extends Exchange {
|
|
|
207
207
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
208
208
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
209
209
|
*/
|
|
210
|
-
createMarketBuyOrderWithCost(symbol: string, cost: number, params?:
|
|
210
|
+
createMarketBuyOrderWithCost(symbol: string, cost: number, params?: Dict): Promise<Order>;
|
|
211
211
|
/**
|
|
212
212
|
* @method
|
|
213
213
|
* @name whitebit#createOrder
|
|
@@ -231,7 +231,7 @@ export default class whitebit extends Exchange {
|
|
|
231
231
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
|
|
232
232
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
233
233
|
*/
|
|
234
|
-
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?:
|
|
234
|
+
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Promise<Order>;
|
|
235
235
|
/**
|
|
236
236
|
* @method
|
|
237
237
|
* @name whitebit#editOrder
|
|
@@ -246,7 +246,7 @@ export default class whitebit extends Exchange {
|
|
|
246
246
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
247
247
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
248
248
|
*/
|
|
249
|
-
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?:
|
|
249
|
+
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: Dict): Promise<Order>;
|
|
250
250
|
/**
|
|
251
251
|
* @method
|
|
252
252
|
* @name whitebit#cancelOrder
|
|
@@ -257,7 +257,7 @@ export default class whitebit extends Exchange {
|
|
|
257
257
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
258
258
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
259
259
|
*/
|
|
260
|
-
cancelOrder(id: string, symbol?: Str, params?:
|
|
260
|
+
cancelOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
|
|
261
261
|
/**
|
|
262
262
|
* @method
|
|
263
263
|
* @name whitebit#cancelAllOrders
|
|
@@ -269,7 +269,7 @@ export default class whitebit extends Exchange {
|
|
|
269
269
|
* @param {boolean} [params.isMargin] cancel all margin orders
|
|
270
270
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
271
271
|
*/
|
|
272
|
-
cancelAllOrders(symbol?: Str, params?:
|
|
272
|
+
cancelAllOrders(symbol?: Str, params?: Dict): Promise<Order[]>;
|
|
273
273
|
/**
|
|
274
274
|
* @method
|
|
275
275
|
* @name whitebit#fetchOrders
|
|
@@ -282,7 +282,7 @@ export default class whitebit extends Exchange {
|
|
|
282
282
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
283
283
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
284
284
|
*/
|
|
285
|
-
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
285
|
+
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
286
286
|
/**
|
|
287
287
|
* @method
|
|
288
288
|
* @name whitebit#cancelAllOrdersAfter
|
|
@@ -294,7 +294,7 @@ export default class whitebit extends Exchange {
|
|
|
294
294
|
* @param {string} [params.symbol] symbol unified symbol of the market the order was made in
|
|
295
295
|
* @returns {object} the api result
|
|
296
296
|
*/
|
|
297
|
-
cancelAllOrdersAfter(timeout: Int, params?:
|
|
297
|
+
cancelAllOrdersAfter(timeout: Int, params?: Dict): Promise<Dict>;
|
|
298
298
|
parseBalance(response: any): Balances;
|
|
299
299
|
/**
|
|
300
300
|
* @method
|
|
@@ -305,7 +305,7 @@ export default class whitebit extends Exchange {
|
|
|
305
305
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
306
306
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
307
307
|
*/
|
|
308
|
-
fetchBalance(params?:
|
|
308
|
+
fetchBalance(params?: Dict): Promise<Balances>;
|
|
309
309
|
/**
|
|
310
310
|
* @method
|
|
311
311
|
* @name whitebit#fetchOpenOrders
|
|
@@ -317,7 +317,7 @@ export default class whitebit extends Exchange {
|
|
|
317
317
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
318
318
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
319
319
|
*/
|
|
320
|
-
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
320
|
+
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
321
321
|
/**
|
|
322
322
|
* @method
|
|
323
323
|
* @name whitebit#fetchClosedOrders
|
|
@@ -329,7 +329,7 @@ export default class whitebit extends Exchange {
|
|
|
329
329
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
330
330
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
331
331
|
*/
|
|
332
|
-
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
332
|
+
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
333
333
|
parseOrderType(type: Str): Str;
|
|
334
334
|
parseOrder(order: Dict, market?: Market): Order;
|
|
335
335
|
parseOrderStatus(status: Str): Str;
|
|
@@ -345,7 +345,7 @@ export default class whitebit extends Exchange {
|
|
|
345
345
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
346
346
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
347
347
|
*/
|
|
348
|
-
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?:
|
|
348
|
+
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
349
349
|
/**
|
|
350
350
|
* @method
|
|
351
351
|
* @name whitebit#fetchWithdrawals
|
|
@@ -358,7 +358,7 @@ export default class whitebit extends Exchange {
|
|
|
358
358
|
* @param {string} [params.transactionMethod] transaction method (1=deposit, 2=withdrawal) - automatically set to '2' for withdrawals
|
|
359
359
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
360
360
|
*/
|
|
361
|
-
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?:
|
|
361
|
+
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
|
|
362
362
|
/**
|
|
363
363
|
* @method
|
|
364
364
|
* @name whitebit#fetchTransactions
|
|
@@ -371,7 +371,7 @@ export default class whitebit extends Exchange {
|
|
|
371
371
|
* @param {string} [params.transactionMethod] transaction method (1=deposit, 2=withdrawal) - automatically set to '1' for deposits
|
|
372
372
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
373
373
|
*/
|
|
374
|
-
fetchTransactions(code?: Str, since?: Int, limit?: Int, params?:
|
|
374
|
+
fetchTransactions(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
|
|
375
375
|
/**
|
|
376
376
|
* @method
|
|
377
377
|
* @name whitebit#fetchDepositAddress
|
|
@@ -382,7 +382,7 @@ export default class whitebit extends Exchange {
|
|
|
382
382
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
383
383
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
384
384
|
*/
|
|
385
|
-
fetchDepositAddress(code: string, params?:
|
|
385
|
+
fetchDepositAddress(code: string, params?: Dict): Promise<DepositAddress>;
|
|
386
386
|
/**
|
|
387
387
|
* @method
|
|
388
388
|
* @name whitebit#createDepositAddress
|
|
@@ -394,7 +394,7 @@ export default class whitebit extends Exchange {
|
|
|
394
394
|
* @param {string} [params.type] address type, available for specific currencies
|
|
395
395
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
396
396
|
*/
|
|
397
|
-
createDepositAddress(code: string, params?:
|
|
397
|
+
createDepositAddress(code: string, params?: Dict): Promise<DepositAddress>;
|
|
398
398
|
parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
|
|
399
399
|
/**
|
|
400
400
|
* @method
|
|
@@ -404,7 +404,7 @@ export default class whitebit extends Exchange {
|
|
|
404
404
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
405
405
|
* @returns {object[]} a list of [account structures]{@link https://docs.ccxt.com/?id=account-structure}
|
|
406
406
|
*/
|
|
407
|
-
fetchAccounts(params?:
|
|
407
|
+
fetchAccounts(params?: Dict): Promise<Account[]>;
|
|
408
408
|
/**
|
|
409
409
|
* @method
|
|
410
410
|
* @name whitebit#setLeverage
|
|
@@ -415,7 +415,7 @@ export default class whitebit extends Exchange {
|
|
|
415
415
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
416
416
|
* @returns {object} response from the exchange
|
|
417
417
|
*/
|
|
418
|
-
setLeverage(leverage: int, symbol?: Str, params?:
|
|
418
|
+
setLeverage(leverage: int, symbol?: Str, params?: Dict): Promise<Dict>;
|
|
419
419
|
/**
|
|
420
420
|
* @method
|
|
421
421
|
* @name whitebit#transfer
|
|
@@ -428,7 +428,7 @@ export default class whitebit extends Exchange {
|
|
|
428
428
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
429
429
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
430
430
|
*/
|
|
431
|
-
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?:
|
|
431
|
+
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: Dict): Promise<TransferEntry>;
|
|
432
432
|
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
433
433
|
/**
|
|
434
434
|
* @method
|
|
@@ -442,7 +442,7 @@ export default class whitebit extends Exchange {
|
|
|
442
442
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
443
443
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
444
444
|
*/
|
|
445
|
-
withdraw(code: string, amount: number, address: string, tag?: Str, params?:
|
|
445
|
+
withdraw(code: string, amount: number, address: string, tag?: Str, params?: Dict): Promise<Transaction>;
|
|
446
446
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
447
447
|
parseTransactionStatus(status: Str): Str;
|
|
448
448
|
/**
|
|
@@ -455,7 +455,7 @@ export default class whitebit extends Exchange {
|
|
|
455
455
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
456
456
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
457
457
|
*/
|
|
458
|
-
fetchDeposit(id: string, code?: Str, params?:
|
|
458
|
+
fetchDeposit(id: string, code?: Str, params?: Dict): Promise<Transaction>;
|
|
459
459
|
/**
|
|
460
460
|
* @method
|
|
461
461
|
* @name whitebit#fetchDeposits
|
|
@@ -467,7 +467,7 @@ export default class whitebit extends Exchange {
|
|
|
467
467
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
468
468
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
469
469
|
*/
|
|
470
|
-
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?:
|
|
470
|
+
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
|
|
471
471
|
/**
|
|
472
472
|
* @method
|
|
473
473
|
* @name whitebit#fetchBorrowInterest
|
|
@@ -480,7 +480,7 @@ export default class whitebit extends Exchange {
|
|
|
480
480
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
481
481
|
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure}
|
|
482
482
|
*/
|
|
483
|
-
fetchBorrowInterest(code?: Str, symbol?: Str, since?: Int, limit?: Int, params?:
|
|
483
|
+
fetchBorrowInterest(code?: Str, symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<BorrowInterest[]>;
|
|
484
484
|
parseBorrowInterest(info: Dict, market?: Market): BorrowInterest;
|
|
485
485
|
/**
|
|
486
486
|
* @method
|
|
@@ -491,7 +491,7 @@ export default class whitebit extends Exchange {
|
|
|
491
491
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
492
492
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
493
493
|
*/
|
|
494
|
-
fetchFundingRate(symbol: string, params?:
|
|
494
|
+
fetchFundingRate(symbol: string, params?: Dict): Promise<FundingRate>;
|
|
495
495
|
/**
|
|
496
496
|
* @method
|
|
497
497
|
* @name whitebit#fetchFundingRates
|
|
@@ -501,7 +501,7 @@ export default class whitebit extends Exchange {
|
|
|
501
501
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
502
502
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols
|
|
503
503
|
*/
|
|
504
|
-
fetchFundingRates(symbols?: Strings, params?:
|
|
504
|
+
fetchFundingRates(symbols?: Strings, params?: Dict): Promise<FundingRates>;
|
|
505
505
|
parseFundingRate(contract: any, market?: Market): FundingRate;
|
|
506
506
|
/**
|
|
507
507
|
* @method
|
|
@@ -515,7 +515,7 @@ export default class whitebit extends Exchange {
|
|
|
515
515
|
* @param {int} [params.until] the latest time in ms to fetch funding history for
|
|
516
516
|
* @returns {object[]} a list of [funding history structures]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
517
517
|
*/
|
|
518
|
-
fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
518
|
+
fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<FundingHistory[]>;
|
|
519
519
|
parseFundingHistory(contract: any, market?: Market): {
|
|
520
520
|
info: any;
|
|
521
521
|
symbol: string;
|
|
@@ -545,7 +545,7 @@ export default class whitebit extends Exchange {
|
|
|
545
545
|
* @param {string[]} [params.status] Can be used for filtering transactions by status codes. Caution: You must use this parameter with appropriate transactionMethod and use valid status codes for this method. You can find them below. Example: "status": [3,7]
|
|
546
546
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
547
547
|
*/
|
|
548
|
-
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?:
|
|
548
|
+
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
|
|
549
549
|
/**
|
|
550
550
|
* @method
|
|
551
551
|
* @name whitebit#fetchConvertQuote
|
|
@@ -557,7 +557,7 @@ export default class whitebit extends Exchange {
|
|
|
557
557
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
558
558
|
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
559
559
|
*/
|
|
560
|
-
fetchConvertQuote(fromCode: string, toCode: string, amount?: Num, params?:
|
|
560
|
+
fetchConvertQuote(fromCode: string, toCode: string, amount?: Num, params?: Dict): Promise<Conversion>;
|
|
561
561
|
/**
|
|
562
562
|
* @method
|
|
563
563
|
* @name whitebit#createConvertTrade
|
|
@@ -570,7 +570,7 @@ export default class whitebit extends Exchange {
|
|
|
570
570
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
571
571
|
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
572
572
|
*/
|
|
573
|
-
createConvertTrade(id: string, fromCode: string, toCode: string, amount?: Num, params?:
|
|
573
|
+
createConvertTrade(id: string, fromCode: string, toCode: string, amount?: Num, params?: Dict): Promise<Conversion>;
|
|
574
574
|
/**
|
|
575
575
|
* @method
|
|
576
576
|
* @name whitebit#fetchConvertTradeHistory
|
|
@@ -586,7 +586,7 @@ export default class whitebit extends Exchange {
|
|
|
586
586
|
* @param {string} [params.quoteId] the quote id of the conversion
|
|
587
587
|
* @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
588
588
|
*/
|
|
589
|
-
fetchConvertTradeHistory(code?: Str, since?: Int, limit?: Int, params?:
|
|
589
|
+
fetchConvertTradeHistory(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Conversion[]>;
|
|
590
590
|
parseConversion(conversion: Dict, fromCurrency?: Currency, toCurrency?: Currency): Conversion;
|
|
591
591
|
/**
|
|
592
592
|
* @method
|
|
@@ -600,7 +600,7 @@ export default class whitebit extends Exchange {
|
|
|
600
600
|
* @param {int} [params.positionId] the id of the requested position
|
|
601
601
|
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
602
602
|
*/
|
|
603
|
-
fetchPositionHistory(symbol: string, since?: Int, limit?: Int, params?:
|
|
603
|
+
fetchPositionHistory(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Position[]>;
|
|
604
604
|
/**
|
|
605
605
|
* @method
|
|
606
606
|
* @name whitebit#fetchPositions
|
|
@@ -610,7 +610,7 @@ export default class whitebit extends Exchange {
|
|
|
610
610
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
611
611
|
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
612
612
|
*/
|
|
613
|
-
fetchPositions(symbols?: Strings, params?:
|
|
613
|
+
fetchPositions(symbols?: Strings, params?: Dict): Promise<Position[]>;
|
|
614
614
|
/**
|
|
615
615
|
* @method
|
|
616
616
|
* @name whitebit#fetchPosition
|
|
@@ -620,7 +620,7 @@ export default class whitebit extends Exchange {
|
|
|
620
620
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
621
621
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
622
622
|
*/
|
|
623
|
-
fetchPosition(symbol: string, params?:
|
|
623
|
+
fetchPosition(symbol: string, params?: Dict): Promise<Position>;
|
|
624
624
|
parsePosition(position: Dict, market?: Market): Position;
|
|
625
625
|
isFiat(currency: string): boolean;
|
|
626
626
|
/**
|
|
@@ -635,20 +635,9 @@ export default class whitebit extends Exchange {
|
|
|
635
635
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
636
636
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
637
637
|
*/
|
|
638
|
-
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
639
|
-
parseFundingRateHistory(info: any, market?: Market):
|
|
640
|
-
info: any;
|
|
641
|
-
symbol: string;
|
|
642
|
-
fundingRate: Num;
|
|
643
|
-
timestamp: Int;
|
|
644
|
-
datetime: string | undefined;
|
|
645
|
-
};
|
|
638
|
+
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<FundingRateHistory[]>;
|
|
639
|
+
parseFundingRateHistory(info: any, market?: Market): FundingRateHistory;
|
|
646
640
|
nonce(): number;
|
|
647
|
-
sign(path: any, api?:
|
|
648
|
-
url: string;
|
|
649
|
-
method: string;
|
|
650
|
-
body: any;
|
|
651
|
-
headers: Dict;
|
|
652
|
-
};
|
|
641
|
+
sign(path: any, api?: string, method?: string, params?: Dict, headers?: NullableDict, body?: Str): Dict;
|
|
653
642
|
handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): undefined;
|
|
654
643
|
}
|
package/js/src/whitebit.js
CHANGED
|
@@ -515,8 +515,8 @@ export default class whitebit extends Exchange {
|
|
|
515
515
|
quoteId = (quoteId === 'PERP') ? 'USDT' : quoteId;
|
|
516
516
|
const base = this.safeCurrencyCode(baseId);
|
|
517
517
|
const quote = this.safeCurrencyCode(quoteId);
|
|
518
|
-
const active = this.
|
|
519
|
-
const isCollateral = this.
|
|
518
|
+
const active = this.safeBool(market, 'tradesEnabled');
|
|
519
|
+
const isCollateral = this.safeBool(market, 'isCollateral');
|
|
520
520
|
const typeId = this.safeString(market, 'type');
|
|
521
521
|
let type;
|
|
522
522
|
let settle = undefined;
|
|
@@ -790,11 +790,11 @@ export default class whitebit extends Exchange {
|
|
|
790
790
|
const currency = currenciesIds[i];
|
|
791
791
|
const data = this.safeDict(response, currency, {});
|
|
792
792
|
const code = this.safeCurrencyCode(currency);
|
|
793
|
-
const withdraw = this.
|
|
793
|
+
const withdraw = this.safeDict(data, 'withdraw', {});
|
|
794
794
|
if (code !== undefined) {
|
|
795
795
|
withdrawFees[code] = this.safeString(withdraw, 'fixed');
|
|
796
796
|
}
|
|
797
|
-
const deposit = this.
|
|
797
|
+
const deposit = this.safeDict(data, 'deposit', {});
|
|
798
798
|
if (code !== undefined) {
|
|
799
799
|
depositFees[code] = this.safeString(deposit, 'fixed');
|
|
800
800
|
}
|
|
@@ -916,14 +916,14 @@ export default class whitebit extends Exchange {
|
|
|
916
916
|
const feeInfo = response[entry];
|
|
917
917
|
const code = this.safeCurrencyCode(currencyId);
|
|
918
918
|
if ((code !== undefined) && ((codes === undefined) || (this.inArray(code, codes)))) {
|
|
919
|
-
const depositWithdrawFee = this.
|
|
919
|
+
const depositWithdrawFee = this.safeDict(depositWithdrawFees, code);
|
|
920
920
|
if (depositWithdrawFee === undefined) {
|
|
921
921
|
depositWithdrawFees[code] = this.depositWithdrawFee({});
|
|
922
922
|
}
|
|
923
923
|
depositWithdrawFees[code]['info'][entry] = feeInfo;
|
|
924
924
|
let networkId = this.safeString(splitEntry, 1);
|
|
925
|
-
const withdraw = this.
|
|
926
|
-
const deposit = this.
|
|
925
|
+
const withdraw = this.safeDict(feeInfo, 'withdraw');
|
|
926
|
+
const deposit = this.safeDict(feeInfo, 'deposit');
|
|
927
927
|
const withdrawFee = this.safeNumber(withdraw, 'fixed');
|
|
928
928
|
const depositFee = this.safeNumber(deposit, 'fixed');
|
|
929
929
|
const withdrawResult = {
|
|
@@ -994,7 +994,7 @@ export default class whitebit extends Exchange {
|
|
|
994
994
|
for (let i = 0; i < symbols.length; i++) {
|
|
995
995
|
const symbol = symbols[i];
|
|
996
996
|
const market = this.market(symbol);
|
|
997
|
-
const fee = this.
|
|
997
|
+
const fee = this.safeDict(response, market['baseId'], {});
|
|
998
998
|
let makerFee = this.safeString(fee, 'maker_fee');
|
|
999
999
|
let takerFee = this.safeString(fee, 'taker_fee');
|
|
1000
1000
|
makerFee = Precise.stringDiv(makerFee, '100');
|
|
@@ -1775,7 +1775,7 @@ export default class whitebit extends Exchange {
|
|
|
1775
1775
|
for (let i = 0; i < keys.length; i++) {
|
|
1776
1776
|
const marketId = keys[i];
|
|
1777
1777
|
const marketNew = this.safeMarket(marketId, undefined, '_');
|
|
1778
|
-
const rawTrades = this.
|
|
1778
|
+
const rawTrades = this.safeList(response, marketId, []);
|
|
1779
1779
|
const parsed = this.parseTrades(rawTrades, marketNew, since, limit);
|
|
1780
1780
|
results = this.arrayConcat(results, parsed);
|
|
1781
1781
|
}
|
|
@@ -2414,7 +2414,7 @@ export default class whitebit extends Exchange {
|
|
|
2414
2414
|
response = await this.v4PrivatePostCollateralAccountBalance(params);
|
|
2415
2415
|
}
|
|
2416
2416
|
else {
|
|
2417
|
-
const options = this.
|
|
2417
|
+
const options = this.safeDict(this.options, 'fetchBalance', {});
|
|
2418
2418
|
const defaultAccount = this.safeString(options, 'account');
|
|
2419
2419
|
const account = this.safeString2(params, 'account', 'type', defaultAccount);
|
|
2420
2420
|
params = this.omit(params, ['account', 'type']);
|
|
@@ -2914,7 +2914,7 @@ export default class whitebit extends Exchange {
|
|
|
2914
2914
|
// }
|
|
2915
2915
|
//
|
|
2916
2916
|
const url = this.safeString(response, 'url');
|
|
2917
|
-
const account = this.
|
|
2917
|
+
const account = this.safeDict(response, 'account', {});
|
|
2918
2918
|
const address = this.safeString(account, 'address', url);
|
|
2919
2919
|
const tag = this.safeString(account, 'memo');
|
|
2920
2920
|
this.checkAddress(address);
|
|
@@ -3074,7 +3074,7 @@ export default class whitebit extends Exchange {
|
|
|
3074
3074
|
await this.loadMarkets();
|
|
3075
3075
|
}
|
|
3076
3076
|
const currency = this.currency(code);
|
|
3077
|
-
const accountsByType = this.
|
|
3077
|
+
const accountsByType = this.safeDict(this.options, 'accountsByType');
|
|
3078
3078
|
const fromAccountId = this.safeString(accountsByType, fromAccount, fromAccount);
|
|
3079
3079
|
const toAccountId = this.safeString(accountsByType, toAccount, toAccount);
|
|
3080
3080
|
const amountString = this.currencyToPrecision(code, amount);
|
|
@@ -3300,7 +3300,7 @@ export default class whitebit extends Exchange {
|
|
|
3300
3300
|
// "total": 300 // total number of transactions, use this for calculating ‘limit’ and ‘offset'
|
|
3301
3301
|
// }
|
|
3302
3302
|
//
|
|
3303
|
-
const records = this.
|
|
3303
|
+
const records = this.safeList(response, 'records', []);
|
|
3304
3304
|
const first = this.safeDict(records, 0, {});
|
|
3305
3305
|
return this.parseTransaction(first, currency);
|
|
3306
3306
|
}
|
|
@@ -4159,7 +4159,7 @@ export default class whitebit extends Exchange {
|
|
|
4159
4159
|
});
|
|
4160
4160
|
}
|
|
4161
4161
|
isFiat(currency) {
|
|
4162
|
-
const fiatCurrencies = this.
|
|
4162
|
+
const fiatCurrencies = this.safeList(this.options, 'fiatCurrencies', []);
|
|
4163
4163
|
return this.inArray(currency, fiatCurrencies);
|
|
4164
4164
|
}
|
|
4165
4165
|
/**
|
|
@@ -4271,7 +4271,7 @@ export default class whitebit extends Exchange {
|
|
|
4271
4271
|
// For cases where we have a meaningful status
|
|
4272
4272
|
// {"response":null,"status":422,"errors":{"orderId":["Finished order id 435453454535 not found on your account"]},"notification":null,"warning":"Finished order id 435453454535 not found on your account","_token":null}
|
|
4273
4273
|
const status = this.safeString(response, 'status');
|
|
4274
|
-
const errors = this.
|
|
4274
|
+
const errors = this.safeDict(response, 'errors');
|
|
4275
4275
|
// {"code":10,"message":"Unauthorized request."}
|
|
4276
4276
|
const message = this.safeString(response, 'message');
|
|
4277
4277
|
// For these cases where we have a generic code variable error key
|