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/hyperliquid.js
CHANGED
|
@@ -385,7 +385,7 @@ export default class hyperliquid extends Exchange {
|
|
|
385
385
|
* @name hyperliquid#fetchStatus
|
|
386
386
|
* @description the latest known information on the availability of the exchange API
|
|
387
387
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
388
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
388
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
389
389
|
*/
|
|
390
390
|
async fetchStatus(params = {}) {
|
|
391
391
|
const request = {
|
|
@@ -1068,7 +1068,7 @@ export default class hyperliquid extends Exchange {
|
|
|
1068
1068
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
|
|
1069
1069
|
* @param {string} [params.dex] for hip3 markets, the dex name, eg: 'xyz'
|
|
1070
1070
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
1071
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
1071
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
1072
1072
|
*/
|
|
1073
1073
|
async fetchBalance(params = {}) {
|
|
1074
1074
|
let userAddress = undefined;
|
|
@@ -1160,7 +1160,7 @@ export default class hyperliquid extends Exchange {
|
|
|
1160
1160
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1161
1161
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1162
1162
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1163
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
1163
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
1164
1164
|
*/
|
|
1165
1165
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1166
1166
|
await this.loadMarkets();
|
|
@@ -1210,7 +1210,7 @@ export default class hyperliquid extends Exchange {
|
|
|
1210
1210
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1211
1211
|
* @param {string} [params.type] 'spot' or 'swap', by default fetches both
|
|
1212
1212
|
* @param {boolean} [params.hip3] set to true to fetch hip3 markets only
|
|
1213
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
1213
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1214
1214
|
*/
|
|
1215
1215
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
1216
1216
|
await this.loadMarkets();
|
|
@@ -1491,7 +1491,7 @@ export default class hyperliquid extends Exchange {
|
|
|
1491
1491
|
* @param {string} [params.address] wallet address that made trades
|
|
1492
1492
|
* @param {string} [params.user] wallet address that made trades
|
|
1493
1493
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
1494
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1494
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
1495
1495
|
*/
|
|
1496
1496
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1497
1497
|
let userAddress = undefined;
|
|
@@ -1574,7 +1574,7 @@ export default class hyperliquid extends Exchange {
|
|
|
1574
1574
|
'connectionId': hash,
|
|
1575
1575
|
};
|
|
1576
1576
|
}
|
|
1577
|
-
actionHash(action, vaultAddress, nonce) {
|
|
1577
|
+
actionHash(action, vaultAddress, nonce, expiresAfter = undefined) {
|
|
1578
1578
|
const dataBinary = this.packb(action);
|
|
1579
1579
|
const dataHex = this.binaryToBase16(dataBinary);
|
|
1580
1580
|
let data = dataHex;
|
|
@@ -1586,10 +1586,14 @@ export default class hyperliquid extends Exchange {
|
|
|
1586
1586
|
data += '01';
|
|
1587
1587
|
data += vaultAddress;
|
|
1588
1588
|
}
|
|
1589
|
+
if (expiresAfter !== undefined) {
|
|
1590
|
+
data += '00';
|
|
1591
|
+
data += '00000' + this.intToBase16(expiresAfter);
|
|
1592
|
+
}
|
|
1589
1593
|
return this.hash(this.base16ToBinary(data), keccak, 'binary');
|
|
1590
1594
|
}
|
|
1591
|
-
signL1Action(action, nonce, vaultAdress = undefined) {
|
|
1592
|
-
const hash = this.actionHash(action, vaultAdress, nonce);
|
|
1595
|
+
signL1Action(action, nonce, vaultAdress = undefined, expiresAfter = undefined) {
|
|
1596
|
+
const hash = this.actionHash(action, vaultAdress, nonce, expiresAfter);
|
|
1593
1597
|
const isTestnet = this.safeBool(this.options, 'sandboxMode', false);
|
|
1594
1598
|
const phantomAgent = this.constructPhantomAgent(hash, isTestnet);
|
|
1595
1599
|
// const data: Dict = {
|
|
@@ -1844,7 +1848,7 @@ export default class hyperliquid extends Exchange {
|
|
|
1844
1848
|
* @param {string} [params.slippage] the slippage for market order
|
|
1845
1849
|
* @param {string} [params.vaultAddress] the vault address for order
|
|
1846
1850
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
1847
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1851
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1848
1852
|
*/
|
|
1849
1853
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1850
1854
|
await this.loadMarkets();
|
|
@@ -1859,7 +1863,7 @@ export default class hyperliquid extends Exchange {
|
|
|
1859
1863
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-an-order
|
|
1860
1864
|
* @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
|
|
1861
1865
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1862
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1866
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1863
1867
|
*/
|
|
1864
1868
|
async createOrders(orders, params = {}) {
|
|
1865
1869
|
await this.loadMarkets();
|
|
@@ -1973,7 +1977,7 @@ export default class hyperliquid extends Exchange {
|
|
|
1973
1977
|
* @description create a list of trade orders
|
|
1974
1978
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-an-order
|
|
1975
1979
|
* @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
|
|
1976
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1980
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1977
1981
|
*/
|
|
1978
1982
|
this.checkRequiredCredentials();
|
|
1979
1983
|
let defaultSlippage = this.safeString(this.options, 'defaultSlippage');
|
|
@@ -2015,11 +2019,12 @@ export default class hyperliquid extends Exchange {
|
|
|
2015
2019
|
orderParams['slippage'] = slippage;
|
|
2016
2020
|
const stopLoss = this.safeValue(orderParams, 'stopLoss');
|
|
2017
2021
|
const takeProfit = this.safeValue(orderParams, 'takeProfit');
|
|
2018
|
-
const
|
|
2022
|
+
const hasStopLoss = (stopLoss !== undefined);
|
|
2023
|
+
const hasTakeProfit = (takeProfit !== undefined);
|
|
2019
2024
|
orderParams = this.omit(orderParams, ['stopLoss', 'takeProfit']);
|
|
2020
2025
|
const mainOrderObj = this.createOrderRequest(symbol, type, side, amount, price, orderParams);
|
|
2021
2026
|
orderReq.push(mainOrderObj);
|
|
2022
|
-
if (
|
|
2027
|
+
if (hasStopLoss || hasTakeProfit) {
|
|
2023
2028
|
// grouping opposed orders for sl/tp
|
|
2024
2029
|
const stopLossOrderTriggerPrice = this.safeStringN(stopLoss, ['triggerPrice', 'stopPrice']);
|
|
2025
2030
|
const stopLossOrderType = this.safeString(stopLoss, 'type', 'limit');
|
|
@@ -2036,14 +2041,14 @@ export default class hyperliquid extends Exchange {
|
|
|
2036
2041
|
else {
|
|
2037
2042
|
triggerOrderSide = 'buy';
|
|
2038
2043
|
}
|
|
2039
|
-
if (
|
|
2044
|
+
if (hasTakeProfit) {
|
|
2040
2045
|
const orderObj = this.createOrderRequest(symbol, takeProfitOrderType, triggerOrderSide, amount, takeProfitOrderLimitPrice, this.extend(orderParams, {
|
|
2041
2046
|
'takeProfitPrice': takeProfitOrderTriggerPrice,
|
|
2042
2047
|
'reduceOnly': true,
|
|
2043
2048
|
}));
|
|
2044
2049
|
orderReq.push(orderObj);
|
|
2045
2050
|
}
|
|
2046
|
-
if (
|
|
2051
|
+
if (hasStopLoss) {
|
|
2047
2052
|
const orderObj = this.createOrderRequest(symbol, stopLossOrderType, triggerOrderSide, amount, stopLossOrderLimitPrice, this.extend(orderParams, {
|
|
2048
2053
|
'stopLossPrice': stopLossOrderTriggerPrice,
|
|
2049
2054
|
'reduceOnly': true,
|
|
@@ -2089,7 +2094,7 @@ export default class hyperliquid extends Exchange {
|
|
|
2089
2094
|
* @param {string} [params.clientOrderId] client order id, (optional 128 bit hex string e.g. 0x1234567890abcdef1234567890abcdef)
|
|
2090
2095
|
* @param {string} [params.vaultAddress] the vault address for order
|
|
2091
2096
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
2092
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
2097
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2093
2098
|
*/
|
|
2094
2099
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
2095
2100
|
const orders = await this.cancelOrders([id], symbol, params);
|
|
@@ -2107,7 +2112,7 @@ export default class hyperliquid extends Exchange {
|
|
|
2107
2112
|
* @param {string|string[]} [params.clientOrderId] client order ids, (optional 128 bit hex string e.g. 0x1234567890abcdef1234567890abcdef)
|
|
2108
2113
|
* @param {string} [params.vaultAddress] the vault address
|
|
2109
2114
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
2110
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
2115
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2111
2116
|
*/
|
|
2112
2117
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
2113
2118
|
this.checkRequiredCredentials();
|
|
@@ -2214,7 +2219,7 @@ export default class hyperliquid extends Exchange {
|
|
|
2214
2219
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2215
2220
|
* @param {string} [params.vaultAddress] the vault address
|
|
2216
2221
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
2217
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
2222
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2218
2223
|
*/
|
|
2219
2224
|
async cancelOrdersForSymbols(orders, params = {}) {
|
|
2220
2225
|
this.checkRequiredCredentials();
|
|
@@ -2466,7 +2471,7 @@ export default class hyperliquid extends Exchange {
|
|
|
2466
2471
|
* @param {string} [params.clientOrderId] client order id, (optional 128 bit hex string e.g. 0x1234567890abcdef1234567890abcdef)
|
|
2467
2472
|
* @param {string} [params.vaultAddress] the vault address for order
|
|
2468
2473
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
2469
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2474
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2470
2475
|
*/
|
|
2471
2476
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
2472
2477
|
await this.loadMarkets();
|
|
@@ -2484,7 +2489,7 @@ export default class hyperliquid extends Exchange {
|
|
|
2484
2489
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#modify-multiple-orders
|
|
2485
2490
|
* @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
|
|
2486
2491
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2487
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2492
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2488
2493
|
*/
|
|
2489
2494
|
async editOrders(orders, params = {}) {
|
|
2490
2495
|
await this.loadMarkets();
|
|
@@ -2578,10 +2583,10 @@ export default class hyperliquid extends Exchange {
|
|
|
2578
2583
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-historical-funding-rates
|
|
2579
2584
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2580
2585
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2581
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com
|
|
2586
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
2582
2587
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2583
2588
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
2584
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
2589
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
2585
2590
|
*/
|
|
2586
2591
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2587
2592
|
await this.loadMarkets();
|
|
@@ -2653,7 +2658,7 @@ export default class hyperliquid extends Exchange {
|
|
|
2653
2658
|
* @param {string} [params.method] 'openOrders' or 'frontendOpenOrders' default is 'frontendOpenOrders'
|
|
2654
2659
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
2655
2660
|
* @param {string} [params.dex] perp dex name. default is null
|
|
2656
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2661
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2657
2662
|
*/
|
|
2658
2663
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2659
2664
|
let userAddress = undefined;
|
|
@@ -2708,7 +2713,7 @@ export default class hyperliquid extends Exchange {
|
|
|
2708
2713
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2709
2714
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2710
2715
|
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
2711
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2716
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2712
2717
|
*/
|
|
2713
2718
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2714
2719
|
await this.loadMarkets();
|
|
@@ -2725,7 +2730,7 @@ export default class hyperliquid extends Exchange {
|
|
|
2725
2730
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2726
2731
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2727
2732
|
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
2728
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2733
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2729
2734
|
*/
|
|
2730
2735
|
async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2731
2736
|
await this.loadMarkets();
|
|
@@ -2742,7 +2747,7 @@ export default class hyperliquid extends Exchange {
|
|
|
2742
2747
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2743
2748
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2744
2749
|
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
2745
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2750
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2746
2751
|
*/
|
|
2747
2752
|
async fetchCanceledAndClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2748
2753
|
await this.loadMarkets();
|
|
@@ -2761,7 +2766,7 @@ export default class hyperliquid extends Exchange {
|
|
|
2761
2766
|
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
2762
2767
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
2763
2768
|
* @param {string} [params.dex] perp dex name. default is null
|
|
2764
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2769
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2765
2770
|
*/
|
|
2766
2771
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2767
2772
|
let userAddress = undefined;
|
|
@@ -2807,7 +2812,7 @@ export default class hyperliquid extends Exchange {
|
|
|
2807
2812
|
* @param {string} [params.clientOrderId] client order id, (optional 128 bit hex string e.g. 0x1234567890abcdef1234567890abcdef)
|
|
2808
2813
|
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
2809
2814
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
2810
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
2815
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2811
2816
|
*/
|
|
2812
2817
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
2813
2818
|
let userAddress = undefined;
|
|
@@ -3060,7 +3065,7 @@ export default class hyperliquid extends Exchange {
|
|
|
3060
3065
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3061
3066
|
* @param {int} [params.until] timestamp in ms of the latest trade
|
|
3062
3067
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
3063
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
3068
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
3064
3069
|
*/
|
|
3065
3070
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3066
3071
|
let userAddress = undefined;
|
|
@@ -3174,7 +3179,7 @@ export default class hyperliquid extends Exchange {
|
|
|
3174
3179
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
3175
3180
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3176
3181
|
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
3177
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
3182
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
3178
3183
|
*/
|
|
3179
3184
|
async fetchPosition(symbol, params = {}) {
|
|
3180
3185
|
const positions = await this.fetchPositions([symbol], params);
|
|
@@ -3214,7 +3219,7 @@ export default class hyperliquid extends Exchange {
|
|
|
3214
3219
|
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
3215
3220
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
3216
3221
|
* @param {string} [params.dex] perp dex name, eg: XYZ
|
|
3217
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
3222
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
3218
3223
|
*/
|
|
3219
3224
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
3220
3225
|
await this.loadMarkets();
|
|
@@ -3483,7 +3488,7 @@ export default class hyperliquid extends Exchange {
|
|
|
3483
3488
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3484
3489
|
* @param {string} [params.vaultAddress] the vault address
|
|
3485
3490
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
3486
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
3491
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
|
|
3487
3492
|
*/
|
|
3488
3493
|
async addMargin(symbol, amount, params = {}) {
|
|
3489
3494
|
return await this.modifyMarginHelper(symbol, amount, 'add', params);
|
|
@@ -3498,7 +3503,7 @@ export default class hyperliquid extends Exchange {
|
|
|
3498
3503
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3499
3504
|
* @param {string} [params.vaultAddress] the vault address
|
|
3500
3505
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
3501
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
3506
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=reduce-margin-structure}
|
|
3502
3507
|
*/
|
|
3503
3508
|
async reduceMargin(symbol, amount, params = {}) {
|
|
3504
3509
|
return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
|
|
@@ -3574,7 +3579,7 @@ export default class hyperliquid extends Exchange {
|
|
|
3574
3579
|
* @param {string} toAccount account to transfer to *swap, spot or address*
|
|
3575
3580
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3576
3581
|
* @param {string} [params.vaultAddress] the vault address for order
|
|
3577
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
3582
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
3578
3583
|
*/
|
|
3579
3584
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
3580
3585
|
this.checkRequiredCredentials();
|
|
@@ -3698,7 +3703,7 @@ export default class hyperliquid extends Exchange {
|
|
|
3698
3703
|
* @param {string} tag
|
|
3699
3704
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3700
3705
|
* @param {string} [params.vaultAddress] vault address withdraw from
|
|
3701
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
3706
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
3702
3707
|
*/
|
|
3703
3708
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
3704
3709
|
this.checkRequiredCredentials();
|
|
@@ -3813,7 +3818,7 @@ export default class hyperliquid extends Exchange {
|
|
|
3813
3818
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3814
3819
|
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
3815
3820
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
3816
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
3821
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
3817
3822
|
*/
|
|
3818
3823
|
async fetchTradingFee(symbol, params = {}) {
|
|
3819
3824
|
await this.loadMarkets();
|
|
@@ -3922,7 +3927,7 @@ export default class hyperliquid extends Exchange {
|
|
|
3922
3927
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3923
3928
|
* @param {int} [params.until] timestamp in ms of the latest ledger entry
|
|
3924
3929
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
3925
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
3930
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
3926
3931
|
*/
|
|
3927
3932
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3928
3933
|
await this.loadMarkets();
|
|
@@ -4016,7 +4021,7 @@ export default class hyperliquid extends Exchange {
|
|
|
4016
4021
|
* @param {int} [params.until] the latest time in ms to fetch withdrawals for
|
|
4017
4022
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
4018
4023
|
* @param {string} [params.vaultAddress] vault address
|
|
4019
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
4024
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
4020
4025
|
*/
|
|
4021
4026
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
4022
4027
|
await this.loadMarkets();
|
|
@@ -4083,7 +4088,7 @@ export default class hyperliquid extends Exchange {
|
|
|
4083
4088
|
* @param {int} [params.until] the latest time in ms to fetch withdrawals for
|
|
4084
4089
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
4085
4090
|
* @param {string} [params.vaultAddress] vault address
|
|
4086
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
4091
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
4087
4092
|
*/
|
|
4088
4093
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
4089
4094
|
await this.loadMarkets();
|
|
@@ -4142,7 +4147,7 @@ export default class hyperliquid extends Exchange {
|
|
|
4142
4147
|
* @description Retrieves the open interest for a list of symbols
|
|
4143
4148
|
* @param {string[]} [symbols] Unified CCXT market symbol
|
|
4144
4149
|
* @param {object} [params] exchange specific parameters
|
|
4145
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com
|
|
4150
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
4146
4151
|
*/
|
|
4147
4152
|
async fetchOpenInterests(symbols = undefined, params = {}) {
|
|
4148
4153
|
await this.loadMarkets();
|
|
@@ -4156,7 +4161,7 @@ export default class hyperliquid extends Exchange {
|
|
|
4156
4161
|
* @description retrieves the open interest of a contract trading pair
|
|
4157
4162
|
* @param {string} symbol unified CCXT market symbol
|
|
4158
4163
|
* @param {object} [params] exchange specific parameters
|
|
4159
|
-
* @returns {object} an [open interest structure]{@link https://docs.ccxt.com
|
|
4164
|
+
* @returns {object} an [open interest structure]{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
4160
4165
|
*/
|
|
4161
4166
|
async fetchOpenInterest(symbol, params = {}) {
|
|
4162
4167
|
symbol = this.symbol(symbol);
|
|
@@ -4207,7 +4212,7 @@ export default class hyperliquid extends Exchange {
|
|
|
4207
4212
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
4208
4213
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4209
4214
|
* @param {string} [params.subAccountAddress] sub account user address
|
|
4210
|
-
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com
|
|
4215
|
+
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
4211
4216
|
*/
|
|
4212
4217
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
4213
4218
|
await this.loadMarkets();
|
|
@@ -4307,6 +4312,35 @@ export default class hyperliquid extends Exchange {
|
|
|
4307
4312
|
const response = await this.privatePostExchange(this.extend(request, params));
|
|
4308
4313
|
return response;
|
|
4309
4314
|
}
|
|
4315
|
+
/**
|
|
4316
|
+
* @method
|
|
4317
|
+
* @name hyperliquid#createAccount
|
|
4318
|
+
* @description creates a sub-account under the main account
|
|
4319
|
+
* @param {string} name the name of the sub-account
|
|
4320
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4321
|
+
* @param {int} [params.expiresAfter] time in ms after which the sub-account will expire
|
|
4322
|
+
* @returns {object} a response object
|
|
4323
|
+
*/
|
|
4324
|
+
async createSubAccount(name, params = {}) {
|
|
4325
|
+
const nonce = this.milliseconds();
|
|
4326
|
+
const request = {
|
|
4327
|
+
'nonce': nonce,
|
|
4328
|
+
};
|
|
4329
|
+
const action = {
|
|
4330
|
+
'type': 'createSubAccount',
|
|
4331
|
+
'name': name,
|
|
4332
|
+
};
|
|
4333
|
+
const expiresAfter = this.safeInteger(params, 'expiresAfter');
|
|
4334
|
+
if (expiresAfter !== undefined) {
|
|
4335
|
+
params = this.omit(params, 'expiresAfter');
|
|
4336
|
+
request['expiresAfter'] = expiresAfter;
|
|
4337
|
+
}
|
|
4338
|
+
const signature = this.signL1Action(action, nonce, undefined, expiresAfter);
|
|
4339
|
+
request['action'] = action;
|
|
4340
|
+
request['signature'] = signature;
|
|
4341
|
+
const response = await this.privatePostExchange(this.extend(request, params));
|
|
4342
|
+
return response;
|
|
4343
|
+
}
|
|
4310
4344
|
extractTypeFromDelta(data = []) {
|
|
4311
4345
|
const records = [];
|
|
4312
4346
|
for (let i = 0; i < data.length; i++) {
|
|
@@ -20,7 +20,7 @@ export default class independentreserve extends Exchange {
|
|
|
20
20
|
* @name independentreserve#fetchBalance
|
|
21
21
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
22
22
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
23
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
23
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
24
24
|
*/
|
|
25
25
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
26
26
|
/**
|
|
@@ -30,7 +30,7 @@ export default class independentreserve extends Exchange {
|
|
|
30
30
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
31
31
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
32
32
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
33
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
33
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
34
34
|
*/
|
|
35
35
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
36
36
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
@@ -40,7 +40,7 @@ export default class independentreserve extends Exchange {
|
|
|
40
40
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
41
41
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
42
42
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
43
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
43
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
44
44
|
*/
|
|
45
45
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
46
46
|
parseOrder(order: Dict, market?: Market): Order;
|
|
@@ -52,7 +52,7 @@ export default class independentreserve extends Exchange {
|
|
|
52
52
|
* @param {string} id order id
|
|
53
53
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
54
54
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
55
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
55
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
56
56
|
*/
|
|
57
57
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
58
58
|
/**
|
|
@@ -63,7 +63,7 @@ export default class independentreserve extends Exchange {
|
|
|
63
63
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
64
64
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
65
65
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
66
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
66
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
67
67
|
*/
|
|
68
68
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
69
69
|
/**
|
|
@@ -74,7 +74,7 @@ export default class independentreserve extends Exchange {
|
|
|
74
74
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
75
75
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
76
76
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
77
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
77
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
78
78
|
*/
|
|
79
79
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
80
80
|
/**
|
|
@@ -85,7 +85,7 @@ export default class independentreserve extends Exchange {
|
|
|
85
85
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
86
86
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
87
87
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
88
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
88
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
89
89
|
*/
|
|
90
90
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
91
91
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
@@ -97,7 +97,7 @@ export default class independentreserve extends Exchange {
|
|
|
97
97
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
98
98
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
99
99
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
100
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
100
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
101
101
|
*/
|
|
102
102
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
103
103
|
/**
|
|
@@ -105,7 +105,7 @@ export default class independentreserve extends Exchange {
|
|
|
105
105
|
* @name independentreserve#fetchTradingFees
|
|
106
106
|
* @description fetch the trading fees for multiple markets
|
|
107
107
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
108
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
108
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
109
109
|
*/
|
|
110
110
|
fetchTradingFees(params?: {}): Promise<TradingFees>;
|
|
111
111
|
/**
|
|
@@ -118,7 +118,7 @@ export default class independentreserve extends Exchange {
|
|
|
118
118
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
119
119
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
120
120
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
121
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
121
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
122
122
|
*/
|
|
123
123
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
124
124
|
/**
|
|
@@ -129,7 +129,7 @@ export default class independentreserve extends Exchange {
|
|
|
129
129
|
* @param {string} id order id
|
|
130
130
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
131
131
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
132
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
132
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
133
133
|
*/
|
|
134
134
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
135
135
|
/**
|
|
@@ -139,7 +139,7 @@ export default class independentreserve extends Exchange {
|
|
|
139
139
|
* @see https://www.independentreserve.com/features/api#GetDigitalCurrencyDepositAddress
|
|
140
140
|
* @param {string} code unified currency code
|
|
141
141
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
142
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
142
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
143
143
|
*/
|
|
144
144
|
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
145
145
|
parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
|
|
@@ -156,7 +156,7 @@ export default class independentreserve extends Exchange {
|
|
|
156
156
|
*
|
|
157
157
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
158
158
|
* @param {object} [params.comment] withdrawal comment, should not exceed 500 characters
|
|
159
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
159
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
160
160
|
*/
|
|
161
161
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
162
162
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
@@ -415,7 +415,7 @@ export default class independentreserve extends Exchange {
|
|
|
415
415
|
* @name independentreserve#fetchBalance
|
|
416
416
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
417
417
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
418
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
418
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
419
419
|
*/
|
|
420
420
|
async fetchBalance(params = {}) {
|
|
421
421
|
await this.loadMarkets();
|
|
@@ -429,7 +429,7 @@ export default class independentreserve extends Exchange {
|
|
|
429
429
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
430
430
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
431
431
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
432
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
432
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
433
433
|
*/
|
|
434
434
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
435
435
|
await this.loadMarkets();
|
|
@@ -495,7 +495,7 @@ export default class independentreserve extends Exchange {
|
|
|
495
495
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
496
496
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
497
497
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
498
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
498
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
499
499
|
*/
|
|
500
500
|
async fetchTicker(symbol, params = {}) {
|
|
501
501
|
await this.loadMarkets();
|
|
@@ -655,7 +655,7 @@ export default class independentreserve extends Exchange {
|
|
|
655
655
|
* @param {string} id order id
|
|
656
656
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
657
657
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
658
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
658
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
659
659
|
*/
|
|
660
660
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
661
661
|
await this.loadMarkets();
|
|
@@ -676,7 +676,7 @@ export default class independentreserve extends Exchange {
|
|
|
676
676
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
677
677
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
678
678
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
679
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
679
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
680
680
|
*/
|
|
681
681
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
682
682
|
await this.loadMarkets();
|
|
@@ -704,7 +704,7 @@ export default class independentreserve extends Exchange {
|
|
|
704
704
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
705
705
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
706
706
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
707
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
707
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
708
708
|
*/
|
|
709
709
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
710
710
|
await this.loadMarkets();
|
|
@@ -732,7 +732,7 @@ export default class independentreserve extends Exchange {
|
|
|
732
732
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
733
733
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
734
734
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
735
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
735
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
736
736
|
*/
|
|
737
737
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = 50, params = {}) {
|
|
738
738
|
await this.loadMarkets();
|
|
@@ -800,7 +800,7 @@ export default class independentreserve extends Exchange {
|
|
|
800
800
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
801
801
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
802
802
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
803
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
803
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
804
804
|
*/
|
|
805
805
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
806
806
|
await this.loadMarkets();
|
|
@@ -818,7 +818,7 @@ export default class independentreserve extends Exchange {
|
|
|
818
818
|
* @name independentreserve#fetchTradingFees
|
|
819
819
|
* @description fetch the trading fees for multiple markets
|
|
820
820
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
821
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
821
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
822
822
|
*/
|
|
823
823
|
async fetchTradingFees(params = {}) {
|
|
824
824
|
await this.loadMarkets();
|
|
@@ -869,7 +869,7 @@ export default class independentreserve extends Exchange {
|
|
|
869
869
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
870
870
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
871
871
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
872
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
872
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
873
873
|
*/
|
|
874
874
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
875
875
|
await this.loadMarkets();
|
|
@@ -903,7 +903,7 @@ export default class independentreserve extends Exchange {
|
|
|
903
903
|
* @param {string} id order id
|
|
904
904
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
905
905
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
906
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
906
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
907
907
|
*/
|
|
908
908
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
909
909
|
await this.loadMarkets();
|
|
@@ -935,7 +935,7 @@ export default class independentreserve extends Exchange {
|
|
|
935
935
|
* @see https://www.independentreserve.com/features/api#GetDigitalCurrencyDepositAddress
|
|
936
936
|
* @param {string} code unified currency code
|
|
937
937
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
938
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
938
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
939
939
|
*/
|
|
940
940
|
async fetchDepositAddress(code, params = {}) {
|
|
941
941
|
await this.loadMarkets();
|
|
@@ -986,7 +986,7 @@ export default class independentreserve extends Exchange {
|
|
|
986
986
|
*
|
|
987
987
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
988
988
|
* @param {object} [params.comment] withdrawal comment, should not exceed 500 characters
|
|
989
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
989
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
990
990
|
*/
|
|
991
991
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
992
992
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|