ccxt 4.5.14 → 4.5.15
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 +5 -5
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +2 -26
- 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/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/btcalpha.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/bybit.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/defx.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/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/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/kucoinfutures.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/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/oceanex.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/probit.js +1 -1
- package/dist/cjs/src/abstract/timex.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/zonda.js +1 -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 +2 -1
- package/dist/cjs/src/backpack.js +8 -3
- package/dist/cjs/src/base/Precise.js +6 -0
- package/dist/cjs/src/base/errors.js +6 -0
- package/dist/cjs/src/base/functions/crypto.js +1 -1
- package/dist/cjs/src/base/functions/encode.js +1 -1
- package/dist/cjs/src/base/functions/misc.js +1 -0
- package/dist/cjs/src/base/functions/number.js +6 -0
- package/dist/cjs/src/base/functions/platform.js +6 -0
- package/dist/cjs/src/base/functions/rsa.js +1 -0
- package/dist/cjs/src/base/functions/string.js +6 -0
- package/dist/cjs/src/base/functions/throttle.js +1 -1
- package/dist/cjs/src/base/functions/time.js +6 -0
- package/dist/cjs/src/base/functions/totp.js +1 -0
- package/dist/cjs/src/base/functions/type.js +6 -0
- package/dist/cjs/src/base/functions.js +1 -1
- package/dist/cjs/src/base/ws/Cache.js +6 -0
- package/dist/cjs/src/base/ws/Client.js +1 -0
- 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 +6 -0
- 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 +4 -1
- 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 +74 -47
- 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 +20 -7
- 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 +1 -1
- package/dist/cjs/src/bitso.js +1 -1
- package/dist/cjs/src/bitstamp.js +1 -1
- package/dist/cjs/src/bitteam.js +1 -1
- package/dist/cjs/src/bittrade.js +1 -1
- package/dist/cjs/src/blockchaincom.js +1 -1
- package/dist/cjs/src/blofin.js +1 -1
- package/dist/cjs/src/btcalpha.js +1 -1
- package/dist/cjs/src/btcbox.js +1 -1
- package/dist/cjs/src/btcmarkets.js +1 -1
- package/dist/cjs/src/btcturk.js +1 -1
- package/dist/cjs/src/bybit.js +1 -1
- package/dist/cjs/src/cex.js +1 -1
- package/dist/cjs/src/coinbaseadvanced.js +1 -1
- package/dist/cjs/src/coincatch.js +1 -1
- 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 +1 -0
- 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/defx.js +1 -1
- package/dist/cjs/src/delta.js +1 -1
- package/dist/cjs/src/deribit.js +1 -1
- package/dist/cjs/src/derive.js +1 -1
- package/dist/cjs/src/digifinex.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 +153 -152
- package/dist/cjs/src/gateio.js +1 -1
- package/dist/cjs/src/gemini.js +1 -1
- package/dist/cjs/src/hashkey.js +1 -1
- package/dist/cjs/src/hibachi.js +1 -1
- package/dist/cjs/src/hitbtc.js +1 -0
- package/dist/cjs/src/hollaex.js +1 -1
- package/dist/cjs/src/htx.js +2 -1
- package/dist/cjs/src/huobi.js +1 -1
- package/dist/cjs/src/hyperliquid.js +1 -1
- package/dist/cjs/src/independentreserve.js +1 -1
- package/dist/cjs/src/indodax.js +1 -1
- package/dist/cjs/src/kraken.js +1 -1
- package/dist/cjs/src/krakenfutures.js +1 -1
- package/dist/cjs/src/kucoin.js +2 -1
- package/dist/cjs/src/kucoinfutures.js +1 -1
- package/dist/cjs/src/latoken.js +1 -1
- package/dist/cjs/src/lbank.js +1 -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/oceanex.js +1 -1
- package/dist/cjs/src/okx.js +11 -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/phemex.js +6 -3
- package/dist/cjs/src/poloniex.js +4 -1
- 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/backpack.js +1 -1
- package/dist/cjs/src/pro/bequant.js +1 -1
- package/dist/cjs/src/pro/binance.js +1 -1
- 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/bybit.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 +1 -1
- 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/defx.js +1 -1
- package/dist/cjs/src/pro/deribit.js +1 -1
- package/dist/cjs/src/pro/exmo.js +1 -1
- package/dist/cjs/src/pro/gate.js +1 -1
- package/dist/cjs/src/pro/gateio.js +1 -1
- package/dist/cjs/src/pro/gemini.js +1 -1
- 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 +2 -2
- package/dist/cjs/src/pro/krakenfutures.js +1 -1
- package/dist/cjs/src/pro/kucoin.js +1 -1
- package/dist/cjs/src/pro/kucoinfutures.js +1 -1
- package/dist/cjs/src/pro/lbank.js +1 -0
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/mexc.js +1 -1
- 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 +1 -1
- 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/probit.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/probit.js +1 -1
- package/dist/cjs/src/protobuf/mexc/compiled.cjs.js +0 -1
- package/dist/cjs/src/static_dependencies/ethers/abi-coder.js +6 -0
- package/dist/cjs/src/static_dependencies/ethers/address/address.js +1 -1
- package/dist/cjs/src/static_dependencies/ethers/coders/abstract-coder.js +6 -0
- package/dist/cjs/src/static_dependencies/ethers/coders/address.js +1 -0
- package/dist/cjs/src/static_dependencies/ethers/coders/anonymous.js +1 -0
- package/dist/cjs/src/static_dependencies/ethers/coders/array.js +1 -0
- package/dist/cjs/src/static_dependencies/ethers/coders/boolean.js +1 -0
- package/dist/cjs/src/static_dependencies/ethers/coders/bytes.js +1 -0
- package/dist/cjs/src/static_dependencies/ethers/coders/fixed-bytes.js +1 -0
- package/dist/cjs/src/static_dependencies/ethers/coders/null.js +1 -0
- package/dist/cjs/src/static_dependencies/ethers/coders/number.js +1 -0
- package/dist/cjs/src/static_dependencies/ethers/coders/string.js +1 -0
- package/dist/cjs/src/static_dependencies/ethers/coders/tuple.js +1 -0
- package/dist/cjs/src/static_dependencies/ethers/fragments.js +6 -0
- package/dist/cjs/src/static_dependencies/ethers/hash/typed-data.js +6 -0
- package/dist/cjs/src/static_dependencies/ethers/index.js +1 -10
- package/dist/cjs/src/static_dependencies/ethers/interface.js +6 -0
- package/dist/cjs/src/static_dependencies/ethers/typed.js +6 -0
- package/dist/cjs/src/static_dependencies/ethers/utils/base58.js +1 -13
- package/dist/cjs/src/static_dependencies/ethers/utils/data.js +1 -6
- package/dist/cjs/src/static_dependencies/ethers/utils/errors.js +1 -9
- package/dist/cjs/src/static_dependencies/ethers/utils/events.js +6 -0
- package/dist/cjs/src/static_dependencies/ethers/utils/fixednumber.js +6 -0
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +1 -7
- package/dist/cjs/src/static_dependencies/ethers/utils/maths.js +1 -5
- package/dist/cjs/src/static_dependencies/ethers/utils/properties.js +6 -0
- package/dist/cjs/src/static_dependencies/ethers/utils/utf8.js +1 -8
- package/dist/cjs/src/static_dependencies/fflake/browser.js +1 -1
- package/dist/cjs/src/static_dependencies/jsencrypt/JSEncrypt.js +1 -0
- package/dist/cjs/src/static_dependencies/jsencrypt/JSEncryptRSAKey.js +1 -0
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/asn1.js +1 -1
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/base64.js +6 -0
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/hex.js +6 -0
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/int10.js +6 -0
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/base64.js +1 -0
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.js +1 -1
- package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/prng4.js +6 -0
- 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 +6 -0
- 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 +6 -0
- package/dist/cjs/src/static_dependencies/messagepack/msgpack.js +6 -0
- 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 +1 -0
- 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 +6 -0
- 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 +6 -0
- package/dist/cjs/src/static_dependencies/noble-hashes/_sha2.js +1 -0
- package/dist/cjs/src/static_dependencies/noble-hashes/_u64.js +6 -0
- package/dist/cjs/src/static_dependencies/noble-hashes/crypto.js +6 -0
- package/dist/cjs/src/static_dependencies/noble-hashes/hmac.js +1 -0
- package/dist/cjs/src/static_dependencies/noble-hashes/md5.js +1 -0
- package/dist/cjs/src/static_dependencies/noble-hashes/sha1.js +1 -0
- package/dist/cjs/src/static_dependencies/noble-hashes/sha256.js +1 -0
- package/dist/cjs/src/static_dependencies/noble-hashes/sha3.js +1 -0
- package/dist/cjs/src/static_dependencies/noble-hashes/sha512.js +1 -0
- package/dist/cjs/src/static_dependencies/noble-hashes/utils.js +1 -1
- package/dist/cjs/src/static_dependencies/node-fetch/body.js +1 -5
- package/dist/cjs/src/static_dependencies/node-fetch/errors/abort-error.js +1 -0
- package/dist/cjs/src/static_dependencies/node-fetch/errors/base.js +6 -0
- package/dist/cjs/src/static_dependencies/node-fetch/errors/fetch-error.js +1 -0
- package/dist/cjs/src/static_dependencies/node-fetch/headers.js +1 -5
- package/dist/cjs/src/static_dependencies/node-fetch/index.js +1 -7
- package/dist/cjs/src/static_dependencies/node-fetch/request.js +1 -7
- package/dist/cjs/src/static_dependencies/node-fetch/response.js +1 -5
- package/dist/cjs/src/static_dependencies/node-fetch/utils/get-search.js +6 -0
- package/dist/cjs/src/static_dependencies/node-fetch/utils/is-redirect.js +6 -0
- package/dist/cjs/src/static_dependencies/node-fetch/utils/is.js +6 -0
- package/dist/cjs/src/static_dependencies/node-fetch/utils/referrer.js +1 -0
- package/dist/cjs/src/static_dependencies/proxies/agent-base/index.js +1 -0
- package/dist/cjs/src/static_dependencies/proxies/http-proxy-agent/index.js +1 -0
- package/dist/cjs/src/static_dependencies/proxies/https-proxy-agent/index.js +1 -0
- package/dist/cjs/src/static_dependencies/proxies/https-proxy-agent/parse-proxy-response.js +6 -0
- package/dist/cjs/src/static_dependencies/qs/formats.js +6 -0
- package/dist/cjs/src/static_dependencies/qs/index.js +1 -0
- package/dist/cjs/src/static_dependencies/qs/parse.js +1 -0
- package/dist/cjs/src/static_dependencies/qs/stringify.js +1 -0
- package/dist/cjs/src/static_dependencies/qs/utils.js +6 -0
- package/dist/cjs/src/static_dependencies/scure-base/index.js +6 -0
- 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 +6 -0
- package/dist/cjs/src/static_dependencies/starknet/types/lib/contract/abi.js +6 -0
- package/dist/cjs/src/static_dependencies/starknet/types/lib/contract/index.js +6 -0
- package/dist/cjs/src/static_dependencies/starknet/types/lib/index.js +6 -0
- package/dist/cjs/src/static_dependencies/starknet/types/typedData.js +6 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/assert.js +6 -0
- 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 +1 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/cairo.js +1 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/enum/CairoCustomEnum.js +6 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/enum/CairoOption.js +6 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/enum/CairoResult.js +6 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/formatter.js +1 -0
- 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 +1 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/parser/parser-0-1.1.0.js +1 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/parser/parser-2.0.0.js +6 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/propertyOrder.js +1 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/requestParser.js +1 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/responseParser.js +1 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/tuple.js +1 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/calldata/validate.js +1 -4
- package/dist/cjs/src/static_dependencies/starknet/utils/encode.js +1 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/hash/classHash.js +1 -3
- package/dist/cjs/src/static_dependencies/starknet/utils/merkle.js +1 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/num.js +1 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/selector.js +1 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/shortString.js +1 -0
- package/dist/cjs/src/static_dependencies/starknet/utils/typedData.js +1 -1
- package/dist/cjs/src/static_dependencies/watchable/src/unpromise.js +6 -0
- package/dist/cjs/src/static_dependencies/zklink/zklink-sdk-web.js +6 -0
- package/dist/cjs/src/timex.js +1 -0
- 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 +1 -1
- 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/zonda.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +7 -1
- package/js/src/abstract/alpaca.js +6 -0
- package/js/src/abstract/apex.js +6 -0
- package/js/src/abstract/arkham.js +6 -0
- package/js/src/abstract/ascendex.js +6 -0
- package/js/src/abstract/backpack.js +6 -0
- package/js/src/abstract/bequant.js +6 -0
- package/js/src/abstract/bigone.js +6 -0
- package/js/src/abstract/binance.js +6 -0
- package/js/src/abstract/binancecoinm.js +6 -0
- package/js/src/abstract/binanceus.js +6 -0
- package/js/src/abstract/binanceusdm.js +6 -0
- package/js/src/abstract/bingx.d.ts +17 -0
- package/js/src/abstract/bingx.js +6 -0
- package/js/src/abstract/bit2c.js +6 -0
- package/js/src/abstract/bitbank.js +6 -0
- package/js/src/abstract/bitbns.js +6 -0
- package/js/src/abstract/bitfinex.js +6 -0
- package/js/src/abstract/bitflyer.js +6 -0
- package/js/src/abstract/bitget.js +6 -0
- package/js/src/abstract/bithumb.js +6 -0
- package/js/src/abstract/bitmart.js +6 -0
- package/js/src/abstract/bitmex.js +6 -0
- package/js/src/abstract/bitopro.js +6 -0
- package/js/src/abstract/bitrue.js +6 -0
- package/js/src/abstract/bitso.js +6 -0
- package/js/src/abstract/bitstamp.js +6 -0
- package/js/src/abstract/bitteam.js +6 -0
- package/js/src/abstract/bittrade.js +6 -0
- package/js/src/abstract/bitvavo.js +6 -0
- package/js/src/abstract/blockchaincom.js +6 -0
- package/js/src/abstract/blofin.js +6 -0
- package/js/src/abstract/btcalpha.js +6 -0
- package/js/src/abstract/btcbox.js +6 -0
- package/js/src/abstract/btcmarkets.js +6 -0
- package/js/src/abstract/btcturk.js +6 -0
- package/js/src/abstract/bybit.js +6 -0
- package/js/src/abstract/cex.js +6 -0
- package/js/src/abstract/coinbase.js +6 -0
- package/js/src/abstract/coinbaseadvanced.js +6 -0
- package/js/src/abstract/coinbaseexchange.js +6 -0
- package/js/src/abstract/coinbaseinternational.js +6 -0
- package/js/src/abstract/coincatch.js +6 -0
- package/js/src/abstract/coincheck.js +6 -0
- package/js/src/abstract/coinex.js +6 -0
- package/js/src/abstract/coinmate.js +6 -0
- package/js/src/abstract/coinmetro.js +6 -0
- package/js/src/abstract/coinone.js +6 -0
- package/js/src/abstract/coinsph.js +6 -0
- package/js/src/abstract/coinspot.js +6 -0
- package/js/src/abstract/cryptocom.js +6 -0
- package/js/src/abstract/cryptomus.js +6 -0
- package/js/src/abstract/defx.js +6 -0
- package/js/src/abstract/delta.js +6 -0
- package/js/src/abstract/deribit.js +6 -0
- package/js/src/abstract/derive.js +6 -0
- package/js/src/abstract/digifinex.js +6 -0
- package/js/src/abstract/exmo.js +6 -0
- package/js/src/abstract/fmfwio.js +6 -0
- package/js/src/abstract/foxbit.js +6 -0
- package/js/src/abstract/gate.js +6 -0
- package/js/src/abstract/gateio.js +6 -0
- package/js/src/abstract/gemini.js +6 -0
- package/js/src/abstract/hashkey.js +6 -0
- package/js/src/abstract/hibachi.js +6 -0
- package/js/src/abstract/hitbtc.js +6 -0
- package/js/src/abstract/hollaex.js +6 -0
- package/js/src/abstract/htx.js +6 -0
- package/js/src/abstract/huobi.js +6 -0
- package/js/src/abstract/hyperliquid.js +6 -0
- package/js/src/abstract/independentreserve.js +6 -0
- package/js/src/abstract/indodax.js +6 -0
- package/js/src/abstract/kraken.js +6 -0
- package/js/src/abstract/krakenfutures.js +6 -0
- package/js/src/abstract/kucoin.js +6 -0
- package/js/src/abstract/kucoinfutures.js +6 -0
- package/js/src/abstract/latoken.js +6 -0
- package/js/src/abstract/lbank.js +6 -0
- package/js/src/abstract/luno.js +6 -0
- package/js/src/abstract/mercado.js +6 -0
- package/js/src/abstract/mexc.js +6 -0
- package/js/src/abstract/modetrade.js +6 -0
- package/js/src/abstract/myokx.js +6 -0
- package/js/src/abstract/ndax.js +6 -0
- package/js/src/abstract/novadax.js +6 -0
- package/js/src/abstract/oceanex.js +6 -0
- package/js/src/abstract/okx.js +6 -0
- package/js/src/abstract/okxus.js +6 -0
- package/js/src/abstract/onetrading.js +6 -0
- package/js/src/abstract/oxfun.js +6 -0
- package/js/src/abstract/p2b.js +6 -0
- package/js/src/abstract/paradex.js +6 -0
- package/js/src/abstract/paymium.js +6 -0
- package/js/src/abstract/phemex.js +6 -0
- package/js/src/abstract/poloniex.js +6 -0
- package/js/src/abstract/probit.js +6 -0
- package/js/src/abstract/timex.js +6 -0
- package/js/src/abstract/tokocrypto.js +6 -0
- package/js/src/abstract/toobit.js +6 -0
- package/js/src/abstract/upbit.js +6 -0
- package/js/src/abstract/wavesexchange.js +6 -0
- package/js/src/abstract/whitebit.js +6 -0
- package/js/src/abstract/woo.js +6 -0
- package/js/src/abstract/woofipro.js +6 -0
- package/js/src/abstract/xt.js +6 -0
- package/js/src/abstract/yobit.js +6 -0
- package/js/src/abstract/zaif.js +6 -0
- package/js/src/abstract/zonda.js +6 -0
- package/js/src/alpaca.js +6 -0
- package/js/src/apex.js +6 -0
- package/js/src/arkham.js +6 -0
- package/js/src/ascendex.js +7 -0
- package/js/src/backpack.d.ts +1 -1
- package/js/src/backpack.js +13 -2
- package/js/src/base/Exchange.js +6 -0
- package/js/src/base/Precise.js +6 -0
- package/js/src/base/errorHierarchy.js +6 -0
- package/js/src/base/errors.js +6 -0
- package/js/src/base/functions/crypto.js +6 -0
- package/js/src/base/functions/encode.js +6 -0
- package/js/src/base/functions/generic.js +6 -0
- package/js/src/base/functions/misc.js +6 -0
- package/js/src/base/functions/number.js +6 -0
- package/js/src/base/functions/platform.js +6 -0
- package/js/src/base/functions/rsa.js +6 -0
- package/js/src/base/functions/string.js +6 -0
- package/js/src/base/functions/throttle.js +6 -0
- package/js/src/base/functions/time.js +6 -0
- package/js/src/base/functions/totp.js +6 -0
- package/js/src/base/functions/type.js +6 -0
- package/js/src/base/functions.js +6 -0
- package/js/src/base/types.d.ts +2 -0
- package/js/src/base/types.js +6 -0
- package/js/src/base/ws/Cache.js +6 -0
- package/js/src/base/ws/Client.js +6 -0
- package/js/src/base/ws/Future.js +6 -0
- package/js/src/base/ws/OrderBook.js +6 -0
- package/js/src/base/ws/OrderBookSide.js +6 -0
- package/js/src/base/ws/WsClient.js +6 -0
- package/js/src/base/ws/functions.js +6 -0
- package/js/src/bequant.js +6 -0
- package/js/src/bigone.js +6 -0
- package/js/src/binance.js +9 -0
- package/js/src/binancecoinm.js +6 -0
- package/js/src/binanceus.js +6 -0
- package/js/src/binanceusdm.js +6 -0
- package/js/src/bingx.d.ts +2 -2
- package/js/src/bingx.js +79 -46
- package/js/src/bit2c.js +6 -0
- package/js/src/bitbank.js +6 -0
- package/js/src/bitbns.js +6 -0
- package/js/src/bitfinex.js +6 -0
- package/js/src/bitflyer.js +6 -0
- package/js/src/bitget.js +25 -6
- package/js/src/bithumb.js +6 -0
- package/js/src/bitmart.js +6 -0
- package/js/src/bitmex.js +6 -0
- package/js/src/bitopro.js +6 -0
- package/js/src/bitrue.js +6 -0
- package/js/src/bitso.js +6 -0
- package/js/src/bitstamp.js +6 -0
- package/js/src/bitteam.js +6 -0
- package/js/src/bittrade.js +6 -0
- package/js/src/bitvavo.js +6 -0
- package/js/src/blockchaincom.js +6 -0
- package/js/src/blofin.js +6 -0
- package/js/src/btcalpha.js +6 -0
- package/js/src/btcbox.js +6 -0
- package/js/src/btcmarkets.js +6 -0
- package/js/src/btcturk.js +6 -0
- package/js/src/bybit.js +6 -0
- package/js/src/cex.js +6 -0
- package/js/src/coinbase.js +6 -0
- package/js/src/coinbaseadvanced.js +6 -0
- package/js/src/coinbaseexchange.js +6 -0
- package/js/src/coinbaseinternational.js +6 -0
- package/js/src/coincatch.js +6 -0
- package/js/src/coincheck.js +6 -0
- package/js/src/coinex.js +6 -0
- package/js/src/coinmate.js +6 -0
- package/js/src/coinmetro.js +6 -0
- package/js/src/coinone.js +6 -0
- package/js/src/coinsph.js +6 -0
- package/js/src/coinspot.js +6 -0
- package/js/src/cryptocom.js +6 -0
- package/js/src/cryptomus.js +6 -0
- package/js/src/defx.js +6 -0
- package/js/src/delta.js +6 -0
- package/js/src/deribit.js +6 -0
- package/js/src/derive.js +6 -0
- package/js/src/digifinex.js +6 -0
- package/js/src/exmo.js +6 -0
- package/js/src/fmfwio.js +6 -0
- package/js/src/foxbit.js +6 -0
- package/js/src/gate.d.ts +140 -140
- package/js/src/gate.js +158 -151
- package/js/src/gateio.js +6 -0
- package/js/src/gemini.js +6 -0
- package/js/src/hashkey.js +6 -0
- package/js/src/hibachi.js +6 -0
- package/js/src/hitbtc.js +6 -0
- package/js/src/hollaex.js +6 -0
- package/js/src/htx.js +7 -0
- package/js/src/huobi.js +6 -0
- package/js/src/hyperliquid.js +6 -0
- package/js/src/independentreserve.js +6 -0
- package/js/src/indodax.js +6 -0
- package/js/src/kraken.js +6 -0
- package/js/src/krakenfutures.js +6 -0
- package/js/src/kucoin.js +7 -0
- package/js/src/kucoinfutures.js +6 -0
- package/js/src/latoken.js +6 -0
- package/js/src/lbank.js +6 -0
- package/js/src/luno.js +6 -0
- package/js/src/mercado.js +6 -0
- package/js/src/mexc.js +6 -0
- package/js/src/modetrade.js +6 -0
- package/js/src/myokx.js +6 -0
- package/js/src/ndax.js +6 -0
- package/js/src/novadax.js +6 -0
- package/js/src/oceanex.js +6 -0
- package/js/src/okx.js +16 -0
- package/js/src/okxus.js +6 -0
- package/js/src/onetrading.js +6 -0
- package/js/src/oxfun.js +6 -0
- package/js/src/p2b.js +6 -0
- package/js/src/paradex.js +6 -0
- package/js/src/paymium.js +6 -0
- package/js/src/phemex.js +12 -3
- package/js/src/poloniex.js +9 -0
- package/js/src/pro/alpaca.js +6 -0
- package/js/src/pro/apex.js +6 -0
- package/js/src/pro/arkham.js +6 -0
- package/js/src/pro/ascendex.js +6 -0
- package/js/src/pro/backpack.js +6 -0
- package/js/src/pro/bequant.js +6 -0
- package/js/src/pro/binance.js +7 -1
- package/js/src/pro/binancecoinm.js +6 -0
- package/js/src/pro/binanceus.js +6 -0
- package/js/src/pro/binanceusdm.js +6 -0
- package/js/src/pro/bingx.js +6 -0
- package/js/src/pro/bitfinex.js +6 -0
- package/js/src/pro/bitget.js +6 -0
- package/js/src/pro/bithumb.js +6 -0
- package/js/src/pro/bitmart.js +6 -0
- package/js/src/pro/bitmex.js +6 -0
- package/js/src/pro/bitopro.js +6 -0
- package/js/src/pro/bitrue.js +6 -0
- package/js/src/pro/bitstamp.js +6 -0
- package/js/src/pro/bittrade.js +6 -0
- package/js/src/pro/bitvavo.js +6 -0
- package/js/src/pro/blockchaincom.js +6 -0
- package/js/src/pro/blofin.js +6 -0
- package/js/src/pro/bybit.js +6 -0
- package/js/src/pro/cex.js +6 -0
- package/js/src/pro/coinbase.js +6 -0
- package/js/src/pro/coinbaseadvanced.js +6 -0
- package/js/src/pro/coinbaseexchange.js +6 -0
- package/js/src/pro/coinbaseinternational.js +6 -0
- package/js/src/pro/coincatch.js +6 -0
- package/js/src/pro/coincheck.js +6 -0
- package/js/src/pro/coinex.js +6 -0
- package/js/src/pro/coinone.js +6 -0
- package/js/src/pro/cryptocom.js +6 -0
- package/js/src/pro/defx.js +6 -0
- package/js/src/pro/deribit.js +6 -0
- package/js/src/pro/derive.js +6 -0
- package/js/src/pro/exmo.js +6 -0
- package/js/src/pro/gate.js +6 -0
- package/js/src/pro/gateio.js +6 -0
- package/js/src/pro/gemini.js +6 -0
- package/js/src/pro/hashkey.js +6 -0
- package/js/src/pro/hitbtc.js +6 -0
- package/js/src/pro/hollaex.js +6 -0
- package/js/src/pro/htx.js +6 -0
- package/js/src/pro/huobi.js +6 -0
- package/js/src/pro/hyperliquid.js +6 -0
- package/js/src/pro/independentreserve.js +6 -0
- package/js/src/pro/kraken.d.ts +1 -1
- package/js/src/pro/kraken.js +7 -1
- package/js/src/pro/krakenfutures.js +6 -0
- package/js/src/pro/kucoin.js +6 -0
- package/js/src/pro/kucoinfutures.js +6 -0
- package/js/src/pro/lbank.js +6 -0
- package/js/src/pro/luno.js +6 -0
- package/js/src/pro/mexc.js +6 -0
- package/js/src/pro/modetrade.js +6 -0
- package/js/src/pro/myokx.js +6 -0
- package/js/src/pro/ndax.js +6 -0
- package/js/src/pro/okx.js +6 -0
- package/js/src/pro/okxus.js +6 -0
- package/js/src/pro/onetrading.js +6 -0
- package/js/src/pro/oxfun.js +6 -0
- package/js/src/pro/p2b.js +6 -0
- package/js/src/pro/paradex.js +6 -0
- package/js/src/pro/phemex.js +6 -0
- package/js/src/pro/poloniex.js +6 -0
- package/js/src/pro/probit.js +6 -0
- package/js/src/pro/toobit.js +6 -0
- package/js/src/pro/upbit.js +6 -0
- package/js/src/pro/whitebit.js +6 -0
- package/js/src/pro/woo.js +6 -0
- package/js/src/pro/woofipro.js +6 -0
- package/js/src/pro/xt.js +6 -0
- package/js/src/probit.js +6 -0
- package/js/src/protobuf/mexc/compiled.cjs +6 -0
- package/js/src/static_dependencies/ethers/abi-coder.js +6 -0
- package/js/src/static_dependencies/ethers/address/address.js +6 -0
- package/js/src/static_dependencies/ethers/address/checks.js +6 -0
- package/js/src/static_dependencies/ethers/address/contract-address.js +6 -0
- package/js/src/static_dependencies/ethers/address/index.js +6 -0
- package/js/src/static_dependencies/ethers/bytes32.js +6 -0
- package/js/src/static_dependencies/ethers/coders/abstract-coder.js +6 -0
- package/js/src/static_dependencies/ethers/coders/address.js +6 -0
- package/js/src/static_dependencies/ethers/coders/anonymous.js +6 -0
- package/js/src/static_dependencies/ethers/coders/array.js +6 -0
- package/js/src/static_dependencies/ethers/coders/boolean.js +6 -0
- package/js/src/static_dependencies/ethers/coders/bytes.js +6 -0
- package/js/src/static_dependencies/ethers/coders/fixed-bytes.js +6 -0
- package/js/src/static_dependencies/ethers/coders/null.js +6 -0
- package/js/src/static_dependencies/ethers/coders/number.js +6 -0
- package/js/src/static_dependencies/ethers/coders/string.js +6 -0
- package/js/src/static_dependencies/ethers/coders/tuple.js +6 -0
- package/js/src/static_dependencies/ethers/fragments.js +6 -0
- package/js/src/static_dependencies/ethers/hash/index.js +6 -0
- package/js/src/static_dependencies/ethers/hash/solidity.js +6 -0
- package/js/src/static_dependencies/ethers/hash/typed-data.js +6 -0
- package/js/src/static_dependencies/ethers/index.js +6 -0
- package/js/src/static_dependencies/ethers/interface.js +6 -0
- package/js/src/static_dependencies/ethers/typed.js +6 -0
- package/js/src/static_dependencies/ethers/utils/base58.js +6 -0
- package/js/src/static_dependencies/ethers/utils/base64-browser.js +6 -0
- package/js/src/static_dependencies/ethers/utils/base64.js +6 -0
- package/js/src/static_dependencies/ethers/utils/data.js +6 -0
- package/js/src/static_dependencies/ethers/utils/errors.js +6 -0
- package/js/src/static_dependencies/ethers/utils/events.js +6 -0
- package/js/src/static_dependencies/ethers/utils/fixednumber.js +6 -0
- package/js/src/static_dependencies/ethers/utils/index.js +6 -0
- package/js/src/static_dependencies/ethers/utils/maths.js +6 -0
- package/js/src/static_dependencies/ethers/utils/properties.js +6 -0
- package/js/src/static_dependencies/ethers/utils/rlp-decode.js +6 -0
- package/js/src/static_dependencies/ethers/utils/rlp-encode.js +6 -0
- package/js/src/static_dependencies/ethers/utils/rlp.js +6 -0
- package/js/src/static_dependencies/ethers/utils/units.js +6 -0
- package/js/src/static_dependencies/ethers/utils/utf8.js +6 -0
- package/js/src/static_dependencies/ethers/utils/uuid.js +6 -0
- package/js/src/static_dependencies/fflake/browser.js +6 -0
- package/js/src/static_dependencies/jsencrypt/JSEncrypt.js +6 -0
- package/js/src/static_dependencies/jsencrypt/JSEncryptRSAKey.js +6 -0
- package/js/src/static_dependencies/jsencrypt/index.js +6 -0
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/asn1.js +6 -0
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/base64.js +6 -0
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/hex.js +6 -0
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/int10.js +6 -0
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/oids.js +6 -0
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/base64.js +6 -0
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.js +6 -0
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/prng4.js +6 -0
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/rng.js +6 -0
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/rsa.js +6 -0
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/util.js +6 -0
- package/js/src/static_dependencies/jsencrypt/lib/jsrsasign/asn1-1.0.js +6 -0
- package/js/src/static_dependencies/jsencrypt/lib/jsrsasign/yahoo.js +6 -0
- package/js/src/static_dependencies/messagepack/msgpack.js +6 -0
- package/js/src/static_dependencies/noble-curves/_shortw_utils.js +6 -0
- package/js/src/static_dependencies/noble-curves/abstract/curve.js +6 -0
- package/js/src/static_dependencies/noble-curves/abstract/edwards.js +6 -0
- package/js/src/static_dependencies/noble-curves/abstract/hash-to-curve.js +6 -0
- package/js/src/static_dependencies/noble-curves/abstract/modular.js +6 -0
- package/js/src/static_dependencies/noble-curves/abstract/montgomery.js +6 -0
- package/js/src/static_dependencies/noble-curves/abstract/poseidon.js +6 -0
- package/js/src/static_dependencies/noble-curves/abstract/utils.js +6 -0
- package/js/src/static_dependencies/noble-curves/abstract/weierstrass.js +6 -0
- package/js/src/static_dependencies/noble-curves/bn.js +6 -0
- package/js/src/static_dependencies/noble-curves/ed25519.js +6 -0
- package/js/src/static_dependencies/noble-curves/ed448.js +6 -0
- package/js/src/static_dependencies/noble-curves/index.js +6 -0
- package/js/src/static_dependencies/noble-curves/jubjub.js +6 -0
- package/js/src/static_dependencies/noble-curves/p256.js +6 -0
- package/js/src/static_dependencies/noble-curves/p384.js +6 -0
- package/js/src/static_dependencies/noble-curves/p521.js +6 -0
- package/js/src/static_dependencies/noble-curves/pasta.js +6 -0
- package/js/src/static_dependencies/noble-curves/secp256k1.js +6 -0
- package/js/src/static_dependencies/noble-hashes/_assert.js +6 -0
- package/js/src/static_dependencies/noble-hashes/_blake2.js +6 -0
- package/js/src/static_dependencies/noble-hashes/_sha2.js +6 -0
- package/js/src/static_dependencies/noble-hashes/_u64.js +6 -0
- package/js/src/static_dependencies/noble-hashes/argon2.js +6 -0
- package/js/src/static_dependencies/noble-hashes/blake2b.js +6 -0
- package/js/src/static_dependencies/noble-hashes/blake2s.js +6 -0
- package/js/src/static_dependencies/noble-hashes/blake3.js +6 -0
- package/js/src/static_dependencies/noble-hashes/crypto.js +6 -0
- package/js/src/static_dependencies/noble-hashes/cryptoNode.js +6 -0
- package/js/src/static_dependencies/noble-hashes/eskdf.js +6 -0
- package/js/src/static_dependencies/noble-hashes/hkdf.js +6 -0
- package/js/src/static_dependencies/noble-hashes/hmac.js +6 -0
- package/js/src/static_dependencies/noble-hashes/index.js +6 -0
- package/js/src/static_dependencies/noble-hashes/md5.js +6 -0
- package/js/src/static_dependencies/noble-hashes/pbkdf2.js +6 -0
- package/js/src/static_dependencies/noble-hashes/ripemd160.js +6 -0
- package/js/src/static_dependencies/noble-hashes/scrypt.js +6 -0
- package/js/src/static_dependencies/noble-hashes/sha1.js +6 -0
- package/js/src/static_dependencies/noble-hashes/sha256.js +6 -0
- package/js/src/static_dependencies/noble-hashes/sha3-addons.js +6 -0
- package/js/src/static_dependencies/noble-hashes/sha3.js +6 -0
- package/js/src/static_dependencies/noble-hashes/sha512.js +6 -0
- package/js/src/static_dependencies/noble-hashes/utils.js +6 -0
- package/js/src/static_dependencies/node-fetch/body.js +6 -0
- package/js/src/static_dependencies/node-fetch/errors/abort-error.js +6 -0
- package/js/src/static_dependencies/node-fetch/errors/base.js +6 -0
- package/js/src/static_dependencies/node-fetch/errors/fetch-error.js +6 -0
- package/js/src/static_dependencies/node-fetch/headers.js +6 -0
- package/js/src/static_dependencies/node-fetch/index.js +6 -0
- package/js/src/static_dependencies/node-fetch/request.js +6 -0
- package/js/src/static_dependencies/node-fetch/response.js +6 -0
- package/js/src/static_dependencies/node-fetch/utils/get-search.js +6 -0
- package/js/src/static_dependencies/node-fetch/utils/is-redirect.js +6 -0
- package/js/src/static_dependencies/node-fetch/utils/is.js +6 -0
- package/js/src/static_dependencies/node-fetch/utils/referrer.js +6 -0
- package/js/src/static_dependencies/proxies/agent-base/helpers.js +6 -0
- package/js/src/static_dependencies/proxies/agent-base/index.js +6 -0
- package/js/src/static_dependencies/proxies/http-proxy-agent/index.js +6 -0
- package/js/src/static_dependencies/proxies/https-proxy-agent/index.js +6 -0
- package/js/src/static_dependencies/proxies/https-proxy-agent/parse-proxy-response.js +6 -0
- package/js/src/static_dependencies/qs/formats.js +6 -0
- package/js/src/static_dependencies/qs/index.js +6 -0
- package/js/src/static_dependencies/qs/parse.js +6 -0
- package/js/src/static_dependencies/qs/stringify.js +6 -0
- package/js/src/static_dependencies/qs/utils.js +6 -0
- package/js/src/static_dependencies/scure-base/index.js +6 -0
- package/js/src/static_dependencies/scure-starknet/index.js +6 -0
- package/js/src/static_dependencies/starknet/constants.js +6 -0
- package/js/src/static_dependencies/starknet/index.js +6 -0
- package/js/src/static_dependencies/starknet/types/cairoEnum.js +6 -0
- package/js/src/static_dependencies/starknet/types/calldata.js +6 -0
- package/js/src/static_dependencies/starknet/types/index.js +6 -0
- package/js/src/static_dependencies/starknet/types/lib/contract/abi.js +6 -0
- package/js/src/static_dependencies/starknet/types/lib/contract/index.js +6 -0
- package/js/src/static_dependencies/starknet/types/lib/contract/legacy.js +6 -0
- package/js/src/static_dependencies/starknet/types/lib/contract/sierra.js +6 -0
- package/js/src/static_dependencies/starknet/types/lib/index.js +6 -0
- package/js/src/static_dependencies/starknet/types/typedData.js +6 -0
- package/js/src/static_dependencies/starknet/utils/address.js +6 -0
- package/js/src/static_dependencies/starknet/utils/assert.js +6 -0
- package/js/src/static_dependencies/starknet/utils/cairoDataTypes/felt.js +6 -0
- package/js/src/static_dependencies/starknet/utils/cairoDataTypes/uint256.js +6 -0
- package/js/src/static_dependencies/starknet/utils/cairoDataTypes/uint512.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/byteArray.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/cairo.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/enum/CairoCustomEnum.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/enum/CairoOption.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/enum/CairoResult.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/enum/index.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/formatter.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/index.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/parser/index.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/parser/interface.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/parser/parser-0-1.1.0.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/parser/parser-2.0.0.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/propertyOrder.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/requestParser.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/responseParser.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/tuple.js +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/validate.js +6 -0
- package/js/src/static_dependencies/starknet/utils/encode.js +6 -0
- package/js/src/static_dependencies/starknet/utils/hash/classHash.js +6 -0
- package/js/src/static_dependencies/starknet/utils/hash/index.js +6 -0
- package/js/src/static_dependencies/starknet/utils/merkle.js +6 -0
- package/js/src/static_dependencies/starknet/utils/num.js +6 -0
- package/js/src/static_dependencies/starknet/utils/selector.js +6 -0
- package/js/src/static_dependencies/starknet/utils/shortString.js +6 -0
- package/js/src/static_dependencies/starknet/utils/starknetId.js +6 -0
- package/js/src/static_dependencies/starknet/utils/typedData.js +6 -0
- package/js/src/static_dependencies/starknet/utils/uint256.js +6 -0
- package/js/src/static_dependencies/starknet/utils/url.js +6 -0
- package/js/src/static_dependencies/watchable/src/index.js +6 -0
- package/js/src/static_dependencies/watchable/src/types.js +6 -0
- package/js/src/static_dependencies/watchable/src/unpromise.js +6 -0
- package/js/src/static_dependencies/zklink/zklink-sdk-web.js +6 -0
- package/js/src/timex.js +6 -0
- package/js/src/tokocrypto.js +6 -0
- package/js/src/toobit.js +6 -0
- package/js/src/upbit.js +6 -0
- package/js/src/wavesexchange.js +6 -0
- package/js/src/whitebit.js +6 -0
- package/js/src/woo.js +6 -0
- package/js/src/woofipro.js +6 -0
- package/js/src/xt.js +6 -0
- package/js/src/yobit.js +6 -0
- package/js/src/zaif.js +6 -0
- package/js/src/zonda.js +6 -0
- package/package.json +1 -1
package/js/src/gate.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
// ----------------------------------------------------------------------------
|
|
2
|
+
|
|
3
|
+
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
+
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
+
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
+
|
|
1
7
|
// ---------------------------------------------------------------------------
|
|
2
8
|
import Exchange from './abstract/gate.js';
|
|
3
9
|
import { Precise } from './base/Precise.js';
|
|
@@ -12,7 +18,7 @@ export default class gate extends Exchange {
|
|
|
12
18
|
describe() {
|
|
13
19
|
return this.deepExtend(super.describe(), {
|
|
14
20
|
'id': 'gate',
|
|
15
|
-
'name': 'Gate
|
|
21
|
+
'name': 'Gate',
|
|
16
22
|
'countries': ['KR'],
|
|
17
23
|
'rateLimit': 50,
|
|
18
24
|
'version': 'v4',
|
|
@@ -20,8 +26,8 @@ export default class gate extends Exchange {
|
|
|
20
26
|
'pro': true,
|
|
21
27
|
'urls': {
|
|
22
28
|
'logo': 'https://github.com/user-attachments/assets/64f988c5-07b6-4652-b5c1-679a6bf67c85',
|
|
23
|
-
'doc': 'https://www.gate.
|
|
24
|
-
'www': 'https://gate.
|
|
29
|
+
'doc': 'https://www.gate.com/docs/developers/apiv4/en/',
|
|
30
|
+
'www': 'https://gate.com',
|
|
25
31
|
'api': {
|
|
26
32
|
'public': {
|
|
27
33
|
'wallet': 'https://api.gateio.ws/api/v4',
|
|
@@ -72,7 +78,7 @@ export default class gate extends Exchange {
|
|
|
72
78
|
},
|
|
73
79
|
},
|
|
74
80
|
'referral': {
|
|
75
|
-
'url': 'https://www.gate.
|
|
81
|
+
'url': 'https://www.gate.com/share/CCXTGATE',
|
|
76
82
|
'discount': 0.2,
|
|
77
83
|
},
|
|
78
84
|
},
|
|
@@ -1030,7 +1036,7 @@ export default class gate extends Exchange {
|
|
|
1030
1036
|
},
|
|
1031
1037
|
},
|
|
1032
1038
|
},
|
|
1033
|
-
// https://www.gate.
|
|
1039
|
+
// https://www.gate.com/docs/developers/apiv4/en/#label-list
|
|
1034
1040
|
'exceptions': {
|
|
1035
1041
|
'exact': {
|
|
1036
1042
|
'INVALID_PARAM_VALUE': BadRequest,
|
|
@@ -1143,7 +1149,7 @@ export default class gate extends Exchange {
|
|
|
1143
1149
|
* @name gate#loadUnifiedStatus
|
|
1144
1150
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1145
1151
|
* @description returns unifiedAccount so the user can check if the unified account is enabled
|
|
1146
|
-
* @see https://www.gate.
|
|
1152
|
+
* @see https://www.gate.com/docs/developers/apiv4/#get-account-detail
|
|
1147
1153
|
* @returns {boolean} true or false if the enabled unified account is enabled or not and sets the unifiedAccount option if it is undefined
|
|
1148
1154
|
*/
|
|
1149
1155
|
async loadUnifiedStatus(params = {}) {
|
|
@@ -1181,7 +1187,7 @@ export default class gate extends Exchange {
|
|
|
1181
1187
|
* @method
|
|
1182
1188
|
* @name gate#fetchTime
|
|
1183
1189
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
1184
|
-
* @see https://www.gate.
|
|
1190
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-server-current-time
|
|
1185
1191
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1186
1192
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
1187
1193
|
*/
|
|
@@ -1271,11 +1277,11 @@ export default class gate extends Exchange {
|
|
|
1271
1277
|
* @method
|
|
1272
1278
|
* @name gate#fetchMarkets
|
|
1273
1279
|
* @description retrieves data on all markets for gate
|
|
1274
|
-
* @see https://www.gate.
|
|
1275
|
-
* @see https://www.gate.
|
|
1276
|
-
* @see https://www.gate.
|
|
1277
|
-
* @see https://www.gate.
|
|
1278
|
-
* @see https://www.gate.
|
|
1280
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-currency-pairs-supported // spot
|
|
1281
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-supported-currency-pairs-supported-in-margin-trading // margin
|
|
1282
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-futures-contracts // swap
|
|
1283
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-futures-contracts-2 // future
|
|
1284
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-the-contracts-with-specified-underlying-and-expiration-time // option
|
|
1279
1285
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1280
1286
|
* @returns {object[]} an array of objects representing market data
|
|
1281
1287
|
*/
|
|
@@ -1335,7 +1341,7 @@ export default class gate extends Exchange {
|
|
|
1335
1341
|
// "sell_start": 1607313600,
|
|
1336
1342
|
// "buy_start": 1700492400,
|
|
1337
1343
|
// "type": "normal",
|
|
1338
|
-
// "trade_url": "https://www.gate.
|
|
1344
|
+
// "trade_url": "https://www.gate.com/trade/QTUM_ETH",
|
|
1339
1345
|
// }
|
|
1340
1346
|
//
|
|
1341
1347
|
// Margin
|
|
@@ -1909,7 +1915,7 @@ export default class gate extends Exchange {
|
|
|
1909
1915
|
* @method
|
|
1910
1916
|
* @name gate#fetchCurrencies
|
|
1911
1917
|
* @description fetches all available currencies on an exchange
|
|
1912
|
-
* @see https://www.gate.
|
|
1918
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-currencies-details
|
|
1913
1919
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1914
1920
|
* @returns {object} an associative dictionary of currencies
|
|
1915
1921
|
*/
|
|
@@ -2013,7 +2019,7 @@ export default class gate extends Exchange {
|
|
|
2013
2019
|
* @method
|
|
2014
2020
|
* @name gate#fetchFundingRate
|
|
2015
2021
|
* @description fetch the current funding rate
|
|
2016
|
-
* @see https://www.gate.
|
|
2022
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-a-single-contract
|
|
2017
2023
|
* @param {string} symbol unified market symbol
|
|
2018
2024
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2019
2025
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
@@ -2076,7 +2082,7 @@ export default class gate extends Exchange {
|
|
|
2076
2082
|
* @method
|
|
2077
2083
|
* @name gate#fetchFundingRates
|
|
2078
2084
|
* @description fetch the funding rate for multiple markets
|
|
2079
|
-
* @see https://www.gate.
|
|
2085
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-futures-contracts
|
|
2080
2086
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2081
2087
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2082
2088
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexed by market symbols
|
|
@@ -2284,10 +2290,10 @@ export default class gate extends Exchange {
|
|
|
2284
2290
|
* @method
|
|
2285
2291
|
* @name gate#fetchDepositAddress
|
|
2286
2292
|
* @description fetch the deposit address for a currency associated with this account
|
|
2287
|
-
* @see https://www.gate.
|
|
2293
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#generate-currency-deposit-address
|
|
2288
2294
|
* @param {string} code unified currency code
|
|
2289
2295
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2290
|
-
* @param {string} [params.network] unified network code (not used directly by gate.
|
|
2296
|
+
* @param {string} [params.network] unified network code (not used directly by gate.com but used by ccxt to filter the response)
|
|
2291
2297
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2292
2298
|
*/
|
|
2293
2299
|
async fetchDepositAddress(code, params = {}) {
|
|
@@ -2322,7 +2328,7 @@ export default class gate extends Exchange {
|
|
|
2322
2328
|
* @method
|
|
2323
2329
|
* @name gate#fetchTradingFee
|
|
2324
2330
|
* @description fetch the trading fees for a market
|
|
2325
|
-
* @see https://www.gate.
|
|
2331
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-personal-trading-fee
|
|
2326
2332
|
* @param {string} symbol unified market symbol
|
|
2327
2333
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2328
2334
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
@@ -2354,7 +2360,7 @@ export default class gate extends Exchange {
|
|
|
2354
2360
|
* @method
|
|
2355
2361
|
* @name gate#fetchTradingFees
|
|
2356
2362
|
* @description fetch the trading fees for multiple markets
|
|
2357
|
-
* @see https://www.gate.
|
|
2363
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-personal-trading-fee
|
|
2358
2364
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2359
2365
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
2360
2366
|
*/
|
|
@@ -2421,7 +2427,7 @@ export default class gate extends Exchange {
|
|
|
2421
2427
|
* @name gate#fetchTransactionFees
|
|
2422
2428
|
* @deprecated
|
|
2423
2429
|
* @description please use fetchDepositWithdrawFees instead
|
|
2424
|
-
* @see https://www.gate.
|
|
2430
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-withdrawal-status
|
|
2425
2431
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2426
2432
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2427
2433
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
@@ -2461,10 +2467,11 @@ export default class gate extends Exchange {
|
|
|
2461
2467
|
withdrawFees = this.safeNumber(entry, 'withdraw_fix');
|
|
2462
2468
|
}
|
|
2463
2469
|
else {
|
|
2464
|
-
const
|
|
2465
|
-
for (let j = 0; j <
|
|
2466
|
-
const
|
|
2467
|
-
|
|
2470
|
+
const networkIds = Object.keys(withdrawFixOnChains);
|
|
2471
|
+
for (let j = 0; j < networkIds.length; j++) {
|
|
2472
|
+
const networkId = networkIds[j];
|
|
2473
|
+
const networkCode = this.networkIdToCode(networkId);
|
|
2474
|
+
withdrawFees[networkCode] = this.parseNumber(withdrawFixOnChains[networkId]);
|
|
2468
2475
|
}
|
|
2469
2476
|
}
|
|
2470
2477
|
result[code] = {
|
|
@@ -2479,7 +2486,7 @@ export default class gate extends Exchange {
|
|
|
2479
2486
|
* @method
|
|
2480
2487
|
* @name gate#fetchDepositWithdrawFees
|
|
2481
2488
|
* @description fetch deposit and withdraw fees
|
|
2482
|
-
* @see https://www.gate.
|
|
2489
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-withdrawal-status
|
|
2483
2490
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2484
2491
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2485
2492
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
@@ -2562,8 +2569,8 @@ export default class gate extends Exchange {
|
|
|
2562
2569
|
* @method
|
|
2563
2570
|
* @name gate#fetchFundingHistory
|
|
2564
2571
|
* @description fetch the history of funding payments paid and received on this account
|
|
2565
|
-
* @see https://www.gate.
|
|
2566
|
-
* @see https://www.gate.
|
|
2572
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-account-book-2
|
|
2573
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-account-book-3
|
|
2567
2574
|
* @param {string} symbol unified market symbol
|
|
2568
2575
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
2569
2576
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
@@ -2649,10 +2656,10 @@ export default class gate extends Exchange {
|
|
|
2649
2656
|
* @method
|
|
2650
2657
|
* @name gate#fetchOrderBook
|
|
2651
2658
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
2652
|
-
* @see https://www.gate.
|
|
2653
|
-
* @see https://www.gate.
|
|
2654
|
-
* @see https://www.gate.
|
|
2655
|
-
* @see https://www.gate.
|
|
2659
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-order-book
|
|
2660
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-order-book
|
|
2661
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-order-book-2
|
|
2662
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#options-order-book
|
|
2656
2663
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
2657
2664
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
2658
2665
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -2775,10 +2782,10 @@ export default class gate extends Exchange {
|
|
|
2775
2782
|
* @method
|
|
2776
2783
|
* @name gate#fetchTicker
|
|
2777
2784
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
2778
|
-
* @see https://www.gate.
|
|
2779
|
-
* @see https://www.gate.
|
|
2780
|
-
* @see https://www.gate.
|
|
2781
|
-
* @see https://www.gate.
|
|
2785
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-details-of-a-specifc-order
|
|
2786
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-futures-tickers
|
|
2787
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-futures-tickers-2
|
|
2788
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
2782
2789
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
2783
2790
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2784
2791
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -2939,10 +2946,10 @@ export default class gate extends Exchange {
|
|
|
2939
2946
|
* @method
|
|
2940
2947
|
* @name gate#fetchTickers
|
|
2941
2948
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
2942
|
-
* @see https://www.gate.
|
|
2943
|
-
* @see https://www.gate.
|
|
2944
|
-
* @see https://www.gate.
|
|
2945
|
-
* @see https://www.gate.
|
|
2949
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-details-of-a-specifc-order
|
|
2950
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-futures-tickers
|
|
2951
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-futures-tickers-2
|
|
2952
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
2946
2953
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
2947
2954
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2948
2955
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -3295,10 +3302,10 @@ export default class gate extends Exchange {
|
|
|
3295
3302
|
* @method
|
|
3296
3303
|
* @name gateio#fetchOHLCV
|
|
3297
3304
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
3298
|
-
* @see https://www.gate.
|
|
3299
|
-
* @see https://www.gate.
|
|
3300
|
-
* @see https://www.gate.
|
|
3301
|
-
* @see https://www.gate.
|
|
3305
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#market-candlesticks // spot
|
|
3306
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-futures-candlesticks // swap
|
|
3307
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#market-candlesticks // future
|
|
3308
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-options-candlesticks // option
|
|
3302
3309
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
3303
3310
|
* @param {string} timeframe the length of time each candle represents
|
|
3304
3311
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -3385,7 +3392,7 @@ export default class gate extends Exchange {
|
|
|
3385
3392
|
* @method
|
|
3386
3393
|
* @name gate#fetchFundingRateHistory
|
|
3387
3394
|
* @description fetches historical funding rate prices
|
|
3388
|
-
* @see https://www.gate.
|
|
3395
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#funding-rate-history
|
|
3389
3396
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
3390
3397
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
3391
3398
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
@@ -3494,10 +3501,10 @@ export default class gate extends Exchange {
|
|
|
3494
3501
|
* @method
|
|
3495
3502
|
* @name gate#fetchTrades
|
|
3496
3503
|
* @description get the list of most recent trades for a particular symbol
|
|
3497
|
-
* @see https://www.gate.
|
|
3498
|
-
* @see https://www.gate.
|
|
3499
|
-
* @see https://www.gate.
|
|
3500
|
-
* @see https://www.gate.
|
|
3504
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-market-trades
|
|
3505
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-trading-history
|
|
3506
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-trading-history-2
|
|
3507
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#options-trade-history
|
|
3501
3508
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
3502
3509
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
3503
3510
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -3609,10 +3616,10 @@ export default class gate extends Exchange {
|
|
|
3609
3616
|
* @method
|
|
3610
3617
|
* @name gate#fetchOrderTrades
|
|
3611
3618
|
* @description fetch all the trades made from a single order
|
|
3612
|
-
* @see https://www.gate.
|
|
3613
|
-
* @see https://www.gate.
|
|
3614
|
-
* @see https://www.gate.
|
|
3615
|
-
* @see https://www.gate.
|
|
3619
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history
|
|
3620
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history-2
|
|
3621
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history-3
|
|
3622
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history-4
|
|
3616
3623
|
* @param {string} id order id
|
|
3617
3624
|
* @param {string} symbol unified market symbol
|
|
3618
3625
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -3651,10 +3658,10 @@ export default class gate extends Exchange {
|
|
|
3651
3658
|
* @method
|
|
3652
3659
|
* @name gate#fetchMyTrades
|
|
3653
3660
|
* @description Fetch personal trading history
|
|
3654
|
-
* @see https://www.gate.
|
|
3655
|
-
* @see https://www.gate.
|
|
3656
|
-
* @see https://www.gate.
|
|
3657
|
-
* @see https://www.gate.
|
|
3661
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history
|
|
3662
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history-2
|
|
3663
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history-3
|
|
3664
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history-4
|
|
3658
3665
|
* @param {string} symbol unified market symbol
|
|
3659
3666
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3660
3667
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -3963,7 +3970,7 @@ export default class gate extends Exchange {
|
|
|
3963
3970
|
* @method
|
|
3964
3971
|
* @name gate#fetchDeposits
|
|
3965
3972
|
* @description fetch all deposits made to an account
|
|
3966
|
-
* @see https://www.gate.
|
|
3973
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-deposit-records
|
|
3967
3974
|
* @param {string} code unified currency code
|
|
3968
3975
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
3969
3976
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -4001,7 +4008,7 @@ export default class gate extends Exchange {
|
|
|
4001
4008
|
* @method
|
|
4002
4009
|
* @name gate#fetchWithdrawals
|
|
4003
4010
|
* @description fetch all withdrawals made from an account
|
|
4004
|
-
* @see https://www.gate.
|
|
4011
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-withdrawal-records
|
|
4005
4012
|
* @param {string} code unified currency code
|
|
4006
4013
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
4007
4014
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -4039,7 +4046,7 @@ export default class gate extends Exchange {
|
|
|
4039
4046
|
* @method
|
|
4040
4047
|
* @name gate#withdraw
|
|
4041
4048
|
* @description make a withdrawal
|
|
4042
|
-
* @see https://www.gate.
|
|
4049
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#withdraw
|
|
4043
4050
|
* @param {string} code unified currency code
|
|
4044
4051
|
* @param {float} amount the amount to withdraw
|
|
4045
4052
|
* @param {string} address the address to withdraw to
|
|
@@ -4219,13 +4226,13 @@ export default class gate extends Exchange {
|
|
|
4219
4226
|
* @method
|
|
4220
4227
|
* @name gate#createOrder
|
|
4221
4228
|
* @description Create an order on the exchange
|
|
4222
|
-
* @see https://www.gate.
|
|
4223
|
-
* @see https://www.gate.
|
|
4224
|
-
* @see https://www.gate.
|
|
4225
|
-
* @see https://www.gate.
|
|
4226
|
-
* @see https://www.gate.
|
|
4227
|
-
* @see https://www.gate.
|
|
4228
|
-
* @see https://www.gate.
|
|
4229
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-an-order
|
|
4230
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-a-price-triggered-order
|
|
4231
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-a-futures-order
|
|
4232
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-a-price-triggered-order-2
|
|
4233
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-a-futures-order-2
|
|
4234
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-a-price-triggered-order-3
|
|
4235
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-an-options-order
|
|
4229
4236
|
* @param {string} symbol Unified CCXT market symbol
|
|
4230
4237
|
* @param {string} type 'limit' or 'market' *"market" is contract only*
|
|
4231
4238
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -4381,7 +4388,7 @@ export default class gate extends Exchange {
|
|
|
4381
4388
|
if (triggerValue !== undefined) {
|
|
4382
4389
|
throw new NotSupported(this.id + ' createOrders() does not support advanced order properties (stopPrice, takeProfitPrice, stopLossPrice)');
|
|
4383
4390
|
}
|
|
4384
|
-
extendedParams['textIsRequired'] = true; //
|
|
4391
|
+
extendedParams['textIsRequired'] = true; // the exchange requires a text parameter for each order here
|
|
4385
4392
|
const orderRequest = this.createOrderRequest(marketId, type, side, amount, price, extendedParams);
|
|
4386
4393
|
ordersRequests.push(orderRequest);
|
|
4387
4394
|
}
|
|
@@ -4396,9 +4403,9 @@ export default class gate extends Exchange {
|
|
|
4396
4403
|
* @method
|
|
4397
4404
|
* @name gate#createOrders
|
|
4398
4405
|
* @description create a list of trade orders
|
|
4399
|
-
* @see https://www.gate.
|
|
4400
|
-
* @see https://www.gate.
|
|
4401
|
-
* @see https://www.gate.
|
|
4406
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-a-single-order-2
|
|
4407
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-a-batch-of-orders
|
|
4408
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-a-batch-of-futures-orders
|
|
4402
4409
|
* @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
|
|
4403
4410
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4404
4411
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -4682,7 +4689,7 @@ export default class gate extends Exchange {
|
|
|
4682
4689
|
* @method
|
|
4683
4690
|
* @name gate#createMarketBuyOrderWithCost
|
|
4684
4691
|
* @description create a market buy order by providing the symbol and cost
|
|
4685
|
-
* @see https://www.gate.
|
|
4692
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-an-order
|
|
4686
4693
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
4687
4694
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
4688
4695
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -4746,8 +4753,8 @@ export default class gate extends Exchange {
|
|
|
4746
4753
|
* @method
|
|
4747
4754
|
* @name gate#editOrder
|
|
4748
4755
|
* @description edit a trade order, gate currently only supports the modification of the price or amount fields
|
|
4749
|
-
* @see https://www.gate.
|
|
4750
|
-
* @see https://www.gate.
|
|
4756
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#amend-an-order
|
|
4757
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#amend-an-order-2
|
|
4751
4758
|
* @param {string} id order id
|
|
4752
4759
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
4753
4760
|
* @param {string} type 'market' or 'limit'
|
|
@@ -5107,10 +5114,10 @@ export default class gate extends Exchange {
|
|
|
5107
5114
|
* @method
|
|
5108
5115
|
* @name gate#fetchOrder
|
|
5109
5116
|
* @description Retrieves information on an order
|
|
5110
|
-
* @see https://www.gate.
|
|
5111
|
-
* @see https://www.gate.
|
|
5112
|
-
* @see https://www.gate.
|
|
5113
|
-
* @see https://www.gate.
|
|
5117
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-a-single-order
|
|
5118
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-a-single-order-2
|
|
5119
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-a-single-order-3
|
|
5120
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-a-single-order-4
|
|
5114
5121
|
* @param {string} id Order id
|
|
5115
5122
|
* @param {string} symbol Unified market symbol, *required for spot and margin*
|
|
5116
5123
|
* @param {object} [params] Parameters specified by the exchange api
|
|
@@ -5166,8 +5173,8 @@ export default class gate extends Exchange {
|
|
|
5166
5173
|
* @method
|
|
5167
5174
|
* @name gate#fetchOpenOrders
|
|
5168
5175
|
* @description fetch all unfilled currently open orders
|
|
5169
|
-
* @see https://www.gate.
|
|
5170
|
-
* @see https://www.gate.
|
|
5176
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-open-orders
|
|
5177
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-running-auto-order-list
|
|
5171
5178
|
* @param {string} symbol unified market symbol
|
|
5172
5179
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
5173
5180
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -5185,14 +5192,14 @@ export default class gate extends Exchange {
|
|
|
5185
5192
|
* @method
|
|
5186
5193
|
* @name gate#fetchClosedOrders
|
|
5187
5194
|
* @description fetches information on multiple closed orders made by the user
|
|
5188
|
-
* @see https://www.gate.
|
|
5189
|
-
* @see https://www.gate.
|
|
5190
|
-
* @see https://www.gate.
|
|
5191
|
-
* @see https://www.gate.
|
|
5192
|
-
* @see https://www.gate.
|
|
5193
|
-
* @see https://www.gate.
|
|
5194
|
-
* @see https://www.gate.
|
|
5195
|
-
* @see https://www.gate.
|
|
5195
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-orders
|
|
5196
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-running-auto-order-list
|
|
5197
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-futures-orders
|
|
5198
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-auto-orders
|
|
5199
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-futures-orders-2
|
|
5200
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-auto-orders-2
|
|
5201
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-options-orders
|
|
5202
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-futures-orders-by-time-range
|
|
5196
5203
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
5197
5204
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
5198
5205
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -5488,10 +5495,10 @@ export default class gate extends Exchange {
|
|
|
5488
5495
|
* @method
|
|
5489
5496
|
* @name gate#cancelOrder
|
|
5490
5497
|
* @description Cancels an open order
|
|
5491
|
-
* @see https://www.gate.
|
|
5492
|
-
* @see https://www.gate.
|
|
5493
|
-
* @see https://www.gate.
|
|
5494
|
-
* @see https://www.gate.
|
|
5498
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-a-single-order
|
|
5499
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-a-single-order-2
|
|
5500
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-a-single-order-3
|
|
5501
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-a-single-order-4
|
|
5495
5502
|
* @param {string} id Order id
|
|
5496
5503
|
* @param {string} symbol Unified market symbol
|
|
5497
5504
|
* @param {object} [params] Parameters specified by the exchange api
|
|
@@ -5626,8 +5633,8 @@ export default class gate extends Exchange {
|
|
|
5626
5633
|
* @method
|
|
5627
5634
|
* @name gate#cancelOrders
|
|
5628
5635
|
* @description cancel multiple orders
|
|
5629
|
-
* @see https://www.gate.
|
|
5630
|
-
* @see https://www.gate.
|
|
5636
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-a-batch-of-orders-with-an-id-list
|
|
5637
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-a-batch-of-orders-with-an-id-list-2
|
|
5631
5638
|
* @param {string[]} ids order ids
|
|
5632
5639
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
5633
5640
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -5675,7 +5682,7 @@ export default class gate extends Exchange {
|
|
|
5675
5682
|
* @method
|
|
5676
5683
|
* @name gate#cancelOrdersForSymbols
|
|
5677
5684
|
* @description cancel multiple orders for multiple symbols
|
|
5678
|
-
* @see https://www.gate.
|
|
5685
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-a-batch-of-orders-with-an-id-list
|
|
5679
5686
|
* @param {CancellationRequest[]} orders list of order ids with symbol, example [{"id": "a", "symbol": "BTC/USDT"}, {"id": "b", "symbol": "ETH/USDT"}]
|
|
5680
5687
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5681
5688
|
* @param {string[]} [params.clientOrderIds] client order ids
|
|
@@ -5715,10 +5722,10 @@ export default class gate extends Exchange {
|
|
|
5715
5722
|
* @method
|
|
5716
5723
|
* @name gate#cancelAllOrders
|
|
5717
5724
|
* @description cancel all open orders
|
|
5718
|
-
* @see https://www.gate.
|
|
5719
|
-
* @see https://www.gate.
|
|
5720
|
-
* @see https://www.gate.
|
|
5721
|
-
* @see https://www.gate.
|
|
5725
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-open-orders-in-specified-currency-pair
|
|
5726
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-open-orders-matched
|
|
5727
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-open-orders-matched-2
|
|
5728
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-open-orders-matched-3
|
|
5722
5729
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
5723
5730
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5724
5731
|
* @param {bool} [params.unifiedAccount] set to true for canceling unified account orders
|
|
@@ -5797,7 +5804,7 @@ export default class gate extends Exchange {
|
|
|
5797
5804
|
* @method
|
|
5798
5805
|
* @name gate#transfer
|
|
5799
5806
|
* @description transfer currency internally between wallets on the same account
|
|
5800
|
-
* @see https://www.gate.
|
|
5807
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#transfer-between-trading-accounts
|
|
5801
5808
|
* @param {string} code unified currency code for currency being transferred
|
|
5802
5809
|
* @param {float} amount the amount of currency to transfer
|
|
5803
5810
|
* @param {string} fromAccount the account to transfer currency from
|
|
@@ -5882,8 +5889,8 @@ export default class gate extends Exchange {
|
|
|
5882
5889
|
* @method
|
|
5883
5890
|
* @name gate#setLeverage
|
|
5884
5891
|
* @description set the level of leverage for a market
|
|
5885
|
-
* @see https://www.gate.
|
|
5886
|
-
* @see https://www.gate.
|
|
5892
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#update-position-leverage
|
|
5893
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#update-position-leverage-2
|
|
5887
5894
|
* @param {float} leverage the rate of leverage
|
|
5888
5895
|
* @param {string} symbol unified market symbol
|
|
5889
5896
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6102,9 +6109,9 @@ export default class gate extends Exchange {
|
|
|
6102
6109
|
* @method
|
|
6103
6110
|
* @name gate#fetchPosition
|
|
6104
6111
|
* @description fetch data on an open contract position
|
|
6105
|
-
* @see https://www.gate.
|
|
6106
|
-
* @see https://www.gate.
|
|
6107
|
-
* @see https://www.gate.
|
|
6112
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-single-position
|
|
6113
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-single-position-2
|
|
6114
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-specified-contract-position
|
|
6108
6115
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
6109
6116
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6110
6117
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
@@ -6190,9 +6197,9 @@ export default class gate extends Exchange {
|
|
|
6190
6197
|
* @method
|
|
6191
6198
|
* @name gate#fetchPositions
|
|
6192
6199
|
* @description fetch all open positions
|
|
6193
|
-
* @see https://www.gate.
|
|
6194
|
-
* @see https://www.gate.
|
|
6195
|
-
* @see https://www.gate.
|
|
6200
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-positions-of-a-user
|
|
6201
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-positions-of-a-user-2
|
|
6202
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-user-s-positions-of-specified-underlying
|
|
6196
6203
|
* @param {string[]|undefined} symbols Not used by gate, but parsed internally by CCXT
|
|
6197
6204
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6198
6205
|
* @param {string} [params.settle] 'btc' or 'usdt' - settle currency for perpetual swap and future - default="usdt" for swap and "btc" for future
|
|
@@ -6301,8 +6308,8 @@ export default class gate extends Exchange {
|
|
|
6301
6308
|
* @method
|
|
6302
6309
|
* @name gate#fetchLeverageTiers
|
|
6303
6310
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
6304
|
-
* @see https://www.gate.
|
|
6305
|
-
* @see https://www.gate.
|
|
6311
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-futures-contracts
|
|
6312
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-futures-contracts-2
|
|
6306
6313
|
* @param {string[]} [symbols] list of unified market symbols
|
|
6307
6314
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6308
6315
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
@@ -6422,7 +6429,7 @@ export default class gate extends Exchange {
|
|
|
6422
6429
|
* @method
|
|
6423
6430
|
* @name gate#fetchMarketLeverageTiers
|
|
6424
6431
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market
|
|
6425
|
-
* @see https://www.gate.
|
|
6432
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-risk-limit-tiers
|
|
6426
6433
|
* @param {string} symbol unified market symbol
|
|
6427
6434
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6428
6435
|
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
|
|
@@ -6516,7 +6523,7 @@ export default class gate extends Exchange {
|
|
|
6516
6523
|
* @method
|
|
6517
6524
|
* @name gate#repayMargin
|
|
6518
6525
|
* @description repay borrowed margin and interest
|
|
6519
|
-
* @see https://www.gate.
|
|
6526
|
+
* @see https://www.gate.com/docs/apiv4/en/#repay-a-loan
|
|
6520
6527
|
* @param {string} symbol unified market symbol
|
|
6521
6528
|
* @param {string} code unified currency code of the currency to repay
|
|
6522
6529
|
* @param {float} amount the amount to repay
|
|
@@ -6545,8 +6552,8 @@ export default class gate extends Exchange {
|
|
|
6545
6552
|
* @method
|
|
6546
6553
|
* @name gate#repayCrossMargin
|
|
6547
6554
|
* @description repay cross margin borrowed margin and interest
|
|
6548
|
-
* @see https://www.gate.
|
|
6549
|
-
* @see https://www.gate.
|
|
6555
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cross-margin-repayments
|
|
6556
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#borrow-or-repay
|
|
6550
6557
|
* @param {string} code unified currency code of the currency to repay
|
|
6551
6558
|
* @param {float} amount the amount to repay
|
|
6552
6559
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6596,7 +6603,7 @@ export default class gate extends Exchange {
|
|
|
6596
6603
|
* @method
|
|
6597
6604
|
* @name gate#borrowIsolatedMargin
|
|
6598
6605
|
* @description create a loan to borrow margin
|
|
6599
|
-
* @see https://www.gate.
|
|
6606
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#marginuni
|
|
6600
6607
|
* @param {string} symbol unified market symbol, required for isolated margin
|
|
6601
6608
|
* @param {string} code unified currency code of the currency to borrow
|
|
6602
6609
|
* @param {float} amount the amount to borrow
|
|
@@ -6641,8 +6648,8 @@ export default class gate extends Exchange {
|
|
|
6641
6648
|
* @method
|
|
6642
6649
|
* @name gate#borrowMargin
|
|
6643
6650
|
* @description create a loan to borrow margin
|
|
6644
|
-
* @see https://www.gate.
|
|
6645
|
-
* @see https://www.gate.
|
|
6651
|
+
* @see https://www.gate.com/docs/apiv4/en/#create-a-cross-margin-borrow-loan
|
|
6652
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#borrow-or-repay
|
|
6646
6653
|
* @param {string} code unified currency code of the currency to borrow
|
|
6647
6654
|
* @param {float} amount the amount to borrow
|
|
6648
6655
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6742,9 +6749,9 @@ export default class gate extends Exchange {
|
|
|
6742
6749
|
* @method
|
|
6743
6750
|
* @name gate#fetchBorrowInterest
|
|
6744
6751
|
* @description fetch the interest owed by the user for borrowing currency for margin trading
|
|
6745
|
-
* @see https://www.gate.
|
|
6746
|
-
* @see https://www.gate.
|
|
6747
|
-
* @see https://www.gate.
|
|
6752
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-interest-records
|
|
6753
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#interest-records-for-the-cross-margin-account
|
|
6754
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-interest-records-2
|
|
6748
6755
|
* @param {string} [code] unified currency code
|
|
6749
6756
|
* @param {string} [symbol] unified market symbol when fetching interest in isolated markets
|
|
6750
6757
|
* @param {int} [since] the earliest time in ms to fetch borrow interest for
|
|
@@ -6972,8 +6979,8 @@ export default class gate extends Exchange {
|
|
|
6972
6979
|
* @method
|
|
6973
6980
|
* @name gate#reduceMargin
|
|
6974
6981
|
* @description remove margin from a position
|
|
6975
|
-
* @see https://www.gate.
|
|
6976
|
-
* @see https://www.gate.
|
|
6982
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#update-position-margin
|
|
6983
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#update-position-margin-2
|
|
6977
6984
|
* @param {string} symbol unified market symbol
|
|
6978
6985
|
* @param {float} amount the amount of margin to remove
|
|
6979
6986
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6986,8 +6993,8 @@ export default class gate extends Exchange {
|
|
|
6986
6993
|
* @method
|
|
6987
6994
|
* @name gate#addMargin
|
|
6988
6995
|
* @description add margin
|
|
6989
|
-
* @see https://www.gate.
|
|
6990
|
-
* @see https://www.gate.
|
|
6996
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#update-position-margin
|
|
6997
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#update-position-margin-2
|
|
6991
6998
|
* @param {string} symbol unified market symbol
|
|
6992
6999
|
* @param {float} amount amount of margin to add
|
|
6993
7000
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -7000,7 +7007,7 @@ export default class gate extends Exchange {
|
|
|
7000
7007
|
* @method
|
|
7001
7008
|
* @name gate#fetchOpenInterest
|
|
7002
7009
|
* @description Retrieves the open interest of a currency
|
|
7003
|
-
* @see https://www.gate.
|
|
7010
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-stats
|
|
7004
7011
|
* @param {string} symbol Unified CCXT market symbol
|
|
7005
7012
|
* @param {string} timeframe "5m", "15m", "30m", "1h", "4h", "1d"
|
|
7006
7013
|
* @param {int} [since] the time(ms) of the earliest record to retrieve as a unix timestamp
|
|
@@ -7088,7 +7095,7 @@ export default class gate extends Exchange {
|
|
|
7088
7095
|
* @method
|
|
7089
7096
|
* @name gate#fetchSettlementHistory
|
|
7090
7097
|
* @description fetches historical settlement records
|
|
7091
|
-
* @see https://www.gate.
|
|
7098
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-settlement-history-2
|
|
7092
7099
|
* @param {string} symbol unified market symbol of the settlement history, required on gate
|
|
7093
7100
|
* @param {int} [since] timestamp in ms
|
|
7094
7101
|
* @param {int} [limit] number of records
|
|
@@ -7138,7 +7145,7 @@ export default class gate extends Exchange {
|
|
|
7138
7145
|
* @method
|
|
7139
7146
|
* @name gate#fetchMySettlementHistory
|
|
7140
7147
|
* @description fetches historical settlement records of the user
|
|
7141
|
-
* @see https://www.gate.
|
|
7148
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-my-options-settlements
|
|
7142
7149
|
* @param {string} symbol unified market symbol of the settlement history
|
|
7143
7150
|
* @param {int} [since] timestamp in ms
|
|
7144
7151
|
* @param {int} [limit] number of records
|
|
@@ -7268,11 +7275,11 @@ export default class gate extends Exchange {
|
|
|
7268
7275
|
* @method
|
|
7269
7276
|
* @name gate#fetchLedger
|
|
7270
7277
|
* @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
|
7271
|
-
* @see https://www.gate.
|
|
7272
|
-
* @see https://www.gate.
|
|
7273
|
-
* @see https://www.gate.
|
|
7274
|
-
* @see https://www.gate.
|
|
7275
|
-
* @see https://www.gate.
|
|
7278
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-account-book
|
|
7279
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-margin-account-balance-change-history
|
|
7280
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-account-book-2
|
|
7281
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-account-book-3
|
|
7282
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-account-changing-history
|
|
7276
7283
|
* @param {string} [code] unified currency code
|
|
7277
7284
|
* @param {int} [since] timestamp in ms of the earliest ledger entry
|
|
7278
7285
|
* @param {int} [limit] max number of ledger entries to return
|
|
@@ -7514,7 +7521,7 @@ export default class gate extends Exchange {
|
|
|
7514
7521
|
* @method
|
|
7515
7522
|
* @name gate#setPositionMode
|
|
7516
7523
|
* @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
|
|
7517
|
-
* @see https://www.gate.
|
|
7524
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#enable-or-disable-dual-mode
|
|
7518
7525
|
* @param {bool} hedged set to true to enable dual mode
|
|
7519
7526
|
* @param {string|undefined} symbol if passed, dual mode is set for all markets with the same settle currency
|
|
7520
7527
|
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
@@ -7531,7 +7538,7 @@ export default class gate extends Exchange {
|
|
|
7531
7538
|
* @method
|
|
7532
7539
|
* @name gate#fetchUnderlyingAssets
|
|
7533
7540
|
* @description fetches the market ids of underlying assets for a specific contract market type
|
|
7534
|
-
* @see https://www.gate.
|
|
7541
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-underlyings
|
|
7535
7542
|
* @param {object} [params] exchange specific params
|
|
7536
7543
|
* @param {string} [params.type] the contract market type, 'option', 'swap' or 'future', the default is 'option'
|
|
7537
7544
|
* @returns {object[]} a list of [underlying assets]{@link https://docs.ccxt.com/#/?id=underlying-assets-structure}
|
|
@@ -7570,7 +7577,7 @@ export default class gate extends Exchange {
|
|
|
7570
7577
|
* @method
|
|
7571
7578
|
* @name gate#fetchLiquidations
|
|
7572
7579
|
* @description retrieves the public liquidations of a trading pair
|
|
7573
|
-
* @see https://www.gate.
|
|
7580
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-liquidation-history
|
|
7574
7581
|
* @param {string} symbol unified CCXT market symbol
|
|
7575
7582
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
7576
7583
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
@@ -7614,9 +7621,9 @@ export default class gate extends Exchange {
|
|
|
7614
7621
|
* @method
|
|
7615
7622
|
* @name gate#fetchMyLiquidations
|
|
7616
7623
|
* @description retrieves the users liquidated positions
|
|
7617
|
-
* @see https://www.gate.
|
|
7618
|
-
* @see https://www.gate.
|
|
7619
|
-
* @see https://www.gate.
|
|
7624
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-liquidation-history
|
|
7625
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-liquidation-history-2
|
|
7626
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-user-s-liquidation-history-of-specified-underlying
|
|
7620
7627
|
* @param {string} symbol unified CCXT market symbol
|
|
7621
7628
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
7622
7629
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
@@ -7781,7 +7788,7 @@ export default class gate extends Exchange {
|
|
|
7781
7788
|
* @method
|
|
7782
7789
|
* @name gate#fetchGreeks
|
|
7783
7790
|
* @description fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
|
|
7784
|
-
* @see https://www.gate.
|
|
7791
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
7785
7792
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
7786
7793
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7787
7794
|
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
|
|
@@ -7874,9 +7881,9 @@ export default class gate extends Exchange {
|
|
|
7874
7881
|
* @method
|
|
7875
7882
|
* @name gate#closePosition
|
|
7876
7883
|
* @description closes open positions for a market
|
|
7877
|
-
* @see https://www.gate.
|
|
7878
|
-
* @see https://www.gate.
|
|
7879
|
-
* @see https://www.gate.
|
|
7884
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-a-futures-order
|
|
7885
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-a-futures-order-2
|
|
7886
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-an-options-order
|
|
7880
7887
|
* @param {string} symbol Unified CCXT market symbol
|
|
7881
7888
|
* @param {string} side 'buy' or 'sell'
|
|
7882
7889
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
@@ -7896,9 +7903,9 @@ export default class gate extends Exchange {
|
|
|
7896
7903
|
* @method
|
|
7897
7904
|
* @name gate#fetchLeverage
|
|
7898
7905
|
* @description fetch the set leverage for a market
|
|
7899
|
-
* @see https://www.gate.
|
|
7900
|
-
* @see https://www.gate.
|
|
7901
|
-
* @see https://www.gate.
|
|
7906
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-unified-account-information
|
|
7907
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-detail-of-lending-market
|
|
7908
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-one-single-margin-currency-pair-deprecated
|
|
7902
7909
|
* @param {string} symbol unified market symbol
|
|
7903
7910
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7904
7911
|
* @param {boolean} [params.unified] default false, set to true for fetching the unified accounts leverage
|
|
@@ -8006,8 +8013,8 @@ export default class gate extends Exchange {
|
|
|
8006
8013
|
* @method
|
|
8007
8014
|
* @name gate#fetchLeverages
|
|
8008
8015
|
* @description fetch the set leverage for all leverage markets, only spot margin is supported on gate
|
|
8009
|
-
* @see https://www.gate.
|
|
8010
|
-
* @see https://www.gate.
|
|
8016
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-lending-markets
|
|
8017
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-supported-currency-pairs-supported-in-margin-trading-deprecated
|
|
8011
8018
|
* @param {string[]} symbols a list of unified market symbols
|
|
8012
8019
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8013
8020
|
* @param {boolean} [params.unified] default false, set to true for fetching unified account leverages
|
|
@@ -8068,7 +8075,7 @@ export default class gate extends Exchange {
|
|
|
8068
8075
|
* @method
|
|
8069
8076
|
* @name gate#fetchOption
|
|
8070
8077
|
* @description fetches option data that is commonly found in an option chain
|
|
8071
|
-
* @see https://www.gate.
|
|
8078
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-specified-contract-detail
|
|
8072
8079
|
* @param {string} symbol unified market symbol
|
|
8073
8080
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8074
8081
|
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/#/?id=option-chain-structure}
|
|
@@ -8126,7 +8133,7 @@ export default class gate extends Exchange {
|
|
|
8126
8133
|
* @method
|
|
8127
8134
|
* @name gate#fetchOptionChain
|
|
8128
8135
|
* @description fetches data for an underlying asset that is commonly found in an option chain
|
|
8129
|
-
* @see https://www.gate.
|
|
8136
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-the-contracts-with-specified-underlying-and-expiration-time
|
|
8130
8137
|
* @param {string} code base currency to fetch an option chain for
|
|
8131
8138
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8132
8139
|
* @param {string} [params.underlying] the underlying asset, can be obtained from fetchUnderlyingAssets ()
|
|
@@ -8252,8 +8259,8 @@ export default class gate extends Exchange {
|
|
|
8252
8259
|
* @method
|
|
8253
8260
|
* @name gate#fetchPositionsHistory
|
|
8254
8261
|
* @description fetches historical positions
|
|
8255
|
-
* @see https://www.gate.
|
|
8256
|
-
* @see https://www.gate.
|
|
8262
|
+
* @see https://www.gate.com/docs/developers/apiv4/#list-position-close-history
|
|
8263
|
+
* @see https://www.gate.com/docs/developers/apiv4/#list-position-close-history-2
|
|
8257
8264
|
* @param {string[]} symbols unified conract symbols, must all have the same settle currency and the same market type
|
|
8258
8265
|
* @param {int} [since] the earliest time in ms to fetch positions for
|
|
8259
8266
|
* @param {int} [limit] the maximum amount of records to fetch, default=1000
|