ccxt 4.5.28 → 4.5.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -5
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/alpaca.js +21 -21
- package/dist/cjs/src/apex.js +20 -20
- package/dist/cjs/src/arkham.js +22 -22
- package/dist/cjs/src/ascendex.js +28 -28
- package/dist/cjs/src/backpack.js +22 -22
- package/dist/cjs/src/base/Exchange.js +48 -38
- package/dist/cjs/src/base/functions/throttle.js +54 -5
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +83 -82
- package/dist/cjs/src/bingx.js +46 -46
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +49 -48
- package/dist/cjs/src/bitbns.js +13 -13
- package/dist/cjs/src/bitfinex.js +33 -33
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitget.js +58 -57
- package/dist/cjs/src/bithumb.js +10 -10
- package/dist/cjs/src/bitmart.js +44 -44
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +20 -20
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +20 -20
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bittrade.js +20 -20
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/blofin.js +26 -26
- package/dist/cjs/src/btcalpha.js +35 -34
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +16 -16
- package/dist/cjs/src/btcturk.js +10 -10
- package/dist/cjs/src/bullish.js +26 -26
- package/dist/cjs/src/bybit.js +67 -67
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +40 -40
- package/dist/cjs/src/coinbaseexchange.js +22 -22
- package/dist/cjs/src/coinbaseinternational.js +22 -22
- package/dist/cjs/src/coincatch.js +39 -39
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +48 -48
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinmetro.js +14 -14
- package/dist/cjs/src/coinone.js +11 -11
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +32 -32
- package/dist/cjs/src/cryptomus.js +9 -9
- package/dist/cjs/src/deepcoin.js +33 -33
- package/dist/cjs/src/defx.js +23 -23
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +36 -36
- package/dist/cjs/src/derive.js +19 -19
- package/dist/cjs/src/digifinex.js +36 -36
- package/dist/cjs/src/dydx.js +22 -22
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +57 -57
- package/dist/cjs/src/gemini.js +16 -16
- package/dist/cjs/src/hashkey.js +35 -35
- package/dist/cjs/src/hibachi.js +24 -24
- package/dist/cjs/src/hitbtc.js +38 -38
- package/dist/cjs/src/hollaex.js +22 -22
- package/dist/cjs/src/htx.js +50 -50
- package/dist/cjs/src/hyperliquid.js +76 -42
- package/dist/cjs/src/independentreserve.js +13 -13
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +30 -30
- package/dist/cjs/src/krakenfutures.js +21 -21
- package/dist/cjs/src/kucoin.js +44 -44
- package/dist/cjs/src/kucoinfutures.js +42 -40
- package/dist/cjs/src/latoken.js +16 -16
- package/dist/cjs/src/lbank.js +23 -23
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/mercado.js +11 -11
- package/dist/cjs/src/mexc.js +47 -47
- package/dist/cjs/src/modetrade.js +37 -35
- package/dist/cjs/src/ndax.js +19 -19
- package/dist/cjs/src/novadax.js +19 -19
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okx.js +83 -83
- package/dist/cjs/src/onetrading.js +34 -33
- package/dist/cjs/src/oxfun.js +25 -25
- package/dist/cjs/src/p2b.js +11 -11
- package/dist/cjs/src/paradex.js +54 -54
- package/dist/cjs/src/paymium.js +20 -21
- package/dist/cjs/src/phemex.js +35 -35
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +8 -8
- package/dist/cjs/src/pro/arkham.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/backpack.js +16 -16
- package/dist/cjs/src/pro/binance.js +35 -35
- package/dist/cjs/src/pro/bingx.js +9 -9
- package/dist/cjs/src/pro/bitfinex.js +8 -8
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bithumb.js +3 -3
- package/dist/cjs/src/pro/bitmart.js +388 -31
- package/dist/cjs/src/pro/bitmex.js +9 -9
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrade.js +3 -3
- package/dist/cjs/src/pro/bitvavo.js +19 -19
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +10 -10
- package/dist/cjs/src/pro/bullish.js +6 -6
- package/dist/cjs/src/pro/bybit.js +19 -19
- package/dist/cjs/src/pro/cex.js +13 -13
- package/dist/cjs/src/pro/coinbase.js +13 -13
- package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
- package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
- package/dist/cjs/src/pro/coincatch.js +10 -10
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +10 -10
- package/dist/cjs/src/pro/coinone.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +20 -20
- package/dist/cjs/src/pro/deepcoin.js +8 -8
- package/dist/cjs/src/pro/defx.js +15 -15
- package/dist/cjs/src/pro/deribit.js +10 -10
- package/dist/cjs/src/pro/derive.js +6 -6
- package/dist/cjs/src/pro/dydx.js +3 -3
- package/dist/cjs/src/pro/exmo.js +7 -7
- package/dist/cjs/src/pro/gate.js +21 -59
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +6 -6
- package/dist/cjs/src/pro/hitbtc.js +8 -8
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +9 -9
- package/dist/cjs/src/pro/hyperliquid.js +103 -14
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +15 -15
- package/dist/cjs/src/pro/krakenfutures.js +10 -10
- package/dist/cjs/src/pro/kucoin.js +15 -15
- package/dist/cjs/src/pro/kucoinfutures.js +13 -13
- package/dist/cjs/src/pro/lbank.js +5 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +13 -13
- package/dist/cjs/src/pro/modetrade.js +8 -8
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okx.js +25 -25
- package/dist/cjs/src/pro/onetrading.js +6 -6
- package/dist/cjs/src/pro/oxfun.js +13 -13
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/paradex.js +8 -8
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +8 -8
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/toobit.js +9 -9
- package/dist/cjs/src/pro/upbit.js +9 -9
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +13 -13
- package/dist/cjs/src/pro/woofipro.js +20 -20
- package/dist/cjs/src/pro/xt.js +2 -2
- package/dist/cjs/src/probit.js +18 -18
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +17 -17
- package/dist/cjs/src/toobit.js +31 -29
- package/dist/cjs/src/upbit.js +23 -23
- package/dist/cjs/src/wavesexchange.js +86 -85
- package/dist/cjs/src/whitebit.js +44 -44
- package/dist/cjs/src/woo.js +51 -49
- package/dist/cjs/src/woofipro.js +104 -82
- package/dist/cjs/src/xt.js +17 -12
- package/dist/cjs/src/yobit.js +15 -15
- package/dist/cjs/src/zaif.js +38 -9
- package/dist/cjs/src/zebpay.js +35 -20
- package/dist/cjs/src/zonda.js +14 -14
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/alpaca.d.ts +21 -21
- package/js/src/alpaca.js +21 -21
- package/js/src/apex.d.ts +20 -20
- package/js/src/apex.js +20 -20
- package/js/src/arkham.d.ts +22 -22
- package/js/src/arkham.js +22 -22
- package/js/src/ascendex.d.ts +28 -28
- package/js/src/ascendex.js +28 -28
- package/js/src/backpack.d.ts +21 -21
- package/js/src/backpack.js +22 -22
- package/js/src/base/Exchange.d.ts +6 -3
- package/js/src/base/Exchange.js +48 -38
- package/js/src/base/functions/throttle.d.ts +22 -0
- package/js/src/base/functions/throttle.js +54 -5
- package/js/src/bigone.d.ts +19 -19
- package/js/src/bigone.js +19 -19
- package/js/src/binance.d.ts +82 -82
- package/js/src/binance.js +83 -82
- package/js/src/bingx.d.ts +46 -46
- package/js/src/bingx.js +46 -46
- package/js/src/bit2c.d.ts +11 -11
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.d.ts +12 -12
- package/js/src/bitbank.js +49 -48
- package/js/src/bitbns.d.ts +13 -13
- package/js/src/bitbns.js +13 -13
- package/js/src/bitfinex.d.ts +33 -33
- package/js/src/bitfinex.js +33 -33
- package/js/src/bitflyer.d.ts +17 -17
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitget.d.ts +57 -57
- package/js/src/bitget.js +58 -57
- package/js/src/bithumb.d.ts +10 -10
- package/js/src/bithumb.js +10 -10
- package/js/src/bitmart.d.ts +42 -42
- package/js/src/bitmart.js +44 -44
- package/js/src/bitmex.d.ts +24 -24
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.d.ts +20 -20
- package/js/src/bitopro.js +20 -20
- package/js/src/bitrue.d.ts +18 -18
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.d.ts +20 -20
- package/js/src/bitso.js +20 -20
- package/js/src/bitstamp.d.ts +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bittrade.d.ts +20 -20
- package/js/src/bittrade.js +20 -20
- package/js/src/bitvavo.d.ts +19 -19
- package/js/src/bitvavo.js +19 -19
- package/js/src/blockchaincom.d.ts +20 -20
- package/js/src/blockchaincom.js +20 -20
- package/js/src/blofin.d.ts +26 -26
- package/js/src/blofin.js +26 -26
- package/js/src/btcalpha.d.ts +14 -14
- package/js/src/btcalpha.js +35 -34
- package/js/src/btcbox.d.ts +10 -10
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.d.ts +16 -16
- package/js/src/btcmarkets.js +16 -16
- package/js/src/btcturk.d.ts +10 -10
- package/js/src/btcturk.js +10 -10
- package/js/src/bullish.d.ts +26 -26
- package/js/src/bullish.js +26 -26
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +67 -67
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +40 -40
- package/js/src/coinbase.js +40 -40
- package/js/src/coinbaseexchange.d.ts +22 -22
- package/js/src/coinbaseexchange.js +22 -22
- package/js/src/coinbaseinternational.d.ts +22 -22
- package/js/src/coinbaseinternational.js +22 -22
- package/js/src/coincatch.d.ts +39 -39
- package/js/src/coincatch.js +39 -39
- package/js/src/coincheck.d.ts +11 -11
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.d.ts +48 -48
- package/js/src/coinex.js +48 -48
- package/js/src/coinmate.d.ts +14 -14
- package/js/src/coinmate.js +14 -14
- package/js/src/coinmetro.d.ts +14 -14
- package/js/src/coinmetro.js +14 -14
- package/js/src/coinone.d.ts +11 -11
- package/js/src/coinone.js +11 -11
- package/js/src/coinsph.d.ts +20 -20
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.d.ts +8 -8
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.d.ts +32 -32
- package/js/src/cryptocom.js +32 -32
- package/js/src/cryptomus.d.ts +9 -9
- package/js/src/cryptomus.js +9 -9
- package/js/src/deepcoin.d.ts +33 -33
- package/js/src/deepcoin.js +33 -33
- package/js/src/defx.d.ts +23 -23
- package/js/src/defx.js +23 -23
- package/js/src/delta.d.ts +29 -29
- package/js/src/delta.js +29 -29
- package/js/src/deribit.d.ts +36 -36
- package/js/src/deribit.js +36 -36
- package/js/src/derive.d.ts +19 -19
- package/js/src/derive.js +19 -19
- package/js/src/digifinex.d.ts +36 -36
- package/js/src/digifinex.js +36 -36
- package/js/src/dydx.d.ts +22 -22
- package/js/src/dydx.js +22 -22
- package/js/src/exmo.d.ts +29 -29
- package/js/src/exmo.js +29 -29
- package/js/src/foxbit.d.ts +23 -23
- package/js/src/foxbit.js +23 -23
- package/js/src/gate.d.ts +57 -57
- package/js/src/gate.js +57 -57
- package/js/src/gemini.d.ts +16 -16
- package/js/src/gemini.js +16 -16
- package/js/src/hashkey.d.ts +35 -35
- package/js/src/hashkey.js +35 -35
- package/js/src/hibachi.d.ts +24 -24
- package/js/src/hibachi.js +24 -24
- package/js/src/hitbtc.d.ts +38 -38
- package/js/src/hitbtc.js +38 -38
- package/js/src/hollaex.d.ts +22 -22
- package/js/src/hollaex.js +22 -22
- package/js/src/htx.d.ts +50 -50
- package/js/src/htx.js +50 -50
- package/js/src/hyperliquid.d.ts +46 -36
- package/js/src/hyperliquid.js +76 -42
- package/js/src/independentreserve.d.ts +13 -13
- package/js/src/independentreserve.js +13 -13
- package/js/src/indodax.d.ts +14 -14
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.d.ts +30 -30
- package/js/src/kraken.js +30 -30
- package/js/src/krakenfutures.d.ts +21 -21
- package/js/src/krakenfutures.js +21 -21
- package/js/src/kucoin.d.ts +44 -44
- package/js/src/kucoin.js +44 -44
- package/js/src/kucoinfutures.d.ts +35 -35
- package/js/src/kucoinfutures.js +42 -40
- package/js/src/latoken.d.ts +16 -16
- package/js/src/latoken.js +16 -16
- package/js/src/lbank.d.ts +23 -23
- package/js/src/lbank.js +23 -23
- package/js/src/luno.d.ts +17 -17
- package/js/src/luno.js +17 -17
- package/js/src/mercado.d.ts +11 -11
- package/js/src/mercado.js +11 -11
- package/js/src/mexc.d.ts +47 -47
- package/js/src/mexc.js +47 -47
- package/js/src/modetrade.d.ts +31 -31
- package/js/src/modetrade.js +37 -35
- package/js/src/ndax.d.ts +19 -19
- package/js/src/ndax.js +19 -19
- package/js/src/novadax.d.ts +19 -19
- package/js/src/novadax.js +19 -19
- package/js/src/oceanex.d.ts +16 -16
- package/js/src/oceanex.js +16 -16
- package/js/src/okx.d.ts +74 -74
- package/js/src/okx.js +83 -83
- package/js/src/onetrading.d.ts +34 -33
- package/js/src/onetrading.js +34 -33
- package/js/src/oxfun.d.ts +25 -25
- package/js/src/oxfun.js +25 -25
- package/js/src/p2b.d.ts +11 -11
- package/js/src/p2b.js +11 -11
- package/js/src/paradex.d.ts +54 -54
- package/js/src/paradex.js +54 -54
- package/js/src/paymium.d.ts +20 -21
- package/js/src/paymium.js +20 -21
- package/js/src/phemex.d.ts +30 -30
- package/js/src/phemex.js +35 -35
- package/js/src/poloniex.d.ts +26 -26
- package/js/src/poloniex.js +27 -27
- package/js/src/pro/alpaca.d.ts +5 -5
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +8 -8
- package/js/src/pro/apex.js +8 -8
- package/js/src/pro/arkham.d.ts +5 -5
- package/js/src/pro/arkham.js +5 -5
- package/js/src/pro/ascendex.d.ts +5 -5
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/backpack.d.ts +16 -16
- package/js/src/pro/backpack.js +16 -16
- package/js/src/pro/binance.d.ts +35 -35
- package/js/src/pro/binance.js +35 -35
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +9 -9
- package/js/src/pro/bitfinex.d.ts +8 -8
- package/js/src/pro/bitfinex.js +8 -8
- package/js/src/pro/bitget.d.ts +12 -12
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bithumb.d.ts +3 -3
- package/js/src/pro/bithumb.js +3 -3
- package/js/src/pro/bitmart.d.ts +120 -9
- package/js/src/pro/bitmart.js +388 -31
- package/js/src/pro/bitmex.d.ts +9 -9
- package/js/src/pro/bitmex.js +9 -9
- package/js/src/pro/bitopro.d.ts +5 -5
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.d.ts +3 -3
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrade.d.ts +3 -3
- package/js/src/pro/bittrade.js +3 -3
- package/js/src/pro/bitvavo.d.ts +19 -19
- package/js/src/pro/bitvavo.js +19 -19
- package/js/src/pro/blockchaincom.d.ts +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +10 -10
- package/js/src/pro/blofin.js +10 -10
- package/js/src/pro/bullish.d.ts +6 -6
- package/js/src/pro/bullish.js +6 -6
- package/js/src/pro/bybit.d.ts +19 -19
- package/js/src/pro/bybit.js +19 -19
- package/js/src/pro/cex.d.ts +13 -13
- package/js/src/pro/cex.js +13 -13
- package/js/src/pro/coinbase.d.ts +13 -13
- package/js/src/pro/coinbase.js +13 -13
- package/js/src/pro/coinbaseexchange.d.ts +10 -10
- package/js/src/pro/coinbaseexchange.js +10 -10
- package/js/src/pro/coinbaseinternational.d.ts +8 -8
- package/js/src/pro/coinbaseinternational.js +8 -8
- package/js/src/pro/coincatch.d.ts +10 -10
- package/js/src/pro/coincatch.js +10 -10
- package/js/src/pro/coincheck.d.ts +2 -2
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +10 -10
- package/js/src/pro/coinex.js +10 -10
- package/js/src/pro/coinone.d.ts +3 -3
- package/js/src/pro/coinone.js +3 -3
- package/js/src/pro/cryptocom.d.ts +20 -20
- package/js/src/pro/cryptocom.js +20 -20
- package/js/src/pro/deepcoin.d.ts +8 -8
- package/js/src/pro/deepcoin.js +8 -8
- package/js/src/pro/defx.d.ts +15 -15
- package/js/src/pro/defx.js +15 -15
- package/js/src/pro/deribit.d.ts +10 -10
- package/js/src/pro/deribit.js +10 -10
- package/js/src/pro/derive.d.ts +6 -6
- package/js/src/pro/derive.js +6 -6
- package/js/src/pro/dydx.d.ts +3 -3
- package/js/src/pro/dydx.js +3 -3
- package/js/src/pro/exmo.d.ts +7 -7
- package/js/src/pro/exmo.js +7 -7
- package/js/src/pro/gate.d.ts +22 -23
- package/js/src/pro/gate.js +21 -59
- package/js/src/pro/gemini.d.ts +6 -6
- package/js/src/pro/gemini.js +6 -6
- package/js/src/pro/hashkey.d.ts +6 -6
- package/js/src/pro/hashkey.js +6 -6
- package/js/src/pro/hitbtc.d.ts +8 -8
- package/js/src/pro/hitbtc.js +8 -8
- package/js/src/pro/hollaex.d.ts +5 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.d.ts +9 -9
- package/js/src/pro/htx.js +9 -9
- package/js/src/pro/hyperliquid.d.ts +38 -14
- package/js/src/pro/hyperliquid.js +103 -14
- package/js/src/pro/independentreserve.d.ts +2 -2
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +15 -15
- package/js/src/pro/kraken.js +15 -15
- package/js/src/pro/krakenfutures.d.ts +10 -10
- package/js/src/pro/krakenfutures.js +10 -10
- package/js/src/pro/kucoin.d.ts +15 -15
- package/js/src/pro/kucoin.js +15 -15
- package/js/src/pro/kucoinfutures.d.ts +13 -13
- package/js/src/pro/kucoinfutures.js +13 -13
- package/js/src/pro/lbank.d.ts +5 -5
- package/js/src/pro/lbank.js +5 -5
- package/js/src/pro/luno.d.ts +2 -2
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +13 -13
- package/js/src/pro/mexc.js +13 -13
- package/js/src/pro/modetrade.d.ts +8 -8
- package/js/src/pro/modetrade.js +8 -8
- package/js/src/pro/ndax.d.ts +3 -3
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okx.d.ts +25 -25
- package/js/src/pro/okx.js +25 -25
- package/js/src/pro/onetrading.d.ts +6 -6
- package/js/src/pro/onetrading.js +6 -6
- package/js/src/pro/oxfun.d.ts +13 -13
- package/js/src/pro/oxfun.js +13 -13
- package/js/src/pro/p2b.d.ts +5 -5
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/paradex.d.ts +8 -8
- package/js/src/pro/paradex.js +8 -8
- package/js/src/pro/phemex.d.ts +7 -7
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.d.ts +8 -8
- package/js/src/pro/poloniex.js +8 -8
- package/js/src/pro/probit.d.ts +6 -6
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/toobit.d.ts +9 -9
- package/js/src/pro/toobit.js +9 -9
- package/js/src/pro/upbit.d.ts +9 -9
- package/js/src/pro/upbit.js +9 -9
- package/js/src/pro/whitebit.d.ts +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.d.ts +13 -13
- package/js/src/pro/woo.js +13 -13
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +20 -20
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +2 -2
- package/js/src/probit.d.ts +18 -18
- package/js/src/probit.js +18 -18
- package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
- package/js/src/static_dependencies/ethers/utils/index.js +8 -1
- package/js/src/timex.d.ts +16 -16
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.d.ts +17 -17
- package/js/src/tokocrypto.js +17 -17
- package/js/src/toobit.d.ts +27 -27
- package/js/src/toobit.js +31 -29
- package/js/src/upbit.d.ts +23 -23
- package/js/src/upbit.js +23 -23
- package/js/src/wavesexchange.d.ts +15 -15
- package/js/src/wavesexchange.js +86 -85
- package/js/src/whitebit.d.ts +44 -44
- package/js/src/whitebit.js +44 -44
- package/js/src/woo.d.ts +45 -45
- package/js/src/woo.js +51 -49
- package/js/src/woofipro.d.ts +77 -77
- package/js/src/woofipro.js +104 -82
- package/js/src/xt.d.ts +12 -12
- package/js/src/xt.js +17 -12
- package/js/src/yobit.d.ts +15 -15
- package/js/src/yobit.js +15 -15
- package/js/src/zaif.d.ts +9 -9
- package/js/src/zaif.js +38 -9
- package/js/src/zebpay.d.ts +20 -20
- package/js/src/zebpay.js +35 -20
- package/js/src/zonda.d.ts +14 -14
- package/js/src/zonda.js +14 -14
- package/package.json +1 -1
package/js/src/gate.js
CHANGED
|
@@ -2024,7 +2024,7 @@ export default class gate extends Exchange {
|
|
|
2024
2024
|
* @see https://www.gate.com/docs/developers/apiv4/en/#get-a-single-contract
|
|
2025
2025
|
* @param {string} symbol unified market symbol
|
|
2026
2026
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2027
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
2027
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
2028
2028
|
*/
|
|
2029
2029
|
async fetchFundingRate(symbol, params = {}) {
|
|
2030
2030
|
await this.loadMarkets();
|
|
@@ -2087,7 +2087,7 @@ export default class gate extends Exchange {
|
|
|
2087
2087
|
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-futures-contracts
|
|
2088
2088
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2089
2089
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2090
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
2090
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols
|
|
2091
2091
|
*/
|
|
2092
2092
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
2093
2093
|
await this.loadMarkets();
|
|
@@ -2273,7 +2273,7 @@ export default class gate extends Exchange {
|
|
|
2273
2273
|
* @description fetch a dictionary of addresses for a currency, indexed by network
|
|
2274
2274
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
2275
2275
|
* @param {object} [params] extra parameters specific to the api endpoint
|
|
2276
|
-
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com
|
|
2276
|
+
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/?id=address-structure} indexed by the network
|
|
2277
2277
|
*/
|
|
2278
2278
|
async fetchDepositAddressesByNetwork(code, params = {}) {
|
|
2279
2279
|
await this.loadMarkets();
|
|
@@ -2296,7 +2296,7 @@ export default class gate extends Exchange {
|
|
|
2296
2296
|
* @param {string} code unified currency code
|
|
2297
2297
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2298
2298
|
* @param {string} [params.network] unified network code (not used directly by gate.com but used by ccxt to filter the response)
|
|
2299
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
2299
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
2300
2300
|
*/
|
|
2301
2301
|
async fetchDepositAddress(code, params = {}) {
|
|
2302
2302
|
await this.loadMarkets();
|
|
@@ -2333,7 +2333,7 @@ export default class gate extends Exchange {
|
|
|
2333
2333
|
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-personal-trading-fee
|
|
2334
2334
|
* @param {string} symbol unified market symbol
|
|
2335
2335
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2336
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
2336
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
2337
2337
|
*/
|
|
2338
2338
|
async fetchTradingFee(symbol, params = {}) {
|
|
2339
2339
|
await this.loadMarkets();
|
|
@@ -2364,7 +2364,7 @@ export default class gate extends Exchange {
|
|
|
2364
2364
|
* @description fetch the trading fees for multiple markets
|
|
2365
2365
|
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-personal-trading-fee
|
|
2366
2366
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2367
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
2367
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
2368
2368
|
*/
|
|
2369
2369
|
async fetchTradingFees(params = {}) {
|
|
2370
2370
|
await this.loadMarkets();
|
|
@@ -2432,7 +2432,7 @@ export default class gate extends Exchange {
|
|
|
2432
2432
|
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-withdrawal-status
|
|
2433
2433
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2434
2434
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2435
|
-
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com
|
|
2435
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
2436
2436
|
*/
|
|
2437
2437
|
async fetchTransactionFees(codes = undefined, params = {}) {
|
|
2438
2438
|
await this.loadMarkets();
|
|
@@ -2491,7 +2491,7 @@ export default class gate extends Exchange {
|
|
|
2491
2491
|
* @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-withdrawal-status
|
|
2492
2492
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2493
2493
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2494
|
-
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com
|
|
2494
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
2495
2495
|
*/
|
|
2496
2496
|
async fetchDepositWithdrawFees(codes = undefined, params = {}) {
|
|
2497
2497
|
await this.loadMarkets();
|
|
@@ -2577,7 +2577,7 @@ export default class gate extends Exchange {
|
|
|
2577
2577
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
2578
2578
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
2579
2579
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2580
|
-
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com
|
|
2580
|
+
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
2581
2581
|
*/
|
|
2582
2582
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2583
2583
|
await this.loadMarkets();
|
|
@@ -2665,7 +2665,7 @@ export default class gate extends Exchange {
|
|
|
2665
2665
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
2666
2666
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
2667
2667
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2668
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
2668
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
2669
2669
|
*/
|
|
2670
2670
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
2671
2671
|
await this.loadMarkets();
|
|
@@ -2790,7 +2790,7 @@ export default class gate extends Exchange {
|
|
|
2790
2790
|
* @see https://www.gate.com/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
2791
2791
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
2792
2792
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2793
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
2793
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
2794
2794
|
*/
|
|
2795
2795
|
async fetchTicker(symbol, params = {}) {
|
|
2796
2796
|
await this.loadMarkets();
|
|
@@ -2954,7 +2954,7 @@ export default class gate extends Exchange {
|
|
|
2954
2954
|
* @see https://www.gate.com/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
2955
2955
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
2956
2956
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2957
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
2957
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
2958
2958
|
*/
|
|
2959
2959
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
2960
2960
|
await this.loadMarkets();
|
|
@@ -3014,7 +3014,7 @@ export default class gate extends Exchange {
|
|
|
3014
3014
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for margin trading if not provided this.options['defaultMarginMode'] is used
|
|
3015
3015
|
* @param {string} [params.symbol] margin only - unified ccxt symbol
|
|
3016
3016
|
* @param {boolean} [params.unifiedAccount] default false, set to true for fetching the unified account balance
|
|
3017
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
3017
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
3018
3018
|
*/
|
|
3019
3019
|
async fetchBalance(params = {}) {
|
|
3020
3020
|
await this.loadMarkets();
|
|
@@ -3397,11 +3397,11 @@ export default class gate extends Exchange {
|
|
|
3397
3397
|
* @see https://www.gate.com/docs/developers/apiv4/en/#funding-rate-history
|
|
3398
3398
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
3399
3399
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
3400
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com
|
|
3400
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
3401
3401
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3402
3402
|
* @param {int} [params.until] timestamp in ms of the latest funding rate to fetch
|
|
3403
3403
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
3404
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
3404
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
3405
3405
|
*/
|
|
3406
3406
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3407
3407
|
if (symbol === undefined) {
|
|
@@ -3513,7 +3513,7 @@ export default class gate extends Exchange {
|
|
|
3513
3513
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3514
3514
|
* @param {int} [params.until] timestamp in ms of the latest trade to fetch
|
|
3515
3515
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
3516
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
3516
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
3517
3517
|
*/
|
|
3518
3518
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
3519
3519
|
await this.loadMarkets();
|
|
@@ -3627,7 +3627,7 @@ export default class gate extends Exchange {
|
|
|
3627
3627
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3628
3628
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
3629
3629
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3630
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
3630
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
3631
3631
|
*/
|
|
3632
3632
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3633
3633
|
if (symbol === undefined) {
|
|
@@ -3679,7 +3679,7 @@ export default class gate extends Exchange {
|
|
|
3679
3679
|
* @param {int} [params.count_total] *contract only* whether to return total number matched, default to 0(no return)
|
|
3680
3680
|
* @param {bool} [params.unifiedAccount] set to true for fetching trades in a unified account
|
|
3681
3681
|
* @param {bool} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
3682
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
3682
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
3683
3683
|
*/
|
|
3684
3684
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3685
3685
|
await this.loadMarkets();
|
|
@@ -3979,7 +3979,7 @@ export default class gate extends Exchange {
|
|
|
3979
3979
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3980
3980
|
* @param {int} [params.until] end time in ms
|
|
3981
3981
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
3982
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
3982
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
3983
3983
|
*/
|
|
3984
3984
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3985
3985
|
await this.loadMarkets();
|
|
@@ -4017,7 +4017,7 @@ export default class gate extends Exchange {
|
|
|
4017
4017
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4018
4018
|
* @param {int} [params.until] end time in ms
|
|
4019
4019
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
4020
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
4020
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
4021
4021
|
*/
|
|
4022
4022
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
4023
4023
|
await this.loadMarkets();
|
|
@@ -4054,7 +4054,7 @@ export default class gate extends Exchange {
|
|
|
4054
4054
|
* @param {string} address the address to withdraw to
|
|
4055
4055
|
* @param {string} tag
|
|
4056
4056
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4057
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
4057
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
4058
4058
|
*/
|
|
4059
4059
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
4060
4060
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -4257,7 +4257,7 @@ export default class gate extends Exchange {
|
|
|
4257
4257
|
* @param {int} [params.price_type] *contract only* 0 latest deal price, 1 mark price, 2 index price
|
|
4258
4258
|
* @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
|
|
4259
4259
|
* @param {bool} [params.unifiedAccount] set to true for creating an order in the unified account
|
|
4260
|
-
* @returns {object|undefined} [An order structure]{@link https://docs.ccxt.com
|
|
4260
|
+
* @returns {object|undefined} [An order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4261
4261
|
*/
|
|
4262
4262
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
4263
4263
|
await this.loadMarkets();
|
|
@@ -4410,7 +4410,7 @@ export default class gate extends Exchange {
|
|
|
4410
4410
|
* @see https://www.gate.com/docs/developers/apiv4/en/#create-a-batch-of-futures-orders
|
|
4411
4411
|
* @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
|
|
4412
4412
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4413
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
4413
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4414
4414
|
*/
|
|
4415
4415
|
async createOrders(orders, params = {}) {
|
|
4416
4416
|
await this.loadMarkets();
|
|
@@ -4696,7 +4696,7 @@ export default class gate extends Exchange {
|
|
|
4696
4696
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
4697
4697
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4698
4698
|
* @param {bool} [params.unifiedAccount] set to true for creating a unified account order
|
|
4699
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
4699
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4700
4700
|
*/
|
|
4701
4701
|
async createMarketBuyOrderWithCost(symbol, cost, params = {}) {
|
|
4702
4702
|
await this.loadMarkets();
|
|
@@ -4765,7 +4765,7 @@ export default class gate extends Exchange {
|
|
|
4765
4765
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
4766
4766
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4767
4767
|
* @param {bool} [params.unifiedAccount] set to true for editing an order in a unified account
|
|
4768
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
4768
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4769
4769
|
*/
|
|
4770
4770
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
4771
4771
|
await this.loadMarkets();
|
|
@@ -5128,7 +5128,7 @@ export default class gate extends Exchange {
|
|
|
5128
5128
|
* @param {string} [params.type] 'spot', 'swap', or 'future', if not provided this.options['defaultMarginMode'] is used
|
|
5129
5129
|
* @param {string} [params.settle] 'btc' or 'usdt' - settle currency for perpetual swap and future - market settle currency is used if symbol !== undefined, default="usdt" for swap and "btc" for future
|
|
5130
5130
|
* @param {bool} [params.unifiedAccount] set to true for fetching a unified account order
|
|
5131
|
-
* @returns An [order structure]{@link https://docs.ccxt.com
|
|
5131
|
+
* @returns An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5132
5132
|
*/
|
|
5133
5133
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
5134
5134
|
await this.loadMarkets();
|
|
@@ -5185,7 +5185,7 @@ export default class gate extends Exchange {
|
|
|
5185
5185
|
* @param {string} [params.type] spot, margin, swap or future, if not provided this.options['defaultType'] is used
|
|
5186
5186
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for type='margin', if not provided this.options['defaultMarginMode'] is used
|
|
5187
5187
|
* @param {bool} [params.unifiedAccount] set to true for fetching unified account orders
|
|
5188
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
5188
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5189
5189
|
*/
|
|
5190
5190
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5191
5191
|
return await this.fetchOrdersByStatus('open', symbol, since, limit, params);
|
|
@@ -5211,7 +5211,7 @@ export default class gate extends Exchange {
|
|
|
5211
5211
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for margin trading if not provided this.options['defaultMarginMode'] is used
|
|
5212
5212
|
* @param {boolean} [params.historical] *swap only* true for using historical endpoint
|
|
5213
5213
|
* @param {bool} [params.unifiedAccount] set to true for fetching unified account orders
|
|
5214
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
5214
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5215
5215
|
*/
|
|
5216
5216
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5217
5217
|
await this.loadMarkets();
|
|
@@ -5506,7 +5506,7 @@ export default class gate extends Exchange {
|
|
|
5506
5506
|
* @param {object} [params] Parameters specified by the exchange api
|
|
5507
5507
|
* @param {bool} [params.trigger] True if the order to be cancelled is a trigger order
|
|
5508
5508
|
* @param {bool} [params.unifiedAccount] set to true for canceling unified account orders
|
|
5509
|
-
* @returns An [order structure]{@link https://docs.ccxt.com
|
|
5509
|
+
* @returns An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5510
5510
|
*/
|
|
5511
5511
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
5512
5512
|
await this.loadMarkets();
|
|
@@ -5641,7 +5641,7 @@ export default class gate extends Exchange {
|
|
|
5641
5641
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
5642
5642
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5643
5643
|
* @param {bool} [params.unifiedAccount] set to true for canceling unified account orders
|
|
5644
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
5644
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5645
5645
|
*/
|
|
5646
5646
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
5647
5647
|
await this.loadMarkets();
|
|
@@ -5689,7 +5689,7 @@ export default class gate extends Exchange {
|
|
|
5689
5689
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5690
5690
|
* @param {string[]} [params.clientOrderIds] client order ids
|
|
5691
5691
|
* @param {bool} [params.unifiedAccount] set to true for canceling unified account orders
|
|
5692
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
5692
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5693
5693
|
*/
|
|
5694
5694
|
async cancelOrdersForSymbols(orders, params = {}) {
|
|
5695
5695
|
await this.loadMarkets();
|
|
@@ -5731,7 +5731,7 @@ export default class gate extends Exchange {
|
|
|
5731
5731
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
5732
5732
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5733
5733
|
* @param {bool} [params.unifiedAccount] set to true for canceling unified account orders
|
|
5734
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
5734
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5735
5735
|
*/
|
|
5736
5736
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
5737
5737
|
await this.loadMarkets();
|
|
@@ -5813,7 +5813,7 @@ export default class gate extends Exchange {
|
|
|
5813
5813
|
* @param {string} toAccount the account to transfer currency to
|
|
5814
5814
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5815
5815
|
* @param {string} [params.symbol] Unified market symbol *required for type == margin*
|
|
5816
|
-
* @returns A [transfer structure]{@link https://docs.ccxt.com
|
|
5816
|
+
* @returns A [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
5817
5817
|
*/
|
|
5818
5818
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
5819
5819
|
await this.loadMarkets();
|
|
@@ -6116,7 +6116,7 @@ export default class gate extends Exchange {
|
|
|
6116
6116
|
* @see https://www.gate.com/docs/developers/apiv4/en/#get-specified-contract-position
|
|
6117
6117
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
6118
6118
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6119
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
6119
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
6120
6120
|
*/
|
|
6121
6121
|
async fetchPosition(symbol, params = {}) {
|
|
6122
6122
|
await this.loadMarkets();
|
|
@@ -6206,7 +6206,7 @@ export default class gate extends Exchange {
|
|
|
6206
6206
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6207
6207
|
* @param {string} [params.settle] 'btc' or 'usdt' - settle currency for perpetual swap and future - default="usdt" for swap and "btc" for future
|
|
6208
6208
|
* @param {string} [params.type] swap, future or option, if not provided this.options['defaultType'] is used
|
|
6209
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
6209
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
6210
6210
|
*/
|
|
6211
6211
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
6212
6212
|
await this.loadMarkets();
|
|
@@ -6314,7 +6314,7 @@ export default class gate extends Exchange {
|
|
|
6314
6314
|
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-futures-contracts-2
|
|
6315
6315
|
* @param {string[]} [symbols] list of unified market symbols
|
|
6316
6316
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6317
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com
|
|
6317
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols
|
|
6318
6318
|
*/
|
|
6319
6319
|
async fetchLeverageTiers(symbols = undefined, params = {}) {
|
|
6320
6320
|
await this.loadMarkets();
|
|
@@ -6434,7 +6434,7 @@ export default class gate extends Exchange {
|
|
|
6434
6434
|
* @see https://www.gate.com/docs/developers/apiv4/en/#list-risk-limit-tiers
|
|
6435
6435
|
* @param {string} symbol unified market symbol
|
|
6436
6436
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6437
|
-
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com
|
|
6437
|
+
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}
|
|
6438
6438
|
*/
|
|
6439
6439
|
async fetchMarketLeverageTiers(symbol, params = {}) {
|
|
6440
6440
|
await this.loadMarkets();
|
|
@@ -6532,7 +6532,7 @@ export default class gate extends Exchange {
|
|
|
6532
6532
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6533
6533
|
* @param {string} [params.mode] 'all' or 'partial' payment mode, extra parameter required for isolated margin
|
|
6534
6534
|
* @param {string} [params.id] '34267567' loan id, extra parameter required for isolated margin
|
|
6535
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
6535
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
6536
6536
|
*/
|
|
6537
6537
|
async repayIsolatedMargin(symbol, code, amount, params = {}) {
|
|
6538
6538
|
await this.loadMarkets();
|
|
@@ -6562,7 +6562,7 @@ export default class gate extends Exchange {
|
|
|
6562
6562
|
* @param {string} [params.mode] 'all' or 'partial' payment mode, extra parameter required for isolated margin
|
|
6563
6563
|
* @param {string} [params.id] '34267567' loan id, extra parameter required for isolated margin
|
|
6564
6564
|
* @param {boolean} [params.unifiedAccount] set to true for repaying in the unified account
|
|
6565
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
6565
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
6566
6566
|
*/
|
|
6567
6567
|
async repayCrossMargin(code, amount, params = {}) {
|
|
6568
6568
|
await this.loadMarkets();
|
|
@@ -6611,7 +6611,7 @@ export default class gate extends Exchange {
|
|
|
6611
6611
|
* @param {float} amount the amount to borrow
|
|
6612
6612
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6613
6613
|
* @param {string} [params.rate] '0.0002' or '0.002' extra parameter required for isolated margin
|
|
6614
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
6614
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
6615
6615
|
*/
|
|
6616
6616
|
async borrowIsolatedMargin(symbol, code, amount, params = {}) {
|
|
6617
6617
|
await this.loadMarkets();
|
|
@@ -6657,7 +6657,7 @@ export default class gate extends Exchange {
|
|
|
6657
6657
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6658
6658
|
* @param {string} [params.rate] '0.0002' or '0.002' extra parameter required for isolated margin
|
|
6659
6659
|
* @param {boolean} [params.unifiedAccount] set to true for borrowing in the unified account
|
|
6660
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
6660
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
6661
6661
|
*/
|
|
6662
6662
|
async borrowCrossMargin(code, amount, params = {}) {
|
|
6663
6663
|
await this.loadMarkets();
|
|
@@ -6760,7 +6760,7 @@ export default class gate extends Exchange {
|
|
|
6760
6760
|
* @param {int} [limit] the maximum number of structures to retrieve
|
|
6761
6761
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6762
6762
|
* @param {boolean} [params.unifiedAccount] set to true for fetching borrow interest in the unified account
|
|
6763
|
-
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com
|
|
6763
|
+
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure}
|
|
6764
6764
|
*/
|
|
6765
6765
|
async fetchBorrowInterest(code = undefined, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
6766
6766
|
await this.loadMarkets();
|
|
@@ -6986,7 +6986,7 @@ export default class gate extends Exchange {
|
|
|
6986
6986
|
* @param {string} symbol unified market symbol
|
|
6987
6987
|
* @param {float} amount the amount of margin to remove
|
|
6988
6988
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6989
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
6989
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=reduce-margin-structure}
|
|
6990
6990
|
*/
|
|
6991
6991
|
async reduceMargin(symbol, amount, params = {}) {
|
|
6992
6992
|
return await this.modifyMarginHelper(symbol, -amount, params);
|
|
@@ -7000,7 +7000,7 @@ export default class gate extends Exchange {
|
|
|
7000
7000
|
* @param {string} symbol unified market symbol
|
|
7001
7001
|
* @param {float} amount amount of margin to add
|
|
7002
7002
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7003
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
7003
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
|
|
7004
7004
|
*/
|
|
7005
7005
|
async addMargin(symbol, amount, params = {}) {
|
|
7006
7006
|
return await this.modifyMarginHelper(symbol, amount, params);
|
|
@@ -7016,7 +7016,7 @@ export default class gate extends Exchange {
|
|
|
7016
7016
|
* @param {int} [limit] default 30
|
|
7017
7017
|
* @param {object} [params] exchange specific parameters
|
|
7018
7018
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
7019
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com
|
|
7019
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
7020
7020
|
*/
|
|
7021
7021
|
async fetchOpenInterestHistory(symbol, timeframe = '5m', since = undefined, limit = undefined, params = {}) {
|
|
7022
7022
|
await this.loadMarkets();
|
|
@@ -7102,7 +7102,7 @@ export default class gate extends Exchange {
|
|
|
7102
7102
|
* @param {int} [since] timestamp in ms
|
|
7103
7103
|
* @param {int} [limit] number of records
|
|
7104
7104
|
* @param {object} [params] exchange specific params
|
|
7105
|
-
* @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com
|
|
7105
|
+
* @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/?id=settlement-history-structure}
|
|
7106
7106
|
*/
|
|
7107
7107
|
async fetchSettlementHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7108
7108
|
if (symbol === undefined) {
|
|
@@ -7288,7 +7288,7 @@ export default class gate extends Exchange {
|
|
|
7288
7288
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7289
7289
|
* @param {int} [params.until] end time in ms
|
|
7290
7290
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
7291
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
7291
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
7292
7292
|
*/
|
|
7293
7293
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7294
7294
|
await this.loadMarkets();
|
|
@@ -7543,7 +7543,7 @@ export default class gate extends Exchange {
|
|
|
7543
7543
|
* @see https://www.gate.com/docs/developers/apiv4/en/#list-all-underlyings
|
|
7544
7544
|
* @param {object} [params] exchange specific params
|
|
7545
7545
|
* @param {string} [params.type] the contract market type, 'option', 'swap' or 'future', the default is 'option'
|
|
7546
|
-
* @returns {object[]} a list of [underlying assets]{@link https://docs.ccxt.com
|
|
7546
|
+
* @returns {object[]} a list of [underlying assets]{@link https://docs.ccxt.com/?id=underlying-assets-structure}
|
|
7547
7547
|
*/
|
|
7548
7548
|
async fetchUnderlyingAssets(params = {}) {
|
|
7549
7549
|
await this.loadMarkets();
|
|
@@ -7585,7 +7585,7 @@ export default class gate extends Exchange {
|
|
|
7585
7585
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
7586
7586
|
* @param {object} [params] exchange specific parameters for the exchange API endpoint
|
|
7587
7587
|
* @param {int} [params.until] timestamp in ms of the latest liquidation
|
|
7588
|
-
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com
|
|
7588
|
+
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
|
|
7589
7589
|
*/
|
|
7590
7590
|
async fetchLiquidations(symbol, since = undefined, limit = undefined, params = {}) {
|
|
7591
7591
|
await this.loadMarkets();
|
|
@@ -7630,7 +7630,7 @@ export default class gate extends Exchange {
|
|
|
7630
7630
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
7631
7631
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
7632
7632
|
* @param {object} [params] exchange specific parameters for the exchange API endpoint
|
|
7633
|
-
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com
|
|
7633
|
+
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
|
|
7634
7634
|
*/
|
|
7635
7635
|
async fetchMyLiquidations(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7636
7636
|
if (symbol === undefined) {
|
|
@@ -7793,7 +7793,7 @@ export default class gate extends Exchange {
|
|
|
7793
7793
|
* @see https://www.gate.com/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
7794
7794
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
7795
7795
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7796
|
-
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com
|
|
7796
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
|
|
7797
7797
|
*/
|
|
7798
7798
|
async fetchGreeks(symbol, params = {}) {
|
|
7799
7799
|
await this.loadMarkets();
|
|
@@ -7889,7 +7889,7 @@ export default class gate extends Exchange {
|
|
|
7889
7889
|
* @param {string} symbol Unified CCXT market symbol
|
|
7890
7890
|
* @param {string} side 'buy' or 'sell'
|
|
7891
7891
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
7892
|
-
* @returns {object[]} [A list of position structures]{@link https://docs.ccxt.com
|
|
7892
|
+
* @returns {object[]} [A list of position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
7893
7893
|
*/
|
|
7894
7894
|
async closePosition(symbol, side = undefined, params = {}) {
|
|
7895
7895
|
const request = {
|
|
@@ -7911,7 +7911,7 @@ export default class gate extends Exchange {
|
|
|
7911
7911
|
* @param {string} symbol unified market symbol
|
|
7912
7912
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7913
7913
|
* @param {boolean} [params.unified] default false, set to true for fetching the unified accounts leverage
|
|
7914
|
-
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com
|
|
7914
|
+
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
7915
7915
|
*/
|
|
7916
7916
|
async fetchLeverage(symbol, params = {}) {
|
|
7917
7917
|
await this.loadMarkets();
|
|
@@ -8020,7 +8020,7 @@ export default class gate extends Exchange {
|
|
|
8020
8020
|
* @param {string[]} symbols a list of unified market symbols
|
|
8021
8021
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8022
8022
|
* @param {boolean} [params.unified] default false, set to true for fetching unified account leverages
|
|
8023
|
-
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com
|
|
8023
|
+
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
8024
8024
|
*/
|
|
8025
8025
|
async fetchLeverages(symbols = undefined, params = {}) {
|
|
8026
8026
|
await this.loadMarkets();
|
|
@@ -8080,7 +8080,7 @@ export default class gate extends Exchange {
|
|
|
8080
8080
|
* @see https://www.gate.com/docs/developers/apiv4/en/#query-specified-contract-detail
|
|
8081
8081
|
* @param {string} symbol unified market symbol
|
|
8082
8082
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8083
|
-
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com
|
|
8083
|
+
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/?id=option-chain-structure}
|
|
8084
8084
|
*/
|
|
8085
8085
|
async fetchOption(symbol, params = {}) {
|
|
8086
8086
|
await this.loadMarkets();
|
|
@@ -8140,7 +8140,7 @@ export default class gate extends Exchange {
|
|
|
8140
8140
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8141
8141
|
* @param {string} [params.underlying] the underlying asset, can be obtained from fetchUnderlyingAssets ()
|
|
8142
8142
|
* @param {int} [params.expiration] unix timestamp of the expiration time
|
|
8143
|
-
* @returns {object} a list of [option chain structures]{@link https://docs.ccxt.com
|
|
8143
|
+
* @returns {object} a list of [option chain structures]{@link https://docs.ccxt.com/?id=option-chain-structure}
|
|
8144
8144
|
*/
|
|
8145
8145
|
async fetchOptionChain(code, params = {}) {
|
|
8146
8146
|
await this.loadMarkets();
|
|
@@ -8273,7 +8273,7 @@ export default class gate extends Exchange {
|
|
|
8273
8273
|
* @param {int} [params.offset] list offset, starting from 0
|
|
8274
8274
|
* @param {string} [params.side] long or short
|
|
8275
8275
|
* @param {string} [params.pnl] query profit or loss
|
|
8276
|
-
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com
|
|
8276
|
+
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
8277
8277
|
*/
|
|
8278
8278
|
async fetchPositionsHistory(symbols = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8279
8279
|
await this.loadMarkets();
|