ccxt 4.5.13 → 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 +7 -7
- package/dist/ccxt.browser.min.js +3 -3
- 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 +3 -3
- 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 +12 -3
- package/dist/cjs/src/binancecoinm.js +1 -1
- package/dist/cjs/src/binanceus.js +1 -1
- package/dist/cjs/src/binanceusdm.js +1 -1
- package/dist/cjs/src/bingx.js +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 +95 -41
- 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 +23 -19
- 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 +232 -179
- 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 +70 -8
- 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 +43 -4
- 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 +7 -7
- 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 +10 -7
- 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 +9 -7
- 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 +2 -2
- 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.d.ts +1 -0
- package/js/src/abstract/binance.js +6 -0
- package/js/src/abstract/binancecoinm.d.ts +1 -0
- package/js/src/abstract/binancecoinm.js +6 -0
- package/js/src/abstract/binanceus.d.ts +1 -0
- package/js/src/abstract/binanceus.js +6 -0
- package/js/src/abstract/binanceusdm.d.ts +1 -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.d.ts +62 -18
- package/js/src/abstract/gate.js +6 -0
- package/js/src/abstract/gateio.d.ts +62 -18
- 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.d.ts +30 -0
- package/js/src/abstract/kucoin.js +6 -0
- package/js/src/abstract/kucoinfutures.d.ts +30 -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 +8 -2
- 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.d.ts +9 -11
- 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 +17 -2
- 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.d.ts +12 -0
- package/js/src/bitget.js +100 -40
- 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 +28 -18
- 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 +237 -178
- 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.d.ts +3 -1
- package/js/src/hyperliquid.js +75 -7
- 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 +48 -3
- 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 +13 -7
- 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 +15 -6
- 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 +14 -6
- 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 +7 -1
- 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
|
},
|
|
@@ -185,6 +191,12 @@ export default class gate extends Exchange {
|
|
|
185
191
|
'currency_chains': 1,
|
|
186
192
|
},
|
|
187
193
|
},
|
|
194
|
+
'unified': {
|
|
195
|
+
'get': {
|
|
196
|
+
'currencies': 1,
|
|
197
|
+
'history_loan_rate': 1,
|
|
198
|
+
},
|
|
199
|
+
},
|
|
188
200
|
'spot': {
|
|
189
201
|
'get': {
|
|
190
202
|
'currencies': 1,
|
|
@@ -196,22 +208,25 @@ export default class gate extends Exchange {
|
|
|
196
208
|
'trades': 1,
|
|
197
209
|
'candlesticks': 1,
|
|
198
210
|
'time': 1,
|
|
211
|
+
'insurance_history': 1,
|
|
199
212
|
},
|
|
200
213
|
},
|
|
201
214
|
'margin': {
|
|
202
215
|
'get': {
|
|
216
|
+
'uni/currency_pairs': 1,
|
|
217
|
+
'uni/currency_pairs/{currency_pair}': 1,
|
|
218
|
+
'loan_margin_tiers': 1,
|
|
203
219
|
'currency_pairs': 1,
|
|
204
220
|
'currency_pairs/{currency_pair}': 1,
|
|
205
221
|
'funding_book': 1,
|
|
206
222
|
'cross/currencies': 1,
|
|
207
|
-
'cross/currencies/{currency}': 1,
|
|
208
|
-
'uni/currency_pairs': 1,
|
|
209
|
-
'uni/currency_pairs/{currency_pair}': 1,
|
|
223
|
+
'cross/currencies/{currency}': 1, // deprecated
|
|
210
224
|
},
|
|
211
225
|
},
|
|
212
226
|
'flash_swap': {
|
|
213
227
|
'get': {
|
|
214
|
-
'
|
|
228
|
+
'currency_pairs': 1,
|
|
229
|
+
'currencies': 1, // deprecated
|
|
215
230
|
},
|
|
216
231
|
},
|
|
217
232
|
'futures': {
|
|
@@ -240,6 +255,7 @@ export default class gate extends Exchange {
|
|
|
240
255
|
'{settle}/candlesticks': 1,
|
|
241
256
|
'{settle}/tickers': 1,
|
|
242
257
|
'{settle}/insurance': 1,
|
|
258
|
+
'{settle}/risk_limit_tiers': 1,
|
|
243
259
|
},
|
|
244
260
|
},
|
|
245
261
|
'options': {
|
|
@@ -262,6 +278,17 @@ export default class gate extends Exchange {
|
|
|
262
278
|
'get': {
|
|
263
279
|
'uni/currencies': 1,
|
|
264
280
|
'uni/currencies/{currency}': 1,
|
|
281
|
+
'dual/investment_plan': 1,
|
|
282
|
+
'structured/products': 1,
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
'loan': {
|
|
286
|
+
'get': {
|
|
287
|
+
'collateral/currencies': 1,
|
|
288
|
+
'multi_collateral/currencies': 1,
|
|
289
|
+
'multi_collateral/ltv': 1,
|
|
290
|
+
'multi_collateral/fixed_rate': 1,
|
|
291
|
+
'multi_collateral/current_rate': 1,
|
|
265
292
|
},
|
|
266
293
|
},
|
|
267
294
|
},
|
|
@@ -325,25 +352,28 @@ export default class gate extends Exchange {
|
|
|
325
352
|
'unified': {
|
|
326
353
|
'get': {
|
|
327
354
|
'accounts': 20 / 15,
|
|
328
|
-
'account_mode': 20 / 15,
|
|
329
355
|
'borrowable': 20 / 15,
|
|
330
356
|
'transferable': 20 / 15,
|
|
357
|
+
'transferables': 20 / 15,
|
|
358
|
+
'batch_borrowable': 20 / 15,
|
|
331
359
|
'loans': 20 / 15,
|
|
332
360
|
'loan_records': 20 / 15,
|
|
333
361
|
'interest_records': 20 / 15,
|
|
334
|
-
'estimate_rate': 20 / 15,
|
|
335
|
-
'currency_discount_tiers': 20 / 15,
|
|
336
362
|
'risk_units': 20 / 15,
|
|
337
363
|
'unified_mode': 20 / 15,
|
|
364
|
+
'estimate_rate': 20 / 15,
|
|
365
|
+
'currency_discount_tiers': 20 / 15,
|
|
338
366
|
'loan_margin_tiers': 20 / 15,
|
|
339
367
|
'leverage/user_currency_config': 20 / 15,
|
|
340
368
|
'leverage/user_currency_setting': 20 / 15,
|
|
369
|
+
'account_mode': 20 / 15, // deprecated
|
|
341
370
|
},
|
|
342
371
|
'post': {
|
|
343
|
-
'account_mode': 20 / 15,
|
|
344
372
|
'loans': 200 / 15,
|
|
345
373
|
'portfolio_calculator': 20 / 15,
|
|
346
374
|
'leverage/user_currency_setting': 20 / 15,
|
|
375
|
+
'collateral_currencies': 20 / 15,
|
|
376
|
+
'account_mode': 20 / 15, // deprecated
|
|
347
377
|
},
|
|
348
378
|
'put': {
|
|
349
379
|
'unified_mode': 20 / 15,
|
|
@@ -389,6 +419,13 @@ export default class gate extends Exchange {
|
|
|
389
419
|
'funding_accounts': 20 / 15,
|
|
390
420
|
'auto_repay': 20 / 15,
|
|
391
421
|
'transferable': 20 / 15,
|
|
422
|
+
'uni/estimate_rate': 20 / 15,
|
|
423
|
+
'uni/loans': 20 / 15,
|
|
424
|
+
'uni/loan_records': 20 / 15,
|
|
425
|
+
'uni/interest_records': 20 / 15,
|
|
426
|
+
'uni/borrowable': 20 / 15,
|
|
427
|
+
'user/loan_margin_tiers': 20 / 15,
|
|
428
|
+
'user/account': 20 / 15,
|
|
392
429
|
'loans': 20 / 15,
|
|
393
430
|
'loans/{loan_id}': 20 / 15,
|
|
394
431
|
'loans/{loan_id}/repayment': 20 / 15,
|
|
@@ -403,34 +440,28 @@ export default class gate extends Exchange {
|
|
|
403
440
|
'cross/interest_records': 20 / 15,
|
|
404
441
|
'cross/transferable': 20 / 15,
|
|
405
442
|
'cross/estimate_rate': 20 / 15,
|
|
406
|
-
'cross/borrowable': 20 / 15,
|
|
407
|
-
'uni/estimate_rate': 20 / 15,
|
|
408
|
-
'uni/loans': 20 / 15,
|
|
409
|
-
'uni/loan_records': 20 / 15,
|
|
410
|
-
'uni/interest_records': 20 / 15,
|
|
411
|
-
'uni/borrowable': 20 / 15,
|
|
443
|
+
'cross/borrowable': 20 / 15, // deprecated
|
|
412
444
|
},
|
|
413
445
|
'post': {
|
|
414
446
|
'auto_repay': 20 / 15,
|
|
447
|
+
'uni/loans': 20 / 15,
|
|
448
|
+
'leverage/user_market_setting': 20 / 15,
|
|
415
449
|
'loans': 20 / 15,
|
|
416
450
|
'merged_loans': 20 / 15,
|
|
417
451
|
'loans/{loan_id}/repayment': 20 / 15,
|
|
418
452
|
'cross/loans': 20 / 15,
|
|
419
|
-
'cross/repayments': 20 / 15,
|
|
420
|
-
'uni/loans': 20 / 15,
|
|
453
|
+
'cross/repayments': 20 / 15, // deprecated
|
|
421
454
|
},
|
|
422
455
|
'patch': {
|
|
423
456
|
'loans/{loan_id}': 20 / 15,
|
|
424
|
-
'loan_records/{loan_record_id}': 20 / 15,
|
|
457
|
+
'loan_records/{loan_record_id}': 20 / 15, // deprecated
|
|
425
458
|
},
|
|
426
459
|
'delete': {
|
|
427
|
-
'loans/{loan_id}': 20 / 15,
|
|
460
|
+
'loans/{loan_id}': 20 / 15, // deprecated
|
|
428
461
|
},
|
|
429
462
|
},
|
|
430
463
|
'flash_swap': {
|
|
431
464
|
'get': {
|
|
432
|
-
'currencies': 1,
|
|
433
|
-
'currency_pairs': 1,
|
|
434
465
|
'orders': 1,
|
|
435
466
|
'orders/{order_id}': 1,
|
|
436
467
|
},
|
|
@@ -455,7 +486,7 @@ export default class gate extends Exchange {
|
|
|
455
486
|
'{settle}/liquidates': 1,
|
|
456
487
|
'{settle}/auto_deleverages': 1,
|
|
457
488
|
'{settle}/fee': 1,
|
|
458
|
-
'{settle}/
|
|
489
|
+
'{settle}/risk_limit_table': 1,
|
|
459
490
|
'{settle}/price_orders': 1,
|
|
460
491
|
'{settle}/price_orders/{order_id}': 1,
|
|
461
492
|
},
|
|
@@ -463,6 +494,8 @@ export default class gate extends Exchange {
|
|
|
463
494
|
'{settle}/positions/{contract}/margin': 1,
|
|
464
495
|
'{settle}/positions/{contract}/leverage': 1,
|
|
465
496
|
'{settle}/positions/{contract}/risk_limit': 1,
|
|
497
|
+
'{settle}/positions/cross_mode': 1,
|
|
498
|
+
'{settle}/dual_comp/positions/cross_mode': 1,
|
|
466
499
|
'{settle}/dual_mode': 1,
|
|
467
500
|
'{settle}/dual_comp/positions/{contract}/margin': 1,
|
|
468
501
|
'{settle}/dual_comp/positions/{contract}/leverage': 1,
|
|
@@ -471,6 +504,8 @@ export default class gate extends Exchange {
|
|
|
471
504
|
'{settle}/batch_orders': 0.4,
|
|
472
505
|
'{settle}/countdown_cancel_all': 0.4,
|
|
473
506
|
'{settle}/batch_cancel_orders': 0.4,
|
|
507
|
+
'{settle}/batch_amend_orders': 0.4,
|
|
508
|
+
'{settle}/bbo_orders': 0.4,
|
|
474
509
|
'{settle}/price_orders': 0.4,
|
|
475
510
|
},
|
|
476
511
|
'put': {
|
|
@@ -538,19 +573,32 @@ export default class gate extends Exchange {
|
|
|
538
573
|
},
|
|
539
574
|
'earn': {
|
|
540
575
|
'get': {
|
|
541
|
-
'uni/currencies': 20 / 15,
|
|
542
|
-
'uni/currencies/{currency}': 20 / 15,
|
|
543
576
|
'uni/lends': 20 / 15,
|
|
544
577
|
'uni/lend_records': 20 / 15,
|
|
545
578
|
'uni/interests/{currency}': 20 / 15,
|
|
546
579
|
'uni/interest_records': 20 / 15,
|
|
547
580
|
'uni/interest_status/{currency}': 20 / 15,
|
|
581
|
+
'uni/chart': 20 / 15,
|
|
582
|
+
'uni/rate': 20 / 15,
|
|
583
|
+
'staking/eth2/rate_records': 20 / 15,
|
|
584
|
+
'dual/orders': 20 / 15,
|
|
585
|
+
'structured/orders': 20 / 15,
|
|
586
|
+
'staking/coins': 20 / 15,
|
|
587
|
+
'staking/order_list': 20 / 15,
|
|
588
|
+
'staking/award_list': 20 / 15,
|
|
589
|
+
'staking/assets': 20 / 15,
|
|
590
|
+
'uni/currencies': 20 / 15,
|
|
591
|
+
'uni/currencies/{currency}': 20 / 15, // deprecated
|
|
548
592
|
},
|
|
549
593
|
'post': {
|
|
550
594
|
'uni/lends': 20 / 15,
|
|
595
|
+
'staking/eth2/swap': 20 / 15,
|
|
596
|
+
'dual/orders': 20 / 15,
|
|
597
|
+
'structured/orders': 20 / 15,
|
|
598
|
+
'staking/swap': 20 / 15,
|
|
551
599
|
},
|
|
552
600
|
'put': {
|
|
553
|
-
'uni/interest_reinvest': 20 / 15,
|
|
601
|
+
'uni/interest_reinvest': 20 / 15, // deprecated
|
|
554
602
|
},
|
|
555
603
|
'patch': {
|
|
556
604
|
'uni/lends': 20 / 15,
|
|
@@ -564,16 +612,16 @@ export default class gate extends Exchange {
|
|
|
564
612
|
'collateral/collaterals': 20 / 15,
|
|
565
613
|
'collateral/total_amount': 20 / 15,
|
|
566
614
|
'collateral/ltv': 20 / 15,
|
|
567
|
-
'collateral/currencies': 20 / 15,
|
|
568
615
|
'multi_collateral/orders': 20 / 15,
|
|
569
616
|
'multi_collateral/orders/{order_id}': 20 / 15,
|
|
570
617
|
'multi_collateral/repay': 20 / 15,
|
|
571
618
|
'multi_collateral/mortgage': 20 / 15,
|
|
572
619
|
'multi_collateral/currency_quota': 20 / 15,
|
|
620
|
+
'collateral/currencies': 20 / 15,
|
|
573
621
|
'multi_collateral/currencies': 20 / 15,
|
|
574
622
|
'multi_collateral/ltv': 20 / 15,
|
|
575
623
|
'multi_collateral/fixed_rate': 20 / 15,
|
|
576
|
-
'multi_collateral/current_rate': 20 / 15,
|
|
624
|
+
'multi_collateral/current_rate': 20 / 15, // deprecated
|
|
577
625
|
},
|
|
578
626
|
'post': {
|
|
579
627
|
'collateral/orders': 20 / 15,
|
|
@@ -587,14 +635,17 @@ export default class gate extends Exchange {
|
|
|
587
635
|
'account': {
|
|
588
636
|
'get': {
|
|
589
637
|
'detail': 20 / 15,
|
|
638
|
+
'main_keys': 20 / 15,
|
|
590
639
|
'rate_limit': 20 / 15,
|
|
591
640
|
'stp_groups': 20 / 15,
|
|
592
641
|
'stp_groups/{stp_id}/users': 20 / 15,
|
|
593
642
|
'stp_groups/debit_fee': 20 / 15,
|
|
643
|
+
'debit_fee': 20 / 15,
|
|
594
644
|
},
|
|
595
645
|
'post': {
|
|
596
646
|
'stp_groups': 20 / 15,
|
|
597
647
|
'stp_groups/{stp_id}/users': 20 / 15,
|
|
648
|
+
'debit_fee': 20 / 15,
|
|
598
649
|
},
|
|
599
650
|
'delete': {
|
|
600
651
|
'stp_groups/{stp_id}/users': 20 / 15,
|
|
@@ -604,6 +655,13 @@ export default class gate extends Exchange {
|
|
|
604
655
|
'get': {
|
|
605
656
|
'agency/transaction_history': 20 / 15,
|
|
606
657
|
'agency/commission_history': 20 / 15,
|
|
658
|
+
'partner/transaction_history': 20 / 15,
|
|
659
|
+
'partner/commission_history': 20 / 15,
|
|
660
|
+
'partner/sub_list': 20 / 15,
|
|
661
|
+
'broker/commission_history': 20 / 15,
|
|
662
|
+
'broker/transaction_history': 20 / 15,
|
|
663
|
+
'user/info': 20 / 15,
|
|
664
|
+
'user/sub_relation': 20 / 15,
|
|
607
665
|
},
|
|
608
666
|
},
|
|
609
667
|
},
|
|
@@ -978,7 +1036,7 @@ export default class gate extends Exchange {
|
|
|
978
1036
|
},
|
|
979
1037
|
},
|
|
980
1038
|
},
|
|
981
|
-
// https://www.gate.
|
|
1039
|
+
// https://www.gate.com/docs/developers/apiv4/en/#label-list
|
|
982
1040
|
'exceptions': {
|
|
983
1041
|
'exact': {
|
|
984
1042
|
'INVALID_PARAM_VALUE': BadRequest,
|
|
@@ -1091,7 +1149,7 @@ export default class gate extends Exchange {
|
|
|
1091
1149
|
* @name gate#loadUnifiedStatus
|
|
1092
1150
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1093
1151
|
* @description returns unifiedAccount so the user can check if the unified account is enabled
|
|
1094
|
-
* @see https://www.gate.
|
|
1152
|
+
* @see https://www.gate.com/docs/developers/apiv4/#get-account-detail
|
|
1095
1153
|
* @returns {boolean} true or false if the enabled unified account is enabled or not and sets the unifiedAccount option if it is undefined
|
|
1096
1154
|
*/
|
|
1097
1155
|
async loadUnifiedStatus(params = {}) {
|
|
@@ -1129,7 +1187,7 @@ export default class gate extends Exchange {
|
|
|
1129
1187
|
* @method
|
|
1130
1188
|
* @name gate#fetchTime
|
|
1131
1189
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
1132
|
-
* @see https://www.gate.
|
|
1190
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-server-current-time
|
|
1133
1191
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1134
1192
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
1135
1193
|
*/
|
|
@@ -1219,11 +1277,11 @@ export default class gate extends Exchange {
|
|
|
1219
1277
|
* @method
|
|
1220
1278
|
* @name gate#fetchMarkets
|
|
1221
1279
|
* @description retrieves data on all markets for gate
|
|
1222
|
-
* @see https://www.gate.
|
|
1223
|
-
* @see https://www.gate.
|
|
1224
|
-
* @see https://www.gate.
|
|
1225
|
-
* @see https://www.gate.
|
|
1226
|
-
* @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
|
|
1227
1285
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1228
1286
|
* @returns {object[]} an array of objects representing market data
|
|
1229
1287
|
*/
|
|
@@ -1283,7 +1341,7 @@ export default class gate extends Exchange {
|
|
|
1283
1341
|
// "sell_start": 1607313600,
|
|
1284
1342
|
// "buy_start": 1700492400,
|
|
1285
1343
|
// "type": "normal",
|
|
1286
|
-
// "trade_url": "https://www.gate.
|
|
1344
|
+
// "trade_url": "https://www.gate.com/trade/QTUM_ETH",
|
|
1287
1345
|
// }
|
|
1288
1346
|
//
|
|
1289
1347
|
// Margin
|
|
@@ -1857,7 +1915,7 @@ export default class gate extends Exchange {
|
|
|
1857
1915
|
* @method
|
|
1858
1916
|
* @name gate#fetchCurrencies
|
|
1859
1917
|
* @description fetches all available currencies on an exchange
|
|
1860
|
-
* @see https://www.gate.
|
|
1918
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-currencies-details
|
|
1861
1919
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1862
1920
|
* @returns {object} an associative dictionary of currencies
|
|
1863
1921
|
*/
|
|
@@ -1961,7 +2019,7 @@ export default class gate extends Exchange {
|
|
|
1961
2019
|
* @method
|
|
1962
2020
|
* @name gate#fetchFundingRate
|
|
1963
2021
|
* @description fetch the current funding rate
|
|
1964
|
-
* @see https://www.gate.
|
|
2022
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#get-a-single-contract
|
|
1965
2023
|
* @param {string} symbol unified market symbol
|
|
1966
2024
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1967
2025
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
@@ -2024,7 +2082,7 @@ export default class gate extends Exchange {
|
|
|
2024
2082
|
* @method
|
|
2025
2083
|
* @name gate#fetchFundingRates
|
|
2026
2084
|
* @description fetch the funding rate for multiple markets
|
|
2027
|
-
* @see https://www.gate.
|
|
2085
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-futures-contracts
|
|
2028
2086
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2029
2087
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2030
2088
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexed by market symbols
|
|
@@ -2232,10 +2290,10 @@ export default class gate extends Exchange {
|
|
|
2232
2290
|
* @method
|
|
2233
2291
|
* @name gate#fetchDepositAddress
|
|
2234
2292
|
* @description fetch the deposit address for a currency associated with this account
|
|
2235
|
-
* @see https://www.gate.
|
|
2293
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#generate-currency-deposit-address
|
|
2236
2294
|
* @param {string} code unified currency code
|
|
2237
2295
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2238
|
-
* @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)
|
|
2239
2297
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2240
2298
|
*/
|
|
2241
2299
|
async fetchDepositAddress(code, params = {}) {
|
|
@@ -2270,7 +2328,7 @@ export default class gate extends Exchange {
|
|
|
2270
2328
|
* @method
|
|
2271
2329
|
* @name gate#fetchTradingFee
|
|
2272
2330
|
* @description fetch the trading fees for a market
|
|
2273
|
-
* @see https://www.gate.
|
|
2331
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-personal-trading-fee
|
|
2274
2332
|
* @param {string} symbol unified market symbol
|
|
2275
2333
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2276
2334
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
@@ -2302,7 +2360,7 @@ export default class gate extends Exchange {
|
|
|
2302
2360
|
* @method
|
|
2303
2361
|
* @name gate#fetchTradingFees
|
|
2304
2362
|
* @description fetch the trading fees for multiple markets
|
|
2305
|
-
* @see https://www.gate.
|
|
2363
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-personal-trading-fee
|
|
2306
2364
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2307
2365
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
2308
2366
|
*/
|
|
@@ -2369,7 +2427,7 @@ export default class gate extends Exchange {
|
|
|
2369
2427
|
* @name gate#fetchTransactionFees
|
|
2370
2428
|
* @deprecated
|
|
2371
2429
|
* @description please use fetchDepositWithdrawFees instead
|
|
2372
|
-
* @see https://www.gate.
|
|
2430
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-withdrawal-status
|
|
2373
2431
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2374
2432
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2375
2433
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
@@ -2409,10 +2467,11 @@ export default class gate extends Exchange {
|
|
|
2409
2467
|
withdrawFees = this.safeNumber(entry, 'withdraw_fix');
|
|
2410
2468
|
}
|
|
2411
2469
|
else {
|
|
2412
|
-
const
|
|
2413
|
-
for (let j = 0; j <
|
|
2414
|
-
const
|
|
2415
|
-
|
|
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]);
|
|
2416
2475
|
}
|
|
2417
2476
|
}
|
|
2418
2477
|
result[code] = {
|
|
@@ -2427,7 +2486,7 @@ export default class gate extends Exchange {
|
|
|
2427
2486
|
* @method
|
|
2428
2487
|
* @name gate#fetchDepositWithdrawFees
|
|
2429
2488
|
* @description fetch deposit and withdraw fees
|
|
2430
|
-
* @see https://www.gate.
|
|
2489
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-withdrawal-status
|
|
2431
2490
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2432
2491
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2433
2492
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
@@ -2510,8 +2569,8 @@ export default class gate extends Exchange {
|
|
|
2510
2569
|
* @method
|
|
2511
2570
|
* @name gate#fetchFundingHistory
|
|
2512
2571
|
* @description fetch the history of funding payments paid and received on this account
|
|
2513
|
-
* @see https://www.gate.
|
|
2514
|
-
* @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
|
|
2515
2574
|
* @param {string} symbol unified market symbol
|
|
2516
2575
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
2517
2576
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
@@ -2597,10 +2656,10 @@ export default class gate extends Exchange {
|
|
|
2597
2656
|
* @method
|
|
2598
2657
|
* @name gate#fetchOrderBook
|
|
2599
2658
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
2600
|
-
* @see https://www.gate.
|
|
2601
|
-
* @see https://www.gate.
|
|
2602
|
-
* @see https://www.gate.
|
|
2603
|
-
* @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
|
|
2604
2663
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
2605
2664
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
2606
2665
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -2723,10 +2782,10 @@ export default class gate extends Exchange {
|
|
|
2723
2782
|
* @method
|
|
2724
2783
|
* @name gate#fetchTicker
|
|
2725
2784
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
2726
|
-
* @see https://www.gate.
|
|
2727
|
-
* @see https://www.gate.
|
|
2728
|
-
* @see https://www.gate.
|
|
2729
|
-
* @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
|
|
2730
2789
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
2731
2790
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2732
2791
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -2887,10 +2946,10 @@ export default class gate extends Exchange {
|
|
|
2887
2946
|
* @method
|
|
2888
2947
|
* @name gate#fetchTickers
|
|
2889
2948
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
2890
|
-
* @see https://www.gate.
|
|
2891
|
-
* @see https://www.gate.
|
|
2892
|
-
* @see https://www.gate.
|
|
2893
|
-
* @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
|
|
2894
2953
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
2895
2954
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2896
2955
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -3243,10 +3302,10 @@ export default class gate extends Exchange {
|
|
|
3243
3302
|
* @method
|
|
3244
3303
|
* @name gateio#fetchOHLCV
|
|
3245
3304
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
3246
|
-
* @see https://www.gate.
|
|
3247
|
-
* @see https://www.gate.
|
|
3248
|
-
* @see https://www.gate.
|
|
3249
|
-
* @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
|
|
3250
3309
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
3251
3310
|
* @param {string} timeframe the length of time each candle represents
|
|
3252
3311
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -3333,7 +3392,7 @@ export default class gate extends Exchange {
|
|
|
3333
3392
|
* @method
|
|
3334
3393
|
* @name gate#fetchFundingRateHistory
|
|
3335
3394
|
* @description fetches historical funding rate prices
|
|
3336
|
-
* @see https://www.gate.
|
|
3395
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#funding-rate-history
|
|
3337
3396
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
3338
3397
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
3339
3398
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
@@ -3442,10 +3501,10 @@ export default class gate extends Exchange {
|
|
|
3442
3501
|
* @method
|
|
3443
3502
|
* @name gate#fetchTrades
|
|
3444
3503
|
* @description get the list of most recent trades for a particular symbol
|
|
3445
|
-
* @see https://www.gate.
|
|
3446
|
-
* @see https://www.gate.
|
|
3447
|
-
* @see https://www.gate.
|
|
3448
|
-
* @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
|
|
3449
3508
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
3450
3509
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
3451
3510
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -3557,10 +3616,10 @@ export default class gate extends Exchange {
|
|
|
3557
3616
|
* @method
|
|
3558
3617
|
* @name gate#fetchOrderTrades
|
|
3559
3618
|
* @description fetch all the trades made from a single order
|
|
3560
|
-
* @see https://www.gate.
|
|
3561
|
-
* @see https://www.gate.
|
|
3562
|
-
* @see https://www.gate.
|
|
3563
|
-
* @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
|
|
3564
3623
|
* @param {string} id order id
|
|
3565
3624
|
* @param {string} symbol unified market symbol
|
|
3566
3625
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -3599,10 +3658,10 @@ export default class gate extends Exchange {
|
|
|
3599
3658
|
* @method
|
|
3600
3659
|
* @name gate#fetchMyTrades
|
|
3601
3660
|
* @description Fetch personal trading history
|
|
3602
|
-
* @see https://www.gate.
|
|
3603
|
-
* @see https://www.gate.
|
|
3604
|
-
* @see https://www.gate.
|
|
3605
|
-
* @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
|
|
3606
3665
|
* @param {string} symbol unified market symbol
|
|
3607
3666
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3608
3667
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -3911,7 +3970,7 @@ export default class gate extends Exchange {
|
|
|
3911
3970
|
* @method
|
|
3912
3971
|
* @name gate#fetchDeposits
|
|
3913
3972
|
* @description fetch all deposits made to an account
|
|
3914
|
-
* @see https://www.gate.
|
|
3973
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-deposit-records
|
|
3915
3974
|
* @param {string} code unified currency code
|
|
3916
3975
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
3917
3976
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -3949,7 +4008,7 @@ export default class gate extends Exchange {
|
|
|
3949
4008
|
* @method
|
|
3950
4009
|
* @name gate#fetchWithdrawals
|
|
3951
4010
|
* @description fetch all withdrawals made from an account
|
|
3952
|
-
* @see https://www.gate.
|
|
4011
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-withdrawal-records
|
|
3953
4012
|
* @param {string} code unified currency code
|
|
3954
4013
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
3955
4014
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -3987,7 +4046,7 @@ export default class gate extends Exchange {
|
|
|
3987
4046
|
* @method
|
|
3988
4047
|
* @name gate#withdraw
|
|
3989
4048
|
* @description make a withdrawal
|
|
3990
|
-
* @see https://www.gate.
|
|
4049
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#withdraw
|
|
3991
4050
|
* @param {string} code unified currency code
|
|
3992
4051
|
* @param {float} amount the amount to withdraw
|
|
3993
4052
|
* @param {string} address the address to withdraw to
|
|
@@ -4167,13 +4226,13 @@ export default class gate extends Exchange {
|
|
|
4167
4226
|
* @method
|
|
4168
4227
|
* @name gate#createOrder
|
|
4169
4228
|
* @description Create an order on the exchange
|
|
4170
|
-
* @see https://www.gate.
|
|
4171
|
-
* @see https://www.gate.
|
|
4172
|
-
* @see https://www.gate.
|
|
4173
|
-
* @see https://www.gate.
|
|
4174
|
-
* @see https://www.gate.
|
|
4175
|
-
* @see https://www.gate.
|
|
4176
|
-
* @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
|
|
4177
4236
|
* @param {string} symbol Unified CCXT market symbol
|
|
4178
4237
|
* @param {string} type 'limit' or 'market' *"market" is contract only*
|
|
4179
4238
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -4329,7 +4388,7 @@ export default class gate extends Exchange {
|
|
|
4329
4388
|
if (triggerValue !== undefined) {
|
|
4330
4389
|
throw new NotSupported(this.id + ' createOrders() does not support advanced order properties (stopPrice, takeProfitPrice, stopLossPrice)');
|
|
4331
4390
|
}
|
|
4332
|
-
extendedParams['textIsRequired'] = true; //
|
|
4391
|
+
extendedParams['textIsRequired'] = true; // the exchange requires a text parameter for each order here
|
|
4333
4392
|
const orderRequest = this.createOrderRequest(marketId, type, side, amount, price, extendedParams);
|
|
4334
4393
|
ordersRequests.push(orderRequest);
|
|
4335
4394
|
}
|
|
@@ -4344,9 +4403,9 @@ export default class gate extends Exchange {
|
|
|
4344
4403
|
* @method
|
|
4345
4404
|
* @name gate#createOrders
|
|
4346
4405
|
* @description create a list of trade orders
|
|
4347
|
-
* @see https://www.gate.
|
|
4348
|
-
* @see https://www.gate.
|
|
4349
|
-
* @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
|
|
4350
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
|
|
4351
4410
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4352
4411
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -4630,7 +4689,7 @@ export default class gate extends Exchange {
|
|
|
4630
4689
|
* @method
|
|
4631
4690
|
* @name gate#createMarketBuyOrderWithCost
|
|
4632
4691
|
* @description create a market buy order by providing the symbol and cost
|
|
4633
|
-
* @see https://www.gate.
|
|
4692
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#create-an-order
|
|
4634
4693
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
4635
4694
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
4636
4695
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -4694,8 +4753,8 @@ export default class gate extends Exchange {
|
|
|
4694
4753
|
* @method
|
|
4695
4754
|
* @name gate#editOrder
|
|
4696
4755
|
* @description edit a trade order, gate currently only supports the modification of the price or amount fields
|
|
4697
|
-
* @see https://www.gate.
|
|
4698
|
-
* @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
|
|
4699
4758
|
* @param {string} id order id
|
|
4700
4759
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
4701
4760
|
* @param {string} type 'market' or 'limit'
|
|
@@ -5055,10 +5114,10 @@ export default class gate extends Exchange {
|
|
|
5055
5114
|
* @method
|
|
5056
5115
|
* @name gate#fetchOrder
|
|
5057
5116
|
* @description Retrieves information on an order
|
|
5058
|
-
* @see https://www.gate.
|
|
5059
|
-
* @see https://www.gate.
|
|
5060
|
-
* @see https://www.gate.
|
|
5061
|
-
* @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
|
|
5062
5121
|
* @param {string} id Order id
|
|
5063
5122
|
* @param {string} symbol Unified market symbol, *required for spot and margin*
|
|
5064
5123
|
* @param {object} [params] Parameters specified by the exchange api
|
|
@@ -5114,8 +5173,8 @@ export default class gate extends Exchange {
|
|
|
5114
5173
|
* @method
|
|
5115
5174
|
* @name gate#fetchOpenOrders
|
|
5116
5175
|
* @description fetch all unfilled currently open orders
|
|
5117
|
-
* @see https://www.gate.
|
|
5118
|
-
* @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
|
|
5119
5178
|
* @param {string} symbol unified market symbol
|
|
5120
5179
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
5121
5180
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -5133,14 +5192,14 @@ export default class gate extends Exchange {
|
|
|
5133
5192
|
* @method
|
|
5134
5193
|
* @name gate#fetchClosedOrders
|
|
5135
5194
|
* @description fetches information on multiple closed orders made by the user
|
|
5136
|
-
* @see https://www.gate.
|
|
5137
|
-
* @see https://www.gate.
|
|
5138
|
-
* @see https://www.gate.
|
|
5139
|
-
* @see https://www.gate.
|
|
5140
|
-
* @see https://www.gate.
|
|
5141
|
-
* @see https://www.gate.
|
|
5142
|
-
* @see https://www.gate.
|
|
5143
|
-
* @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
|
|
5144
5203
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
5145
5204
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
5146
5205
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -5436,10 +5495,10 @@ export default class gate extends Exchange {
|
|
|
5436
5495
|
* @method
|
|
5437
5496
|
* @name gate#cancelOrder
|
|
5438
5497
|
* @description Cancels an open order
|
|
5439
|
-
* @see https://www.gate.
|
|
5440
|
-
* @see https://www.gate.
|
|
5441
|
-
* @see https://www.gate.
|
|
5442
|
-
* @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
|
|
5443
5502
|
* @param {string} id Order id
|
|
5444
5503
|
* @param {string} symbol Unified market symbol
|
|
5445
5504
|
* @param {object} [params] Parameters specified by the exchange api
|
|
@@ -5574,8 +5633,8 @@ export default class gate extends Exchange {
|
|
|
5574
5633
|
* @method
|
|
5575
5634
|
* @name gate#cancelOrders
|
|
5576
5635
|
* @description cancel multiple orders
|
|
5577
|
-
* @see https://www.gate.
|
|
5578
|
-
* @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
|
|
5579
5638
|
* @param {string[]} ids order ids
|
|
5580
5639
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
5581
5640
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -5623,7 +5682,7 @@ export default class gate extends Exchange {
|
|
|
5623
5682
|
* @method
|
|
5624
5683
|
* @name gate#cancelOrdersForSymbols
|
|
5625
5684
|
* @description cancel multiple orders for multiple symbols
|
|
5626
|
-
* @see https://www.gate.
|
|
5685
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#cancel-a-batch-of-orders-with-an-id-list
|
|
5627
5686
|
* @param {CancellationRequest[]} orders list of order ids with symbol, example [{"id": "a", "symbol": "BTC/USDT"}, {"id": "b", "symbol": "ETH/USDT"}]
|
|
5628
5687
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5629
5688
|
* @param {string[]} [params.clientOrderIds] client order ids
|
|
@@ -5663,10 +5722,10 @@ export default class gate extends Exchange {
|
|
|
5663
5722
|
* @method
|
|
5664
5723
|
* @name gate#cancelAllOrders
|
|
5665
5724
|
* @description cancel all open orders
|
|
5666
|
-
* @see https://www.gate.
|
|
5667
|
-
* @see https://www.gate.
|
|
5668
|
-
* @see https://www.gate.
|
|
5669
|
-
* @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
|
|
5670
5729
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
5671
5730
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5672
5731
|
* @param {bool} [params.unifiedAccount] set to true for canceling unified account orders
|
|
@@ -5745,7 +5804,7 @@ export default class gate extends Exchange {
|
|
|
5745
5804
|
* @method
|
|
5746
5805
|
* @name gate#transfer
|
|
5747
5806
|
* @description transfer currency internally between wallets on the same account
|
|
5748
|
-
* @see https://www.gate.
|
|
5807
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#transfer-between-trading-accounts
|
|
5749
5808
|
* @param {string} code unified currency code for currency being transferred
|
|
5750
5809
|
* @param {float} amount the amount of currency to transfer
|
|
5751
5810
|
* @param {string} fromAccount the account to transfer currency from
|
|
@@ -5830,8 +5889,8 @@ export default class gate extends Exchange {
|
|
|
5830
5889
|
* @method
|
|
5831
5890
|
* @name gate#setLeverage
|
|
5832
5891
|
* @description set the level of leverage for a market
|
|
5833
|
-
* @see https://www.gate.
|
|
5834
|
-
* @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
|
|
5835
5894
|
* @param {float} leverage the rate of leverage
|
|
5836
5895
|
* @param {string} symbol unified market symbol
|
|
5837
5896
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6050,9 +6109,9 @@ export default class gate extends Exchange {
|
|
|
6050
6109
|
* @method
|
|
6051
6110
|
* @name gate#fetchPosition
|
|
6052
6111
|
* @description fetch data on an open contract position
|
|
6053
|
-
* @see https://www.gate.
|
|
6054
|
-
* @see https://www.gate.
|
|
6055
|
-
* @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
|
|
6056
6115
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
6057
6116
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6058
6117
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
@@ -6138,9 +6197,9 @@ export default class gate extends Exchange {
|
|
|
6138
6197
|
* @method
|
|
6139
6198
|
* @name gate#fetchPositions
|
|
6140
6199
|
* @description fetch all open positions
|
|
6141
|
-
* @see https://www.gate.
|
|
6142
|
-
* @see https://www.gate.
|
|
6143
|
-
* @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
|
|
6144
6203
|
* @param {string[]|undefined} symbols Not used by gate, but parsed internally by CCXT
|
|
6145
6204
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6146
6205
|
* @param {string} [params.settle] 'btc' or 'usdt' - settle currency for perpetual swap and future - default="usdt" for swap and "btc" for future
|
|
@@ -6249,8 +6308,8 @@ export default class gate extends Exchange {
|
|
|
6249
6308
|
* @method
|
|
6250
6309
|
* @name gate#fetchLeverageTiers
|
|
6251
6310
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
6252
|
-
* @see https://www.gate.
|
|
6253
|
-
* @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
|
|
6254
6313
|
* @param {string[]} [symbols] list of unified market symbols
|
|
6255
6314
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6256
6315
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
@@ -6370,7 +6429,7 @@ export default class gate extends Exchange {
|
|
|
6370
6429
|
* @method
|
|
6371
6430
|
* @name gate#fetchMarketLeverageTiers
|
|
6372
6431
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market
|
|
6373
|
-
* @see https://www.gate.
|
|
6432
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-risk-limit-tiers
|
|
6374
6433
|
* @param {string} symbol unified market symbol
|
|
6375
6434
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6376
6435
|
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
|
|
@@ -6383,7 +6442,7 @@ export default class gate extends Exchange {
|
|
|
6383
6442
|
if (type !== 'future' && type !== 'swap') {
|
|
6384
6443
|
throw new BadRequest(this.id + ' fetchMarketLeverageTiers only supports swap and future');
|
|
6385
6444
|
}
|
|
6386
|
-
const response = await this.
|
|
6445
|
+
const response = await this.publicFuturesGetSettleRiskLimitTiers(this.extend(request, requestParams));
|
|
6387
6446
|
//
|
|
6388
6447
|
// [
|
|
6389
6448
|
// {
|
|
@@ -6464,7 +6523,7 @@ export default class gate extends Exchange {
|
|
|
6464
6523
|
* @method
|
|
6465
6524
|
* @name gate#repayMargin
|
|
6466
6525
|
* @description repay borrowed margin and interest
|
|
6467
|
-
* @see https://www.gate.
|
|
6526
|
+
* @see https://www.gate.com/docs/apiv4/en/#repay-a-loan
|
|
6468
6527
|
* @param {string} symbol unified market symbol
|
|
6469
6528
|
* @param {string} code unified currency code of the currency to repay
|
|
6470
6529
|
* @param {float} amount the amount to repay
|
|
@@ -6493,8 +6552,8 @@ export default class gate extends Exchange {
|
|
|
6493
6552
|
* @method
|
|
6494
6553
|
* @name gate#repayCrossMargin
|
|
6495
6554
|
* @description repay cross margin borrowed margin and interest
|
|
6496
|
-
* @see https://www.gate.
|
|
6497
|
-
* @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
|
|
6498
6557
|
* @param {string} code unified currency code of the currency to repay
|
|
6499
6558
|
* @param {float} amount the amount to repay
|
|
6500
6559
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6544,7 +6603,7 @@ export default class gate extends Exchange {
|
|
|
6544
6603
|
* @method
|
|
6545
6604
|
* @name gate#borrowIsolatedMargin
|
|
6546
6605
|
* @description create a loan to borrow margin
|
|
6547
|
-
* @see https://www.gate.
|
|
6606
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#marginuni
|
|
6548
6607
|
* @param {string} symbol unified market symbol, required for isolated margin
|
|
6549
6608
|
* @param {string} code unified currency code of the currency to borrow
|
|
6550
6609
|
* @param {float} amount the amount to borrow
|
|
@@ -6589,8 +6648,8 @@ export default class gate extends Exchange {
|
|
|
6589
6648
|
* @method
|
|
6590
6649
|
* @name gate#borrowMargin
|
|
6591
6650
|
* @description create a loan to borrow margin
|
|
6592
|
-
* @see https://www.gate.
|
|
6593
|
-
* @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
|
|
6594
6653
|
* @param {string} code unified currency code of the currency to borrow
|
|
6595
6654
|
* @param {float} amount the amount to borrow
|
|
6596
6655
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6690,9 +6749,9 @@ export default class gate extends Exchange {
|
|
|
6690
6749
|
* @method
|
|
6691
6750
|
* @name gate#fetchBorrowInterest
|
|
6692
6751
|
* @description fetch the interest owed by the user for borrowing currency for margin trading
|
|
6693
|
-
* @see https://www.gate.
|
|
6694
|
-
* @see https://www.gate.
|
|
6695
|
-
* @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
|
|
6696
6755
|
* @param {string} [code] unified currency code
|
|
6697
6756
|
* @param {string} [symbol] unified market symbol when fetching interest in isolated markets
|
|
6698
6757
|
* @param {int} [since] the earliest time in ms to fetch borrow interest for
|
|
@@ -6920,8 +6979,8 @@ export default class gate extends Exchange {
|
|
|
6920
6979
|
* @method
|
|
6921
6980
|
* @name gate#reduceMargin
|
|
6922
6981
|
* @description remove margin from a position
|
|
6923
|
-
* @see https://www.gate.
|
|
6924
|
-
* @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
|
|
6925
6984
|
* @param {string} symbol unified market symbol
|
|
6926
6985
|
* @param {float} amount the amount of margin to remove
|
|
6927
6986
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6934,8 +6993,8 @@ export default class gate extends Exchange {
|
|
|
6934
6993
|
* @method
|
|
6935
6994
|
* @name gate#addMargin
|
|
6936
6995
|
* @description add margin
|
|
6937
|
-
* @see https://www.gate.
|
|
6938
|
-
* @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
|
|
6939
6998
|
* @param {string} symbol unified market symbol
|
|
6940
6999
|
* @param {float} amount amount of margin to add
|
|
6941
7000
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6948,7 +7007,7 @@ export default class gate extends Exchange {
|
|
|
6948
7007
|
* @method
|
|
6949
7008
|
* @name gate#fetchOpenInterest
|
|
6950
7009
|
* @description Retrieves the open interest of a currency
|
|
6951
|
-
* @see https://www.gate.
|
|
7010
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#futures-stats
|
|
6952
7011
|
* @param {string} symbol Unified CCXT market symbol
|
|
6953
7012
|
* @param {string} timeframe "5m", "15m", "30m", "1h", "4h", "1d"
|
|
6954
7013
|
* @param {int} [since] the time(ms) of the earliest record to retrieve as a unix timestamp
|
|
@@ -7036,7 +7095,7 @@ export default class gate extends Exchange {
|
|
|
7036
7095
|
* @method
|
|
7037
7096
|
* @name gate#fetchSettlementHistory
|
|
7038
7097
|
* @description fetches historical settlement records
|
|
7039
|
-
* @see https://www.gate.
|
|
7098
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-settlement-history-2
|
|
7040
7099
|
* @param {string} symbol unified market symbol of the settlement history, required on gate
|
|
7041
7100
|
* @param {int} [since] timestamp in ms
|
|
7042
7101
|
* @param {int} [limit] number of records
|
|
@@ -7086,7 +7145,7 @@ export default class gate extends Exchange {
|
|
|
7086
7145
|
* @method
|
|
7087
7146
|
* @name gate#fetchMySettlementHistory
|
|
7088
7147
|
* @description fetches historical settlement records of the user
|
|
7089
|
-
* @see https://www.gate.
|
|
7148
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-my-options-settlements
|
|
7090
7149
|
* @param {string} symbol unified market symbol of the settlement history
|
|
7091
7150
|
* @param {int} [since] timestamp in ms
|
|
7092
7151
|
* @param {int} [limit] number of records
|
|
@@ -7216,11 +7275,11 @@ export default class gate extends Exchange {
|
|
|
7216
7275
|
* @method
|
|
7217
7276
|
* @name gate#fetchLedger
|
|
7218
7277
|
* @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
|
7219
|
-
* @see https://www.gate.
|
|
7220
|
-
* @see https://www.gate.
|
|
7221
|
-
* @see https://www.gate.
|
|
7222
|
-
* @see https://www.gate.
|
|
7223
|
-
* @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
|
|
7224
7283
|
* @param {string} [code] unified currency code
|
|
7225
7284
|
* @param {int} [since] timestamp in ms of the earliest ledger entry
|
|
7226
7285
|
* @param {int} [limit] max number of ledger entries to return
|
|
@@ -7462,7 +7521,7 @@ export default class gate extends Exchange {
|
|
|
7462
7521
|
* @method
|
|
7463
7522
|
* @name gate#setPositionMode
|
|
7464
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
|
|
7465
|
-
* @see https://www.gate.
|
|
7524
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#enable-or-disable-dual-mode
|
|
7466
7525
|
* @param {bool} hedged set to true to enable dual mode
|
|
7467
7526
|
* @param {string|undefined} symbol if passed, dual mode is set for all markets with the same settle currency
|
|
7468
7527
|
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
@@ -7479,7 +7538,7 @@ export default class gate extends Exchange {
|
|
|
7479
7538
|
* @method
|
|
7480
7539
|
* @name gate#fetchUnderlyingAssets
|
|
7481
7540
|
* @description fetches the market ids of underlying assets for a specific contract market type
|
|
7482
|
-
* @see https://www.gate.
|
|
7541
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-underlyings
|
|
7483
7542
|
* @param {object} [params] exchange specific params
|
|
7484
7543
|
* @param {string} [params.type] the contract market type, 'option', 'swap' or 'future', the default is 'option'
|
|
7485
7544
|
* @returns {object[]} a list of [underlying assets]{@link https://docs.ccxt.com/#/?id=underlying-assets-structure}
|
|
@@ -7518,7 +7577,7 @@ export default class gate extends Exchange {
|
|
|
7518
7577
|
* @method
|
|
7519
7578
|
* @name gate#fetchLiquidations
|
|
7520
7579
|
* @description retrieves the public liquidations of a trading pair
|
|
7521
|
-
* @see https://www.gate.
|
|
7580
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-liquidation-history
|
|
7522
7581
|
* @param {string} symbol unified CCXT market symbol
|
|
7523
7582
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
7524
7583
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
@@ -7562,9 +7621,9 @@ export default class gate extends Exchange {
|
|
|
7562
7621
|
* @method
|
|
7563
7622
|
* @name gate#fetchMyLiquidations
|
|
7564
7623
|
* @description retrieves the users liquidated positions
|
|
7565
|
-
* @see https://www.gate.
|
|
7566
|
-
* @see https://www.gate.
|
|
7567
|
-
* @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
|
|
7568
7627
|
* @param {string} symbol unified CCXT market symbol
|
|
7569
7628
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
7570
7629
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
@@ -7729,7 +7788,7 @@ export default class gate extends Exchange {
|
|
|
7729
7788
|
* @method
|
|
7730
7789
|
* @name gate#fetchGreeks
|
|
7731
7790
|
* @description fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
|
|
7732
|
-
* @see https://www.gate.
|
|
7791
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
7733
7792
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
7734
7793
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7735
7794
|
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
|
|
@@ -7822,9 +7881,9 @@ export default class gate extends Exchange {
|
|
|
7822
7881
|
* @method
|
|
7823
7882
|
* @name gate#closePosition
|
|
7824
7883
|
* @description closes open positions for a market
|
|
7825
|
-
* @see https://www.gate.
|
|
7826
|
-
* @see https://www.gate.
|
|
7827
|
-
* @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
|
|
7828
7887
|
* @param {string} symbol Unified CCXT market symbol
|
|
7829
7888
|
* @param {string} side 'buy' or 'sell'
|
|
7830
7889
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
@@ -7844,9 +7903,9 @@ export default class gate extends Exchange {
|
|
|
7844
7903
|
* @method
|
|
7845
7904
|
* @name gate#fetchLeverage
|
|
7846
7905
|
* @description fetch the set leverage for a market
|
|
7847
|
-
* @see https://www.gate.
|
|
7848
|
-
* @see https://www.gate.
|
|
7849
|
-
* @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
|
|
7850
7909
|
* @param {string} symbol unified market symbol
|
|
7851
7910
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7852
7911
|
* @param {boolean} [params.unified] default false, set to true for fetching the unified accounts leverage
|
|
@@ -7954,8 +8013,8 @@ export default class gate extends Exchange {
|
|
|
7954
8013
|
* @method
|
|
7955
8014
|
* @name gate#fetchLeverages
|
|
7956
8015
|
* @description fetch the set leverage for all leverage markets, only spot margin is supported on gate
|
|
7957
|
-
* @see https://www.gate.
|
|
7958
|
-
* @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
|
|
7959
8018
|
* @param {string[]} symbols a list of unified market symbols
|
|
7960
8019
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7961
8020
|
* @param {boolean} [params.unified] default false, set to true for fetching unified account leverages
|
|
@@ -8016,7 +8075,7 @@ export default class gate extends Exchange {
|
|
|
8016
8075
|
* @method
|
|
8017
8076
|
* @name gate#fetchOption
|
|
8018
8077
|
* @description fetches option data that is commonly found in an option chain
|
|
8019
|
-
* @see https://www.gate.
|
|
8078
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#query-specified-contract-detail
|
|
8020
8079
|
* @param {string} symbol unified market symbol
|
|
8021
8080
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8022
8081
|
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/#/?id=option-chain-structure}
|
|
@@ -8074,7 +8133,7 @@ export default class gate extends Exchange {
|
|
|
8074
8133
|
* @method
|
|
8075
8134
|
* @name gate#fetchOptionChain
|
|
8076
8135
|
* @description fetches data for an underlying asset that is commonly found in an option chain
|
|
8077
|
-
* @see https://www.gate.
|
|
8136
|
+
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-the-contracts-with-specified-underlying-and-expiration-time
|
|
8078
8137
|
* @param {string} code base currency to fetch an option chain for
|
|
8079
8138
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8080
8139
|
* @param {string} [params.underlying] the underlying asset, can be obtained from fetchUnderlyingAssets ()
|
|
@@ -8200,8 +8259,8 @@ export default class gate extends Exchange {
|
|
|
8200
8259
|
* @method
|
|
8201
8260
|
* @name gate#fetchPositionsHistory
|
|
8202
8261
|
* @description fetches historical positions
|
|
8203
|
-
* @see https://www.gate.
|
|
8204
|
-
* @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
|
|
8205
8264
|
* @param {string[]} symbols unified conract symbols, must all have the same settle currency and the same market type
|
|
8206
8265
|
* @param {int} [since] the earliest time in ms to fetch positions for
|
|
8207
8266
|
* @param {int} [limit] the maximum amount of records to fetch, default=1000
|