ccxt 4.5.43 → 4.5.45
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 +23 -12
- package/dist/ccxt.browser.min.js +8 -8
- package/dist/cjs/ccxt.js +6 -12
- package/dist/cjs/src/abstract/aftermath.js +1 -1
- package/dist/cjs/src/abstract/alpaca.js +1 -1
- package/dist/cjs/src/abstract/apex.js +1 -1
- package/dist/cjs/src/abstract/arkham.js +1 -1
- package/dist/cjs/src/abstract/ascendex.js +1 -1
- package/dist/cjs/src/abstract/aster.js +1 -1
- package/dist/cjs/src/abstract/backpack.js +1 -1
- package/dist/cjs/src/abstract/bigone.js +1 -1
- package/dist/cjs/src/abstract/binance.js +1 -1
- package/dist/cjs/src/abstract/bingx.js +1 -1
- package/dist/cjs/src/abstract/bit2c.js +1 -1
- package/dist/cjs/src/abstract/bitbank.js +1 -1
- package/dist/cjs/src/abstract/bitbns.js +1 -1
- package/dist/cjs/src/abstract/bitfinex.js +1 -1
- package/dist/cjs/src/abstract/bitflyer.js +1 -1
- package/dist/cjs/src/abstract/bitget.js +1 -1
- package/dist/cjs/src/abstract/bithumb.js +1 -1
- package/dist/cjs/src/abstract/bitmart.js +1 -1
- package/dist/cjs/src/abstract/bitmex.js +1 -1
- package/dist/cjs/src/abstract/bitopro.js +1 -1
- package/dist/cjs/src/abstract/bitrue.js +1 -1
- package/dist/cjs/src/abstract/bitso.js +1 -1
- package/dist/cjs/src/abstract/bitstamp.js +1 -1
- package/dist/cjs/src/abstract/bitteam.js +1 -1
- package/dist/cjs/src/abstract/bittrade.js +1 -1
- package/dist/cjs/src/abstract/bitvavo.js +1 -1
- package/dist/cjs/src/abstract/blockchaincom.js +1 -1
- package/dist/cjs/src/abstract/blofin.js +1 -1
- package/dist/cjs/src/abstract/btcbox.js +1 -1
- package/dist/cjs/src/abstract/btcmarkets.js +1 -1
- package/dist/cjs/src/abstract/btcturk.js +1 -1
- package/dist/cjs/src/abstract/bullish.js +1 -1
- package/dist/cjs/src/abstract/bybit.js +1 -1
- package/dist/cjs/src/abstract/bydfi.js +1 -1
- package/dist/cjs/src/abstract/cex.js +1 -1
- package/dist/cjs/src/abstract/coinbase.js +1 -1
- package/dist/cjs/src/abstract/coinbaseexchange.js +1 -1
- package/dist/cjs/src/abstract/coinbaseinternational.js +1 -1
- package/dist/cjs/src/abstract/coincatch.js +1 -1
- package/dist/cjs/src/abstract/coincheck.js +1 -1
- package/dist/cjs/src/abstract/coinex.js +1 -1
- package/dist/cjs/src/abstract/coinmate.js +1 -1
- package/dist/cjs/src/abstract/coinmetro.js +1 -1
- package/dist/cjs/src/abstract/coinone.js +1 -1
- package/dist/cjs/src/abstract/coinsph.js +1 -1
- package/dist/cjs/src/abstract/coinspot.js +1 -1
- package/dist/cjs/src/abstract/cryptocom.js +1 -1
- package/dist/cjs/src/abstract/cryptomus.js +1 -1
- package/dist/cjs/src/abstract/deepcoin.js +1 -1
- package/dist/cjs/src/abstract/delta.js +1 -1
- package/dist/cjs/src/abstract/deribit.js +1 -1
- package/dist/cjs/src/abstract/derive.js +1 -1
- package/dist/cjs/src/abstract/digifinex.js +1 -1
- package/dist/cjs/src/abstract/dydx.js +1 -1
- package/dist/cjs/src/abstract/exmo.js +1 -1
- package/dist/cjs/src/abstract/foxbit.js +1 -1
- package/dist/cjs/src/abstract/gate.js +1 -1
- package/dist/cjs/src/abstract/gemini.js +1 -1
- package/dist/cjs/src/abstract/{alp.js → grvt.js} +1 -1
- package/dist/cjs/src/abstract/hashkey.js +1 -1
- package/dist/cjs/src/abstract/hibachi.js +1 -1
- package/dist/cjs/src/abstract/hitbtc.js +1 -1
- package/dist/cjs/src/abstract/hollaex.js +1 -1
- package/dist/cjs/src/abstract/htx.js +1 -1
- package/dist/cjs/src/abstract/hyperliquid.js +1 -1
- package/dist/cjs/src/abstract/independentreserve.js +1 -1
- package/dist/cjs/src/abstract/indodax.js +1 -1
- package/dist/cjs/src/abstract/kraken.js +1 -1
- package/dist/cjs/src/abstract/krakenfutures.js +1 -1
- package/dist/cjs/src/abstract/kucoin.js +1 -1
- package/dist/cjs/src/abstract/latoken.js +1 -1
- package/dist/cjs/src/abstract/lbank.js +1 -1
- package/dist/cjs/src/abstract/lighter.js +1 -1
- package/dist/cjs/src/abstract/luno.js +1 -1
- package/dist/cjs/src/abstract/mercado.js +1 -1
- package/dist/cjs/src/abstract/mexc.js +1 -1
- package/dist/cjs/src/abstract/modetrade.js +1 -1
- package/dist/cjs/src/abstract/ndax.js +1 -1
- package/dist/cjs/src/abstract/novadax.js +1 -1
- package/dist/cjs/src/abstract/okx.js +1 -1
- package/dist/cjs/src/abstract/onetrading.js +1 -1
- package/dist/cjs/src/abstract/oxfun.js +1 -1
- package/dist/cjs/src/abstract/p2b.js +1 -1
- package/dist/cjs/src/abstract/paradex.js +1 -1
- package/dist/cjs/src/abstract/paymium.js +1 -1
- package/dist/cjs/src/abstract/phemex.js +1 -1
- package/dist/cjs/src/abstract/poloniex.js +1 -1
- package/dist/cjs/src/abstract/tokocrypto.js +1 -1
- package/dist/cjs/src/abstract/toobit.js +1 -1
- package/dist/cjs/src/abstract/upbit.js +1 -1
- package/dist/cjs/src/abstract/wavesexchange.js +1 -1
- package/dist/cjs/src/abstract/whitebit.js +1 -1
- package/dist/cjs/src/abstract/woo.js +1 -1
- package/dist/cjs/src/abstract/woofipro.js +1 -1
- package/dist/cjs/src/abstract/xt.js +1 -1
- package/dist/cjs/src/abstract/yobit.js +1 -1
- package/dist/cjs/src/abstract/zaif.js +1 -1
- package/dist/cjs/src/abstract/zebpay.js +1 -1
- package/dist/cjs/src/abstract/zonda.js +1 -1
- package/dist/cjs/src/aftermath.js +0 -1
- package/dist/cjs/src/alpaca.js +1 -1
- package/dist/cjs/src/apex.js +1 -1
- package/dist/cjs/src/arkham.js +1 -1
- package/dist/cjs/src/ascendex.js +1 -1
- package/dist/cjs/src/aster.js +1 -1
- package/dist/cjs/src/backpack.js +1 -1
- package/dist/cjs/src/base/Exchange.js +37 -1
- package/dist/cjs/src/base/Precise.js +0 -6
- package/dist/cjs/src/base/errors.js +0 -6
- package/dist/cjs/src/base/functions/crypto.js +1 -1
- package/dist/cjs/src/base/functions/encode.js +3 -3
- package/dist/cjs/src/base/functions/generic.js +8 -2
- package/dist/cjs/src/base/functions/io.js +1 -1
- package/dist/cjs/src/base/functions/misc.js +0 -1
- package/dist/cjs/src/base/functions/number.js +0 -6
- package/dist/cjs/src/base/functions/platform.js +0 -6
- package/dist/cjs/src/base/functions/rsa.js +0 -1
- package/dist/cjs/src/base/functions/string.js +0 -6
- package/dist/cjs/src/base/functions/throttle.js +1 -1
- package/dist/cjs/src/base/functions/time.js +0 -6
- package/dist/cjs/src/base/functions/totp.js +0 -1
- package/dist/cjs/src/base/functions/type.js +0 -6
- package/dist/cjs/src/base/functions.js +1 -1
- package/dist/cjs/src/base/ws/Cache.js +0 -6
- package/dist/cjs/src/base/ws/Client.js +0 -1
- package/dist/cjs/src/base/ws/Future.js +1 -1
- package/dist/cjs/src/base/ws/OrderBook.js +1 -1
- package/dist/cjs/src/base/ws/OrderBookSide.js +0 -6
- package/dist/cjs/src/base/ws/WsClient.js +1 -1
- package/dist/cjs/src/bequant.js +1 -1
- package/dist/cjs/src/bigone.js +1 -1
- package/dist/cjs/src/binance.js +53 -3
- package/dist/cjs/src/binancecoinm.js +1 -1
- package/dist/cjs/src/binanceus.js +1 -1
- package/dist/cjs/src/binanceusdm.js +1 -1
- package/dist/cjs/src/bingx.js +1 -1
- package/dist/cjs/src/bit2c.js +1 -1
- package/dist/cjs/src/bitbank.js +1 -1
- package/dist/cjs/src/bitbns.js +1 -1
- package/dist/cjs/src/bitfinex.js +1 -1
- package/dist/cjs/src/bitflyer.js +1 -1
- package/dist/cjs/src/bitget.js +1 -1
- package/dist/cjs/src/bithumb.js +1 -1
- package/dist/cjs/src/bitmart.js +1 -1
- package/dist/cjs/src/bitmex.js +1 -1
- package/dist/cjs/src/bitopro.js +1 -1
- package/dist/cjs/src/bitrue.js +2 -2
- package/dist/cjs/src/bitso.js +1 -1
- package/dist/cjs/src/bitstamp.js +1 -1
- package/dist/cjs/src/bitteam.js +2 -2
- package/dist/cjs/src/bittrade.js +1 -1
- package/dist/cjs/src/bitvavo.js +1 -0
- package/dist/cjs/src/blockchaincom.js +1 -1
- package/dist/cjs/src/blofin.js +1 -1
- package/dist/cjs/src/btcbox.js +2 -2
- package/dist/cjs/src/btcmarkets.js +1 -1
- package/dist/cjs/src/btcturk.js +1 -1
- package/dist/cjs/src/bullish.js +1 -1
- package/dist/cjs/src/bybit.js +1 -1
- package/dist/cjs/src/bydfi.js +1 -1
- package/dist/cjs/src/cex.js +2 -1
- package/dist/cjs/src/coinbaseadvanced.js +1 -1
- package/dist/cjs/src/coincatch.js +4 -16
- package/dist/cjs/src/coincheck.js +1 -1
- package/dist/cjs/src/coinex.js +1 -1
- package/dist/cjs/src/coinmate.js +1 -1
- package/dist/cjs/src/coinmetro.js +1 -1
- package/dist/cjs/src/coinone.js +1 -1
- package/dist/cjs/src/coinsph.js +0 -1
- package/dist/cjs/src/coinspot.js +1 -1
- package/dist/cjs/src/cryptocom.js +1 -1
- package/dist/cjs/src/cryptomus.js +1 -1
- package/dist/cjs/src/deepcoin.js +2 -2
- package/dist/cjs/src/delta.js +1 -1
- package/dist/cjs/src/deribit.js +2 -2
- package/dist/cjs/src/derive.js +1 -1
- package/dist/cjs/src/digifinex.js +1 -1
- package/dist/cjs/src/dydx.js +1 -1
- package/dist/cjs/src/exmo.js +1 -1
- package/dist/cjs/src/fmfwio.js +1 -1
- package/dist/cjs/src/foxbit.js +1 -1
- package/dist/cjs/src/gate.js +244 -173
- package/dist/cjs/src/gateio.js +1 -1
- package/dist/cjs/src/gemini.js +1 -1
- package/dist/cjs/src/grvt.js +3280 -0
- package/dist/cjs/src/hashkey.js +1 -1
- package/dist/cjs/src/hibachi.js +1 -1
- package/dist/cjs/src/hitbtc.js +1 -1
- package/dist/cjs/src/hollaex.js +1 -1
- package/dist/cjs/src/htx.js +1 -1
- package/dist/cjs/src/huobi.js +1 -1
- package/dist/cjs/src/hyperliquid.js +32 -13
- package/dist/cjs/src/independentreserve.js +1 -1
- package/dist/cjs/src/indodax.js +1 -1
- package/dist/cjs/src/kraken.js +4 -3
- package/dist/cjs/src/krakenfutures.js +4 -14
- package/dist/cjs/src/kucoin.js +4730 -970
- package/dist/cjs/src/kucoinfutures.js +15 -3435
- package/dist/cjs/src/latoken.js +1 -1
- package/dist/cjs/src/lbank.js +2 -2
- package/dist/cjs/src/lighter.js +28 -1
- package/dist/cjs/src/luno.js +1 -1
- package/dist/cjs/src/mercado.js +1 -1
- package/dist/cjs/src/mexc.js +1 -1
- package/dist/cjs/src/modetrade.js +1 -1
- package/dist/cjs/src/myokx.js +1 -1
- package/dist/cjs/src/ndax.js +1 -1
- package/dist/cjs/src/novadax.js +1 -1
- package/dist/cjs/src/okx.js +1 -1
- package/dist/cjs/src/okxus.js +1 -1
- package/dist/cjs/src/onetrading.js +1 -1
- package/dist/cjs/src/oxfun.js +1 -1
- package/dist/cjs/src/p2b.js +1 -1
- package/dist/cjs/src/paradex.js +1 -1
- package/dist/cjs/src/paymium.js +1 -1
- package/dist/cjs/src/poloniex.js +2 -2
- package/dist/cjs/src/pro/alpaca.js +1 -1
- package/dist/cjs/src/pro/apex.js +1 -1
- package/dist/cjs/src/pro/arkham.js +1 -1
- package/dist/cjs/src/pro/ascendex.js +1 -1
- package/dist/cjs/src/pro/aster.js +1 -1
- package/dist/cjs/src/pro/backpack.js +1 -1
- package/dist/cjs/src/pro/bequant.js +1 -1
- package/dist/cjs/src/pro/binance.js +35 -14
- package/dist/cjs/src/pro/binancecoinm.js +1 -1
- package/dist/cjs/src/pro/binanceus.js +1 -1
- package/dist/cjs/src/pro/binanceusdm.js +1 -1
- package/dist/cjs/src/pro/bingx.js +1 -1
- package/dist/cjs/src/pro/bitfinex.js +1 -1
- package/dist/cjs/src/pro/bitget.js +1 -1
- package/dist/cjs/src/pro/bithumb.js +1 -1
- package/dist/cjs/src/pro/bitmart.js +1 -1
- package/dist/cjs/src/pro/bitmex.js +1 -1
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +1 -1
- package/dist/cjs/src/pro/bitvavo.js +1 -1
- package/dist/cjs/src/pro/blockchaincom.js +1 -1
- package/dist/cjs/src/pro/blofin.js +1 -1
- package/dist/cjs/src/pro/bullish.js +1 -1
- package/dist/cjs/src/pro/bybit.js +1 -1
- package/dist/cjs/src/pro/bydfi.js +1 -1
- package/dist/cjs/src/pro/cex.js +1 -1
- package/dist/cjs/src/pro/coinbase.js +1 -1
- package/dist/cjs/src/pro/coinbaseadvanced.js +1 -1
- package/dist/cjs/src/pro/coinbaseexchange.js +30 -25
- package/dist/cjs/src/pro/coinbaseinternational.js +1 -1
- package/dist/cjs/src/pro/coincatch.js +1 -1
- package/dist/cjs/src/pro/coincheck.js +1 -1
- package/dist/cjs/src/pro/coinex.js +1 -1
- package/dist/cjs/src/pro/coinone.js +1 -1
- package/dist/cjs/src/pro/cryptocom.js +1 -1
- package/dist/cjs/src/pro/deepcoin.js +1 -1
- package/dist/cjs/src/pro/deribit.js +1 -1
- package/dist/cjs/src/pro/dydx.js +1 -1
- package/dist/cjs/src/pro/exmo.js +1 -1
- package/dist/cjs/src/pro/gate.js +38 -2
- package/dist/cjs/src/pro/gateio.js +1 -1
- package/dist/cjs/src/pro/gemini.js +1 -1
- package/dist/cjs/src/pro/grvt.js +923 -0
- package/dist/cjs/src/pro/hashkey.js +1 -1
- package/dist/cjs/src/pro/hitbtc.js +1 -1
- package/dist/cjs/src/pro/hollaex.js +1 -1
- package/dist/cjs/src/pro/htx.js +1 -1
- package/dist/cjs/src/pro/huobi.js +1 -1
- package/dist/cjs/src/pro/hyperliquid.js +1 -1
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +1 -1
- package/dist/cjs/src/pro/krakenfutures.js +1 -1
- package/dist/cjs/src/pro/kucoin.js +820 -179
- package/dist/cjs/src/pro/kucoinfutures.js +95 -1261
- package/dist/cjs/src/pro/lbank.js +0 -1
- package/dist/cjs/src/pro/lighter.js +1 -1
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/mexc.js +11 -6
- package/dist/cjs/src/pro/myokx.js +1 -1
- package/dist/cjs/src/pro/ndax.js +1 -1
- package/dist/cjs/src/pro/okx.js +85 -40
- package/dist/cjs/src/pro/okxus.js +1 -1
- package/dist/cjs/src/pro/onetrading.js +1 -1
- package/dist/cjs/src/pro/oxfun.js +1 -1
- package/dist/cjs/src/pro/p2b.js +1 -1
- package/dist/cjs/src/pro/paradex.js +1 -1
- package/dist/cjs/src/pro/phemex.js +1 -1
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/toobit.js +1 -1
- package/dist/cjs/src/pro/upbit.js +1 -1
- package/dist/cjs/src/pro/whitebit.js +1 -1
- package/dist/cjs/src/pro/xt.js +1 -1
- package/dist/cjs/src/protobuf/mexc/compiled.cjs.js +1 -0
- package/dist/cjs/src/static_dependencies/dydx-v4-client/cosmos/base/v1beta1/coin.js +0 -1
- package/dist/cjs/src/static_dependencies/dydx-v4-client/cosmos/crypto/multisig/v1beta1/multisig.js +0 -1
- package/dist/cjs/src/static_dependencies/dydx-v4-client/cosmos/crypto/secp256k1/keys.js +0 -1
- package/dist/cjs/src/static_dependencies/dydx-v4-client/cosmos/tx/signing/v1beta1/signing.js +0 -1
- package/dist/cjs/src/static_dependencies/dydx-v4-client/cosmos/tx/v1beta1/tx.js +0 -1
- package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/accountplus/tx.js +0 -1
- package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/clob_pair.js +0 -1
- package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order.js +0 -1
- package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order_removals.js +0 -1
- package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/tx.js +0 -1
- package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/transfer.js +0 -1
- package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/tx.js +0 -1
- package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/subaccount.js +0 -1
- package/dist/cjs/src/static_dependencies/dydx-v4-client/google/protobuf/any.js +0 -1
- package/dist/cjs/src/static_dependencies/dydx-v4-client/helpers.js +0 -6
- package/dist/cjs/src/static_dependencies/dydx-v4-client/onboarding.js +0 -1
- package/dist/cjs/src/static_dependencies/dydx-v4-client/registry.js +0 -1
- package/dist/cjs/src/static_dependencies/ethers/abi-coder.js +0 -6
- package/dist/cjs/src/static_dependencies/ethers/address/address.js +1 -1
- package/dist/cjs/src/static_dependencies/ethers/coders/abstract-coder.js +0 -6
- package/dist/cjs/src/static_dependencies/ethers/coders/address.js +0 -1
- package/dist/cjs/src/static_dependencies/ethers/coders/anonymous.js +0 -1
- package/dist/cjs/src/static_dependencies/ethers/coders/array.js +0 -1
- package/dist/cjs/src/static_dependencies/ethers/coders/boolean.js +0 -1
- package/dist/cjs/src/static_dependencies/ethers/coders/bytes.js +0 -1
- package/dist/cjs/src/static_dependencies/ethers/coders/fixed-bytes.js +0 -1
- package/dist/cjs/src/static_dependencies/ethers/coders/null.js +0 -1
- package/dist/cjs/src/static_dependencies/ethers/coders/number.js +0 -1
- package/dist/cjs/src/static_dependencies/ethers/coders/string.js +0 -1
- package/dist/cjs/src/static_dependencies/ethers/coders/tuple.js +0 -1
- package/dist/cjs/src/static_dependencies/ethers/fragments.js +0 -6
- package/dist/cjs/src/static_dependencies/ethers/hash/typed-data.js +0 -6
- package/dist/cjs/src/static_dependencies/ethers/index.js +10 -1
- package/dist/cjs/src/static_dependencies/ethers/interface.js +0 -6
- package/dist/cjs/src/static_dependencies/ethers/typed.js +0 -6
- package/dist/cjs/src/static_dependencies/ethers/utils/base58.js +13 -1
- package/dist/cjs/src/static_dependencies/ethers/utils/data.js +6 -1
- package/dist/cjs/src/static_dependencies/ethers/utils/errors.js +9 -1
- package/dist/cjs/src/static_dependencies/ethers/utils/events.js +0 -6
- package/dist/cjs/src/static_dependencies/ethers/utils/fixednumber.js +0 -6
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +7 -1
- package/dist/cjs/src/static_dependencies/ethers/utils/maths.js +5 -1
- package/dist/cjs/src/static_dependencies/ethers/utils/properties.js +0 -6
- package/dist/cjs/src/static_dependencies/ethers/utils/utf8.js +8 -1
- package/dist/cjs/src/static_dependencies/fflake/browser.js +1 -1
- package/dist/cjs/src/static_dependencies/jsencrypt/JSEncrypt.js +0 -1
- package/dist/cjs/src/static_dependencies/jsencrypt/JSEncryptRSAKey.js +0 -1
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/asn1.js +1 -1
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/base64.js +0 -6
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/hex.js +0 -6
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/int10.js +0 -6
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/base64.js +0 -1
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.js +1 -1
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/prng4.js +0 -6
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/rng.js +1 -1
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/rsa.js +1 -1
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/util.js +0 -6
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsrsasign/asn1-1.0.js +1 -1
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsrsasign/yahoo.js +0 -6
- package/dist/cjs/src/static_dependencies/messagepack/msgpack.js +0 -6
- package/dist/cjs/src/static_dependencies/noble-curves/_shortw_utils.js +1 -1
- package/dist/cjs/src/static_dependencies/noble-curves/abstract/curve.js +1 -1
- package/dist/cjs/src/static_dependencies/noble-curves/abstract/edwards.js +1 -1
- package/dist/cjs/src/static_dependencies/noble-curves/abstract/hash-to-curve.js +0 -1
- package/dist/cjs/src/static_dependencies/noble-curves/abstract/modular.js +1 -1
- package/dist/cjs/src/static_dependencies/noble-curves/abstract/montgomery.js +1 -1
- package/dist/cjs/src/static_dependencies/noble-curves/abstract/poseidon.js +1 -1
- package/dist/cjs/src/static_dependencies/noble-curves/abstract/utils.js +0 -6
- package/dist/cjs/src/static_dependencies/noble-curves/abstract/weierstrass.js +1 -1
- package/dist/cjs/src/static_dependencies/noble-curves/ed25519.js +1 -1
- package/dist/cjs/src/static_dependencies/noble-curves/p256.js +1 -1
- package/dist/cjs/src/static_dependencies/noble-curves/secp256k1.js +1 -1
- package/dist/cjs/src/static_dependencies/noble-hashes/_assert.js +0 -6
- package/dist/cjs/src/static_dependencies/noble-hashes/_sha2.js +0 -1
- package/dist/cjs/src/static_dependencies/noble-hashes/_u64.js +0 -6
- package/dist/cjs/src/static_dependencies/noble-hashes/crypto.js +0 -6
- package/dist/cjs/src/static_dependencies/noble-hashes/hmac.js +0 -1
- package/dist/cjs/src/static_dependencies/noble-hashes/md5.js +0 -1
- package/dist/cjs/src/static_dependencies/noble-hashes/pbkdf2.js +0 -1
- package/dist/cjs/src/static_dependencies/noble-hashes/ripemd160.js +0 -1
- package/dist/cjs/src/static_dependencies/noble-hashes/sha1.js +0 -1
- package/dist/cjs/src/static_dependencies/noble-hashes/sha256.js +0 -1
- package/dist/cjs/src/static_dependencies/noble-hashes/sha3.js +0 -1
- package/dist/cjs/src/static_dependencies/noble-hashes/sha512.js +0 -1
- package/dist/cjs/src/static_dependencies/noble-hashes/utils.js +1 -1
- package/dist/cjs/src/static_dependencies/node-fetch/body.js +5 -1
- package/dist/cjs/src/static_dependencies/node-fetch/errors/abort-error.js +0 -1
- package/dist/cjs/src/static_dependencies/node-fetch/errors/base.js +0 -6
- package/dist/cjs/src/static_dependencies/node-fetch/errors/fetch-error.js +0 -1
- package/dist/cjs/src/static_dependencies/node-fetch/headers.js +5 -1
- package/dist/cjs/src/static_dependencies/node-fetch/index.js +7 -1
- package/dist/cjs/src/static_dependencies/node-fetch/request.js +7 -1
- package/dist/cjs/src/static_dependencies/node-fetch/response.js +5 -1
- package/dist/cjs/src/static_dependencies/node-fetch/utils/get-search.js +0 -6
- package/dist/cjs/src/static_dependencies/node-fetch/utils/is-redirect.js +0 -6
- package/dist/cjs/src/static_dependencies/node-fetch/utils/is.js +0 -6
- package/dist/cjs/src/static_dependencies/node-fetch/utils/referrer.js +0 -1
- package/dist/cjs/src/static_dependencies/proxies/agent-base/index.js +0 -1
- package/dist/cjs/src/static_dependencies/proxies/http-proxy-agent/index.js +0 -1
- package/dist/cjs/src/static_dependencies/proxies/https-proxy-agent/index.js +0 -1
- package/dist/cjs/src/static_dependencies/proxies/https-proxy-agent/parse-proxy-response.js +0 -6
- package/dist/cjs/src/static_dependencies/qs/formats.js +0 -6
- package/dist/cjs/src/static_dependencies/qs/index.js +0 -1
- package/dist/cjs/src/static_dependencies/qs/parse.js +0 -1
- package/dist/cjs/src/static_dependencies/qs/stringify.js +0 -1
- package/dist/cjs/src/static_dependencies/qs/utils.js +0 -6
- package/dist/cjs/src/static_dependencies/scure-base/index.js +0 -6
- package/dist/cjs/src/static_dependencies/scure-bip32/index.js +19 -1
- package/dist/cjs/src/static_dependencies/scure-bip39/index.js +1 -1
- package/dist/cjs/src/static_dependencies/scure-bip39/wordlists/english.js +0 -6
- package/dist/cjs/src/static_dependencies/scure-starknet/index.js +1 -1
- package/dist/cjs/src/static_dependencies/starknet/constants.js +1 -1
- package/dist/cjs/src/static_dependencies/starknet/types/calldata.js +0 -6
- package/dist/cjs/src/static_dependencies/starknet/types/lib/contract/abi.js +0 -6
- package/dist/cjs/src/static_dependencies/starknet/types/lib/contract/index.js +0 -6
- package/dist/cjs/src/static_dependencies/starknet/types/lib/index.js +0 -6
- package/dist/cjs/src/static_dependencies/starknet/types/typedData.js +0 -6
- package/dist/cjs/src/static_dependencies/starknet/utils/assert.js +0 -6
- package/dist/cjs/src/static_dependencies/starknet/utils/cairoDataTypes/felt.js +1 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/cairoDataTypes/uint256.js +1 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/cairoDataTypes/uint512.js +1 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/byteArray.js +0 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/cairo.js +0 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/enum/CairoCustomEnum.js +0 -6
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/enum/CairoOption.js +0 -6
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/enum/CairoResult.js +0 -6
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/formatter.js +0 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/index.js +1 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/parser/index.js +0 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/parser/parser-0-1.1.0.js +0 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/parser/parser-2.0.0.js +0 -6
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/propertyOrder.js +0 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/requestParser.js +0 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/responseParser.js +0 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/tuple.js +1 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/validate.js +4 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/encode.js +0 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/hash/classHash.js +3 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/merkle.js +0 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/num.js +0 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/selector.js +0 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/shortString.js +0 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/typedData.js +1 -1
- package/dist/cjs/src/static_dependencies/watchable/src/unpromise.js +0 -6
- package/dist/cjs/src/static_dependencies/zklink/zklink-sdk-web.js +0 -6
- package/dist/cjs/src/tokocrypto.js +1 -1
- package/dist/cjs/src/toobit.js +1 -1
- package/dist/cjs/src/upbit.js +1 -1
- package/dist/cjs/src/wavesexchange.js +1 -1
- package/dist/cjs/src/whitebit.js +63 -2
- package/dist/cjs/src/woo.js +1 -1
- package/dist/cjs/src/woofipro.js +1 -1
- package/dist/cjs/src/xt.js +1 -1
- package/dist/cjs/src/yobit.js +1 -1
- package/dist/cjs/src/zaif.js +1 -1
- package/dist/cjs/src/zebpay.js +1 -1
- package/dist/cjs/src/zonda.js +1 -1
- package/js/ccxt.d.ts +8 -14
- package/js/ccxt.js +6 -16
- package/js/src/abstract/aftermath.js +0 -6
- package/js/src/abstract/alpaca.js +0 -6
- package/js/src/abstract/apex.js +0 -6
- package/js/src/abstract/arkham.js +0 -6
- package/js/src/abstract/ascendex.js +0 -6
- package/js/src/abstract/aster.js +0 -6
- package/js/src/abstract/backpack.js +0 -6
- package/js/src/abstract/bequant.js +0 -6
- package/js/src/abstract/bigone.js +0 -6
- package/js/src/abstract/binance.js +0 -6
- package/js/src/abstract/binancecoinm.js +0 -6
- package/js/src/abstract/binanceus.js +0 -6
- package/js/src/abstract/binanceusdm.js +0 -6
- package/js/src/abstract/bingx.js +0 -6
- package/js/src/abstract/bit2c.js +0 -6
- package/js/src/abstract/bitbank.js +0 -6
- package/js/src/abstract/bitbns.js +0 -6
- package/js/src/abstract/bitfinex.js +0 -6
- package/js/src/abstract/bitflyer.js +0 -6
- package/js/src/abstract/bitget.js +0 -6
- package/js/src/abstract/bithumb.js +0 -6
- package/js/src/abstract/bitmart.js +0 -6
- package/js/src/abstract/bitmex.js +0 -6
- package/js/src/abstract/bitopro.js +0 -6
- package/js/src/abstract/bitrue.js +0 -6
- package/js/src/abstract/bitso.js +0 -6
- package/js/src/abstract/bitstamp.js +0 -6
- package/js/src/abstract/bitteam.js +0 -6
- package/js/src/abstract/bittrade.js +0 -6
- package/js/src/abstract/bitvavo.js +0 -6
- package/js/src/abstract/blockchaincom.js +0 -6
- package/js/src/abstract/blofin.js +0 -6
- package/js/src/abstract/btcbox.js +0 -6
- package/js/src/abstract/btcmarkets.js +0 -6
- package/js/src/abstract/btcturk.js +0 -6
- package/js/src/abstract/bullish.js +0 -6
- package/js/src/abstract/bybit.js +0 -6
- package/js/src/abstract/bydfi.js +0 -6
- package/js/src/abstract/cex.js +0 -6
- package/js/src/abstract/coinbase.js +0 -6
- package/js/src/abstract/coinbaseadvanced.js +0 -6
- package/js/src/abstract/coinbaseexchange.js +0 -6
- package/js/src/abstract/coinbaseinternational.js +0 -6
- package/js/src/abstract/coincatch.js +0 -6
- package/js/src/abstract/coincheck.js +0 -6
- package/js/src/abstract/coinex.js +0 -6
- package/js/src/abstract/coinmate.js +0 -6
- package/js/src/abstract/coinmetro.js +0 -6
- package/js/src/abstract/coinone.js +0 -6
- package/js/src/abstract/coinsph.js +0 -6
- package/js/src/abstract/coinspot.js +0 -6
- package/js/src/abstract/cryptocom.js +0 -6
- package/js/src/abstract/cryptomus.js +0 -6
- package/js/src/abstract/deepcoin.js +0 -6
- package/js/src/abstract/delta.js +0 -6
- package/js/src/abstract/deribit.js +0 -6
- package/js/src/abstract/derive.js +0 -6
- package/js/src/abstract/digifinex.js +0 -6
- package/js/src/abstract/dydx.js +0 -6
- package/js/src/abstract/exmo.js +0 -6
- package/js/src/abstract/fmfwio.js +0 -6
- package/js/src/abstract/foxbit.js +0 -6
- package/js/src/abstract/gate.js +0 -6
- package/js/src/abstract/gateio.js +0 -6
- package/js/src/abstract/gemini.js +0 -6
- package/js/src/abstract/grvt.d.ts +57 -0
- package/js/src/abstract/grvt.js +5 -0
- package/js/src/abstract/hashkey.js +0 -6
- package/js/src/abstract/hibachi.js +0 -6
- package/js/src/abstract/hitbtc.js +0 -6
- package/js/src/abstract/hollaex.js +0 -6
- package/js/src/abstract/htx.js +0 -6
- package/js/src/abstract/huobi.js +0 -6
- package/js/src/abstract/hyperliquid.js +0 -6
- package/js/src/abstract/independentreserve.js +0 -6
- package/js/src/abstract/indodax.js +0 -6
- package/js/src/abstract/kraken.js +0 -6
- package/js/src/abstract/krakenfutures.js +0 -6
- package/js/src/abstract/kucoin.d.ts +46 -3
- package/js/src/abstract/kucoin.js +0 -6
- package/js/src/abstract/kucoinfutures.d.ts +27 -12
- package/js/src/abstract/kucoinfutures.js +0 -6
- package/js/src/abstract/latoken.js +0 -6
- package/js/src/abstract/lbank.js +0 -6
- package/js/src/abstract/lighter.js +0 -6
- package/js/src/abstract/luno.js +0 -6
- package/js/src/abstract/mercado.js +0 -6
- package/js/src/abstract/mexc.js +0 -6
- package/js/src/abstract/modetrade.js +0 -6
- package/js/src/abstract/myokx.js +0 -6
- package/js/src/abstract/ndax.js +0 -6
- package/js/src/abstract/novadax.js +0 -6
- package/js/src/abstract/okx.js +0 -6
- package/js/src/abstract/okxus.js +0 -6
- package/js/src/abstract/onetrading.js +0 -6
- package/js/src/abstract/oxfun.js +0 -6
- package/js/src/abstract/p2b.js +0 -6
- package/js/src/abstract/paradex.js +0 -6
- package/js/src/abstract/paymium.js +0 -6
- package/js/src/abstract/phemex.js +0 -6
- package/js/src/abstract/poloniex.js +0 -6
- package/js/src/abstract/tokocrypto.js +0 -6
- package/js/src/abstract/toobit.js +0 -6
- package/js/src/abstract/upbit.js +0 -6
- package/js/src/abstract/wavesexchange.js +0 -6
- package/js/src/abstract/whitebit.d.ts +1 -0
- package/js/src/abstract/whitebit.js +0 -6
- package/js/src/abstract/woo.js +0 -6
- package/js/src/abstract/woofipro.js +0 -6
- package/js/src/abstract/xt.js +0 -6
- package/js/src/abstract/yobit.js +0 -6
- package/js/src/abstract/zaif.js +0 -6
- package/js/src/abstract/zebpay.js +0 -6
- package/js/src/abstract/zonda.js +0 -6
- package/js/src/aftermath.js +0 -6
- package/js/src/alpaca.js +0 -6
- package/js/src/apex.js +0 -6
- package/js/src/arkham.js +0 -6
- package/js/src/ascendex.js +0 -6
- package/js/src/aster.js +0 -6
- package/js/src/backpack.js +0 -6
- package/js/src/base/Exchange.d.ts +12 -0
- package/js/src/base/Exchange.js +37 -7
- package/js/src/base/Precise.js +0 -6
- package/js/src/base/errorHierarchy.js +0 -6
- package/js/src/base/errors.js +0 -6
- package/js/src/base/functions/crypto.js +0 -6
- package/js/src/base/functions/encode.js +2 -8
- package/js/src/base/functions/generic.js +9 -9
- package/js/src/base/functions/io.js +0 -6
- package/js/src/base/functions/misc.js +0 -6
- package/js/src/base/functions/number.js +0 -6
- package/js/src/base/functions/platform.js +0 -6
- package/js/src/base/functions/rsa.js +0 -6
- package/js/src/base/functions/string.js +0 -6
- package/js/src/base/functions/throttle.js +0 -6
- package/js/src/base/functions/time.js +0 -6
- package/js/src/base/functions/totp.js +0 -6
- package/js/src/base/functions/type.js +0 -6
- package/js/src/base/functions.js +0 -6
- package/js/src/base/types.js +0 -6
- package/js/src/base/ws/Cache.js +0 -6
- package/js/src/base/ws/Client.js +0 -6
- package/js/src/base/ws/Future.js +0 -6
- package/js/src/base/ws/OrderBook.js +0 -6
- package/js/src/base/ws/OrderBookSide.js +0 -6
- package/js/src/base/ws/WsClient.js +0 -6
- package/js/src/base/ws/functions.js +0 -6
- package/js/src/bequant.js +0 -6
- package/js/src/bigone.js +0 -6
- package/js/src/binance.js +52 -8
- package/js/src/binancecoinm.js +0 -6
- package/js/src/binanceus.js +0 -6
- package/js/src/binanceusdm.js +0 -6
- package/js/src/bingx.js +0 -6
- package/js/src/bit2c.js +0 -6
- package/js/src/bitbank.js +0 -6
- package/js/src/bitbns.js +0 -6
- package/js/src/bitfinex.js +0 -6
- package/js/src/bitflyer.js +0 -6
- package/js/src/bitget.js +0 -6
- package/js/src/bithumb.js +0 -6
- package/js/src/bitmart.js +0 -6
- package/js/src/bitmex.js +0 -6
- package/js/src/bitopro.js +0 -6
- package/js/src/bitrue.js +1 -7
- package/js/src/bitso.js +0 -6
- package/js/src/bitstamp.js +0 -6
- package/js/src/bitteam.js +1 -7
- package/js/src/bittrade.js +0 -6
- package/js/src/bitvavo.js +1 -6
- package/js/src/blockchaincom.js +0 -6
- package/js/src/blofin.js +0 -6
- package/js/src/btcbox.js +1 -7
- package/js/src/btcmarkets.js +0 -6
- package/js/src/btcturk.js +0 -6
- package/js/src/bullish.js +0 -6
- package/js/src/bybit.js +0 -6
- package/js/src/bydfi.js +0 -6
- package/js/src/cex.js +2 -7
- package/js/src/coinbase.js +0 -6
- package/js/src/coinbaseadvanced.js +0 -6
- package/js/src/coinbaseexchange.js +0 -6
- package/js/src/coinbaseinternational.js +0 -6
- package/js/src/coincatch.js +3 -21
- package/js/src/coincheck.js +0 -6
- package/js/src/coinex.js +0 -6
- package/js/src/coinmate.js +0 -6
- package/js/src/coinmetro.js +0 -6
- package/js/src/coinone.js +0 -6
- package/js/src/coinsph.js +0 -6
- package/js/src/coinspot.js +0 -6
- package/js/src/cryptocom.js +0 -6
- package/js/src/cryptomus.js +0 -6
- package/js/src/deepcoin.js +1 -7
- package/js/src/delta.js +0 -6
- package/js/src/deribit.js +1 -7
- package/js/src/derive.js +0 -6
- package/js/src/digifinex.js +0 -6
- package/js/src/dydx.js +0 -6
- package/js/src/exmo.js +0 -6
- package/js/src/fmfwio.js +0 -6
- package/js/src/foxbit.js +0 -6
- package/js/src/gate.d.ts +125 -119
- package/js/src/gate.js +243 -178
- package/js/src/gateio.js +0 -6
- package/js/src/gemini.js +0 -6
- package/js/src/grvt.d.ts +446 -0
- package/js/src/grvt.js +3273 -0
- package/js/src/hashkey.js +0 -6
- package/js/src/hibachi.js +0 -6
- package/js/src/hitbtc.js +1 -6
- package/js/src/hollaex.js +0 -6
- package/js/src/htx.js +0 -6
- package/js/src/huobi.js +0 -6
- package/js/src/hyperliquid.d.ts +3 -1
- package/js/src/hyperliquid.js +31 -18
- package/js/src/independentreserve.js +0 -6
- package/js/src/indodax.js +0 -6
- package/js/src/kraken.js +3 -8
- package/js/src/krakenfutures.js +3 -19
- package/js/src/kucoin.d.ts +696 -100
- package/js/src/kucoin.js +4731 -977
- package/js/src/kucoinfutures.d.ts +4 -522
- package/js/src/kucoinfutures.js +14 -3440
- package/js/src/latoken.js +0 -6
- package/js/src/lbank.js +1 -7
- package/js/src/lighter.d.ts +8 -0
- package/js/src/lighter.js +27 -6
- package/js/src/luno.js +0 -6
- package/js/src/mercado.js +0 -6
- package/js/src/mexc.js +0 -6
- package/js/src/modetrade.js +0 -6
- package/js/src/myokx.js +0 -6
- package/js/src/ndax.js +0 -6
- package/js/src/novadax.js +0 -6
- package/js/src/okx.js +0 -6
- package/js/src/okxus.js +0 -6
- package/js/src/onetrading.js +0 -6
- package/js/src/oxfun.js +0 -6
- package/js/src/p2b.js +0 -6
- package/js/src/paradex.js +0 -6
- package/js/src/paymium.js +0 -6
- package/js/src/phemex.js +0 -6
- package/js/src/poloniex.js +1 -7
- package/js/src/pro/aftermath.js +0 -6
- package/js/src/pro/alpaca.js +0 -6
- package/js/src/pro/apex.js +0 -6
- package/js/src/pro/arkham.js +0 -6
- package/js/src/pro/ascendex.js +0 -6
- package/js/src/pro/aster.js +0 -6
- package/js/src/pro/backpack.js +0 -6
- package/js/src/pro/bequant.js +0 -6
- package/js/src/pro/binance.d.ts +3 -0
- package/js/src/pro/binance.js +35 -20
- package/js/src/pro/binancecoinm.js +0 -6
- package/js/src/pro/binanceus.js +0 -6
- package/js/src/pro/binanceusdm.js +0 -6
- package/js/src/pro/bingx.js +0 -6
- package/js/src/pro/bitfinex.js +0 -6
- package/js/src/pro/bitget.js +0 -6
- package/js/src/pro/bithumb.js +0 -6
- package/js/src/pro/bitmart.js +0 -6
- package/js/src/pro/bitmex.js +0 -6
- package/js/src/pro/bitopro.js +0 -6
- package/js/src/pro/bitrue.js +0 -6
- package/js/src/pro/bitstamp.js +0 -6
- package/js/src/pro/bittrade.js +0 -6
- package/js/src/pro/bitvavo.js +0 -6
- package/js/src/pro/blockchaincom.js +0 -6
- package/js/src/pro/blofin.js +0 -6
- package/js/src/pro/bullish.js +0 -6
- package/js/src/pro/bybit.js +0 -6
- package/js/src/pro/bydfi.js +0 -6
- package/js/src/pro/cex.js +0 -6
- package/js/src/pro/coinbase.js +0 -6
- package/js/src/pro/coinbaseadvanced.js +0 -6
- package/js/src/pro/coinbaseexchange.js +29 -30
- package/js/src/pro/coinbaseinternational.js +0 -6
- package/js/src/pro/coincatch.js +0 -6
- package/js/src/pro/coincheck.js +0 -6
- package/js/src/pro/coinex.js +0 -6
- package/js/src/pro/coinone.js +0 -6
- package/js/src/pro/cryptocom.js +0 -6
- package/js/src/pro/deepcoin.js +0 -6
- package/js/src/pro/deribit.js +0 -6
- package/js/src/pro/derive.js +0 -6
- package/js/src/pro/dydx.js +0 -6
- package/js/src/pro/exmo.js +0 -6
- package/js/src/pro/gate.d.ts +30 -1
- package/js/src/pro/gate.js +37 -7
- package/js/src/pro/gateio.js +0 -6
- package/js/src/pro/gemini.js +0 -6
- package/js/src/pro/grvt.d.ts +155 -0
- package/js/src/pro/grvt.js +916 -0
- package/js/src/pro/hashkey.js +0 -6
- package/js/src/pro/hitbtc.js +0 -6
- package/js/src/pro/hollaex.js +0 -6
- package/js/src/pro/htx.js +0 -6
- package/js/src/pro/huobi.js +0 -6
- package/js/src/pro/hyperliquid.js +0 -6
- package/js/src/pro/independentreserve.js +0 -6
- package/js/src/pro/kraken.js +0 -6
- package/js/src/pro/krakenfutures.js +0 -6
- package/js/src/pro/kucoin.d.ts +70 -30
- package/js/src/pro/kucoin.js +821 -186
- package/js/src/pro/kucoinfutures.d.ts +17 -195
- package/js/src/pro/kucoinfutures.js +96 -1268
- package/js/src/pro/lbank.js +0 -6
- package/js/src/pro/lighter.js +0 -6
- package/js/src/pro/luno.js +0 -6
- package/js/src/pro/mexc.js +10 -11
- package/js/src/pro/modetrade.js +0 -6
- package/js/src/pro/myokx.js +0 -6
- package/js/src/pro/ndax.js +0 -6
- package/js/src/pro/okx.d.ts +1 -0
- package/js/src/pro/okx.js +84 -45
- package/js/src/pro/okxus.js +0 -6
- package/js/src/pro/onetrading.js +0 -6
- package/js/src/pro/oxfun.js +0 -6
- package/js/src/pro/p2b.js +0 -6
- package/js/src/pro/paradex.js +0 -6
- package/js/src/pro/phemex.js +0 -6
- package/js/src/pro/poloniex.js +0 -6
- package/js/src/pro/toobit.js +0 -6
- package/js/src/pro/upbit.js +0 -6
- package/js/src/pro/whitebit.js +0 -6
- package/js/src/pro/woo.js +0 -6
- package/js/src/pro/woofipro.js +0 -6
- package/js/src/pro/xt.js +0 -6
- package/js/src/protobuf/mexc/compiled.cjs +0 -6
- package/js/src/static_dependencies/dydx-v4-client/cosmos/base/v1beta1/coin.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/cosmos/crypto/multisig/keys.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/cosmos/crypto/multisig/v1beta1/multisig.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/cosmos/crypto/secp256k1/keys.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/cosmos/tx/signing/v1beta1/signing.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/cosmos/tx/v1beta1/tx.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/accountplus/tx.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/block_rate_limit_config.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/clob_pair.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/equity_tier_limit_config.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/finalize_block.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/liquidations.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/liquidations_config.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/matches.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order_removals.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/tx.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/transfer.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/tx.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/asset_position.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/perpetual_position.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/subaccount.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/google/protobuf/any.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/helpers.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/long/index.cjs +0 -6
- package/js/src/static_dependencies/dydx-v4-client/onboarding.js +0 -6
- package/js/src/static_dependencies/dydx-v4-client/registry.js +0 -6
- package/js/src/static_dependencies/ethers/abi-coder.js +0 -6
- package/js/src/static_dependencies/ethers/address/address.js +0 -6
- package/js/src/static_dependencies/ethers/address/checks.js +0 -6
- package/js/src/static_dependencies/ethers/address/contract-address.js +0 -6
- package/js/src/static_dependencies/ethers/address/index.js +0 -6
- package/js/src/static_dependencies/ethers/bytes32.js +0 -6
- package/js/src/static_dependencies/ethers/coders/abstract-coder.js +0 -6
- package/js/src/static_dependencies/ethers/coders/address.js +0 -6
- package/js/src/static_dependencies/ethers/coders/anonymous.js +0 -6
- package/js/src/static_dependencies/ethers/coders/array.js +0 -6
- package/js/src/static_dependencies/ethers/coders/boolean.js +0 -6
- package/js/src/static_dependencies/ethers/coders/bytes.js +0 -6
- package/js/src/static_dependencies/ethers/coders/fixed-bytes.js +0 -6
- package/js/src/static_dependencies/ethers/coders/null.js +0 -6
- package/js/src/static_dependencies/ethers/coders/number.js +0 -6
- package/js/src/static_dependencies/ethers/coders/string.js +0 -6
- package/js/src/static_dependencies/ethers/coders/tuple.js +0 -6
- package/js/src/static_dependencies/ethers/fragments.js +0 -6
- package/js/src/static_dependencies/ethers/hash/index.js +0 -6
- package/js/src/static_dependencies/ethers/hash/solidity.js +0 -6
- package/js/src/static_dependencies/ethers/hash/typed-data.js +0 -6
- package/js/src/static_dependencies/ethers/index.js +0 -6
- package/js/src/static_dependencies/ethers/interface.js +0 -6
- package/js/src/static_dependencies/ethers/typed.js +0 -6
- package/js/src/static_dependencies/ethers/utils/base58.js +0 -6
- package/js/src/static_dependencies/ethers/utils/base64-browser.js +0 -6
- package/js/src/static_dependencies/ethers/utils/base64.js +0 -6
- package/js/src/static_dependencies/ethers/utils/data.js +0 -6
- package/js/src/static_dependencies/ethers/utils/errors.js +0 -6
- package/js/src/static_dependencies/ethers/utils/events.js +0 -6
- package/js/src/static_dependencies/ethers/utils/fixednumber.js +0 -6
- package/js/src/static_dependencies/ethers/utils/index.js +0 -6
- package/js/src/static_dependencies/ethers/utils/maths.js +0 -6
- package/js/src/static_dependencies/ethers/utils/properties.js +0 -6
- package/js/src/static_dependencies/ethers/utils/rlp-decode.js +0 -6
- package/js/src/static_dependencies/ethers/utils/rlp-encode.js +0 -6
- package/js/src/static_dependencies/ethers/utils/rlp.js +0 -6
- package/js/src/static_dependencies/ethers/utils/units.js +0 -6
- package/js/src/static_dependencies/ethers/utils/utf8.js +0 -6
- package/js/src/static_dependencies/ethers/utils/uuid.js +0 -6
- package/js/src/static_dependencies/fflake/browser.js +0 -6
- package/js/src/static_dependencies/jsencrypt/JSEncrypt.js +0 -6
- package/js/src/static_dependencies/jsencrypt/JSEncryptRSAKey.js +0 -6
- package/js/src/static_dependencies/jsencrypt/index.js +0 -6
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/asn1.js +0 -6
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/base64.js +0 -6
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/hex.js +0 -6
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/int10.js +0 -6
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/oids.js +0 -6
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/base64.js +0 -6
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.js +0 -6
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/prng4.js +0 -6
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/rng.js +0 -6
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/rsa.js +0 -6
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/util.js +0 -6
- package/js/src/static_dependencies/jsencrypt/lib/jsrsasign/asn1-1.0.js +0 -6
- package/js/src/static_dependencies/jsencrypt/lib/jsrsasign/yahoo.js +0 -6
- package/js/src/static_dependencies/messagepack/msgpack.js +0 -6
- package/js/src/static_dependencies/noble-curves/_shortw_utils.js +0 -6
- package/js/src/static_dependencies/noble-curves/abstract/curve.js +0 -6
- package/js/src/static_dependencies/noble-curves/abstract/edwards.js +0 -6
- package/js/src/static_dependencies/noble-curves/abstract/hash-to-curve.js +0 -6
- package/js/src/static_dependencies/noble-curves/abstract/modular.js +0 -6
- package/js/src/static_dependencies/noble-curves/abstract/montgomery.js +0 -6
- package/js/src/static_dependencies/noble-curves/abstract/poseidon.js +0 -6
- package/js/src/static_dependencies/noble-curves/abstract/utils.js +0 -6
- package/js/src/static_dependencies/noble-curves/abstract/weierstrass.js +0 -6
- package/js/src/static_dependencies/noble-curves/bn.js +0 -6
- package/js/src/static_dependencies/noble-curves/ed25519.js +0 -6
- package/js/src/static_dependencies/noble-curves/ed448.js +0 -6
- package/js/src/static_dependencies/noble-curves/index.js +0 -6
- package/js/src/static_dependencies/noble-curves/jubjub.js +0 -6
- package/js/src/static_dependencies/noble-curves/p256.js +0 -6
- package/js/src/static_dependencies/noble-curves/p384.js +0 -6
- package/js/src/static_dependencies/noble-curves/p521.js +0 -6
- package/js/src/static_dependencies/noble-curves/pasta.js +0 -6
- package/js/src/static_dependencies/noble-curves/secp256k1.js +0 -6
- package/js/src/static_dependencies/noble-hashes/_assert.js +0 -6
- package/js/src/static_dependencies/noble-hashes/_blake2.js +0 -6
- package/js/src/static_dependencies/noble-hashes/_sha2.js +0 -6
- package/js/src/static_dependencies/noble-hashes/_u64.js +0 -6
- package/js/src/static_dependencies/noble-hashes/argon2.js +0 -6
- package/js/src/static_dependencies/noble-hashes/blake2b.js +0 -6
- package/js/src/static_dependencies/noble-hashes/blake2s.js +0 -6
- package/js/src/static_dependencies/noble-hashes/blake3.js +0 -6
- package/js/src/static_dependencies/noble-hashes/crypto.js +0 -6
- package/js/src/static_dependencies/noble-hashes/cryptoNode.js +0 -6
- package/js/src/static_dependencies/noble-hashes/eskdf.js +0 -6
- package/js/src/static_dependencies/noble-hashes/hkdf.js +0 -6
- package/js/src/static_dependencies/noble-hashes/hmac.js +0 -6
- package/js/src/static_dependencies/noble-hashes/index.js +0 -6
- package/js/src/static_dependencies/noble-hashes/md5.js +0 -6
- package/js/src/static_dependencies/noble-hashes/pbkdf2.js +0 -6
- package/js/src/static_dependencies/noble-hashes/ripemd160.js +0 -6
- package/js/src/static_dependencies/noble-hashes/scrypt.js +0 -6
- package/js/src/static_dependencies/noble-hashes/sha1.js +0 -6
- package/js/src/static_dependencies/noble-hashes/sha256.js +0 -6
- package/js/src/static_dependencies/noble-hashes/sha3-addons.js +0 -6
- package/js/src/static_dependencies/noble-hashes/sha3.js +0 -6
- package/js/src/static_dependencies/noble-hashes/sha512.js +0 -6
- package/js/src/static_dependencies/noble-hashes/utils.js +0 -6
- package/js/src/static_dependencies/node-fetch/body.js +0 -6
- package/js/src/static_dependencies/node-fetch/errors/abort-error.js +0 -6
- package/js/src/static_dependencies/node-fetch/errors/base.js +0 -6
- package/js/src/static_dependencies/node-fetch/errors/fetch-error.js +0 -6
- package/js/src/static_dependencies/node-fetch/headers.js +0 -6
- package/js/src/static_dependencies/node-fetch/index.js +0 -6
- package/js/src/static_dependencies/node-fetch/request.js +0 -6
- package/js/src/static_dependencies/node-fetch/response.js +0 -6
- package/js/src/static_dependencies/node-fetch/utils/get-search.js +0 -6
- package/js/src/static_dependencies/node-fetch/utils/is-redirect.js +0 -6
- package/js/src/static_dependencies/node-fetch/utils/is.js +0 -6
- package/js/src/static_dependencies/node-fetch/utils/referrer.js +0 -6
- package/js/src/static_dependencies/proxies/agent-base/helpers.js +0 -6
- package/js/src/static_dependencies/proxies/agent-base/index.js +0 -6
- package/js/src/static_dependencies/proxies/http-proxy-agent/index.js +0 -6
- package/js/src/static_dependencies/proxies/https-proxy-agent/index.js +0 -6
- package/js/src/static_dependencies/proxies/https-proxy-agent/parse-proxy-response.js +0 -6
- package/js/src/static_dependencies/qs/formats.js +0 -6
- package/js/src/static_dependencies/qs/index.js +0 -6
- package/js/src/static_dependencies/qs/parse.js +0 -6
- package/js/src/static_dependencies/qs/stringify.js +0 -6
- package/js/src/static_dependencies/qs/utils.js +0 -6
- package/js/src/static_dependencies/scure-base/index.js +0 -6
- package/js/src/static_dependencies/scure-bip32/index.js +0 -6
- package/js/src/static_dependencies/scure-bip39/index.js +0 -6
- package/js/src/static_dependencies/scure-bip39/wordlists/english.js +0 -6
- package/js/src/static_dependencies/scure-starknet/index.js +0 -6
- package/js/src/static_dependencies/starknet/constants.js +0 -6
- package/js/src/static_dependencies/starknet/index.js +0 -6
- package/js/src/static_dependencies/starknet/types/cairoEnum.js +0 -6
- package/js/src/static_dependencies/starknet/types/calldata.js +0 -6
- package/js/src/static_dependencies/starknet/types/index.js +0 -6
- package/js/src/static_dependencies/starknet/types/lib/contract/abi.js +0 -6
- package/js/src/static_dependencies/starknet/types/lib/contract/index.js +0 -6
- package/js/src/static_dependencies/starknet/types/lib/contract/legacy.js +0 -6
- package/js/src/static_dependencies/starknet/types/lib/contract/sierra.js +0 -6
- package/js/src/static_dependencies/starknet/types/lib/index.js +0 -6
- package/js/src/static_dependencies/starknet/types/typedData.js +0 -6
- package/js/src/static_dependencies/starknet/utils/address.js +0 -6
- package/js/src/static_dependencies/starknet/utils/assert.js +0 -6
- package/js/src/static_dependencies/starknet/utils/cairoDataTypes/felt.js +0 -6
- package/js/src/static_dependencies/starknet/utils/cairoDataTypes/uint256.js +0 -6
- package/js/src/static_dependencies/starknet/utils/cairoDataTypes/uint512.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/byteArray.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/cairo.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/enum/CairoCustomEnum.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/enum/CairoOption.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/enum/CairoResult.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/enum/index.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/formatter.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/index.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/parser/index.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/parser/interface.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/parser/parser-0-1.1.0.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/parser/parser-2.0.0.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/propertyOrder.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/requestParser.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/responseParser.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/tuple.js +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/validate.js +0 -6
- package/js/src/static_dependencies/starknet/utils/encode.js +0 -6
- package/js/src/static_dependencies/starknet/utils/hash/classHash.js +0 -6
- package/js/src/static_dependencies/starknet/utils/hash/index.js +0 -6
- package/js/src/static_dependencies/starknet/utils/merkle.js +0 -6
- package/js/src/static_dependencies/starknet/utils/num.js +0 -6
- package/js/src/static_dependencies/starknet/utils/selector.js +0 -6
- package/js/src/static_dependencies/starknet/utils/shortString.js +0 -6
- package/js/src/static_dependencies/starknet/utils/starknetId.js +0 -6
- package/js/src/static_dependencies/starknet/utils/typedData.js +0 -6
- package/js/src/static_dependencies/starknet/utils/uint256.js +0 -6
- package/js/src/static_dependencies/starknet/utils/url.js +0 -6
- package/js/src/static_dependencies/watchable/src/index.js +0 -6
- package/js/src/static_dependencies/watchable/src/types.js +0 -6
- package/js/src/static_dependencies/watchable/src/unpromise.js +0 -6
- package/js/src/static_dependencies/zklink/zklink-sdk-web.js +0 -6
- package/js/src/tokocrypto.js +0 -6
- package/js/src/toobit.js +0 -6
- package/js/src/upbit.js +0 -6
- package/js/src/wavesexchange.js +0 -6
- package/js/src/whitebit.d.ts +21 -1
- package/js/src/whitebit.js +62 -7
- package/js/src/woo.js +0 -6
- package/js/src/woofipro.js +0 -6
- package/js/src/xt.js +0 -6
- package/js/src/yobit.js +0 -6
- package/js/src/zaif.js +0 -6
- package/js/src/zebpay.js +0 -6
- package/js/src/zonda.js +0 -6
- package/package.json +3 -2
- package/postinstall.js +1 -0
- package/dist/cjs/src/abstract/defx.js +0 -11
- package/dist/cjs/src/abstract/timex.js +0 -11
- package/dist/cjs/src/alp.js +0 -1059
- package/dist/cjs/src/defx.js +0 -2142
- package/dist/cjs/src/pro/defx.js +0 -866
- package/dist/cjs/src/timex.js +0 -1794
- package/js/src/abstract/alp.d.ts +0 -21
- package/js/src/abstract/alp.js +0 -11
- package/js/src/abstract/defx.d.ts +0 -72
- package/js/src/abstract/defx.js +0 -11
- package/js/src/abstract/timex.d.ts +0 -65
- package/js/src/abstract/timex.js +0 -11
- package/js/src/alp.d.ts +0 -209
- package/js/src/alp.js +0 -1058
- package/js/src/defx.d.ts +0 -348
- package/js/src/defx.js +0 -2141
- package/js/src/pro/defx.d.ts +0 -236
- package/js/src/pro/defx.js +0 -865
- package/js/src/timex.d.ts +0 -247
- package/js/src/timex.js +0 -1792
package/dist/cjs/src/gate.js
CHANGED
|
@@ -8,7 +8,7 @@ var number = require('./base/functions/number.js');
|
|
|
8
8
|
var errors = require('./base/errors.js');
|
|
9
9
|
var sha512 = require('./static_dependencies/noble-hashes/sha512.js');
|
|
10
10
|
|
|
11
|
-
//
|
|
11
|
+
// ---------------------------------------------------------------------------
|
|
12
12
|
/**
|
|
13
13
|
* @class gate
|
|
14
14
|
* @augments Exchange
|
|
@@ -25,7 +25,7 @@ class gate extends gate$1["default"] {
|
|
|
25
25
|
'pro': true,
|
|
26
26
|
'urls': {
|
|
27
27
|
'logo': 'https://github.com/user-attachments/assets/64f988c5-07b6-4652-b5c1-679a6bf67c85',
|
|
28
|
-
'doc': 'https://www.gate.com/docs/developers/apiv4/en
|
|
28
|
+
'doc': 'https://www.gate.com/docs/developers/apiv4/en',
|
|
29
29
|
'www': 'https://gate.com',
|
|
30
30
|
'api': {
|
|
31
31
|
'public': {
|
|
@@ -1174,7 +1174,7 @@ class gate extends gate$1["default"] {
|
|
|
1174
1174
|
* @name gate#loadUnifiedStatus
|
|
1175
1175
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1176
1176
|
* @description returns unifiedAccount so the user can check if the unified account is enabled
|
|
1177
|
-
* @see https://www.gate.com/docs/developers/apiv4/#
|
|
1177
|
+
* @see https://www.gate.com/docs/developers/apiv4/#retrieve-user-account-information
|
|
1178
1178
|
* @returns {boolean} true or false if the enabled unified account is enabled or not and sets the unifiedAccount option if it is undefined
|
|
1179
1179
|
*/
|
|
1180
1180
|
async loadUnifiedStatus(params = {}) {
|
|
@@ -1212,7 +1212,7 @@ class gate extends gate$1["default"] {
|
|
|
1212
1212
|
* @method
|
|
1213
1213
|
* @name gate#fetchTime
|
|
1214
1214
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
1215
|
-
* @see https://www.gate.com/docs/developers/apiv4
|
|
1215
|
+
* @see https://www.gate.com/docs/developers/apiv4/#get-server-current-time
|
|
1216
1216
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1217
1217
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
1218
1218
|
*/
|
|
@@ -1302,11 +1302,11 @@ class gate extends gate$1["default"] {
|
|
|
1302
1302
|
* @method
|
|
1303
1303
|
* @name gate#fetchMarkets
|
|
1304
1304
|
* @description retrieves data on all markets for gate
|
|
1305
|
-
* @see https://www.gate.com/docs/developers/apiv4
|
|
1305
|
+
* @see https://www.gate.com/docs/developers/apiv4/#query-all-supported-currency-pairs // spot
|
|
1306
1306
|
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-supported-currency-pairs-supported-in-margin-trading // margin
|
|
1307
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
1308
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
1309
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-
|
|
1307
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-all-futures-contracts // swap
|
|
1308
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-all-futures-contracts-2 // future
|
|
1309
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-contracts-for-specified-underlying-and-expiration-date // option
|
|
1310
1310
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1311
1311
|
* @returns {object[]} an array of objects representing market data
|
|
1312
1312
|
*/
|
|
@@ -1940,7 +1940,7 @@ class gate extends gate$1["default"] {
|
|
|
1940
1940
|
* @method
|
|
1941
1941
|
* @name gate#fetchCurrencies
|
|
1942
1942
|
* @description fetches all available currencies on an exchange
|
|
1943
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
1943
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-all-currency-information
|
|
1944
1944
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1945
1945
|
* @returns {object} an associative dictionary of currencies
|
|
1946
1946
|
*/
|
|
@@ -2044,7 +2044,7 @@ class gate extends gate$1["default"] {
|
|
|
2044
2044
|
* @method
|
|
2045
2045
|
* @name gate#fetchFundingRate
|
|
2046
2046
|
* @description fetch the current funding rate
|
|
2047
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
2047
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-single-contract-information
|
|
2048
2048
|
* @param {string} symbol unified market symbol
|
|
2049
2049
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2050
2050
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
@@ -2107,7 +2107,7 @@ class gate extends gate$1["default"] {
|
|
|
2107
2107
|
* @method
|
|
2108
2108
|
* @name gate#fetchFundingRates
|
|
2109
2109
|
* @description fetch the funding rate for multiple markets
|
|
2110
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
2110
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-all-futures-contracts
|
|
2111
2111
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2112
2112
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2113
2113
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols
|
|
@@ -2294,6 +2294,7 @@ class gate extends gate$1["default"] {
|
|
|
2294
2294
|
* @method
|
|
2295
2295
|
* @name gate#fetchDepositAddressesByNetwork
|
|
2296
2296
|
* @description fetch a dictionary of addresses for a currency, indexed by network
|
|
2297
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#generate-currency-deposit-address
|
|
2297
2298
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
2298
2299
|
* @param {object} [params] extra parameters specific to the api endpoint
|
|
2299
2300
|
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/?id=address-structure} indexed by the network
|
|
@@ -2353,7 +2354,7 @@ class gate extends gate$1["default"] {
|
|
|
2353
2354
|
* @method
|
|
2354
2355
|
* @name gate#fetchTradingFee
|
|
2355
2356
|
* @description fetch the trading fees for a market
|
|
2356
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
2357
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-fees
|
|
2357
2358
|
* @param {string} symbol unified market symbol
|
|
2358
2359
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2359
2360
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
@@ -2385,7 +2386,7 @@ class gate extends gate$1["default"] {
|
|
|
2385
2386
|
* @method
|
|
2386
2387
|
* @name gate#fetchTradingFees
|
|
2387
2388
|
* @description fetch the trading fees for multiple markets
|
|
2388
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
2389
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-fees
|
|
2389
2390
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2390
2391
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
2391
2392
|
*/
|
|
@@ -2452,7 +2453,7 @@ class gate extends gate$1["default"] {
|
|
|
2452
2453
|
* @name gate#fetchTransactionFees
|
|
2453
2454
|
* @deprecated
|
|
2454
2455
|
* @description please use fetchDepositWithdrawFees instead
|
|
2455
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
2456
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-withdrawal-status
|
|
2456
2457
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2457
2458
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2458
2459
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
@@ -2511,7 +2512,7 @@ class gate extends gate$1["default"] {
|
|
|
2511
2512
|
* @method
|
|
2512
2513
|
* @name gate#fetchDepositWithdrawFees
|
|
2513
2514
|
* @description fetch deposit and withdraw fees
|
|
2514
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
2515
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-withdrawal-status
|
|
2515
2516
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2516
2517
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2517
2518
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
@@ -2594,8 +2595,8 @@ class gate extends gate$1["default"] {
|
|
|
2594
2595
|
* @method
|
|
2595
2596
|
* @name gate#fetchFundingHistory
|
|
2596
2597
|
* @description fetch the history of funding payments paid and received on this account
|
|
2597
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#query-account-
|
|
2598
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#query-account-
|
|
2598
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-account-change-history
|
|
2599
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-account-change-history-2
|
|
2599
2600
|
* @param {string} symbol unified market symbol
|
|
2600
2601
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
2601
2602
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
@@ -2681,10 +2682,10 @@ class gate extends gate$1["default"] {
|
|
|
2681
2682
|
* @method
|
|
2682
2683
|
* @name gate#fetchOrderBook
|
|
2683
2684
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
2684
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
2685
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-
|
|
2686
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-
|
|
2687
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#options-order-book
|
|
2685
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-market-depth-information
|
|
2686
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-market-depth-information
|
|
2687
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-market-depth-information-2
|
|
2688
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-options-contract-order-book
|
|
2688
2689
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
2689
2690
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
2690
2691
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -2807,10 +2808,10 @@ class gate extends gate$1["default"] {
|
|
|
2807
2808
|
* @method
|
|
2808
2809
|
* @name gate#fetchTicker
|
|
2809
2810
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
2810
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#get-
|
|
2811
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
2812
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
2813
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
2811
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-currency-pair-ticker-information
|
|
2812
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-all-futures-trading-statistics
|
|
2813
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-all-futures-trading-statistics-2
|
|
2814
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-options-market-ticker-information
|
|
2814
2815
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
2815
2816
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2816
2817
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
@@ -2971,10 +2972,10 @@ class gate extends gate$1["default"] {
|
|
|
2971
2972
|
* @method
|
|
2972
2973
|
* @name gate#fetchTickers
|
|
2973
2974
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
2974
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#get-
|
|
2975
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
2976
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
2977
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
2975
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-currency-pair-ticker-information
|
|
2976
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-all-futures-trading-statistics
|
|
2977
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-all-futures-trading-statistics-2
|
|
2978
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-options-market-ticker-information
|
|
2978
2979
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
2979
2980
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2980
2981
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
@@ -3025,9 +3026,10 @@ class gate extends gate$1["default"] {
|
|
|
3025
3026
|
/**
|
|
3026
3027
|
* @method
|
|
3027
3028
|
* @name gate#fetchBalance
|
|
3028
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#margin-account-list
|
|
3029
3029
|
* @see https://www.gate.com/docs/developers/apiv4/en/#get-unified-account-information
|
|
3030
3030
|
* @see https://www.gate.com/docs/developers/apiv4/en/#list-spot-trading-accounts
|
|
3031
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#margin-account-list
|
|
3032
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#funding-account-list
|
|
3031
3033
|
* @see https://www.gate.com/docs/developers/apiv4/en/#get-futures-account
|
|
3032
3034
|
* @see https://www.gate.com/docs/developers/apiv4/en/#get-futures-account-2
|
|
3033
3035
|
* @see https://www.gate.com/docs/developers/apiv4/en/#query-account-information
|
|
@@ -3327,10 +3329,10 @@ class gate extends gate$1["default"] {
|
|
|
3327
3329
|
* @method
|
|
3328
3330
|
* @name gateio#fetchOHLCV
|
|
3329
3331
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
3330
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#market-
|
|
3331
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
3332
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#market-
|
|
3333
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
3332
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#market-k-line-chart // spot
|
|
3333
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-market-k-line-chart // swap
|
|
3334
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-market-k-line-chart-2 // future
|
|
3335
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#options-contract-market-candlestick-chart // option
|
|
3334
3336
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
3335
3337
|
* @param {string} timeframe the length of time each candle represents
|
|
3336
3338
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -3417,7 +3419,7 @@ class gate extends gate$1["default"] {
|
|
|
3417
3419
|
* @method
|
|
3418
3420
|
* @name gate#fetchFundingRateHistory
|
|
3419
3421
|
* @description fetches historical funding rate prices
|
|
3420
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
3422
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-all-futures-trading-statistics
|
|
3421
3423
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
3422
3424
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
3423
3425
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
@@ -3526,10 +3528,10 @@ class gate extends gate$1["default"] {
|
|
|
3526
3528
|
* @method
|
|
3527
3529
|
* @name gate#fetchTrades
|
|
3528
3530
|
* @description get the list of most recent trades for a particular symbol
|
|
3529
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
3530
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-
|
|
3531
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-
|
|
3532
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
3531
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-market-transaction-records
|
|
3532
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-market-transaction-records
|
|
3533
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-market-transaction-records-2
|
|
3534
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#market-trade-records
|
|
3533
3535
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
3534
3536
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
3535
3537
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -3641,10 +3643,10 @@ class gate extends gate$1["default"] {
|
|
|
3641
3643
|
* @method
|
|
3642
3644
|
* @name gate#fetchOrderTrades
|
|
3643
3645
|
* @description fetch all the trades made from a single order
|
|
3644
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
3645
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
3646
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
3647
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
3646
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records
|
|
3647
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records-by-time-range
|
|
3648
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records-3
|
|
3649
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records-4
|
|
3648
3650
|
* @param {string} id order id
|
|
3649
3651
|
* @param {string} symbol unified market symbol
|
|
3650
3652
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -3683,10 +3685,10 @@ class gate extends gate$1["default"] {
|
|
|
3683
3685
|
* @method
|
|
3684
3686
|
* @name gate#fetchMyTrades
|
|
3685
3687
|
* @description Fetch personal trading history
|
|
3686
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
3687
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
3688
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
3689
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
3688
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records
|
|
3689
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records-by-time-range
|
|
3690
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records-3
|
|
3691
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records-4
|
|
3690
3692
|
* @param {string} symbol unified market symbol
|
|
3691
3693
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3692
3694
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -3995,7 +3997,7 @@ class gate extends gate$1["default"] {
|
|
|
3995
3997
|
* @method
|
|
3996
3998
|
* @name gate#fetchDeposits
|
|
3997
3999
|
* @description fetch all deposits made to an account
|
|
3998
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
4000
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-deposit-records
|
|
3999
4001
|
* @param {string} code unified currency code
|
|
4000
4002
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
4001
4003
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -4033,7 +4035,7 @@ class gate extends gate$1["default"] {
|
|
|
4033
4035
|
* @method
|
|
4034
4036
|
* @name gate#fetchWithdrawals
|
|
4035
4037
|
* @description fetch all withdrawals made from an account
|
|
4036
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
4038
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-withdrawal-records
|
|
4037
4039
|
* @param {string} code unified currency code
|
|
4038
4040
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
4039
4041
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -4252,11 +4254,11 @@ class gate extends gate$1["default"] {
|
|
|
4252
4254
|
* @name gate#createOrder
|
|
4253
4255
|
* @description Create an order on the exchange
|
|
4254
4256
|
* @see https://www.gate.com/docs/developers/apiv4/en/#create-an-order
|
|
4255
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#create-
|
|
4256
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
4257
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#create-
|
|
4258
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
4259
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#create-
|
|
4257
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-price-triggered-order
|
|
4258
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#place-futures-order
|
|
4259
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-price-triggered-order-2
|
|
4260
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#place-futures-order-2
|
|
4261
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-price-triggered-order-3
|
|
4260
4262
|
* @see https://www.gate.com/docs/developers/apiv4/en/#create-an-options-order
|
|
4261
4263
|
* @param {string} symbol Unified CCXT market symbol
|
|
4262
4264
|
* @param {string} type 'limit' or 'market' *"market" is contract only*
|
|
@@ -4429,9 +4431,8 @@ class gate extends gate$1["default"] {
|
|
|
4429
4431
|
* @method
|
|
4430
4432
|
* @name gate#createOrders
|
|
4431
4433
|
* @description create a list of trade orders
|
|
4432
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
4433
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
4434
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#create-a-batch-of-futures-orders
|
|
4434
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#batch-place-orders
|
|
4435
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#place-batch-futures-orders
|
|
4435
4436
|
* @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
|
|
4436
4437
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4437
4438
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
@@ -4611,9 +4612,6 @@ class gate extends gate$1["default"] {
|
|
|
4611
4612
|
}
|
|
4612
4613
|
}
|
|
4613
4614
|
else {
|
|
4614
|
-
if (clientOrderId !== undefined) {
|
|
4615
|
-
request['text'] = clientOrderId;
|
|
4616
|
-
}
|
|
4617
4615
|
if (market['option']) {
|
|
4618
4616
|
throw new errors.NotSupported(this.id + ' createOrder() conditional option orders are not supported');
|
|
4619
4617
|
}
|
|
@@ -4669,6 +4667,9 @@ class gate extends gate$1["default"] {
|
|
|
4669
4667
|
if (timeInForce !== undefined) {
|
|
4670
4668
|
request['initial']['tif'] = timeInForce;
|
|
4671
4669
|
}
|
|
4670
|
+
if (clientOrderId !== undefined) {
|
|
4671
|
+
request['initial']['text'] = clientOrderId;
|
|
4672
|
+
}
|
|
4672
4673
|
}
|
|
4673
4674
|
else {
|
|
4674
4675
|
// spot conditional order
|
|
@@ -4709,6 +4710,9 @@ class gate extends gate$1["default"] {
|
|
|
4709
4710
|
'rule': rule,
|
|
4710
4711
|
'expiration': expiration, // required, how long (in seconds) to wait for the condition to be triggered before cancelling the order
|
|
4711
4712
|
};
|
|
4713
|
+
if (clientOrderId !== undefined) {
|
|
4714
|
+
request['trigger']['text'] = clientOrderId;
|
|
4715
|
+
}
|
|
4712
4716
|
}
|
|
4713
4717
|
}
|
|
4714
4718
|
}
|
|
@@ -4732,7 +4736,7 @@ class gate extends gate$1["default"] {
|
|
|
4732
4736
|
if (!market['spot']) {
|
|
4733
4737
|
throw new errors.NotSupported(this.id + ' createMarketBuyOrderWithCost() supports spot orders only');
|
|
4734
4738
|
}
|
|
4735
|
-
params
|
|
4739
|
+
params = this.extend(params, { 'createMarketBuyOrderRequiresPrice': false });
|
|
4736
4740
|
return await this.createOrder(symbol, 'market', 'buy', cost, undefined, params);
|
|
4737
4741
|
}
|
|
4738
4742
|
editOrderRequest(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
@@ -4782,8 +4786,8 @@ class gate extends gate$1["default"] {
|
|
|
4782
4786
|
* @method
|
|
4783
4787
|
* @name gate#editOrder
|
|
4784
4788
|
* @description edit a trade order, gate currently only supports the modification of the price or amount fields
|
|
4785
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#amend-
|
|
4786
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#amend-
|
|
4789
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#amend-single-order
|
|
4790
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#amend-single-order-2
|
|
4787
4791
|
* @param {string} id order id
|
|
4788
4792
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
4789
4793
|
* @param {string} type 'market' or 'limit'
|
|
@@ -5143,9 +5147,18 @@ class gate extends gate$1["default"] {
|
|
|
5143
5147
|
const initial = this.safeDict(order, 'initial', {});
|
|
5144
5148
|
const reduceOnlyInitial = this.safeBool(initial, 'is_reduce_only');
|
|
5145
5149
|
const reduceOnly = this.safeBool(order, 'is_reduce_only', reduceOnlyInitial);
|
|
5150
|
+
let clientOrderId = this.safeString(order, 'text');
|
|
5151
|
+
if (clientOrderId === undefined) {
|
|
5152
|
+
if ('initial' in order) {
|
|
5153
|
+
clientOrderId = this.safeString(order['initial'], 'text');
|
|
5154
|
+
}
|
|
5155
|
+
else if ('trigger' in order) {
|
|
5156
|
+
clientOrderId = this.safeString(order['trigger'], 'text');
|
|
5157
|
+
}
|
|
5158
|
+
}
|
|
5146
5159
|
return this.safeOrder({
|
|
5147
5160
|
'id': this.safeString(order, 'id'),
|
|
5148
|
-
'clientOrderId':
|
|
5161
|
+
'clientOrderId': clientOrderId,
|
|
5149
5162
|
'timestamp': timestamp,
|
|
5150
5163
|
'datetime': this.iso8601(timestamp),
|
|
5151
5164
|
'lastTradeTimestamp': lastTradeTimestamp,
|
|
@@ -5192,10 +5205,13 @@ class gate extends gate$1["default"] {
|
|
|
5192
5205
|
* @method
|
|
5193
5206
|
* @name gate#fetchOrder
|
|
5194
5207
|
* @description Retrieves information on an order
|
|
5195
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
5196
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
5197
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
5198
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
5208
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-single-order-details
|
|
5209
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-single-auto-order-details
|
|
5210
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-single-order-details-2
|
|
5211
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-single-auto-order-details-2
|
|
5212
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-single-order-details-3
|
|
5213
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-single-auto-order-details-3
|
|
5214
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-single-order-details-4
|
|
5199
5215
|
* @param {string} id Order id
|
|
5200
5216
|
* @param {string} symbol Unified market symbol, *required for spot and margin*
|
|
5201
5217
|
* @param {object} [params] Parameters specified by the exchange api
|
|
@@ -5252,7 +5268,6 @@ class gate extends gate$1["default"] {
|
|
|
5252
5268
|
* @name gate#fetchOpenOrders
|
|
5253
5269
|
* @description fetch all unfilled currently open orders
|
|
5254
5270
|
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-open-orders
|
|
5255
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-running-auto-order-list
|
|
5256
5271
|
* @param {string} symbol unified market symbol
|
|
5257
5272
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
5258
5273
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -5270,14 +5285,14 @@ class gate extends gate$1["default"] {
|
|
|
5270
5285
|
* @method
|
|
5271
5286
|
* @name gate#fetchClosedOrders
|
|
5272
5287
|
* @description fetches information on multiple closed orders made by the user
|
|
5273
|
-
* @see https://www.gate.com/docs/developers/apiv4
|
|
5274
|
-
* @see https://www.gate.com/docs/developers/apiv4
|
|
5275
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
5276
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
5277
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
5278
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
5288
|
+
* @see https://www.gate.com/en-eu/docs/developers/apiv4/#list-orders
|
|
5289
|
+
* @see https://www.gate.com/en-eu/docs/developers/apiv4/#retrieve-running-auto-order-list
|
|
5290
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-order-list
|
|
5291
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-auto-order-list
|
|
5292
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-order-list-2
|
|
5293
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-auto-order-list-2
|
|
5279
5294
|
* @see https://www.gate.com/docs/developers/apiv4/en/#list-options-orders
|
|
5280
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
5295
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-order-list-by-time-range
|
|
5281
5296
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
5282
5297
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
5283
5298
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -5573,10 +5588,13 @@ class gate extends gate$1["default"] {
|
|
|
5573
5588
|
* @method
|
|
5574
5589
|
* @name gate#cancelOrder
|
|
5575
5590
|
* @description Cancels an open order
|
|
5576
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-
|
|
5577
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-
|
|
5578
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-
|
|
5579
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-
|
|
5591
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-single-order
|
|
5592
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-single-auto-order
|
|
5593
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-single-order-2
|
|
5594
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-single-auto-order-2
|
|
5595
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-single-order-3
|
|
5596
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-single-auto-order-3
|
|
5597
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-single-order-4
|
|
5580
5598
|
* @param {string} id Order id
|
|
5581
5599
|
* @param {string} symbol Unified market symbol
|
|
5582
5600
|
* @param {object} [params] Parameters specified by the exchange api
|
|
@@ -5711,8 +5729,8 @@ class gate extends gate$1["default"] {
|
|
|
5711
5729
|
* @method
|
|
5712
5730
|
* @name gate#cancelOrders
|
|
5713
5731
|
* @description cancel multiple orders
|
|
5714
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-
|
|
5715
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-
|
|
5732
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-batch-orders-by-specified-id-list
|
|
5733
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-batch-orders-by-specified-id-list-2
|
|
5716
5734
|
* @param {string[]} ids order ids
|
|
5717
5735
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
5718
5736
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -5760,7 +5778,7 @@ class gate extends gate$1["default"] {
|
|
|
5760
5778
|
* @method
|
|
5761
5779
|
* @name gate#cancelOrdersForSymbols
|
|
5762
5780
|
* @description cancel multiple orders for multiple symbols
|
|
5763
|
-
* @see https://www.gate.com/docs/developers/apiv4
|
|
5781
|
+
* @see https://www.gate.com/en-eu/docs/developers/apiv4/#cancel-a-batch-of-orders-with-an-id-list
|
|
5764
5782
|
* @param {CancellationRequest[]} orders list of order ids with symbol, example [{"id": "a", "symbol": "BTC/USDT"}, {"id": "b", "symbol": "ETH/USDT"}]
|
|
5765
5783
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5766
5784
|
* @param {string[]} [params.clientOrderIds] client order ids
|
|
@@ -5801,9 +5819,12 @@ class gate extends gate$1["default"] {
|
|
|
5801
5819
|
* @name gate#cancelAllOrders
|
|
5802
5820
|
* @description cancel all open orders
|
|
5803
5821
|
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-open-orders-in-specified-currency-pair
|
|
5804
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-
|
|
5805
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-
|
|
5806
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-
|
|
5822
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-auto-orders
|
|
5823
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-orders-with-open-status
|
|
5824
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-auto-orders-2
|
|
5825
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-orders-with-open-status-2
|
|
5826
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-auto-orders-3
|
|
5827
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-orders-with-open-status-3
|
|
5807
5828
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
5808
5829
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5809
5830
|
* @param {bool} [params.unifiedAccount] set to true for canceling unified account orders
|
|
@@ -6187,8 +6208,8 @@ class gate extends gate$1["default"] {
|
|
|
6187
6208
|
* @method
|
|
6188
6209
|
* @name gate#fetchPosition
|
|
6189
6210
|
* @description fetch data on an open contract position
|
|
6190
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#get-single-position
|
|
6191
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#get-single-position-2
|
|
6211
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-single-position-information
|
|
6212
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-single-position-information-2
|
|
6192
6213
|
* @see https://www.gate.com/docs/developers/apiv4/en/#get-specified-contract-position
|
|
6193
6214
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
6194
6215
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6275,8 +6296,8 @@ class gate extends gate$1["default"] {
|
|
|
6275
6296
|
* @method
|
|
6276
6297
|
* @name gate#fetchPositions
|
|
6277
6298
|
* @description fetch all open positions
|
|
6278
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
6279
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
6299
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-user-position-list
|
|
6300
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-user-position-list-2
|
|
6280
6301
|
* @see https://www.gate.com/docs/developers/apiv4/en/#list-user-s-positions-of-specified-underlying
|
|
6281
6302
|
* @param {string[]|undefined} symbols Not used by gate, but parsed internally by CCXT
|
|
6282
6303
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6386,8 +6407,8 @@ class gate extends gate$1["default"] {
|
|
|
6386
6407
|
* @method
|
|
6387
6408
|
* @name gate#fetchLeverageTiers
|
|
6388
6409
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
6389
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
6390
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
6410
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-all-futures-contracts
|
|
6411
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-all-futures-contracts-2
|
|
6391
6412
|
* @param {string[]} [symbols] list of unified market symbols
|
|
6392
6413
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6393
6414
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols
|
|
@@ -6507,7 +6528,8 @@ class gate extends gate$1["default"] {
|
|
|
6507
6528
|
* @method
|
|
6508
6529
|
* @name gate#fetchMarketLeverageTiers
|
|
6509
6530
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market
|
|
6510
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
6531
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-risk-limit-tiers
|
|
6532
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-risk-limit-tiers-2
|
|
6511
6533
|
* @param {string} symbol unified market symbol
|
|
6512
6534
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6513
6535
|
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}
|
|
@@ -6520,18 +6542,24 @@ class gate extends gate$1["default"] {
|
|
|
6520
6542
|
if (type !== 'future' && type !== 'swap') {
|
|
6521
6543
|
throw new errors.BadRequest(this.id + ' fetchMarketLeverageTiers only supports swap and future');
|
|
6522
6544
|
}
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6545
|
+
let response = undefined;
|
|
6546
|
+
if (type === 'swap') {
|
|
6547
|
+
//
|
|
6548
|
+
// [
|
|
6549
|
+
// {
|
|
6550
|
+
// "maintenance_rate": "0.004",
|
|
6551
|
+
// "tier": 1,
|
|
6552
|
+
// "initial_rate": "0.008",
|
|
6553
|
+
// "leverage_max": "125",
|
|
6554
|
+
// "risk_limit": "1000000"
|
|
6555
|
+
// }
|
|
6556
|
+
// ]
|
|
6557
|
+
//
|
|
6558
|
+
response = await this.publicFuturesGetSettleRiskLimitTiers(this.extend(request, requestParams));
|
|
6559
|
+
}
|
|
6560
|
+
else {
|
|
6561
|
+
response = await this.publicDeliveryGetSettleRiskLimitTiers(this.extend(request, requestParams));
|
|
6562
|
+
}
|
|
6535
6563
|
return this.parseMarketLeverageTiers(response, market);
|
|
6536
6564
|
}
|
|
6537
6565
|
parseEmulatedLeverageTiers(info, market = undefined) {
|
|
@@ -6599,9 +6627,9 @@ class gate extends gate$1["default"] {
|
|
|
6599
6627
|
}
|
|
6600
6628
|
/**
|
|
6601
6629
|
* @method
|
|
6602
|
-
* @name gate#
|
|
6630
|
+
* @name gate#repayIsolatedMargin
|
|
6603
6631
|
* @description repay borrowed margin and interest
|
|
6604
|
-
* @see https://www.gate.com/docs/apiv4/en/#repay-
|
|
6632
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#borrow-or-repay-2
|
|
6605
6633
|
* @param {string} symbol unified market symbol
|
|
6606
6634
|
* @param {string} code unified currency code of the currency to repay
|
|
6607
6635
|
* @param {float} amount the amount to repay
|
|
@@ -6630,7 +6658,6 @@ class gate extends gate$1["default"] {
|
|
|
6630
6658
|
* @method
|
|
6631
6659
|
* @name gate#repayCrossMargin
|
|
6632
6660
|
* @description repay cross margin borrowed margin and interest
|
|
6633
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#cross-margin-repayments
|
|
6634
6661
|
* @see https://www.gate.com/docs/developers/apiv4/en/#borrow-or-repay
|
|
6635
6662
|
* @param {string} code unified currency code of the currency to repay
|
|
6636
6663
|
* @param {float} amount the amount to repay
|
|
@@ -6656,6 +6683,7 @@ class gate extends gate$1["default"] {
|
|
|
6656
6683
|
response = await this.privateUnifiedPostLoans(this.extend(request, params));
|
|
6657
6684
|
}
|
|
6658
6685
|
else {
|
|
6686
|
+
// deprecated and not present in the exchange's docs but still works
|
|
6659
6687
|
response = await this.privateMarginPostCrossRepayments(this.extend(request, params));
|
|
6660
6688
|
response = this.safeDict(response, 0);
|
|
6661
6689
|
//
|
|
@@ -6681,7 +6709,7 @@ class gate extends gate$1["default"] {
|
|
|
6681
6709
|
* @method
|
|
6682
6710
|
* @name gate#borrowIsolatedMargin
|
|
6683
6711
|
* @description create a loan to borrow margin
|
|
6684
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
6712
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#borrow-or-repay-2
|
|
6685
6713
|
* @param {string} symbol unified market symbol, required for isolated margin
|
|
6686
6714
|
* @param {string} code unified currency code of the currency to borrow
|
|
6687
6715
|
* @param {float} amount the amount to borrow
|
|
@@ -6724,15 +6752,14 @@ class gate extends gate$1["default"] {
|
|
|
6724
6752
|
}
|
|
6725
6753
|
/**
|
|
6726
6754
|
* @method
|
|
6727
|
-
* @name gate#
|
|
6755
|
+
* @name gate#borrowCrossMargin
|
|
6728
6756
|
* @description create a loan to borrow margin
|
|
6729
|
-
* @see https://www.gate.com/docs/apiv4/en/#create-a-cross-margin-borrow-loan
|
|
6730
6757
|
* @see https://www.gate.com/docs/developers/apiv4/en/#borrow-or-repay
|
|
6731
6758
|
* @param {string} code unified currency code of the currency to borrow
|
|
6732
6759
|
* @param {float} amount the amount to borrow
|
|
6733
6760
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6734
6761
|
* @param {string} [params.rate] '0.0002' or '0.002' extra parameter required for isolated margin
|
|
6735
|
-
* @param {boolean} [params.unifiedAccount] set to
|
|
6762
|
+
* @param {boolean} [params.unifiedAccount] default true (set to false to use deprecated privateMarginPostCrossLoans method)
|
|
6736
6763
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
6737
6764
|
*/
|
|
6738
6765
|
async borrowCrossMargin(code, amount, params = {}) {
|
|
@@ -6751,6 +6778,8 @@ class gate extends gate$1["default"] {
|
|
|
6751
6778
|
response = await this.privateUnifiedPostLoans(this.extend(request, params));
|
|
6752
6779
|
}
|
|
6753
6780
|
else {
|
|
6781
|
+
// deprecated and not present in the exchange's docs
|
|
6782
|
+
// returns {"label":"REQUEST_FORBIDDEN","message":"Request is forbidden"}
|
|
6754
6783
|
response = await this.privateMarginPostCrossLoans(this.extend(request, params));
|
|
6755
6784
|
//
|
|
6756
6785
|
// {
|
|
@@ -6827,9 +6856,8 @@ class gate extends gate$1["default"] {
|
|
|
6827
6856
|
* @method
|
|
6828
6857
|
* @name gate#fetchBorrowInterest
|
|
6829
6858
|
* @description fetch the interest owed by the user for borrowing currency for margin trading
|
|
6830
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
6831
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#interest-records-
|
|
6832
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#list-interest-records-2
|
|
6859
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-interest-deduction-records
|
|
6860
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-interest-deduction-records-2
|
|
6833
6861
|
* @param {string} [code] unified currency code
|
|
6834
6862
|
* @param {string} [symbol] unified market symbol when fetching interest in isolated markets
|
|
6835
6863
|
* @param {int} [since] the earliest time in ms to fetch borrow interest for
|
|
@@ -6873,6 +6901,7 @@ class gate extends gate$1["default"] {
|
|
|
6873
6901
|
response = await this.privateMarginGetUniInterestRecords(this.extend(request, params));
|
|
6874
6902
|
}
|
|
6875
6903
|
else if (marginMode === 'cross') {
|
|
6904
|
+
// deprecated and not present in the exchange's docs but still works
|
|
6876
6905
|
response = await this.privateMarginGetCrossInterestRecords(this.extend(request, params));
|
|
6877
6906
|
}
|
|
6878
6907
|
const interest = this.parseBorrowInterests(response, market);
|
|
@@ -7088,7 +7117,7 @@ class gate extends gate$1["default"] {
|
|
|
7088
7117
|
* @method
|
|
7089
7118
|
* @name gate#fetchOpenInterest
|
|
7090
7119
|
* @description Retrieves the open interest of a currency
|
|
7091
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-
|
|
7120
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-statistics
|
|
7092
7121
|
* @param {string} symbol Unified CCXT market symbol
|
|
7093
7122
|
* @param {string} timeframe "5m", "15m", "30m", "1h", "4h", "1d"
|
|
7094
7123
|
* @param {int} [since] the time(ms) of the earliest record to retrieve as a unix timestamp
|
|
@@ -7176,7 +7205,7 @@ class gate extends gate$1["default"] {
|
|
|
7176
7205
|
* @method
|
|
7177
7206
|
* @name gate#fetchSettlementHistory
|
|
7178
7207
|
* @description fetches historical settlement records
|
|
7179
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#list-settlement-history
|
|
7208
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-settlement-history
|
|
7180
7209
|
* @param {string} symbol unified market symbol of the settlement history, required on gate
|
|
7181
7210
|
* @param {int} [since] timestamp in ms
|
|
7182
7211
|
* @param {int} [limit] number of records
|
|
@@ -7226,7 +7255,8 @@ class gate extends gate$1["default"] {
|
|
|
7226
7255
|
* @method
|
|
7227
7256
|
* @name gate#fetchMySettlementHistory
|
|
7228
7257
|
* @description fetches historical settlement records of the user
|
|
7229
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
7258
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-settlement-records
|
|
7259
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-settlement-records
|
|
7230
7260
|
* @param {string} symbol unified market symbol of the settlement history
|
|
7231
7261
|
* @param {int} [since] timestamp in ms
|
|
7232
7262
|
* @param {int} [limit] number of records
|
|
@@ -7234,49 +7264,79 @@ class gate extends gate$1["default"] {
|
|
|
7234
7264
|
* @returns {object[]} a list of [settlement history objects]
|
|
7235
7265
|
*/
|
|
7236
7266
|
async fetchMySettlementHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7237
|
-
if (symbol === undefined) {
|
|
7238
|
-
throw new errors.ArgumentsRequired(this.id + ' fetchMySettlementHistory() requires a symbol argument');
|
|
7239
|
-
}
|
|
7240
7267
|
await this.loadMarkets();
|
|
7241
|
-
|
|
7268
|
+
let market = undefined;
|
|
7269
|
+
if (symbol !== undefined) {
|
|
7270
|
+
market = this.market(symbol);
|
|
7271
|
+
symbol = market['symbol'];
|
|
7272
|
+
}
|
|
7242
7273
|
let type = undefined;
|
|
7243
7274
|
[type, params] = this.handleMarketTypeAndParams('fetchMySettlementHistory', market, params);
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
const optionParts = marketId.split('-');
|
|
7249
|
-
const request = {
|
|
7250
|
-
'underlying': this.safeString(optionParts, 0),
|
|
7251
|
-
'contract': marketId,
|
|
7252
|
-
};
|
|
7253
|
-
if (since !== undefined) {
|
|
7254
|
-
request['from'] = since;
|
|
7275
|
+
const isOption = type === 'option';
|
|
7276
|
+
const isFuture = type === 'future';
|
|
7277
|
+
if (!isOption && !isFuture) {
|
|
7278
|
+
throw new errors.NotSupported(this.id + ' fetchMySettlementHistory() supports option and future markets only');
|
|
7255
7279
|
}
|
|
7280
|
+
const [request, query] = this.prepareRequest(market, type, params);
|
|
7256
7281
|
if (limit !== undefined) {
|
|
7257
7282
|
request['limit'] = limit;
|
|
7258
7283
|
}
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7284
|
+
let response = undefined;
|
|
7285
|
+
if (isFuture) {
|
|
7286
|
+
//
|
|
7287
|
+
// [
|
|
7288
|
+
// {
|
|
7289
|
+
// "time": 1548654951,
|
|
7290
|
+
// "contract": "BTC_USDT",
|
|
7291
|
+
// "size": 600,
|
|
7292
|
+
// "leverage": "25",
|
|
7293
|
+
// "margin": "0.006705256878",
|
|
7294
|
+
// "entry_price": "3536.123",
|
|
7295
|
+
// "settle_price": "3421.54",
|
|
7296
|
+
// "profit": "-6.87498",
|
|
7297
|
+
// "fee": "0.03079386"
|
|
7298
|
+
// }
|
|
7299
|
+
// ]
|
|
7300
|
+
//
|
|
7301
|
+
response = await this.privateDeliveryGetSettleSettlements(this.extend(request, query));
|
|
7302
|
+
}
|
|
7303
|
+
else {
|
|
7304
|
+
if (since !== undefined) {
|
|
7305
|
+
request['from'] = since;
|
|
7306
|
+
}
|
|
7307
|
+
if (market === undefined) {
|
|
7308
|
+
const underlying = this.safeString(params, 'underlying');
|
|
7309
|
+
if (underlying === undefined) {
|
|
7310
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchMySettlementHistory() requires a symbol argument or an underlying parameter in params');
|
|
7311
|
+
}
|
|
7312
|
+
}
|
|
7313
|
+
else {
|
|
7314
|
+
const marketId = market['id'];
|
|
7315
|
+
const optionParts = marketId.split('-');
|
|
7316
|
+
request['underlying'] = this.safeString(optionParts, 0);
|
|
7317
|
+
}
|
|
7318
|
+
//
|
|
7319
|
+
// [
|
|
7320
|
+
// {
|
|
7321
|
+
// "size": -1,
|
|
7322
|
+
// "settle_profit": "0",
|
|
7323
|
+
// "contract": "BTC_USDT-20220624-26000-C",
|
|
7324
|
+
// "strike_price": "26000",
|
|
7325
|
+
// "time": 1656057600,
|
|
7326
|
+
// "settle_price": "20917.461281337048",
|
|
7327
|
+
// "underlying": "BTC_USDT",
|
|
7328
|
+
// "realised_pnl": "-0.00116042",
|
|
7329
|
+
// "fee": "0"
|
|
7330
|
+
// }
|
|
7331
|
+
// ]
|
|
7332
|
+
//
|
|
7333
|
+
response = await this.privateOptionsGetMySettlements(this.extend(request, params));
|
|
7334
|
+
}
|
|
7275
7335
|
const result = this.safeValue(response, 'result', {});
|
|
7276
7336
|
const data = this.safeValue(result, 'list', []);
|
|
7277
7337
|
const settlements = this.parseSettlements(data, market);
|
|
7278
7338
|
const sorted = this.sortBy(settlements, 'timestamp');
|
|
7279
|
-
return this.filterBySymbolSinceLimit(sorted,
|
|
7339
|
+
return this.filterBySymbolSinceLimit(sorted, symbol, since, limit);
|
|
7280
7340
|
}
|
|
7281
7341
|
parseSettlement(settlement, market) {
|
|
7282
7342
|
//
|
|
@@ -7291,7 +7351,7 @@ class gate extends gate$1["default"] {
|
|
|
7291
7351
|
// "strike_price": "25000"
|
|
7292
7352
|
// }
|
|
7293
7353
|
//
|
|
7294
|
-
// fetchMySettlementHistory
|
|
7354
|
+
// fetchMySettlementHistory option
|
|
7295
7355
|
//
|
|
7296
7356
|
// {
|
|
7297
7357
|
// "size": -1,
|
|
@@ -7305,6 +7365,19 @@ class gate extends gate$1["default"] {
|
|
|
7305
7365
|
// "fee": "0"
|
|
7306
7366
|
// }
|
|
7307
7367
|
//
|
|
7368
|
+
// fetchMySettlementHistory future
|
|
7369
|
+
// {
|
|
7370
|
+
// "time": 1548654951,
|
|
7371
|
+
// "contract": "BTC_USDT",
|
|
7372
|
+
// "size": 600,
|
|
7373
|
+
// "leverage": "25",
|
|
7374
|
+
// "margin": "0.006705256878",
|
|
7375
|
+
// "entry_price": "3536.123",
|
|
7376
|
+
// "settle_price": "3421.54",
|
|
7377
|
+
// "profit": "-6.87498",
|
|
7378
|
+
// "fee": "0.03079386"
|
|
7379
|
+
// }
|
|
7380
|
+
//
|
|
7308
7381
|
const timestamp = this.safeTimestamp(settlement, 'time');
|
|
7309
7382
|
const marketId = this.safeString(settlement, 'contract');
|
|
7310
7383
|
return {
|
|
@@ -7356,11 +7429,11 @@ class gate extends gate$1["default"] {
|
|
|
7356
7429
|
* @method
|
|
7357
7430
|
* @name gate#fetchLedger
|
|
7358
7431
|
* @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
|
7359
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#query-account-
|
|
7360
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
7361
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#query-account-
|
|
7362
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#query-account-
|
|
7363
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
7432
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-spot-account-transaction-history
|
|
7433
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-margin-account-balance-change-history
|
|
7434
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-account-change-history
|
|
7435
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-account-change-history-2
|
|
7436
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-account-change-history
|
|
7364
7437
|
* @param {string} [code] unified currency code
|
|
7365
7438
|
* @param {int} [since] timestamp in ms of the earliest ledger entry
|
|
7366
7439
|
* @param {int} [limit] max number of ledger entries to return
|
|
@@ -7602,7 +7675,7 @@ class gate extends gate$1["default"] {
|
|
|
7602
7675
|
* @method
|
|
7603
7676
|
* @name gate#setPositionMode
|
|
7604
7677
|
* @description set dual/hedged mode to true or false for a swap market, make sure all positions are closed and no orders are open before setting dual mode
|
|
7605
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
7678
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#set-position-mode
|
|
7606
7679
|
* @param {bool} hedged set to true to enable dual mode
|
|
7607
7680
|
* @param {string|undefined} symbol if passed, dual mode is set for all markets with the same settle currency
|
|
7608
7681
|
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
@@ -7619,7 +7692,7 @@ class gate extends gate$1["default"] {
|
|
|
7619
7692
|
* @method
|
|
7620
7693
|
* @name gate#fetchUnderlyingAssets
|
|
7621
7694
|
* @description fetches the market ids of underlying assets for a specific contract market type
|
|
7622
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-
|
|
7695
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-underlying-assets
|
|
7623
7696
|
* @param {object} [params] exchange specific params
|
|
7624
7697
|
* @param {string} [params.type] the contract market type, 'option', 'swap' or 'future', the default is 'option'
|
|
7625
7698
|
* @returns {object[]} a list of [underlying assets]{@link https://docs.ccxt.com/?id=underlying-assets-structure}
|
|
@@ -7658,7 +7731,7 @@ class gate extends gate$1["default"] {
|
|
|
7658
7731
|
* @method
|
|
7659
7732
|
* @name gate#fetchLiquidations
|
|
7660
7733
|
* @description retrieves the public liquidations of a trading pair
|
|
7661
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
7734
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-liquidation-order-history
|
|
7662
7735
|
* @param {string} symbol unified CCXT market symbol
|
|
7663
7736
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
7664
7737
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
@@ -7702,8 +7775,8 @@ class gate extends gate$1["default"] {
|
|
|
7702
7775
|
* @method
|
|
7703
7776
|
* @name gate#fetchMyLiquidations
|
|
7704
7777
|
* @description retrieves the users liquidated positions
|
|
7705
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
7706
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
7778
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-liquidation-history
|
|
7779
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-liquidation-history-2
|
|
7707
7780
|
* @see https://www.gate.com/docs/developers/apiv4/en/#list-user-s-liquidation-history-of-specified-underlying
|
|
7708
7781
|
* @param {string} symbol unified CCXT market symbol
|
|
7709
7782
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
@@ -7869,7 +7942,7 @@ class gate extends gate$1["default"] {
|
|
|
7869
7942
|
* @method
|
|
7870
7943
|
* @name gate#fetchGreeks
|
|
7871
7944
|
* @description fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
|
|
7872
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
7945
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-options-market-ticker-information
|
|
7873
7946
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
7874
7947
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7875
7948
|
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
|
|
@@ -7962,8 +8035,8 @@ class gate extends gate$1["default"] {
|
|
|
7962
8035
|
* @method
|
|
7963
8036
|
* @name gate#closePosition
|
|
7964
8037
|
* @description closes open positions for a market
|
|
7965
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
7966
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#
|
|
8038
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#place-futures-order
|
|
8039
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#place-futures-order-2
|
|
7967
8040
|
* @see https://www.gate.com/docs/developers/apiv4/en/#create-an-options-order
|
|
7968
8041
|
* @param {string} symbol Unified CCXT market symbol
|
|
7969
8042
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -7985,8 +8058,7 @@ class gate extends gate$1["default"] {
|
|
|
7985
8058
|
* @name gate#fetchLeverage
|
|
7986
8059
|
* @description fetch the set leverage for a market
|
|
7987
8060
|
* @see https://www.gate.com/docs/developers/apiv4/en/#get-unified-account-information
|
|
7988
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#get-
|
|
7989
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#query-one-single-margin-currency-pair-deprecated
|
|
8061
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-lending-market-details
|
|
7990
8062
|
* @param {string} symbol unified market symbol
|
|
7991
8063
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7992
8064
|
* @param {boolean} [params.unified] default false, set to true for fetching the unified accounts leverage
|
|
@@ -8017,7 +8089,7 @@ class gate extends gate$1["default"] {
|
|
|
8017
8089
|
//
|
|
8018
8090
|
}
|
|
8019
8091
|
else {
|
|
8020
|
-
response = await this.publicMarginGetCurrencyPairsCurrencyPair(this.extend(request, params));
|
|
8092
|
+
response = await this.publicMarginGetCurrencyPairsCurrencyPair(this.extend(request, params)); // deprecated
|
|
8021
8093
|
//
|
|
8022
8094
|
// {
|
|
8023
8095
|
// "id": "BTC_USDT",
|
|
@@ -8095,7 +8167,6 @@ class gate extends gate$1["default"] {
|
|
|
8095
8167
|
* @name gate#fetchLeverages
|
|
8096
8168
|
* @description fetch the set leverage for all leverage markets, only spot margin is supported on gate
|
|
8097
8169
|
* @see https://www.gate.com/docs/developers/apiv4/en/#list-lending-markets
|
|
8098
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-supported-currency-pairs-supported-in-margin-trading-deprecated
|
|
8099
8170
|
* @param {string[]} symbols a list of unified market symbols
|
|
8100
8171
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8101
8172
|
* @param {boolean} [params.unified] default false, set to true for fetching unified account leverages
|
|
@@ -8123,7 +8194,7 @@ class gate extends gate$1["default"] {
|
|
|
8123
8194
|
//
|
|
8124
8195
|
}
|
|
8125
8196
|
else {
|
|
8126
|
-
response = await this.publicMarginGetCurrencyPairs(params);
|
|
8197
|
+
response = await this.publicMarginGetCurrencyPairs(params); // deprecated
|
|
8127
8198
|
//
|
|
8128
8199
|
// [
|
|
8129
8200
|
// {
|
|
@@ -8156,7 +8227,7 @@ class gate extends gate$1["default"] {
|
|
|
8156
8227
|
* @method
|
|
8157
8228
|
* @name gate#fetchOption
|
|
8158
8229
|
* @description fetches option data that is commonly found in an option chain
|
|
8159
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#query-specified-contract-
|
|
8230
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-specified-contract-details
|
|
8160
8231
|
* @param {string} symbol unified market symbol
|
|
8161
8232
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8162
8233
|
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/?id=option-chain-structure}
|
|
@@ -8214,7 +8285,7 @@ class gate extends gate$1["default"] {
|
|
|
8214
8285
|
* @method
|
|
8215
8286
|
* @name gate#fetchOptionChain
|
|
8216
8287
|
* @description fetches data for an underlying asset that is commonly found in an option chain
|
|
8217
|
-
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-
|
|
8288
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-contracts-for-specified-underlying-and-expiration-date
|
|
8218
8289
|
* @param {string} code base currency to fetch an option chain for
|
|
8219
8290
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8220
8291
|
* @param {string} [params.underlying] the underlying asset, can be obtained from fetchUnderlyingAssets ()
|
|
@@ -8340,8 +8411,8 @@ class gate extends gate$1["default"] {
|
|
|
8340
8411
|
* @method
|
|
8341
8412
|
* @name gate#fetchPositionsHistory
|
|
8342
8413
|
* @description fetches historical positions
|
|
8343
|
-
* @see https://www.gate.com/docs/developers/apiv4/#
|
|
8344
|
-
* @see https://www.gate.com/docs/developers/apiv4/#
|
|
8414
|
+
* @see https://www.gate.com/docs/developers/apiv4/#query-position-close-history
|
|
8415
|
+
* @see https://www.gate.com/docs/developers/apiv4/#query-position-close-history-2
|
|
8345
8416
|
* @param {string[]} symbols unified conract symbols, must all have the same settle currency and the same market type
|
|
8346
8417
|
* @param {int} [since] the earliest time in ms to fetch positions for
|
|
8347
8418
|
* @param {int} [limit] the maximum amount of records to fetch, default=1000
|