ccxt 4.5.28 → 4.5.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -5
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/alpaca.js +21 -21
- package/dist/cjs/src/apex.js +20 -20
- package/dist/cjs/src/arkham.js +22 -22
- package/dist/cjs/src/ascendex.js +28 -28
- package/dist/cjs/src/backpack.js +22 -22
- package/dist/cjs/src/base/Exchange.js +48 -38
- package/dist/cjs/src/base/functions/throttle.js +54 -5
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +83 -82
- package/dist/cjs/src/bingx.js +46 -46
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +49 -48
- package/dist/cjs/src/bitbns.js +13 -13
- package/dist/cjs/src/bitfinex.js +33 -33
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitget.js +58 -57
- package/dist/cjs/src/bithumb.js +10 -10
- package/dist/cjs/src/bitmart.js +44 -44
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +20 -20
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +20 -20
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bittrade.js +20 -20
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/blofin.js +26 -26
- package/dist/cjs/src/btcalpha.js +35 -34
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +16 -16
- package/dist/cjs/src/btcturk.js +10 -10
- package/dist/cjs/src/bullish.js +26 -26
- package/dist/cjs/src/bybit.js +67 -67
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +40 -40
- package/dist/cjs/src/coinbaseexchange.js +22 -22
- package/dist/cjs/src/coinbaseinternational.js +22 -22
- package/dist/cjs/src/coincatch.js +39 -39
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +48 -48
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinmetro.js +14 -14
- package/dist/cjs/src/coinone.js +11 -11
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +32 -32
- package/dist/cjs/src/cryptomus.js +9 -9
- package/dist/cjs/src/deepcoin.js +33 -33
- package/dist/cjs/src/defx.js +23 -23
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +36 -36
- package/dist/cjs/src/derive.js +19 -19
- package/dist/cjs/src/digifinex.js +36 -36
- package/dist/cjs/src/dydx.js +22 -22
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +57 -57
- package/dist/cjs/src/gemini.js +16 -16
- package/dist/cjs/src/hashkey.js +35 -35
- package/dist/cjs/src/hibachi.js +24 -24
- package/dist/cjs/src/hitbtc.js +38 -38
- package/dist/cjs/src/hollaex.js +22 -22
- package/dist/cjs/src/htx.js +50 -50
- package/dist/cjs/src/hyperliquid.js +76 -42
- package/dist/cjs/src/independentreserve.js +13 -13
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +30 -30
- package/dist/cjs/src/krakenfutures.js +21 -21
- package/dist/cjs/src/kucoin.js +44 -44
- package/dist/cjs/src/kucoinfutures.js +42 -40
- package/dist/cjs/src/latoken.js +16 -16
- package/dist/cjs/src/lbank.js +23 -23
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/mercado.js +11 -11
- package/dist/cjs/src/mexc.js +47 -47
- package/dist/cjs/src/modetrade.js +37 -35
- package/dist/cjs/src/ndax.js +19 -19
- package/dist/cjs/src/novadax.js +19 -19
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okx.js +83 -83
- package/dist/cjs/src/onetrading.js +34 -33
- package/dist/cjs/src/oxfun.js +25 -25
- package/dist/cjs/src/p2b.js +11 -11
- package/dist/cjs/src/paradex.js +54 -54
- package/dist/cjs/src/paymium.js +20 -21
- package/dist/cjs/src/phemex.js +35 -35
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +8 -8
- package/dist/cjs/src/pro/arkham.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/backpack.js +16 -16
- package/dist/cjs/src/pro/binance.js +35 -35
- package/dist/cjs/src/pro/bingx.js +9 -9
- package/dist/cjs/src/pro/bitfinex.js +8 -8
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bithumb.js +3 -3
- package/dist/cjs/src/pro/bitmart.js +388 -31
- package/dist/cjs/src/pro/bitmex.js +9 -9
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrade.js +3 -3
- package/dist/cjs/src/pro/bitvavo.js +19 -19
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +10 -10
- package/dist/cjs/src/pro/bullish.js +6 -6
- package/dist/cjs/src/pro/bybit.js +19 -19
- package/dist/cjs/src/pro/cex.js +13 -13
- package/dist/cjs/src/pro/coinbase.js +13 -13
- package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
- package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
- package/dist/cjs/src/pro/coincatch.js +10 -10
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +10 -10
- package/dist/cjs/src/pro/coinone.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +20 -20
- package/dist/cjs/src/pro/deepcoin.js +8 -8
- package/dist/cjs/src/pro/defx.js +15 -15
- package/dist/cjs/src/pro/deribit.js +10 -10
- package/dist/cjs/src/pro/derive.js +6 -6
- package/dist/cjs/src/pro/dydx.js +3 -3
- package/dist/cjs/src/pro/exmo.js +7 -7
- package/dist/cjs/src/pro/gate.js +21 -59
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +6 -6
- package/dist/cjs/src/pro/hitbtc.js +8 -8
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +9 -9
- package/dist/cjs/src/pro/hyperliquid.js +103 -14
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +15 -15
- package/dist/cjs/src/pro/krakenfutures.js +10 -10
- package/dist/cjs/src/pro/kucoin.js +15 -15
- package/dist/cjs/src/pro/kucoinfutures.js +13 -13
- package/dist/cjs/src/pro/lbank.js +5 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +13 -13
- package/dist/cjs/src/pro/modetrade.js +8 -8
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okx.js +25 -25
- package/dist/cjs/src/pro/onetrading.js +6 -6
- package/dist/cjs/src/pro/oxfun.js +13 -13
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/paradex.js +8 -8
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +8 -8
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/toobit.js +9 -9
- package/dist/cjs/src/pro/upbit.js +9 -9
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +13 -13
- package/dist/cjs/src/pro/woofipro.js +20 -20
- package/dist/cjs/src/pro/xt.js +2 -2
- package/dist/cjs/src/probit.js +18 -18
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +17 -17
- package/dist/cjs/src/toobit.js +31 -29
- package/dist/cjs/src/upbit.js +23 -23
- package/dist/cjs/src/wavesexchange.js +86 -85
- package/dist/cjs/src/whitebit.js +44 -44
- package/dist/cjs/src/woo.js +51 -49
- package/dist/cjs/src/woofipro.js +104 -82
- package/dist/cjs/src/xt.js +17 -12
- package/dist/cjs/src/yobit.js +15 -15
- package/dist/cjs/src/zaif.js +38 -9
- package/dist/cjs/src/zebpay.js +35 -20
- package/dist/cjs/src/zonda.js +14 -14
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/alpaca.d.ts +21 -21
- package/js/src/alpaca.js +21 -21
- package/js/src/apex.d.ts +20 -20
- package/js/src/apex.js +20 -20
- package/js/src/arkham.d.ts +22 -22
- package/js/src/arkham.js +22 -22
- package/js/src/ascendex.d.ts +28 -28
- package/js/src/ascendex.js +28 -28
- package/js/src/backpack.d.ts +21 -21
- package/js/src/backpack.js +22 -22
- package/js/src/base/Exchange.d.ts +6 -3
- package/js/src/base/Exchange.js +48 -38
- package/js/src/base/functions/throttle.d.ts +22 -0
- package/js/src/base/functions/throttle.js +54 -5
- package/js/src/bigone.d.ts +19 -19
- package/js/src/bigone.js +19 -19
- package/js/src/binance.d.ts +82 -82
- package/js/src/binance.js +83 -82
- package/js/src/bingx.d.ts +46 -46
- package/js/src/bingx.js +46 -46
- package/js/src/bit2c.d.ts +11 -11
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.d.ts +12 -12
- package/js/src/bitbank.js +49 -48
- package/js/src/bitbns.d.ts +13 -13
- package/js/src/bitbns.js +13 -13
- package/js/src/bitfinex.d.ts +33 -33
- package/js/src/bitfinex.js +33 -33
- package/js/src/bitflyer.d.ts +17 -17
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitget.d.ts +57 -57
- package/js/src/bitget.js +58 -57
- package/js/src/bithumb.d.ts +10 -10
- package/js/src/bithumb.js +10 -10
- package/js/src/bitmart.d.ts +42 -42
- package/js/src/bitmart.js +44 -44
- package/js/src/bitmex.d.ts +24 -24
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.d.ts +20 -20
- package/js/src/bitopro.js +20 -20
- package/js/src/bitrue.d.ts +18 -18
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.d.ts +20 -20
- package/js/src/bitso.js +20 -20
- package/js/src/bitstamp.d.ts +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bittrade.d.ts +20 -20
- package/js/src/bittrade.js +20 -20
- package/js/src/bitvavo.d.ts +19 -19
- package/js/src/bitvavo.js +19 -19
- package/js/src/blockchaincom.d.ts +20 -20
- package/js/src/blockchaincom.js +20 -20
- package/js/src/blofin.d.ts +26 -26
- package/js/src/blofin.js +26 -26
- package/js/src/btcalpha.d.ts +14 -14
- package/js/src/btcalpha.js +35 -34
- package/js/src/btcbox.d.ts +10 -10
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.d.ts +16 -16
- package/js/src/btcmarkets.js +16 -16
- package/js/src/btcturk.d.ts +10 -10
- package/js/src/btcturk.js +10 -10
- package/js/src/bullish.d.ts +26 -26
- package/js/src/bullish.js +26 -26
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +67 -67
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +40 -40
- package/js/src/coinbase.js +40 -40
- package/js/src/coinbaseexchange.d.ts +22 -22
- package/js/src/coinbaseexchange.js +22 -22
- package/js/src/coinbaseinternational.d.ts +22 -22
- package/js/src/coinbaseinternational.js +22 -22
- package/js/src/coincatch.d.ts +39 -39
- package/js/src/coincatch.js +39 -39
- package/js/src/coincheck.d.ts +11 -11
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.d.ts +48 -48
- package/js/src/coinex.js +48 -48
- package/js/src/coinmate.d.ts +14 -14
- package/js/src/coinmate.js +14 -14
- package/js/src/coinmetro.d.ts +14 -14
- package/js/src/coinmetro.js +14 -14
- package/js/src/coinone.d.ts +11 -11
- package/js/src/coinone.js +11 -11
- package/js/src/coinsph.d.ts +20 -20
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.d.ts +8 -8
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.d.ts +32 -32
- package/js/src/cryptocom.js +32 -32
- package/js/src/cryptomus.d.ts +9 -9
- package/js/src/cryptomus.js +9 -9
- package/js/src/deepcoin.d.ts +33 -33
- package/js/src/deepcoin.js +33 -33
- package/js/src/defx.d.ts +23 -23
- package/js/src/defx.js +23 -23
- package/js/src/delta.d.ts +29 -29
- package/js/src/delta.js +29 -29
- package/js/src/deribit.d.ts +36 -36
- package/js/src/deribit.js +36 -36
- package/js/src/derive.d.ts +19 -19
- package/js/src/derive.js +19 -19
- package/js/src/digifinex.d.ts +36 -36
- package/js/src/digifinex.js +36 -36
- package/js/src/dydx.d.ts +22 -22
- package/js/src/dydx.js +22 -22
- package/js/src/exmo.d.ts +29 -29
- package/js/src/exmo.js +29 -29
- package/js/src/foxbit.d.ts +23 -23
- package/js/src/foxbit.js +23 -23
- package/js/src/gate.d.ts +57 -57
- package/js/src/gate.js +57 -57
- package/js/src/gemini.d.ts +16 -16
- package/js/src/gemini.js +16 -16
- package/js/src/hashkey.d.ts +35 -35
- package/js/src/hashkey.js +35 -35
- package/js/src/hibachi.d.ts +24 -24
- package/js/src/hibachi.js +24 -24
- package/js/src/hitbtc.d.ts +38 -38
- package/js/src/hitbtc.js +38 -38
- package/js/src/hollaex.d.ts +22 -22
- package/js/src/hollaex.js +22 -22
- package/js/src/htx.d.ts +50 -50
- package/js/src/htx.js +50 -50
- package/js/src/hyperliquid.d.ts +46 -36
- package/js/src/hyperliquid.js +76 -42
- package/js/src/independentreserve.d.ts +13 -13
- package/js/src/independentreserve.js +13 -13
- package/js/src/indodax.d.ts +14 -14
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.d.ts +30 -30
- package/js/src/kraken.js +30 -30
- package/js/src/krakenfutures.d.ts +21 -21
- package/js/src/krakenfutures.js +21 -21
- package/js/src/kucoin.d.ts +44 -44
- package/js/src/kucoin.js +44 -44
- package/js/src/kucoinfutures.d.ts +35 -35
- package/js/src/kucoinfutures.js +42 -40
- package/js/src/latoken.d.ts +16 -16
- package/js/src/latoken.js +16 -16
- package/js/src/lbank.d.ts +23 -23
- package/js/src/lbank.js +23 -23
- package/js/src/luno.d.ts +17 -17
- package/js/src/luno.js +17 -17
- package/js/src/mercado.d.ts +11 -11
- package/js/src/mercado.js +11 -11
- package/js/src/mexc.d.ts +47 -47
- package/js/src/mexc.js +47 -47
- package/js/src/modetrade.d.ts +31 -31
- package/js/src/modetrade.js +37 -35
- package/js/src/ndax.d.ts +19 -19
- package/js/src/ndax.js +19 -19
- package/js/src/novadax.d.ts +19 -19
- package/js/src/novadax.js +19 -19
- package/js/src/oceanex.d.ts +16 -16
- package/js/src/oceanex.js +16 -16
- package/js/src/okx.d.ts +74 -74
- package/js/src/okx.js +83 -83
- package/js/src/onetrading.d.ts +34 -33
- package/js/src/onetrading.js +34 -33
- package/js/src/oxfun.d.ts +25 -25
- package/js/src/oxfun.js +25 -25
- package/js/src/p2b.d.ts +11 -11
- package/js/src/p2b.js +11 -11
- package/js/src/paradex.d.ts +54 -54
- package/js/src/paradex.js +54 -54
- package/js/src/paymium.d.ts +20 -21
- package/js/src/paymium.js +20 -21
- package/js/src/phemex.d.ts +30 -30
- package/js/src/phemex.js +35 -35
- package/js/src/poloniex.d.ts +26 -26
- package/js/src/poloniex.js +27 -27
- package/js/src/pro/alpaca.d.ts +5 -5
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +8 -8
- package/js/src/pro/apex.js +8 -8
- package/js/src/pro/arkham.d.ts +5 -5
- package/js/src/pro/arkham.js +5 -5
- package/js/src/pro/ascendex.d.ts +5 -5
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/backpack.d.ts +16 -16
- package/js/src/pro/backpack.js +16 -16
- package/js/src/pro/binance.d.ts +35 -35
- package/js/src/pro/binance.js +35 -35
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +9 -9
- package/js/src/pro/bitfinex.d.ts +8 -8
- package/js/src/pro/bitfinex.js +8 -8
- package/js/src/pro/bitget.d.ts +12 -12
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bithumb.d.ts +3 -3
- package/js/src/pro/bithumb.js +3 -3
- package/js/src/pro/bitmart.d.ts +120 -9
- package/js/src/pro/bitmart.js +388 -31
- package/js/src/pro/bitmex.d.ts +9 -9
- package/js/src/pro/bitmex.js +9 -9
- package/js/src/pro/bitopro.d.ts +5 -5
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.d.ts +3 -3
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrade.d.ts +3 -3
- package/js/src/pro/bittrade.js +3 -3
- package/js/src/pro/bitvavo.d.ts +19 -19
- package/js/src/pro/bitvavo.js +19 -19
- package/js/src/pro/blockchaincom.d.ts +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +10 -10
- package/js/src/pro/blofin.js +10 -10
- package/js/src/pro/bullish.d.ts +6 -6
- package/js/src/pro/bullish.js +6 -6
- package/js/src/pro/bybit.d.ts +19 -19
- package/js/src/pro/bybit.js +19 -19
- package/js/src/pro/cex.d.ts +13 -13
- package/js/src/pro/cex.js +13 -13
- package/js/src/pro/coinbase.d.ts +13 -13
- package/js/src/pro/coinbase.js +13 -13
- package/js/src/pro/coinbaseexchange.d.ts +10 -10
- package/js/src/pro/coinbaseexchange.js +10 -10
- package/js/src/pro/coinbaseinternational.d.ts +8 -8
- package/js/src/pro/coinbaseinternational.js +8 -8
- package/js/src/pro/coincatch.d.ts +10 -10
- package/js/src/pro/coincatch.js +10 -10
- package/js/src/pro/coincheck.d.ts +2 -2
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +10 -10
- package/js/src/pro/coinex.js +10 -10
- package/js/src/pro/coinone.d.ts +3 -3
- package/js/src/pro/coinone.js +3 -3
- package/js/src/pro/cryptocom.d.ts +20 -20
- package/js/src/pro/cryptocom.js +20 -20
- package/js/src/pro/deepcoin.d.ts +8 -8
- package/js/src/pro/deepcoin.js +8 -8
- package/js/src/pro/defx.d.ts +15 -15
- package/js/src/pro/defx.js +15 -15
- package/js/src/pro/deribit.d.ts +10 -10
- package/js/src/pro/deribit.js +10 -10
- package/js/src/pro/derive.d.ts +6 -6
- package/js/src/pro/derive.js +6 -6
- package/js/src/pro/dydx.d.ts +3 -3
- package/js/src/pro/dydx.js +3 -3
- package/js/src/pro/exmo.d.ts +7 -7
- package/js/src/pro/exmo.js +7 -7
- package/js/src/pro/gate.d.ts +22 -23
- package/js/src/pro/gate.js +21 -59
- package/js/src/pro/gemini.d.ts +6 -6
- package/js/src/pro/gemini.js +6 -6
- package/js/src/pro/hashkey.d.ts +6 -6
- package/js/src/pro/hashkey.js +6 -6
- package/js/src/pro/hitbtc.d.ts +8 -8
- package/js/src/pro/hitbtc.js +8 -8
- package/js/src/pro/hollaex.d.ts +5 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.d.ts +9 -9
- package/js/src/pro/htx.js +9 -9
- package/js/src/pro/hyperliquid.d.ts +38 -14
- package/js/src/pro/hyperliquid.js +103 -14
- package/js/src/pro/independentreserve.d.ts +2 -2
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +15 -15
- package/js/src/pro/kraken.js +15 -15
- package/js/src/pro/krakenfutures.d.ts +10 -10
- package/js/src/pro/krakenfutures.js +10 -10
- package/js/src/pro/kucoin.d.ts +15 -15
- package/js/src/pro/kucoin.js +15 -15
- package/js/src/pro/kucoinfutures.d.ts +13 -13
- package/js/src/pro/kucoinfutures.js +13 -13
- package/js/src/pro/lbank.d.ts +5 -5
- package/js/src/pro/lbank.js +5 -5
- package/js/src/pro/luno.d.ts +2 -2
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +13 -13
- package/js/src/pro/mexc.js +13 -13
- package/js/src/pro/modetrade.d.ts +8 -8
- package/js/src/pro/modetrade.js +8 -8
- package/js/src/pro/ndax.d.ts +3 -3
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okx.d.ts +25 -25
- package/js/src/pro/okx.js +25 -25
- package/js/src/pro/onetrading.d.ts +6 -6
- package/js/src/pro/onetrading.js +6 -6
- package/js/src/pro/oxfun.d.ts +13 -13
- package/js/src/pro/oxfun.js +13 -13
- package/js/src/pro/p2b.d.ts +5 -5
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/paradex.d.ts +8 -8
- package/js/src/pro/paradex.js +8 -8
- package/js/src/pro/phemex.d.ts +7 -7
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.d.ts +8 -8
- package/js/src/pro/poloniex.js +8 -8
- package/js/src/pro/probit.d.ts +6 -6
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/toobit.d.ts +9 -9
- package/js/src/pro/toobit.js +9 -9
- package/js/src/pro/upbit.d.ts +9 -9
- package/js/src/pro/upbit.js +9 -9
- package/js/src/pro/whitebit.d.ts +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.d.ts +13 -13
- package/js/src/pro/woo.js +13 -13
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +20 -20
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +2 -2
- package/js/src/probit.d.ts +18 -18
- package/js/src/probit.js +18 -18
- package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
- package/js/src/static_dependencies/ethers/utils/index.js +8 -1
- package/js/src/timex.d.ts +16 -16
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.d.ts +17 -17
- package/js/src/tokocrypto.js +17 -17
- package/js/src/toobit.d.ts +27 -27
- package/js/src/toobit.js +31 -29
- package/js/src/upbit.d.ts +23 -23
- package/js/src/upbit.js +23 -23
- package/js/src/wavesexchange.d.ts +15 -15
- package/js/src/wavesexchange.js +86 -85
- package/js/src/whitebit.d.ts +44 -44
- package/js/src/whitebit.js +44 -44
- package/js/src/woo.d.ts +45 -45
- package/js/src/woo.js +51 -49
- package/js/src/woofipro.d.ts +77 -77
- package/js/src/woofipro.js +104 -82
- package/js/src/xt.d.ts +12 -12
- package/js/src/xt.js +17 -12
- package/js/src/yobit.d.ts +15 -15
- package/js/src/yobit.js +15 -15
- package/js/src/zaif.d.ts +9 -9
- package/js/src/zaif.js +38 -9
- package/js/src/zebpay.d.ts +20 -20
- package/js/src/zebpay.js +35 -20
- package/js/src/zonda.d.ts +14 -14
- package/js/src/zonda.js +14 -14
- package/package.json +1 -1
package/js/src/btcalpha.js
CHANGED
|
@@ -22,6 +22,7 @@ export default class btcalpha extends Exchange {
|
|
|
22
22
|
'name': 'BTC-Alpha',
|
|
23
23
|
'countries': ['US'],
|
|
24
24
|
'version': 'v1',
|
|
25
|
+
'rateLimit': 10,
|
|
25
26
|
'has': {
|
|
26
27
|
'CORS': undefined,
|
|
27
28
|
'spot': true,
|
|
@@ -149,28 +150,28 @@ export default class btcalpha extends Exchange {
|
|
|
149
150
|
},
|
|
150
151
|
'api': {
|
|
151
152
|
'public': {
|
|
152
|
-
'get':
|
|
153
|
-
'currencies/',
|
|
154
|
-
'pairs/',
|
|
155
|
-
'orderbook/{pair_name}',
|
|
156
|
-
'exchanges/',
|
|
157
|
-
'charts/{pair}/{type}/chart/',
|
|
158
|
-
'ticker/',
|
|
159
|
-
|
|
153
|
+
'get': {
|
|
154
|
+
'currencies/': 1,
|
|
155
|
+
'pairs/': 1,
|
|
156
|
+
'orderbook/{pair_name}': 1,
|
|
157
|
+
'exchanges/': 1,
|
|
158
|
+
'charts/{pair}/{type}/chart/': 1,
|
|
159
|
+
'ticker/': 1,
|
|
160
|
+
},
|
|
160
161
|
},
|
|
161
162
|
'private': {
|
|
162
|
-
'get':
|
|
163
|
-
'wallets/',
|
|
164
|
-
'orders/own/',
|
|
165
|
-
'order/{id}/',
|
|
166
|
-
'exchanges/own/',
|
|
167
|
-
'deposits/',
|
|
168
|
-
'withdraws/',
|
|
169
|
-
|
|
170
|
-
'post':
|
|
171
|
-
'order/',
|
|
172
|
-
'order-cancel/',
|
|
173
|
-
|
|
163
|
+
'get': {
|
|
164
|
+
'wallets/': 50,
|
|
165
|
+
'orders/own/': 50,
|
|
166
|
+
'order/{id}/': 50,
|
|
167
|
+
'exchanges/own/': 50,
|
|
168
|
+
'deposits/': 50,
|
|
169
|
+
'withdraws/': 50,
|
|
170
|
+
},
|
|
171
|
+
'post': {
|
|
172
|
+
'order/': 50,
|
|
173
|
+
'order-cancel/': 50,
|
|
174
|
+
},
|
|
174
175
|
},
|
|
175
176
|
},
|
|
176
177
|
'fees': {
|
|
@@ -365,7 +366,7 @@ export default class btcalpha extends Exchange {
|
|
|
365
366
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
366
367
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
367
368
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
368
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
369
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
369
370
|
*/
|
|
370
371
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
371
372
|
await this.loadMarkets();
|
|
@@ -395,7 +396,7 @@ export default class btcalpha extends Exchange {
|
|
|
395
396
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
396
397
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
397
398
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
398
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
399
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
399
400
|
*/
|
|
400
401
|
async fetchTicker(symbol, params = {}) {
|
|
401
402
|
await this.loadMarkets();
|
|
@@ -469,7 +470,7 @@ export default class btcalpha extends Exchange {
|
|
|
469
470
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
470
471
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
471
472
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
472
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
473
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
473
474
|
*/
|
|
474
475
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
475
476
|
await this.loadMarkets();
|
|
@@ -552,7 +553,7 @@ export default class btcalpha extends Exchange {
|
|
|
552
553
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
553
554
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
554
555
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
555
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
556
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
556
557
|
*/
|
|
557
558
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
558
559
|
await this.loadMarkets();
|
|
@@ -577,7 +578,7 @@ export default class btcalpha extends Exchange {
|
|
|
577
578
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
578
579
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
579
580
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
580
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
581
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
581
582
|
*/
|
|
582
583
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
583
584
|
await this.loadMarkets();
|
|
@@ -607,7 +608,7 @@ export default class btcalpha extends Exchange {
|
|
|
607
608
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
608
609
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
609
610
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
610
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
611
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
611
612
|
*/
|
|
612
613
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
613
614
|
await this.loadMarkets();
|
|
@@ -760,7 +761,7 @@ export default class btcalpha extends Exchange {
|
|
|
760
761
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
761
762
|
* @see https://btc-alpha.github.io/api-docs/#list-own-wallets
|
|
762
763
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
763
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
764
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
764
765
|
*/
|
|
765
766
|
async fetchBalance(params = {}) {
|
|
766
767
|
await this.loadMarkets();
|
|
@@ -858,7 +859,7 @@ export default class btcalpha extends Exchange {
|
|
|
858
859
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
859
860
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
860
861
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
861
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
862
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
862
863
|
*/
|
|
863
864
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
864
865
|
if (type === 'market') {
|
|
@@ -890,7 +891,7 @@ export default class btcalpha extends Exchange {
|
|
|
890
891
|
* @param {string} id order id
|
|
891
892
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
892
893
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
893
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
894
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
894
895
|
*/
|
|
895
896
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
896
897
|
const request = {
|
|
@@ -912,7 +913,7 @@ export default class btcalpha extends Exchange {
|
|
|
912
913
|
* @param {string} id the order id
|
|
913
914
|
* @param {string} symbol not used by btcalpha fetchOrder
|
|
914
915
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
915
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
916
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
916
917
|
*/
|
|
917
918
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
918
919
|
await this.loadMarkets();
|
|
@@ -931,7 +932,7 @@ export default class btcalpha extends Exchange {
|
|
|
931
932
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
932
933
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
933
934
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
934
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
935
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
935
936
|
*/
|
|
936
937
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
937
938
|
await this.loadMarkets();
|
|
@@ -956,7 +957,7 @@ export default class btcalpha extends Exchange {
|
|
|
956
957
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
957
958
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
958
959
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
959
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
960
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
960
961
|
*/
|
|
961
962
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
962
963
|
const request = {
|
|
@@ -973,7 +974,7 @@ export default class btcalpha extends Exchange {
|
|
|
973
974
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
974
975
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
975
976
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
976
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
977
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
977
978
|
*/
|
|
978
979
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
979
980
|
const request = {
|
|
@@ -990,7 +991,7 @@ export default class btcalpha extends Exchange {
|
|
|
990
991
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
991
992
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
992
993
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
993
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
994
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
994
995
|
*/
|
|
995
996
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
996
997
|
await this.loadMarkets();
|
package/js/src/btcbox.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export default class btcbox extends Exchange {
|
|
|
22
22
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
23
23
|
* @see https://blog.btcbox.jp/en/archives/8762#toc13
|
|
24
24
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
25
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
25
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
26
26
|
*/
|
|
27
27
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
28
28
|
/**
|
|
@@ -33,7 +33,7 @@ export default class btcbox 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
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
@@ -44,7 +44,7 @@ export default class btcbox extends Exchange {
|
|
|
44
44
|
* @see https://blog.btcbox.jp/en/archives/8762#toc5
|
|
45
45
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
46
46
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
47
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
47
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
48
48
|
*/
|
|
49
49
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
50
50
|
/**
|
|
@@ -53,7 +53,7 @@ export default class btcbox extends Exchange {
|
|
|
53
53
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
54
54
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
55
55
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
56
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
56
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
57
57
|
*/
|
|
58
58
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
59
59
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
@@ -66,7 +66,7 @@ export default class btcbox extends Exchange {
|
|
|
66
66
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
67
67
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
68
68
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
69
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
69
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
70
70
|
*/
|
|
71
71
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
72
72
|
/**
|
|
@@ -80,7 +80,7 @@ export default class btcbox extends Exchange {
|
|
|
80
80
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
81
81
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
82
82
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
83
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
83
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
84
84
|
*/
|
|
85
85
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
86
86
|
/**
|
|
@@ -91,7 +91,7 @@ export default class btcbox extends Exchange {
|
|
|
91
91
|
* @param {string} id order id
|
|
92
92
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
93
93
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
94
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
94
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
95
95
|
*/
|
|
96
96
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
97
97
|
parseOrderStatus(status: Str): string;
|
|
@@ -104,7 +104,7 @@ export default class btcbox extends Exchange {
|
|
|
104
104
|
* @param {string} id the order id
|
|
105
105
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
106
106
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
107
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
107
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
108
108
|
*/
|
|
109
109
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
110
110
|
fetchOrdersByType(type: any, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
@@ -117,7 +117,7 @@ export default class btcbox extends Exchange {
|
|
|
117
117
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
118
118
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
119
119
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
120
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
120
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
121
121
|
*/
|
|
122
122
|
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
123
123
|
/**
|
|
@@ -129,7 +129,7 @@ export default class btcbox extends Exchange {
|
|
|
129
129
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
130
130
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
131
131
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
132
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
132
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
133
133
|
*/
|
|
134
134
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
135
135
|
nonce(): number;
|
package/js/src/btcbox.js
CHANGED
|
@@ -397,7 +397,7 @@ export default class btcbox extends Exchange {
|
|
|
397
397
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
398
398
|
* @see https://blog.btcbox.jp/en/archives/8762#toc13
|
|
399
399
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
400
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
400
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
401
401
|
*/
|
|
402
402
|
async fetchBalance(params = {}) {
|
|
403
403
|
await this.loadMarkets();
|
|
@@ -412,7 +412,7 @@ export default class btcbox extends Exchange {
|
|
|
412
412
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
413
413
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
414
414
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
415
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
415
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
416
416
|
*/
|
|
417
417
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
418
418
|
await this.loadMarkets();
|
|
@@ -458,7 +458,7 @@ export default class btcbox extends Exchange {
|
|
|
458
458
|
* @see https://blog.btcbox.jp/en/archives/8762#toc5
|
|
459
459
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
460
460
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
461
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
461
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
462
462
|
*/
|
|
463
463
|
async fetchTicker(symbol, params = {}) {
|
|
464
464
|
await this.loadMarkets();
|
|
@@ -477,7 +477,7 @@ export default class btcbox extends Exchange {
|
|
|
477
477
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
478
478
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
479
479
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
480
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
480
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
481
481
|
*/
|
|
482
482
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
483
483
|
await this.loadMarkets();
|
|
@@ -528,7 +528,7 @@ export default class btcbox extends Exchange {
|
|
|
528
528
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
529
529
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
530
530
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
531
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
531
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
532
532
|
*/
|
|
533
533
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
534
534
|
await this.loadMarkets();
|
|
@@ -563,7 +563,7 @@ export default class btcbox extends Exchange {
|
|
|
563
563
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
564
564
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
565
565
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
566
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
566
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
567
567
|
*/
|
|
568
568
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
569
569
|
await this.loadMarkets();
|
|
@@ -591,7 +591,7 @@ export default class btcbox extends Exchange {
|
|
|
591
591
|
* @param {string} id order id
|
|
592
592
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
593
593
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
594
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
594
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
595
595
|
*/
|
|
596
596
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
597
597
|
await this.loadMarkets();
|
|
@@ -686,7 +686,7 @@ export default class btcbox extends Exchange {
|
|
|
686
686
|
* @param {string} id the order id
|
|
687
687
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
688
688
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
689
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
689
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
690
690
|
*/
|
|
691
691
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
692
692
|
await this.loadMarkets();
|
|
@@ -754,7 +754,7 @@ export default class btcbox extends Exchange {
|
|
|
754
754
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
755
755
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
756
756
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
757
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
757
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
758
758
|
*/
|
|
759
759
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
760
760
|
return await this.fetchOrdersByType('all', symbol, since, limit, params);
|
|
@@ -768,7 +768,7 @@ export default class btcbox extends Exchange {
|
|
|
768
768
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
769
769
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
770
770
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
771
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
771
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
772
772
|
*/
|
|
773
773
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
774
774
|
return await this.fetchOrdersByType('open', symbol, since, limit, params);
|
package/js/src/btcmarkets.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export default class btcmarkets extends Exchange {
|
|
|
16
16
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
17
17
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
18
18
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
19
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
19
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
20
20
|
*/
|
|
21
21
|
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
22
22
|
/**
|
|
@@ -28,7 +28,7 @@ export default class btcmarkets extends Exchange {
|
|
|
28
28
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
29
29
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
30
30
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
31
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
31
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
32
32
|
*/
|
|
33
33
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
34
34
|
/**
|
|
@@ -40,7 +40,7 @@ export default class btcmarkets extends Exchange {
|
|
|
40
40
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
41
41
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
42
42
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
43
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
43
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
44
44
|
*/
|
|
45
45
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
46
46
|
parseTransactionStatus(status: Str): string;
|
|
@@ -72,7 +72,7 @@ export default class btcmarkets extends Exchange {
|
|
|
72
72
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
73
73
|
* @see https://docs.btcmarkets.net/v3/#tag/Account-APIs/paths/~1v3~1accounts~1me~1balances/get
|
|
74
74
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
75
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
75
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
76
76
|
*/
|
|
77
77
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
78
78
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
@@ -97,7 +97,7 @@ export default class btcmarkets extends Exchange {
|
|
|
97
97
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
98
98
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
99
99
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
100
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
100
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
101
101
|
*/
|
|
102
102
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
103
103
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
@@ -108,7 +108,7 @@ export default class btcmarkets extends Exchange {
|
|
|
108
108
|
* @see https://docs.btcmarkets.net/v3/#tag/Market-Data-APIs/paths/~1v3~1markets~1{marketId}~1ticker/get
|
|
109
109
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
110
110
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
111
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
111
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
112
112
|
*/
|
|
113
113
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
114
114
|
fetchTicker2(symbol: string, params?: {}): Promise<Ticker>;
|
|
@@ -122,7 +122,7 @@ export default class btcmarkets extends Exchange {
|
|
|
122
122
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
123
123
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
124
124
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
125
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
125
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
126
126
|
*/
|
|
127
127
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
128
128
|
/**
|
|
@@ -137,7 +137,7 @@ export default class btcmarkets extends Exchange {
|
|
|
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
139
|
* @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
140
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
140
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
141
141
|
*/
|
|
142
142
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
143
143
|
/**
|
|
@@ -148,7 +148,7 @@ export default class btcmarkets extends Exchange {
|
|
|
148
148
|
* @param {string[]} ids order ids
|
|
149
149
|
* @param {string} symbol not used by btcmarkets cancelOrders ()
|
|
150
150
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
151
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
151
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
152
152
|
*/
|
|
153
153
|
cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
|
|
154
154
|
/**
|
|
@@ -159,7 +159,7 @@ export default class btcmarkets extends Exchange {
|
|
|
159
159
|
* @param {string} id order id
|
|
160
160
|
* @param {string} symbol not used by btcmarket cancelOrder ()
|
|
161
161
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
162
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
162
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
163
163
|
*/
|
|
164
164
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
165
165
|
calculateFee(symbol: any, type: any, side: any, amount: any, price: any, takerOrMaker?: string, params?: {}): {
|
|
@@ -178,7 +178,7 @@ export default class btcmarkets extends Exchange {
|
|
|
178
178
|
* @param {string} id the order id
|
|
179
179
|
* @param {string} symbol not used by btcmarkets fetchOrder
|
|
180
180
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
181
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
181
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
182
182
|
*/
|
|
183
183
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
184
184
|
/**
|
|
@@ -190,7 +190,7 @@ export default class btcmarkets extends Exchange {
|
|
|
190
190
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
191
191
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
192
192
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
193
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
193
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
194
194
|
*/
|
|
195
195
|
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
196
196
|
/**
|
|
@@ -202,7 +202,7 @@ export default class btcmarkets extends Exchange {
|
|
|
202
202
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
203
203
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
204
204
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
205
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
205
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
206
206
|
*/
|
|
207
207
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
208
208
|
/**
|
|
@@ -214,7 +214,7 @@ export default class btcmarkets extends Exchange {
|
|
|
214
214
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
215
215
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
216
216
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
217
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
217
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
218
218
|
*/
|
|
219
219
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
220
220
|
/**
|
|
@@ -226,7 +226,7 @@ export default class btcmarkets extends Exchange {
|
|
|
226
226
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
227
227
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
228
228
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
229
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
229
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
230
230
|
*/
|
|
231
231
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
232
232
|
/**
|
|
@@ -239,7 +239,7 @@ export default class btcmarkets extends Exchange {
|
|
|
239
239
|
* @param {string} address the address to withdraw to
|
|
240
240
|
* @param {string} tag
|
|
241
241
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
242
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
242
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
243
243
|
*/
|
|
244
244
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
245
245
|
nonce(): number;
|