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/gemini.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export default class gemini extends Exchange {
|
|
|
45
45
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
46
46
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
47
47
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
48
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
48
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
49
49
|
*/
|
|
50
50
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
51
51
|
fetchTickerV1(symbol: string, params?: {}): Promise<Ticker>;
|
|
@@ -60,7 +60,7 @@ export default class gemini extends Exchange {
|
|
|
60
60
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
61
61
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
62
62
|
* @param {object} [params.fetchTickerMethod] 'fetchTickerV2', 'fetchTickerV1' or 'fetchTickerV1AndV2' - 'fetchTickerV1' for original ccxt.gemini.fetchTicker - 'fetchTickerV1AndV2' for 2 api calls to get the result of both fetchTicker methods - default = 'fetchTickerV1'
|
|
63
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
63
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
64
64
|
*/
|
|
65
65
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
66
66
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
@@ -71,7 +71,7 @@ export default class gemini extends Exchange {
|
|
|
71
71
|
* @see https://docs.gemini.com/rest-api/#price-feed
|
|
72
72
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
73
73
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
74
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
74
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
75
75
|
*/
|
|
76
76
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
77
77
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
@@ -84,7 +84,7 @@ export default class gemini extends Exchange {
|
|
|
84
84
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
85
85
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
86
86
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
87
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
87
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
88
88
|
*/
|
|
89
89
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
90
90
|
parseBalance(response: any): Balances;
|
|
@@ -94,7 +94,7 @@ export default class gemini extends Exchange {
|
|
|
94
94
|
* @description fetch the trading fees for multiple markets
|
|
95
95
|
* @see https://docs.gemini.com/rest-api/#get-notional-volume
|
|
96
96
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
97
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
97
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
98
98
|
*/
|
|
99
99
|
fetchTradingFees(params?: {}): Promise<TradingFees>;
|
|
100
100
|
/**
|
|
@@ -103,7 +103,7 @@ export default class gemini extends Exchange {
|
|
|
103
103
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
104
104
|
* @see https://docs.gemini.com/rest-api/#get-available-balances
|
|
105
105
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
106
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
106
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
107
107
|
*/
|
|
108
108
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
109
109
|
parseOrder(order: Dict, market?: Market): Order;
|
|
@@ -115,7 +115,7 @@ export default class gemini extends Exchange {
|
|
|
115
115
|
* @param {string} id order id
|
|
116
116
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
117
117
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
118
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
118
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
119
119
|
*/
|
|
120
120
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
121
121
|
/**
|
|
@@ -127,7 +127,7 @@ export default class gemini extends Exchange {
|
|
|
127
127
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
128
128
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
129
129
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
130
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
130
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
131
131
|
*/
|
|
132
132
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
133
133
|
/**
|
|
@@ -141,7 +141,7 @@ export default class gemini extends Exchange {
|
|
|
141
141
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
142
142
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
143
143
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
144
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
144
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
145
145
|
*/
|
|
146
146
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
147
147
|
/**
|
|
@@ -152,7 +152,7 @@ export default class gemini extends Exchange {
|
|
|
152
152
|
* @param {string} id order id
|
|
153
153
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
154
154
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
155
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
155
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
156
156
|
*/
|
|
157
157
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
158
158
|
/**
|
|
@@ -164,7 +164,7 @@ export default class gemini extends Exchange {
|
|
|
164
164
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
165
165
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
166
166
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
167
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
167
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
168
168
|
*/
|
|
169
169
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
170
170
|
/**
|
|
@@ -177,7 +177,7 @@ export default class gemini extends Exchange {
|
|
|
177
177
|
* @param {string} address the address to withdraw to
|
|
178
178
|
* @param {string} tag
|
|
179
179
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
180
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
180
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
181
181
|
*/
|
|
182
182
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
183
183
|
nonce(): number;
|
|
@@ -190,7 +190,7 @@ export default class gemini extends Exchange {
|
|
|
190
190
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
191
191
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
192
192
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
193
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
193
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
194
194
|
*/
|
|
195
195
|
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
196
196
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
@@ -210,7 +210,7 @@ export default class gemini extends Exchange {
|
|
|
210
210
|
* @param {string} code unified currency code
|
|
211
211
|
* @param {object} [params] extra parameters specific to the endpoint
|
|
212
212
|
* @param {string} [params.network] *required* The chain of currency
|
|
213
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
213
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
214
214
|
*/
|
|
215
215
|
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
216
216
|
/**
|
|
@@ -221,7 +221,7 @@ export default class gemini extends Exchange {
|
|
|
221
221
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
222
222
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
223
223
|
* @param {string} [params.network] *required* The chain of currency
|
|
224
|
-
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com
|
|
224
|
+
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/?id=address-structure} indexed by the network
|
|
225
225
|
*/
|
|
226
226
|
fetchDepositAddressesByNetwork(code: string, params?: {}): Promise<DepositAddress[]>;
|
|
227
227
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
@@ -238,7 +238,7 @@ export default class gemini extends Exchange {
|
|
|
238
238
|
* @see https://docs.gemini.com/rest-api/#new-deposit-address
|
|
239
239
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
240
240
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
241
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
241
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
242
242
|
*/
|
|
243
243
|
createDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
244
244
|
/**
|
package/js/src/gemini.js
CHANGED
|
@@ -854,7 +854,7 @@ export default class gemini extends Exchange {
|
|
|
854
854
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
855
855
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
856
856
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
857
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
857
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
858
858
|
*/
|
|
859
859
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
860
860
|
await this.loadMarkets();
|
|
@@ -935,7 +935,7 @@ export default class gemini extends Exchange {
|
|
|
935
935
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
936
936
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
937
937
|
* @param {object} [params.fetchTickerMethod] 'fetchTickerV2', 'fetchTickerV1' or 'fetchTickerV1AndV2' - 'fetchTickerV1' for original ccxt.gemini.fetchTicker - 'fetchTickerV1AndV2' for 2 api calls to get the result of both fetchTicker methods - default = 'fetchTickerV1'
|
|
938
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
938
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
939
939
|
*/
|
|
940
940
|
async fetchTicker(symbol, params = {}) {
|
|
941
941
|
const method = this.safeValue(this.options, 'fetchTickerMethod', 'fetchTickerV1');
|
|
@@ -1048,7 +1048,7 @@ export default class gemini extends Exchange {
|
|
|
1048
1048
|
* @see https://docs.gemini.com/rest-api/#price-feed
|
|
1049
1049
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1050
1050
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1051
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
1051
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1052
1052
|
*/
|
|
1053
1053
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
1054
1054
|
await this.loadMarkets();
|
|
@@ -1143,7 +1143,7 @@ export default class gemini extends Exchange {
|
|
|
1143
1143
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1144
1144
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1145
1145
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1146
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1146
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
1147
1147
|
*/
|
|
1148
1148
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1149
1149
|
await this.loadMarkets();
|
|
@@ -1192,7 +1192,7 @@ export default class gemini extends Exchange {
|
|
|
1192
1192
|
* @description fetch the trading fees for multiple markets
|
|
1193
1193
|
* @see https://docs.gemini.com/rest-api/#get-notional-volume
|
|
1194
1194
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1195
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
1195
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
1196
1196
|
*/
|
|
1197
1197
|
async fetchTradingFees(params = {}) {
|
|
1198
1198
|
await this.loadMarkets();
|
|
@@ -1251,7 +1251,7 @@ export default class gemini extends Exchange {
|
|
|
1251
1251
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1252
1252
|
* @see https://docs.gemini.com/rest-api/#get-available-balances
|
|
1253
1253
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1254
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
1254
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
1255
1255
|
*/
|
|
1256
1256
|
async fetchBalance(params = {}) {
|
|
1257
1257
|
await this.loadMarkets();
|
|
@@ -1434,7 +1434,7 @@ export default class gemini extends Exchange {
|
|
|
1434
1434
|
* @param {string} id order id
|
|
1435
1435
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1436
1436
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1437
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1437
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1438
1438
|
*/
|
|
1439
1439
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1440
1440
|
await this.loadMarkets();
|
|
@@ -1476,7 +1476,7 @@ export default class gemini extends Exchange {
|
|
|
1476
1476
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1477
1477
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1478
1478
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1479
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1479
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1480
1480
|
*/
|
|
1481
1481
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1482
1482
|
await this.loadMarkets();
|
|
@@ -1523,7 +1523,7 @@ export default class gemini extends Exchange {
|
|
|
1523
1523
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1524
1524
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1525
1525
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1526
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1526
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1527
1527
|
*/
|
|
1528
1528
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1529
1529
|
await this.loadMarkets();
|
|
@@ -1618,7 +1618,7 @@ export default class gemini extends Exchange {
|
|
|
1618
1618
|
* @param {string} id order id
|
|
1619
1619
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1620
1620
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1621
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1621
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1622
1622
|
*/
|
|
1623
1623
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1624
1624
|
await this.loadMarkets();
|
|
@@ -1661,7 +1661,7 @@ export default class gemini extends Exchange {
|
|
|
1661
1661
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1662
1662
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1663
1663
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1664
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1664
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
1665
1665
|
*/
|
|
1666
1666
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1667
1667
|
if (symbol === undefined) {
|
|
@@ -1691,7 +1691,7 @@ export default class gemini extends Exchange {
|
|
|
1691
1691
|
* @param {string} address the address to withdraw to
|
|
1692
1692
|
* @param {string} tag
|
|
1693
1693
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1694
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
1694
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1695
1695
|
*/
|
|
1696
1696
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
1697
1697
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1749,7 +1749,7 @@ export default class gemini extends Exchange {
|
|
|
1749
1749
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1750
1750
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1751
1751
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1752
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
1752
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1753
1753
|
*/
|
|
1754
1754
|
async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1755
1755
|
await this.loadMarkets();
|
|
@@ -1853,7 +1853,7 @@ export default class gemini extends Exchange {
|
|
|
1853
1853
|
* @param {string} code unified currency code
|
|
1854
1854
|
* @param {object} [params] extra parameters specific to the endpoint
|
|
1855
1855
|
* @param {string} [params.network] *required* The chain of currency
|
|
1856
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
1856
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
1857
1857
|
*/
|
|
1858
1858
|
async fetchDepositAddress(code, params = {}) {
|
|
1859
1859
|
await this.loadMarkets();
|
|
@@ -1871,7 +1871,7 @@ export default class gemini extends Exchange {
|
|
|
1871
1871
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1872
1872
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1873
1873
|
* @param {string} [params.network] *required* The chain of currency
|
|
1874
|
-
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com
|
|
1874
|
+
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/?id=address-structure} indexed by the network
|
|
1875
1875
|
*/
|
|
1876
1876
|
async fetchDepositAddressesByNetwork(code, params = {}) {
|
|
1877
1877
|
await this.loadMarkets();
|
|
@@ -1959,7 +1959,7 @@ export default class gemini extends Exchange {
|
|
|
1959
1959
|
* @see https://docs.gemini.com/rest-api/#new-deposit-address
|
|
1960
1960
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1961
1961
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1962
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
1962
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
1963
1963
|
*/
|
|
1964
1964
|
async createDepositAddress(code, params = {}) {
|
|
1965
1965
|
await this.loadMarkets();
|
package/js/src/hashkey.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export default class hashkey extends Exchange {
|
|
|
21
21
|
* @description the latest known information on the availability of the exchange API
|
|
22
22
|
* @see https://hashkeyglobal-apidoc.readme.io/reference/test-connectivity
|
|
23
23
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
24
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
24
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
25
25
|
*/
|
|
26
26
|
fetchStatus(params?: {}): Promise<{
|
|
27
27
|
status: string;
|
|
@@ -58,7 +58,7 @@ export default class hashkey extends Exchange {
|
|
|
58
58
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
59
59
|
* @param {int} [limit] the maximum amount of order book entries to return (maximum value is 200)
|
|
60
60
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
61
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
61
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
62
62
|
*/
|
|
63
63
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
64
64
|
/**
|
|
@@ -70,7 +70,7 @@ export default class hashkey extends Exchange {
|
|
|
70
70
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
71
71
|
* @param {int} [limit] the maximum amount of trades to fetch (maximum value is 100)
|
|
72
72
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
73
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
73
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
74
74
|
*/
|
|
75
75
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
76
76
|
/**
|
|
@@ -117,7 +117,7 @@ export default class hashkey extends Exchange {
|
|
|
117
117
|
* @see https://hashkeyglobal-apidoc.readme.io/reference/get-24hr-ticker-price-change
|
|
118
118
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
119
119
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
120
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
120
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
121
121
|
*/
|
|
122
122
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
123
123
|
/**
|
|
@@ -127,7 +127,7 @@ export default class hashkey extends Exchange {
|
|
|
127
127
|
* @see https://hashkeyglobal-apidoc.readme.io/reference/get-24hr-ticker-price-change
|
|
128
128
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
129
129
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
130
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
130
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
131
131
|
*/
|
|
132
132
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
133
133
|
parseTicker(ticker: any, market?: Market): Ticker;
|
|
@@ -151,7 +151,7 @@ export default class hashkey extends Exchange {
|
|
|
151
151
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
152
152
|
* @param {string} [params.accountId] account ID, for Master Key only
|
|
153
153
|
* @param {string} [params.type] 'spot' or 'swap' - the type of the market to fetch balance for (default 'spot')
|
|
154
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
154
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
155
155
|
*/
|
|
156
156
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
157
157
|
parseBalance(balance: any): Balances;
|
|
@@ -164,7 +164,7 @@ export default class hashkey extends Exchange {
|
|
|
164
164
|
* @param {string} code unified currency code (default is 'USDT')
|
|
165
165
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
166
166
|
* @param {string} [params.network] network for fetch deposit address (default is 'ETH')
|
|
167
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
167
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
168
168
|
*/
|
|
169
169
|
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
170
170
|
parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
|
|
@@ -179,7 +179,7 @@ export default class hashkey extends Exchange {
|
|
|
179
179
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
180
180
|
* @param {int} [params.until] the latest time in ms to fetch transfers for (default time now)
|
|
181
181
|
* @param {int} [params.fromId] starting ID (To be released)
|
|
182
|
-
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com
|
|
182
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
183
183
|
*/
|
|
184
184
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
185
185
|
/**
|
|
@@ -192,7 +192,7 @@ export default class hashkey extends Exchange {
|
|
|
192
192
|
* @param {int} [limit] the maximum number of transfer structures to retrieve (default 50, max 200)
|
|
193
193
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
194
194
|
* @param {int} [params.until] the latest time in ms to fetch transfers for (default time now)
|
|
195
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
195
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
196
196
|
*/
|
|
197
197
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
198
198
|
/**
|
|
@@ -208,7 +208,7 @@ export default class hashkey extends Exchange {
|
|
|
208
208
|
* @param {string} [params.network] network for withdraw
|
|
209
209
|
* @param {string} [params.clientOrderId] client order id
|
|
210
210
|
* @param {string} [params.platform] the platform to withdraw to (hashkey, HashKey HK)
|
|
211
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
211
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
212
212
|
*/
|
|
213
213
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
214
214
|
parseTransaction(transaction: any, currency?: Currency): Transaction;
|
|
@@ -225,7 +225,7 @@ export default class hashkey extends Exchange {
|
|
|
225
225
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
226
226
|
* @param {string} [params.clientOrderId] a unique id for the transfer
|
|
227
227
|
* @param {string} [params.remark] a note for the transfer
|
|
228
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
228
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
229
229
|
*/
|
|
230
230
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
231
231
|
parseTransfer(transfer: any, currency?: Currency): {
|
|
@@ -245,7 +245,7 @@ export default class hashkey extends Exchange {
|
|
|
245
245
|
* @description fetch all the accounts associated with a profile
|
|
246
246
|
* @see https://hashkeyglobal-apidoc.readme.io/reference/query-sub-account
|
|
247
247
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
248
|
-
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com
|
|
248
|
+
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/?id=account-structure} indexed by the account type
|
|
249
249
|
*/
|
|
250
250
|
fetchAccounts(params?: {}): Promise<Account[]>;
|
|
251
251
|
parseAccount(account: any): {
|
|
@@ -269,7 +269,7 @@ export default class hashkey extends Exchange {
|
|
|
269
269
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
270
270
|
* @param {int} [params.flowType] trade, fee, transfer, deposit, withdrawal
|
|
271
271
|
* @param {int} [params.accountType] spot, swap, custody
|
|
272
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
272
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
273
273
|
*/
|
|
274
274
|
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
|
|
275
275
|
parseLedgerEntryType(type: any): string;
|
|
@@ -293,7 +293,7 @@ export default class hashkey extends Exchange {
|
|
|
293
293
|
* @param {string} [params.timeInForce] "GTC" or "IOC" or "PO" for spot, 'GTC' or 'FOK' or 'IOC' or 'LIMIT_MAKER' or 'PO' for swap
|
|
294
294
|
* @param {string} [params.clientOrderId] a unique id for the order - is mandatory for swap
|
|
295
295
|
* @param {float} [params.triggerPrice] *swap markets only* The price at which a trigger order is triggered at
|
|
296
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
296
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
297
297
|
*/
|
|
298
298
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
299
299
|
/**
|
|
@@ -303,7 +303,7 @@ export default class hashkey extends Exchange {
|
|
|
303
303
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
304
304
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
305
305
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
306
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
306
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
307
307
|
*/
|
|
308
308
|
createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
|
|
309
309
|
/**
|
|
@@ -323,7 +323,7 @@ export default class hashkey extends Exchange {
|
|
|
323
323
|
* @param {bool} [params.postOnly] if true, the order will only be posted to the order book and not executed immediately
|
|
324
324
|
* @param {string} [params.timeInForce] 'GTC', 'IOC', or 'PO'
|
|
325
325
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
326
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
326
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
327
327
|
*/
|
|
328
328
|
createSpotOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
329
329
|
createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Dict;
|
|
@@ -345,7 +345,7 @@ export default class hashkey extends Exchange {
|
|
|
345
345
|
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
346
346
|
* @param {string} [params.timeInForce] 'GTC', 'FOK', 'IOC', 'LIMIT_MAKER' or 'PO'
|
|
347
347
|
* @param {string} [params.clientOrderId] a unique id for the order
|
|
348
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
348
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
349
349
|
*/
|
|
350
350
|
createSwapOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
351
351
|
/**
|
|
@@ -356,7 +356,7 @@ export default class hashkey extends Exchange {
|
|
|
356
356
|
* @see https://hashkeyglobal-apidoc.readme.io/reference/batch-create-new-futures-order
|
|
357
357
|
* @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
358
358
|
* @param {object} [params] extra parameters specific to the api endpoint
|
|
359
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
359
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
360
360
|
*/
|
|
361
361
|
createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
|
|
362
362
|
/**
|
|
@@ -372,7 +372,7 @@ export default class hashkey extends Exchange {
|
|
|
372
372
|
* @param {string} [params.clientOrderId] a unique id for the order that can be used as an alternative for the id
|
|
373
373
|
* @param {bool} [params.trigger] *swap markets only* true for canceling a trigger order (default false)
|
|
374
374
|
* @param {bool} [params.stop] *swap markets only* an alternative for trigger param
|
|
375
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
375
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
376
376
|
*/
|
|
377
377
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
378
378
|
/**
|
|
@@ -397,7 +397,7 @@ export default class hashkey extends Exchange {
|
|
|
397
397
|
* @param {string} [symbol] unified market symbol (not used by hashkey)
|
|
398
398
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
399
399
|
* @param {string} [params.type] 'spot' or 'swap' - the type of the market to fetch entry for (default 'spot')
|
|
400
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
400
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
401
401
|
*/
|
|
402
402
|
cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
|
|
403
403
|
/**
|
|
@@ -414,7 +414,7 @@ export default class hashkey extends Exchange {
|
|
|
414
414
|
* @param {string} [params.accountId] *spot markets only* account id to fetch the order from
|
|
415
415
|
* @param {bool} [params.trigger] *swap markets only* true for fetching a trigger order (default false)
|
|
416
416
|
* @param {bool} [params.stop] *swap markets only* an alternative for trigger param
|
|
417
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
417
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
418
418
|
*/
|
|
419
419
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
420
420
|
/**
|
|
@@ -436,7 +436,7 @@ export default class hashkey extends Exchange {
|
|
|
436
436
|
* @param {bool} [params.trigger] *swap markets only* true for fetching trigger orders (default false)
|
|
437
437
|
* @param {bool} [params.stop] *swap markets only* an alternative for trigger param
|
|
438
438
|
* @param {string} [params.accountId] account id to fetch the orders from
|
|
439
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
439
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
440
440
|
*/
|
|
441
441
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
442
442
|
/**
|
|
@@ -453,7 +453,7 @@ export default class hashkey extends Exchange {
|
|
|
453
453
|
* @param {string} [params.orderId] the id of the order to fetch
|
|
454
454
|
* @param {string} [params.side] 'buy' or 'sell' - the side of the orders to fetch
|
|
455
455
|
* @param {string} [params.accountId] account id to fetch the orders from
|
|
456
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
456
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
457
457
|
*/
|
|
458
458
|
fetchOpenSpotOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
459
459
|
/**
|
|
@@ -471,7 +471,7 @@ export default class hashkey extends Exchange {
|
|
|
471
471
|
* @param {bool} [params.trigger] true for fetching trigger orders (default false)
|
|
472
472
|
* @param {bool} [params.stop] an alternative for trigger param
|
|
473
473
|
* @param {string} [params.accountId] account id to fetch the orders from
|
|
474
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
474
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
475
475
|
*/
|
|
476
476
|
fetchOpenSwapOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
477
477
|
/**
|
|
@@ -493,7 +493,7 @@ export default class hashkey extends Exchange {
|
|
|
493
493
|
* @param {bool} [params.trigger] *swap markets only* the id of the order to start from true for fetching trigger orders (default false)
|
|
494
494
|
* @param {bool} [params.stop] *swap markets only* the id of the order to start from an alternative for trigger param
|
|
495
495
|
* @param {string} [params.accountId] account id to fetch the orders from
|
|
496
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
496
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
497
497
|
*/
|
|
498
498
|
fetchCanceledAndClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
499
499
|
checkTypeParam(methodName: any, params: any): void;
|
|
@@ -510,7 +510,7 @@ export default class hashkey extends Exchange {
|
|
|
510
510
|
* @see https://hashkeyglobal-apidoc.readme.io/reference/get-futures-funding-rate
|
|
511
511
|
* @param {string} symbol unified market symbol
|
|
512
512
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
513
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
513
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
514
514
|
*/
|
|
515
515
|
fetchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
|
|
516
516
|
/**
|
|
@@ -520,7 +520,7 @@ export default class hashkey extends Exchange {
|
|
|
520
520
|
* @see https://hashkeyglobal-apidoc.readme.io/reference/get-futures-funding-rate
|
|
521
521
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
522
522
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
523
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
523
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols
|
|
524
524
|
*/
|
|
525
525
|
fetchFundingRates(symbols?: Strings, params?: {}): Promise<FundingRates>;
|
|
526
526
|
parseFundingRate(contract: any, market?: Market): FundingRate;
|
|
@@ -531,11 +531,11 @@ export default class hashkey extends Exchange {
|
|
|
531
531
|
* @see https://hashkeyglobal-apidoc.readme.io/reference/get-futures-history-funding-rate
|
|
532
532
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
533
533
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
534
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com
|
|
534
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
535
535
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
536
536
|
* @param {int} [params.fromId] the id of the entry to start from
|
|
537
537
|
* @param {int} [params.endId] the id of the entry to end with
|
|
538
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
538
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
539
539
|
*/
|
|
540
540
|
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
|
541
541
|
/**
|
|
@@ -547,7 +547,7 @@ export default class hashkey extends Exchange {
|
|
|
547
547
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
548
548
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
549
549
|
* @param {string} [params.side] 'LONG' or 'SHORT' - the direction of the position (if not provided, positions for both sides will be returned)
|
|
550
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
550
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
551
551
|
*/
|
|
552
552
|
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
553
553
|
/**
|
|
@@ -559,7 +559,7 @@ export default class hashkey extends Exchange {
|
|
|
559
559
|
* @param {string} symbol unified market symbol
|
|
560
560
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
561
561
|
* @param {string} [params.side] 'LONG' or 'SHORT' - the direction of the position (if not provided, positions for both sides will be returned)
|
|
562
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
562
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
563
563
|
*/
|
|
564
564
|
fetchPositionsForSymbol(symbol: string, params?: {}): Promise<Position[]>;
|
|
565
565
|
parsePosition(position: Dict, market?: Market): Position;
|
|
@@ -570,7 +570,7 @@ export default class hashkey extends Exchange {
|
|
|
570
570
|
* @see https://hashkeyglobal-apidoc.readme.io/reference/query-futures-leverage-trade
|
|
571
571
|
* @param {string} symbol unified market symbol
|
|
572
572
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
573
|
-
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com
|
|
573
|
+
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
574
574
|
*/
|
|
575
575
|
fetchLeverage(symbol: string, params?: {}): Promise<Leverage>;
|
|
576
576
|
parseLeverage(leverage: Dict, market?: Market): Leverage;
|
|
@@ -592,7 +592,7 @@ export default class hashkey extends Exchange {
|
|
|
592
592
|
* @see https://hashkeyglobal-apidoc.readme.io/reference/exchangeinfo
|
|
593
593
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
594
594
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
595
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com
|
|
595
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols
|
|
596
596
|
*/
|
|
597
597
|
fetchLeverageTiers(symbols?: Strings, params?: {}): Promise<LeverageTiers>;
|
|
598
598
|
parseMarketLeverageTiers(info: any, market?: Market): LeverageTier[];
|
|
@@ -604,7 +604,7 @@ export default class hashkey extends Exchange {
|
|
|
604
604
|
* @see https://hashkeyglobal-apidoc.readme.io/reference/get-futures-commission-rate-request-weight // swap
|
|
605
605
|
* @param {string} symbol unified market symbol
|
|
606
606
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
607
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
607
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
608
608
|
*/
|
|
609
609
|
fetchTradingFee(symbol: string, params?: {}): Promise<TradingFeeInterface>;
|
|
610
610
|
/**
|
|
@@ -613,7 +613,7 @@ export default class hashkey extends Exchange {
|
|
|
613
613
|
* @description *for spot markets only* fetch the trading fees for multiple markets
|
|
614
614
|
* @see https://developers.binance.com/docs/wallet/asset/trade-fee
|
|
615
615
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
616
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
616
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
617
617
|
*/
|
|
618
618
|
fetchTradingFees(params?: {}): Promise<TradingFees>;
|
|
619
619
|
parseTradingFee(fee: Dict, market?: Market): TradingFeeInterface;
|