ccxt 4.5.28 → 4.5.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -7
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +6 -1
- package/dist/cjs/src/abstract/bydfi.js +11 -0
- package/dist/cjs/src/alpaca.js +21 -21
- package/dist/cjs/src/apex.js +20 -20
- package/dist/cjs/src/arkham.js +22 -22
- package/dist/cjs/src/ascendex.js +28 -28
- package/dist/cjs/src/backpack.js +22 -22
- package/dist/cjs/src/base/Exchange.js +48 -38
- package/dist/cjs/src/base/functions/throttle.js +54 -5
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +83 -82
- package/dist/cjs/src/bingx.js +47 -47
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +49 -48
- package/dist/cjs/src/bitbns.js +13 -13
- package/dist/cjs/src/bitfinex.js +33 -33
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitget.js +58 -57
- package/dist/cjs/src/bithumb.js +10 -10
- package/dist/cjs/src/bitmart.js +44 -44
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +20 -20
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +20 -20
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bittrade.js +20 -20
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/blofin.js +26 -26
- package/dist/cjs/src/btcalpha.js +35 -34
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +16 -16
- package/dist/cjs/src/btcturk.js +10 -10
- package/dist/cjs/src/bullish.js +27 -27
- package/dist/cjs/src/bybit.js +69 -67
- package/dist/cjs/src/bydfi.js +2907 -0
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +74 -41
- package/dist/cjs/src/coinbaseexchange.js +22 -22
- package/dist/cjs/src/coinbaseinternational.js +22 -22
- package/dist/cjs/src/coincatch.js +39 -39
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +48 -48
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinmetro.js +14 -14
- package/dist/cjs/src/coinone.js +11 -11
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +32 -32
- package/dist/cjs/src/cryptomus.js +9 -9
- package/dist/cjs/src/deepcoin.js +33 -33
- package/dist/cjs/src/defx.js +23 -23
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +36 -36
- package/dist/cjs/src/derive.js +19 -19
- package/dist/cjs/src/digifinex.js +36 -36
- package/dist/cjs/src/dydx.js +25 -25
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +60 -59
- package/dist/cjs/src/gemini.js +16 -16
- package/dist/cjs/src/hashkey.js +35 -35
- package/dist/cjs/src/hibachi.js +24 -24
- package/dist/cjs/src/hitbtc.js +38 -38
- package/dist/cjs/src/hollaex.js +22 -22
- package/dist/cjs/src/htx.js +50 -50
- package/dist/cjs/src/hyperliquid.js +86 -45
- package/dist/cjs/src/independentreserve.js +13 -13
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +30 -30
- package/dist/cjs/src/krakenfutures.js +21 -21
- package/dist/cjs/src/kucoin.js +156 -48
- package/dist/cjs/src/kucoinfutures.js +42 -40
- package/dist/cjs/src/latoken.js +16 -16
- package/dist/cjs/src/lbank.js +23 -23
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/mercado.js +11 -11
- package/dist/cjs/src/mexc.js +47 -47
- package/dist/cjs/src/modetrade.js +37 -35
- package/dist/cjs/src/ndax.js +19 -19
- package/dist/cjs/src/novadax.js +19 -19
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okx.js +83 -83
- package/dist/cjs/src/onetrading.js +34 -33
- package/dist/cjs/src/oxfun.js +25 -25
- package/dist/cjs/src/p2b.js +11 -11
- package/dist/cjs/src/paradex.js +54 -54
- package/dist/cjs/src/paymium.js +20 -21
- package/dist/cjs/src/phemex.js +35 -35
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +13 -11
- package/dist/cjs/src/pro/arkham.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/backpack.js +16 -16
- package/dist/cjs/src/pro/binance.js +45 -41
- package/dist/cjs/src/pro/bingx.js +14 -12
- package/dist/cjs/src/pro/bitfinex.js +8 -8
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bithumb.js +3 -3
- package/dist/cjs/src/pro/bitmart.js +393 -34
- package/dist/cjs/src/pro/bitmex.js +9 -9
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrade.js +3 -3
- package/dist/cjs/src/pro/bitvavo.js +19 -19
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +10 -10
- package/dist/cjs/src/pro/bullish.js +6 -6
- package/dist/cjs/src/pro/bybit.js +24 -22
- package/dist/cjs/src/pro/bydfi.js +1077 -0
- package/dist/cjs/src/pro/cex.js +13 -13
- package/dist/cjs/src/pro/coinbase.js +13 -13
- package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
- package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
- package/dist/cjs/src/pro/coincatch.js +10 -10
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +10 -10
- package/dist/cjs/src/pro/coinone.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +25 -23
- package/dist/cjs/src/pro/deepcoin.js +8 -8
- package/dist/cjs/src/pro/defx.js +15 -15
- package/dist/cjs/src/pro/deribit.js +10 -10
- package/dist/cjs/src/pro/derive.js +6 -6
- package/dist/cjs/src/pro/dydx.js +3 -3
- package/dist/cjs/src/pro/exmo.js +7 -7
- package/dist/cjs/src/pro/gate.js +26 -62
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +11 -9
- package/dist/cjs/src/pro/hitbtc.js +8 -8
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +9 -9
- package/dist/cjs/src/pro/hyperliquid.js +103 -14
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +15 -15
- package/dist/cjs/src/pro/krakenfutures.js +10 -10
- package/dist/cjs/src/pro/kucoin.js +15 -15
- package/dist/cjs/src/pro/kucoinfutures.js +18 -16
- package/dist/cjs/src/pro/lbank.js +5 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +13 -13
- package/dist/cjs/src/pro/modetrade.js +13 -11
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okx.js +25 -25
- package/dist/cjs/src/pro/onetrading.js +6 -6
- package/dist/cjs/src/pro/oxfun.js +13 -13
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/paradex.js +8 -8
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +8 -8
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/toobit.js +20 -16
- package/dist/cjs/src/pro/upbit.js +9 -9
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +18 -16
- package/dist/cjs/src/pro/woofipro.js +25 -23
- package/dist/cjs/src/pro/xt.js +7 -5
- package/dist/cjs/src/probit.js +18 -18
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +17 -17
- package/dist/cjs/src/toobit.js +33 -30
- package/dist/cjs/src/upbit.js +23 -23
- package/dist/cjs/src/wavesexchange.js +86 -85
- package/dist/cjs/src/whitebit.js +44 -44
- package/dist/cjs/src/woo.js +51 -49
- package/dist/cjs/src/woofipro.js +104 -82
- package/dist/cjs/src/xt.js +17 -12
- package/dist/cjs/src/yobit.js +15 -15
- package/dist/cjs/src/zaif.js +38 -9
- package/dist/cjs/src/zebpay.js +35 -20
- package/dist/cjs/src/zonda.js +14 -14
- package/js/ccxt.d.ts +8 -2
- package/js/ccxt.js +6 -2
- package/js/src/abstract/bydfi.d.ts +52 -0
- package/js/src/abstract/bydfi.js +11 -0
- package/js/src/alpaca.d.ts +21 -21
- package/js/src/alpaca.js +21 -21
- package/js/src/apex.d.ts +20 -20
- package/js/src/apex.js +20 -20
- package/js/src/arkham.d.ts +22 -22
- package/js/src/arkham.js +22 -22
- package/js/src/ascendex.d.ts +28 -28
- package/js/src/ascendex.js +28 -28
- package/js/src/backpack.d.ts +21 -21
- package/js/src/backpack.js +22 -22
- package/js/src/base/Exchange.d.ts +6 -3
- package/js/src/base/Exchange.js +48 -38
- package/js/src/base/functions/throttle.d.ts +22 -0
- package/js/src/base/functions/throttle.js +54 -5
- package/js/src/bigone.d.ts +19 -19
- package/js/src/bigone.js +19 -19
- package/js/src/binance.d.ts +82 -82
- package/js/src/binance.js +83 -82
- package/js/src/bingx.d.ts +46 -46
- package/js/src/bingx.js +47 -47
- package/js/src/bit2c.d.ts +11 -11
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.d.ts +12 -12
- package/js/src/bitbank.js +49 -48
- package/js/src/bitbns.d.ts +13 -13
- package/js/src/bitbns.js +13 -13
- package/js/src/bitfinex.d.ts +33 -33
- package/js/src/bitfinex.js +33 -33
- package/js/src/bitflyer.d.ts +17 -17
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitget.d.ts +57 -57
- package/js/src/bitget.js +58 -57
- package/js/src/bithumb.d.ts +10 -10
- package/js/src/bithumb.js +10 -10
- package/js/src/bitmart.d.ts +42 -42
- package/js/src/bitmart.js +44 -44
- package/js/src/bitmex.d.ts +24 -24
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.d.ts +20 -20
- package/js/src/bitopro.js +20 -20
- package/js/src/bitrue.d.ts +18 -18
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.d.ts +20 -20
- package/js/src/bitso.js +20 -20
- package/js/src/bitstamp.d.ts +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bittrade.d.ts +20 -20
- package/js/src/bittrade.js +20 -20
- package/js/src/bitvavo.d.ts +19 -19
- package/js/src/bitvavo.js +19 -19
- package/js/src/blockchaincom.d.ts +20 -20
- package/js/src/blockchaincom.js +20 -20
- package/js/src/blofin.d.ts +26 -26
- package/js/src/blofin.js +26 -26
- package/js/src/btcalpha.d.ts +14 -14
- package/js/src/btcalpha.js +35 -34
- package/js/src/btcbox.d.ts +10 -10
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.d.ts +16 -16
- package/js/src/btcmarkets.js +16 -16
- package/js/src/btcturk.d.ts +10 -10
- package/js/src/btcturk.js +10 -10
- package/js/src/bullish.d.ts +26 -26
- package/js/src/bullish.js +27 -27
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +69 -67
- package/js/src/bydfi.d.ts +472 -0
- package/js/src/bydfi.js +2905 -0
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +51 -40
- package/js/src/coinbase.js +74 -41
- package/js/src/coinbaseexchange.d.ts +22 -22
- package/js/src/coinbaseexchange.js +22 -22
- package/js/src/coinbaseinternational.d.ts +22 -22
- package/js/src/coinbaseinternational.js +22 -22
- package/js/src/coincatch.d.ts +39 -39
- package/js/src/coincatch.js +39 -39
- package/js/src/coincheck.d.ts +11 -11
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.d.ts +48 -48
- package/js/src/coinex.js +48 -48
- package/js/src/coinmate.d.ts +14 -14
- package/js/src/coinmate.js +14 -14
- package/js/src/coinmetro.d.ts +14 -14
- package/js/src/coinmetro.js +14 -14
- package/js/src/coinone.d.ts +11 -11
- package/js/src/coinone.js +11 -11
- package/js/src/coinsph.d.ts +20 -20
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.d.ts +8 -8
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.d.ts +32 -32
- package/js/src/cryptocom.js +32 -32
- package/js/src/cryptomus.d.ts +9 -9
- package/js/src/cryptomus.js +9 -9
- package/js/src/deepcoin.d.ts +33 -33
- package/js/src/deepcoin.js +33 -33
- package/js/src/defx.d.ts +23 -23
- package/js/src/defx.js +23 -23
- package/js/src/delta.d.ts +29 -29
- package/js/src/delta.js +29 -29
- package/js/src/deribit.d.ts +36 -36
- package/js/src/deribit.js +36 -36
- package/js/src/derive.d.ts +19 -19
- package/js/src/derive.js +19 -19
- package/js/src/digifinex.d.ts +36 -36
- package/js/src/digifinex.js +36 -36
- package/js/src/dydx.d.ts +22 -22
- package/js/src/dydx.js +25 -25
- package/js/src/exmo.d.ts +29 -29
- package/js/src/exmo.js +29 -29
- package/js/src/foxbit.d.ts +23 -23
- package/js/src/foxbit.js +23 -23
- package/js/src/gate.d.ts +57 -57
- package/js/src/gate.js +60 -59
- package/js/src/gemini.d.ts +16 -16
- package/js/src/gemini.js +16 -16
- package/js/src/hashkey.d.ts +35 -35
- package/js/src/hashkey.js +35 -35
- package/js/src/hibachi.d.ts +24 -24
- package/js/src/hibachi.js +24 -24
- package/js/src/hitbtc.d.ts +38 -38
- package/js/src/hitbtc.js +38 -38
- package/js/src/hollaex.d.ts +22 -22
- package/js/src/hollaex.js +22 -22
- package/js/src/htx.d.ts +50 -50
- package/js/src/htx.js +50 -50
- package/js/src/hyperliquid.d.ts +46 -36
- package/js/src/hyperliquid.js +86 -45
- package/js/src/independentreserve.d.ts +13 -13
- package/js/src/independentreserve.js +13 -13
- package/js/src/indodax.d.ts +14 -14
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.d.ts +30 -30
- package/js/src/kraken.js +30 -30
- package/js/src/krakenfutures.d.ts +21 -21
- package/js/src/krakenfutures.js +21 -21
- package/js/src/kucoin.d.ts +58 -44
- package/js/src/kucoin.js +156 -48
- package/js/src/kucoinfutures.d.ts +35 -35
- package/js/src/kucoinfutures.js +42 -40
- package/js/src/latoken.d.ts +16 -16
- package/js/src/latoken.js +16 -16
- package/js/src/lbank.d.ts +23 -23
- package/js/src/lbank.js +23 -23
- package/js/src/luno.d.ts +17 -17
- package/js/src/luno.js +17 -17
- package/js/src/mercado.d.ts +11 -11
- package/js/src/mercado.js +11 -11
- package/js/src/mexc.d.ts +47 -47
- package/js/src/mexc.js +47 -47
- package/js/src/modetrade.d.ts +31 -31
- package/js/src/modetrade.js +37 -35
- package/js/src/ndax.d.ts +19 -19
- package/js/src/ndax.js +19 -19
- package/js/src/novadax.d.ts +19 -19
- package/js/src/novadax.js +19 -19
- package/js/src/oceanex.d.ts +16 -16
- package/js/src/oceanex.js +16 -16
- package/js/src/okx.d.ts +74 -74
- package/js/src/okx.js +83 -83
- package/js/src/onetrading.d.ts +34 -33
- package/js/src/onetrading.js +34 -33
- package/js/src/oxfun.d.ts +25 -25
- package/js/src/oxfun.js +25 -25
- package/js/src/p2b.d.ts +11 -11
- package/js/src/p2b.js +11 -11
- package/js/src/paradex.d.ts +54 -54
- package/js/src/paradex.js +54 -54
- package/js/src/paymium.d.ts +20 -21
- package/js/src/paymium.js +20 -21
- package/js/src/phemex.d.ts +30 -30
- package/js/src/phemex.js +35 -35
- package/js/src/poloniex.d.ts +26 -26
- package/js/src/poloniex.js +27 -27
- package/js/src/pro/alpaca.d.ts +5 -5
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +8 -8
- package/js/src/pro/apex.js +13 -11
- package/js/src/pro/arkham.d.ts +5 -5
- package/js/src/pro/arkham.js +5 -5
- package/js/src/pro/ascendex.d.ts +5 -5
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/backpack.d.ts +16 -16
- package/js/src/pro/backpack.js +16 -16
- package/js/src/pro/binance.d.ts +35 -35
- package/js/src/pro/binance.js +45 -41
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +14 -12
- package/js/src/pro/bitfinex.d.ts +8 -8
- package/js/src/pro/bitfinex.js +8 -8
- package/js/src/pro/bitget.d.ts +12 -12
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bithumb.d.ts +3 -3
- package/js/src/pro/bithumb.js +3 -3
- package/js/src/pro/bitmart.d.ts +120 -9
- package/js/src/pro/bitmart.js +393 -34
- package/js/src/pro/bitmex.d.ts +9 -9
- package/js/src/pro/bitmex.js +9 -9
- package/js/src/pro/bitopro.d.ts +5 -5
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.d.ts +3 -3
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrade.d.ts +3 -3
- package/js/src/pro/bittrade.js +3 -3
- package/js/src/pro/bitvavo.d.ts +19 -19
- package/js/src/pro/bitvavo.js +19 -19
- package/js/src/pro/blockchaincom.d.ts +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +10 -10
- package/js/src/pro/blofin.js +10 -10
- package/js/src/pro/bullish.d.ts +6 -6
- package/js/src/pro/bullish.js +6 -6
- package/js/src/pro/bybit.d.ts +19 -19
- package/js/src/pro/bybit.js +24 -22
- package/js/src/pro/bydfi.d.ts +206 -0
- package/js/src/pro/bydfi.js +1076 -0
- package/js/src/pro/cex.d.ts +13 -13
- package/js/src/pro/cex.js +13 -13
- package/js/src/pro/coinbase.d.ts +13 -13
- package/js/src/pro/coinbase.js +13 -13
- package/js/src/pro/coinbaseexchange.d.ts +10 -10
- package/js/src/pro/coinbaseexchange.js +10 -10
- package/js/src/pro/coinbaseinternational.d.ts +8 -8
- package/js/src/pro/coinbaseinternational.js +8 -8
- package/js/src/pro/coincatch.d.ts +10 -10
- package/js/src/pro/coincatch.js +10 -10
- package/js/src/pro/coincheck.d.ts +2 -2
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +10 -10
- package/js/src/pro/coinex.js +10 -10
- package/js/src/pro/coinone.d.ts +3 -3
- package/js/src/pro/coinone.js +3 -3
- package/js/src/pro/cryptocom.d.ts +20 -20
- package/js/src/pro/cryptocom.js +25 -23
- package/js/src/pro/deepcoin.d.ts +8 -8
- package/js/src/pro/deepcoin.js +8 -8
- package/js/src/pro/defx.d.ts +15 -15
- package/js/src/pro/defx.js +15 -15
- package/js/src/pro/deribit.d.ts +10 -10
- package/js/src/pro/deribit.js +10 -10
- package/js/src/pro/derive.d.ts +6 -6
- package/js/src/pro/derive.js +6 -6
- package/js/src/pro/dydx.d.ts +3 -3
- package/js/src/pro/dydx.js +3 -3
- package/js/src/pro/exmo.d.ts +7 -7
- package/js/src/pro/exmo.js +7 -7
- package/js/src/pro/gate.d.ts +22 -23
- package/js/src/pro/gate.js +26 -62
- package/js/src/pro/gemini.d.ts +6 -6
- package/js/src/pro/gemini.js +6 -6
- package/js/src/pro/hashkey.d.ts +6 -6
- package/js/src/pro/hashkey.js +11 -9
- package/js/src/pro/hitbtc.d.ts +8 -8
- package/js/src/pro/hitbtc.js +8 -8
- package/js/src/pro/hollaex.d.ts +5 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.d.ts +9 -9
- package/js/src/pro/htx.js +9 -9
- package/js/src/pro/hyperliquid.d.ts +38 -14
- package/js/src/pro/hyperliquid.js +103 -14
- package/js/src/pro/independentreserve.d.ts +2 -2
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +15 -15
- package/js/src/pro/kraken.js +15 -15
- package/js/src/pro/krakenfutures.d.ts +10 -10
- package/js/src/pro/krakenfutures.js +10 -10
- package/js/src/pro/kucoin.d.ts +15 -15
- package/js/src/pro/kucoin.js +15 -15
- package/js/src/pro/kucoinfutures.d.ts +13 -13
- package/js/src/pro/kucoinfutures.js +18 -16
- package/js/src/pro/lbank.d.ts +5 -5
- package/js/src/pro/lbank.js +5 -5
- package/js/src/pro/luno.d.ts +2 -2
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +13 -13
- package/js/src/pro/mexc.js +13 -13
- package/js/src/pro/modetrade.d.ts +8 -8
- package/js/src/pro/modetrade.js +13 -11
- package/js/src/pro/ndax.d.ts +3 -3
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okx.d.ts +25 -25
- package/js/src/pro/okx.js +25 -25
- package/js/src/pro/onetrading.d.ts +6 -6
- package/js/src/pro/onetrading.js +6 -6
- package/js/src/pro/oxfun.d.ts +13 -13
- package/js/src/pro/oxfun.js +13 -13
- package/js/src/pro/p2b.d.ts +5 -5
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/paradex.d.ts +8 -8
- package/js/src/pro/paradex.js +8 -8
- package/js/src/pro/phemex.d.ts +7 -7
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.d.ts +8 -8
- package/js/src/pro/poloniex.js +8 -8
- package/js/src/pro/probit.d.ts +6 -6
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/toobit.d.ts +9 -9
- package/js/src/pro/toobit.js +20 -16
- package/js/src/pro/upbit.d.ts +9 -9
- package/js/src/pro/upbit.js +9 -9
- package/js/src/pro/whitebit.d.ts +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.d.ts +13 -13
- package/js/src/pro/woo.js +18 -16
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +25 -23
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +7 -5
- package/js/src/probit.d.ts +18 -18
- package/js/src/probit.js +18 -18
- package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
- package/js/src/static_dependencies/ethers/utils/index.js +8 -1
- package/js/src/timex.d.ts +16 -16
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.d.ts +17 -17
- package/js/src/tokocrypto.js +17 -17
- package/js/src/toobit.d.ts +27 -27
- package/js/src/toobit.js +33 -30
- package/js/src/upbit.d.ts +23 -23
- package/js/src/upbit.js +23 -23
- package/js/src/wavesexchange.d.ts +15 -15
- package/js/src/wavesexchange.js +86 -85
- package/js/src/whitebit.d.ts +44 -44
- package/js/src/whitebit.js +44 -44
- package/js/src/woo.d.ts +45 -45
- package/js/src/woo.js +51 -49
- package/js/src/woofipro.d.ts +77 -77
- package/js/src/woofipro.js +104 -82
- package/js/src/xt.d.ts +12 -12
- package/js/src/xt.js +17 -12
- package/js/src/yobit.d.ts +15 -15
- package/js/src/yobit.js +15 -15
- package/js/src/zaif.d.ts +9 -9
- package/js/src/zaif.js +38 -9
- package/js/src/zebpay.d.ts +20 -20
- package/js/src/zebpay.js +35 -20
- package/js/src/zonda.d.ts +14 -14
- package/js/src/zonda.js +14 -14
- package/package.json +1 -1
package/js/src/probit.js
CHANGED
|
@@ -605,7 +605,7 @@ export default class probit extends Exchange {
|
|
|
605
605
|
* @see https://docs-en.probit.com/reference/balance
|
|
606
606
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
607
607
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
608
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
608
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
609
609
|
*/
|
|
610
610
|
async fetchBalance(params = {}) {
|
|
611
611
|
await this.loadMarkets();
|
|
@@ -631,7 +631,7 @@ export default class probit extends Exchange {
|
|
|
631
631
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
632
632
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
633
633
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
634
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
634
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
635
635
|
*/
|
|
636
636
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
637
637
|
await this.loadMarkets();
|
|
@@ -660,7 +660,7 @@ export default class probit extends Exchange {
|
|
|
660
660
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
661
661
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
662
662
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
663
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
663
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
664
664
|
*/
|
|
665
665
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
666
666
|
await this.loadMarkets();
|
|
@@ -696,7 +696,7 @@ export default class probit extends Exchange {
|
|
|
696
696
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
697
697
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
698
698
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
699
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
699
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
700
700
|
*/
|
|
701
701
|
async fetchTicker(symbol, params = {}) {
|
|
702
702
|
await this.loadMarkets();
|
|
@@ -780,7 +780,7 @@ export default class probit extends Exchange {
|
|
|
780
780
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
781
781
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
782
782
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
783
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
783
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
784
784
|
*/
|
|
785
785
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
786
786
|
await this.loadMarkets();
|
|
@@ -834,7 +834,7 @@ export default class probit extends Exchange {
|
|
|
834
834
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
835
835
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
836
836
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
837
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
837
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
838
838
|
*/
|
|
839
839
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
840
840
|
await this.loadMarkets();
|
|
@@ -1100,7 +1100,7 @@ export default class probit extends Exchange {
|
|
|
1100
1100
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1101
1101
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1102
1102
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1103
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1103
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1104
1104
|
*/
|
|
1105
1105
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1106
1106
|
await this.loadMarkets();
|
|
@@ -1124,7 +1124,7 @@ export default class probit extends Exchange {
|
|
|
1124
1124
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1125
1125
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1126
1126
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1127
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1127
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1128
1128
|
*/
|
|
1129
1129
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1130
1130
|
await this.loadMarkets();
|
|
@@ -1156,7 +1156,7 @@ export default class probit extends Exchange {
|
|
|
1156
1156
|
* @param {string} id the order id
|
|
1157
1157
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1158
1158
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1159
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1159
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1160
1160
|
*/
|
|
1161
1161
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1162
1162
|
if (symbol === undefined) {
|
|
@@ -1267,7 +1267,7 @@ export default class probit extends Exchange {
|
|
|
1267
1267
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1268
1268
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1269
1269
|
* @param {float} [params.cost] the quote quantity that can be used as an alternative for the amount for market buy orders
|
|
1270
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1270
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1271
1271
|
*/
|
|
1272
1272
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1273
1273
|
await this.loadMarkets();
|
|
@@ -1362,7 +1362,7 @@ export default class probit extends Exchange {
|
|
|
1362
1362
|
* @param {string} id order id
|
|
1363
1363
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1364
1364
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1365
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1365
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1366
1366
|
*/
|
|
1367
1367
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1368
1368
|
if (symbol === undefined) {
|
|
@@ -1401,7 +1401,7 @@ export default class probit extends Exchange {
|
|
|
1401
1401
|
* @description fetch the deposit address for a currency associated with this account
|
|
1402
1402
|
* @param {string} code unified currency code
|
|
1403
1403
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1404
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
1404
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
1405
1405
|
*/
|
|
1406
1406
|
async fetchDepositAddress(code, params = {}) {
|
|
1407
1407
|
await this.loadMarkets();
|
|
@@ -1455,7 +1455,7 @@ export default class probit extends Exchange {
|
|
|
1455
1455
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1456
1456
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
1457
1457
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1458
|
-
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com
|
|
1458
|
+
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/?id=address-structure}
|
|
1459
1459
|
*/
|
|
1460
1460
|
async fetchDepositAddresses(codes = undefined, params = {}) {
|
|
1461
1461
|
await this.loadMarkets();
|
|
@@ -1482,7 +1482,7 @@ export default class probit extends Exchange {
|
|
|
1482
1482
|
* @param {string} address the address to withdraw to
|
|
1483
1483
|
* @param {string} tag
|
|
1484
1484
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1485
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
1485
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1486
1486
|
*/
|
|
1487
1487
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
1488
1488
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1527,7 +1527,7 @@ export default class probit extends Exchange {
|
|
|
1527
1527
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1528
1528
|
* @param {int} [limit] the maximum number of transaction structures to retrieve
|
|
1529
1529
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1530
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
1530
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1531
1531
|
*/
|
|
1532
1532
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1533
1533
|
const request = {
|
|
@@ -1544,7 +1544,7 @@ export default class probit extends Exchange {
|
|
|
1544
1544
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1545
1545
|
* @param {int} [limit] the maximum number of transaction structures to retrieve
|
|
1546
1546
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1547
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
1547
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1548
1548
|
*/
|
|
1549
1549
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1550
1550
|
const request = {
|
|
@@ -1563,7 +1563,7 @@ export default class probit extends Exchange {
|
|
|
1563
1563
|
* @param {int} [limit] the maximum number of transaction structures to retrieve
|
|
1564
1564
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1565
1565
|
* @param {int} [params.until] the latest time in ms to fetch transactions for
|
|
1566
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
1566
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1567
1567
|
*/
|
|
1568
1568
|
async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1569
1569
|
await this.loadMarkets();
|
|
@@ -1705,7 +1705,7 @@ export default class probit extends Exchange {
|
|
|
1705
1705
|
* @description fetch deposit and withdraw fees
|
|
1706
1706
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1707
1707
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1708
|
-
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com
|
|
1708
|
+
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
1709
1709
|
*/
|
|
1710
1710
|
async fetchDepositWithdrawFees(codes = undefined, params = {}) {
|
|
1711
1711
|
await this.loadMarkets();
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { decodeBase58, encodeBase58 } from "./base58.js";
|
|
9
9
|
export { decodeBase64, encodeBase64 } from "./base64.js";
|
|
10
|
-
|
|
10
|
+
import { getBytes, getBytesCopy, isHexString, isBytesLike, hexlify, concat, dataLength, dataSlice, stripZerosLeft, zeroPadValue, zeroPadBytes } from "./data.js";
|
|
11
|
+
export { getBytes, getBytesCopy, isHexString, isBytesLike, hexlify, concat, dataLength, dataSlice, stripZerosLeft, zeroPadValue, zeroPadBytes };
|
|
11
12
|
export { isCallException, isError, assert, assertArgument, assertArgumentCount, assertPrivate, assertNormalize, makeError } from "./errors.js";
|
|
12
13
|
export { EventPayload } from "./events.js";
|
|
13
14
|
export { FixedNumber } from "./fixednumber.js";
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
export { decodeBase58, encodeBase58 } from "./base58.js";
|
|
15
15
|
export { decodeBase64, encodeBase64 } from "./base64.js";
|
|
16
|
-
|
|
16
|
+
import { getBytes, getBytesCopy, isHexString, isBytesLike, hexlify, concat, dataLength, dataSlice, stripZerosLeft, zeroPadValue, zeroPadBytes } from "./data.js";
|
|
17
|
+
export { getBytes, getBytesCopy, isHexString, isBytesLike, hexlify, concat, dataLength, dataSlice, stripZerosLeft, zeroPadValue, zeroPadBytes };
|
|
17
18
|
export { isCallException, isError, assert, assertArgument, assertArgumentCount, assertPrivate, assertNormalize, makeError } from "./errors.js";
|
|
18
19
|
export { EventPayload } from "./events.js";
|
|
19
20
|
export { FixedNumber } from "./fixednumber.js";
|
|
@@ -31,8 +32,14 @@ export function id(value) {
|
|
|
31
32
|
return '0x' + hash(value, keccak_256, 'hex');
|
|
32
33
|
}
|
|
33
34
|
export function keccak256(value) {
|
|
35
|
+
if (isHexString(value)) {
|
|
36
|
+
return '0x' + hash(getBytes(value), keccak_256, 'hex');
|
|
37
|
+
}
|
|
34
38
|
return '0x' + hash(value, keccak_256, 'hex');
|
|
35
39
|
}
|
|
36
40
|
export function sha256(value) {
|
|
41
|
+
if (isHexString(value)) {
|
|
42
|
+
return '0x' + hash(getBytes(value), sha_256, 'hex');
|
|
43
|
+
}
|
|
37
44
|
return '0x' + hash(value, sha_256, 'hex');
|
|
38
45
|
}
|
package/js/src/timex.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export default class timex extends Exchange {
|
|
|
41
41
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
42
42
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
43
43
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
44
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
44
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
45
45
|
*/
|
|
46
46
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
47
47
|
/**
|
|
@@ -53,7 +53,7 @@ export default class timex extends Exchange {
|
|
|
53
53
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
54
54
|
* @param {int} [limit] the maximum number of transaction structures to retrieve
|
|
55
55
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
56
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
56
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
57
57
|
*/
|
|
58
58
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
59
59
|
getCurrencyByAddress(address: any): any;
|
|
@@ -65,7 +65,7 @@ export default class timex extends Exchange {
|
|
|
65
65
|
* @see https://plasma-relay-backend.timex.io/swagger-ui/index.html?urls.primaryName=Relay#/Public/listTickers
|
|
66
66
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
67
67
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
68
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
68
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
69
69
|
*/
|
|
70
70
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
71
71
|
/**
|
|
@@ -75,7 +75,7 @@ export default class timex extends Exchange {
|
|
|
75
75
|
* @see https://plasma-relay-backend.timex.io/swagger-ui/index.html?urls.primaryName=Relay#/Public/listTickers
|
|
76
76
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
77
77
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
78
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
78
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
79
79
|
*/
|
|
80
80
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
81
81
|
/**
|
|
@@ -86,7 +86,7 @@ export default class timex extends Exchange {
|
|
|
86
86
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
87
87
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
88
88
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
89
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
89
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
90
90
|
*/
|
|
91
91
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
92
92
|
/**
|
|
@@ -98,7 +98,7 @@ export default class timex extends Exchange {
|
|
|
98
98
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
99
99
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
100
100
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
101
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
101
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
102
102
|
*/
|
|
103
103
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
104
104
|
/**
|
|
@@ -122,7 +122,7 @@ export default class timex extends Exchange {
|
|
|
122
122
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
123
123
|
* @see https://plasma-relay-backend.timex.io/swagger-ui/index.html?urls.primaryName=Relay#/Trading/getBalances
|
|
124
124
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
125
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
125
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
126
126
|
*/
|
|
127
127
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
128
128
|
/**
|
|
@@ -136,7 +136,7 @@ export default class timex extends Exchange {
|
|
|
136
136
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
137
137
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
138
138
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
139
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
139
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
140
140
|
*/
|
|
141
141
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
142
142
|
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
@@ -148,7 +148,7 @@ export default class timex extends Exchange {
|
|
|
148
148
|
* @param {string} id order id
|
|
149
149
|
* @param {string} symbol not used by timex cancelOrder ()
|
|
150
150
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
151
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
151
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
152
152
|
*/
|
|
153
153
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
154
154
|
/**
|
|
@@ -159,7 +159,7 @@ export default class timex extends Exchange {
|
|
|
159
159
|
* @param {string[]} ids order ids
|
|
160
160
|
* @param {string} symbol unified market symbol, default is undefined
|
|
161
161
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
162
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
162
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
163
163
|
*/
|
|
164
164
|
cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
|
|
165
165
|
/**
|
|
@@ -170,7 +170,7 @@ export default class timex extends Exchange {
|
|
|
170
170
|
* @param {string} id order id
|
|
171
171
|
* @param {string} symbol not used by timex fetchOrder
|
|
172
172
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
173
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
173
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
174
174
|
*/
|
|
175
175
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
176
176
|
/**
|
|
@@ -182,7 +182,7 @@ export default class timex extends Exchange {
|
|
|
182
182
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
183
183
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
184
184
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
185
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
185
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
186
186
|
*/
|
|
187
187
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
188
188
|
/**
|
|
@@ -194,7 +194,7 @@ export default class timex extends Exchange {
|
|
|
194
194
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
195
195
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
196
196
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
197
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
197
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
198
198
|
*/
|
|
199
199
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
200
200
|
/**
|
|
@@ -206,7 +206,7 @@ export default class timex extends Exchange {
|
|
|
206
206
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
207
207
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
208
208
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
209
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
209
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
210
210
|
*/
|
|
211
211
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
212
212
|
parseTradingFee(fee: Dict, market?: Market): TradingFeeInterface;
|
|
@@ -217,7 +217,7 @@ export default class timex extends Exchange {
|
|
|
217
217
|
* @see https://plasma-relay-backend.timex.io/swagger-ui/index.html?urls.primaryName=Relay#/Trading/getFees
|
|
218
218
|
* @param {string} symbol unified market symbol
|
|
219
219
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
220
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
220
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
221
221
|
*/
|
|
222
222
|
fetchTradingFee(symbol: string, params?: {}): Promise<TradingFeeInterface>;
|
|
223
223
|
parseMarket(market: Dict): Market;
|
|
@@ -233,7 +233,7 @@ export default class timex extends Exchange {
|
|
|
233
233
|
* @see https://plasma-relay-backend.timex.io/swagger-ui/index.html?urls.primaryName=Relay#/Currency/selectCurrencyBySymbol
|
|
234
234
|
* @param {string} code unified currency code
|
|
235
235
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
236
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
236
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
237
237
|
*/
|
|
238
238
|
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
239
239
|
parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
|
package/js/src/timex.js
CHANGED
|
@@ -471,7 +471,7 @@ export default class timex extends Exchange {
|
|
|
471
471
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
472
472
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
473
473
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
474
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
474
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
475
475
|
*/
|
|
476
476
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
477
477
|
const address = this.safeString(params, 'address');
|
|
@@ -507,7 +507,7 @@ export default class timex extends Exchange {
|
|
|
507
507
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
508
508
|
* @param {int} [limit] the maximum number of transaction structures to retrieve
|
|
509
509
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
510
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
510
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
511
511
|
*/
|
|
512
512
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
513
513
|
const address = this.safeString(params, 'address');
|
|
@@ -590,7 +590,7 @@ export default class timex extends Exchange {
|
|
|
590
590
|
* @see https://plasma-relay-backend.timex.io/swagger-ui/index.html?urls.primaryName=Relay#/Public/listTickers
|
|
591
591
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
592
592
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
593
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
593
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
594
594
|
*/
|
|
595
595
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
596
596
|
await this.loadMarkets();
|
|
@@ -625,7 +625,7 @@ export default class timex extends Exchange {
|
|
|
625
625
|
* @see https://plasma-relay-backend.timex.io/swagger-ui/index.html?urls.primaryName=Relay#/Public/listTickers
|
|
626
626
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
627
627
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
628
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
628
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
629
629
|
*/
|
|
630
630
|
async fetchTicker(symbol, params = {}) {
|
|
631
631
|
await this.loadMarkets();
|
|
@@ -664,7 +664,7 @@ export default class timex extends Exchange {
|
|
|
664
664
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
665
665
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
666
666
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
667
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
667
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
668
668
|
*/
|
|
669
669
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
670
670
|
await this.loadMarkets();
|
|
@@ -712,7 +712,7 @@ export default class timex extends Exchange {
|
|
|
712
712
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
713
713
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
714
714
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
715
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
715
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
716
716
|
*/
|
|
717
717
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
718
718
|
await this.loadMarkets();
|
|
@@ -836,7 +836,7 @@ export default class timex extends Exchange {
|
|
|
836
836
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
837
837
|
* @see https://plasma-relay-backend.timex.io/swagger-ui/index.html?urls.primaryName=Relay#/Trading/getBalances
|
|
838
838
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
839
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
839
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
840
840
|
*/
|
|
841
841
|
async fetchBalance(params = {}) {
|
|
842
842
|
await this.loadMarkets();
|
|
@@ -863,7 +863,7 @@ export default class timex extends Exchange {
|
|
|
863
863
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
864
864
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
865
865
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
866
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
866
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
867
867
|
*/
|
|
868
868
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
869
869
|
await this.loadMarkets();
|
|
@@ -989,7 +989,7 @@ export default class timex extends Exchange {
|
|
|
989
989
|
* @param {string} id order id
|
|
990
990
|
* @param {string} symbol not used by timex cancelOrder ()
|
|
991
991
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
992
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
992
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
993
993
|
*/
|
|
994
994
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
995
995
|
await this.loadMarkets();
|
|
@@ -1004,7 +1004,7 @@ export default class timex extends Exchange {
|
|
|
1004
1004
|
* @param {string[]} ids order ids
|
|
1005
1005
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1006
1006
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1007
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
1007
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1008
1008
|
*/
|
|
1009
1009
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
1010
1010
|
await this.loadMarkets();
|
|
@@ -1061,7 +1061,7 @@ export default class timex extends Exchange {
|
|
|
1061
1061
|
* @param {string} id order id
|
|
1062
1062
|
* @param {string} symbol not used by timex fetchOrder
|
|
1063
1063
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1064
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1064
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1065
1065
|
*/
|
|
1066
1066
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1067
1067
|
await this.loadMarkets();
|
|
@@ -1115,7 +1115,7 @@ export default class timex extends Exchange {
|
|
|
1115
1115
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1116
1116
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1117
1117
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1118
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1118
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1119
1119
|
*/
|
|
1120
1120
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1121
1121
|
await this.loadMarkets();
|
|
@@ -1170,7 +1170,7 @@ export default class timex extends Exchange {
|
|
|
1170
1170
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1171
1171
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1172
1172
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1173
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1173
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1174
1174
|
*/
|
|
1175
1175
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1176
1176
|
await this.loadMarkets();
|
|
@@ -1230,7 +1230,7 @@ export default class timex extends Exchange {
|
|
|
1230
1230
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1231
1231
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1232
1232
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1233
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1233
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
1234
1234
|
*/
|
|
1235
1235
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1236
1236
|
await this.loadMarkets();
|
|
@@ -1309,7 +1309,7 @@ export default class timex extends Exchange {
|
|
|
1309
1309
|
* @see https://plasma-relay-backend.timex.io/swagger-ui/index.html?urls.primaryName=Relay#/Trading/getFees
|
|
1310
1310
|
* @param {string} symbol unified market symbol
|
|
1311
1311
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1312
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
1312
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
1313
1313
|
*/
|
|
1314
1314
|
async fetchTradingFee(symbol, params = {}) {
|
|
1315
1315
|
await this.loadMarkets();
|
|
@@ -1697,7 +1697,7 @@ export default class timex extends Exchange {
|
|
|
1697
1697
|
* @see https://plasma-relay-backend.timex.io/swagger-ui/index.html?urls.primaryName=Relay#/Currency/selectCurrencyBySymbol
|
|
1698
1698
|
* @param {string} code unified currency code
|
|
1699
1699
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1700
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
1700
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
1701
1701
|
*/
|
|
1702
1702
|
async fetchDepositAddress(code, params = {}) {
|
|
1703
1703
|
await this.loadMarkets();
|
package/js/src/tokocrypto.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export default class tokocrypto extends Exchange {
|
|
|
33
33
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
34
34
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
35
35
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
36
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
36
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
37
37
|
*/
|
|
38
38
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
39
39
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
@@ -47,7 +47,7 @@ export default class tokocrypto extends Exchange {
|
|
|
47
47
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
48
48
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
49
49
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
50
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
50
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
51
51
|
*/
|
|
52
52
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
53
53
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
@@ -58,7 +58,7 @@ export default class tokocrypto extends Exchange {
|
|
|
58
58
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
59
59
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
60
60
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
61
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
61
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
62
62
|
*/
|
|
63
63
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
64
64
|
getMarketIdByType(market: any): any;
|
|
@@ -69,7 +69,7 @@ export default class tokocrypto extends Exchange {
|
|
|
69
69
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
70
70
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
71
71
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
72
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
72
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
73
73
|
*/
|
|
74
74
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
75
75
|
/**
|
|
@@ -79,7 +79,7 @@ export default class tokocrypto extends Exchange {
|
|
|
79
79
|
* @description fetches the bid and ask price and volume for multiple markets
|
|
80
80
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
81
81
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
82
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
82
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
83
83
|
*/
|
|
84
84
|
fetchBidsAsks(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
85
85
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
@@ -107,7 +107,7 @@ export default class tokocrypto extends Exchange {
|
|
|
107
107
|
* @param {string} [params.type] 'future', 'delivery', 'savings', 'funding', or 'spot'
|
|
108
108
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
|
|
109
109
|
* @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
|
|
110
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
110
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
111
111
|
*/
|
|
112
112
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
113
113
|
parseBalanceCustom(response: any, type?: any, marginMode?: any): Balances;
|
|
@@ -127,7 +127,7 @@ export default class tokocrypto extends Exchange {
|
|
|
127
127
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
128
128
|
* @param {float} [params.triggerPrice] the price at which a trigger order would be triggered
|
|
129
129
|
* @param {float} [params.cost] for spot market buy orders, the quote quantity that can be used as an alternative for the amount
|
|
130
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
130
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
131
131
|
*/
|
|
132
132
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
133
133
|
/**
|
|
@@ -138,7 +138,7 @@ export default class tokocrypto extends Exchange {
|
|
|
138
138
|
* @param {string} id order id
|
|
139
139
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
140
140
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
141
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
141
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
142
142
|
*/
|
|
143
143
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
144
144
|
/**
|
|
@@ -150,7 +150,7 @@ export default class tokocrypto extends Exchange {
|
|
|
150
150
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
151
151
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
152
152
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
153
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
153
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
154
154
|
*/
|
|
155
155
|
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
156
156
|
/**
|
|
@@ -162,7 +162,7 @@ export default class tokocrypto extends Exchange {
|
|
|
162
162
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
163
163
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
164
164
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
165
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
165
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
166
166
|
*/
|
|
167
167
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
168
168
|
/**
|
|
@@ -174,7 +174,7 @@ export default class tokocrypto extends Exchange {
|
|
|
174
174
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
175
175
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
176
176
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
177
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
177
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
178
178
|
*/
|
|
179
179
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
180
180
|
/**
|
|
@@ -185,7 +185,7 @@ export default class tokocrypto extends Exchange {
|
|
|
185
185
|
* @param {string} id order id
|
|
186
186
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
187
187
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
188
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
188
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
189
189
|
*/
|
|
190
190
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
191
191
|
/**
|
|
@@ -197,7 +197,7 @@ export default class tokocrypto extends Exchange {
|
|
|
197
197
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
198
198
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
199
199
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
200
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
200
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
201
201
|
*/
|
|
202
202
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
203
203
|
/**
|
|
@@ -207,7 +207,7 @@ export default class tokocrypto extends Exchange {
|
|
|
207
207
|
* @see https://www.tokocrypto.com/apidocs/#deposit-address-signed
|
|
208
208
|
* @param {string} code unified currency code
|
|
209
209
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
210
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
210
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
211
211
|
*/
|
|
212
212
|
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
213
213
|
/**
|
|
@@ -220,7 +220,7 @@ export default class tokocrypto extends Exchange {
|
|
|
220
220
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
221
221
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
222
222
|
* @param {int} [params.until] the latest time in ms to fetch deposits for
|
|
223
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
223
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
224
224
|
*/
|
|
225
225
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
226
226
|
/**
|
|
@@ -232,7 +232,7 @@ export default class tokocrypto extends Exchange {
|
|
|
232
232
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
233
233
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
234
234
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
235
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
235
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
236
236
|
*/
|
|
237
237
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
238
238
|
parseTransactionStatusByType(status: any, type?: any): string;
|
|
@@ -247,7 +247,7 @@ export default class tokocrypto extends Exchange {
|
|
|
247
247
|
* @param {string} address the address to withdraw to
|
|
248
248
|
* @param {string} tag
|
|
249
249
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
250
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
250
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
251
251
|
*/
|
|
252
252
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
253
253
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|