ccxt 4.5.44 → 4.5.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +9 -12
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -12
  4. package/dist/cjs/src/abstract/kucoinfutures.js +1 -1
  5. package/dist/cjs/src/base/Exchange.js +36 -3
  6. package/dist/cjs/src/base/functions/encode.js +2 -2
  7. package/dist/cjs/src/base/functions/generic.js +8 -2
  8. package/dist/cjs/src/bitrue.js +1 -1
  9. package/dist/cjs/src/bitteam.js +1 -1
  10. package/dist/cjs/src/btcbox.js +1 -1
  11. package/dist/cjs/src/cex.js +1 -0
  12. package/dist/cjs/src/gate.js +227 -168
  13. package/dist/cjs/src/grvt.js +3 -2
  14. package/dist/cjs/src/hyperliquid.js +16 -5
  15. package/dist/cjs/src/kraken.js +2 -2
  16. package/dist/cjs/src/krakenfutures.js +1 -5
  17. package/dist/cjs/src/kucoin.js +4729 -970
  18. package/dist/cjs/src/kucoinfutures.js +14 -3434
  19. package/dist/cjs/src/lbank.js +1 -1
  20. package/dist/cjs/src/poloniex.js +1 -1
  21. package/dist/cjs/src/pro/gate.js +37 -1
  22. package/dist/cjs/src/pro/kucoin.js +819 -178
  23. package/dist/cjs/src/pro/kucoinfutures.js +95 -1261
  24. package/dist/cjs/src/pro/mexc.js +10 -5
  25. package/dist/cjs/src/pro/okx.js +84 -39
  26. package/js/ccxt.d.ts +2 -14
  27. package/js/ccxt.js +2 -10
  28. package/js/src/abstract/kucoin.d.ts +46 -3
  29. package/js/src/abstract/kucoinfutures.d.ts +27 -12
  30. package/js/src/base/Exchange.d.ts +12 -1
  31. package/js/src/base/Exchange.js +36 -3
  32. package/js/src/base/functions/encode.js +2 -2
  33. package/js/src/base/functions/generic.js +9 -3
  34. package/js/src/bitrue.js +1 -1
  35. package/js/src/bitteam.js +1 -1
  36. package/js/src/btcbox.js +1 -1
  37. package/js/src/cex.js +2 -1
  38. package/js/src/gate.d.ts +125 -119
  39. package/js/src/gate.js +227 -168
  40. package/js/src/grvt.js +3 -2
  41. package/js/src/hyperliquid.d.ts +3 -1
  42. package/js/src/hyperliquid.js +16 -5
  43. package/js/src/kraken.js +2 -2
  44. package/js/src/krakenfutures.js +1 -5
  45. package/js/src/kucoin.d.ts +696 -100
  46. package/js/src/kucoin.js +4730 -971
  47. package/js/src/kucoinfutures.d.ts +4 -522
  48. package/js/src/kucoinfutures.js +14 -3434
  49. package/js/src/lbank.js +1 -1
  50. package/js/src/poloniex.js +1 -1
  51. package/js/src/pro/gate.d.ts +30 -1
  52. package/js/src/pro/gate.js +37 -1
  53. package/js/src/pro/kucoin.d.ts +70 -30
  54. package/js/src/pro/kucoin.js +821 -180
  55. package/js/src/pro/kucoinfutures.d.ts +17 -195
  56. package/js/src/pro/kucoinfutures.js +96 -1262
  57. package/js/src/pro/mexc.js +10 -5
  58. package/js/src/pro/okx.d.ts +1 -0
  59. package/js/src/pro/okx.js +84 -39
  60. package/package.json +1 -1
  61. package/dist/cjs/src/abstract/alp.js +0 -11
  62. package/dist/cjs/src/abstract/defx.js +0 -11
  63. package/dist/cjs/src/abstract/timex.js +0 -11
  64. package/dist/cjs/src/alp.js +0 -1059
  65. package/dist/cjs/src/defx.js +0 -2142
  66. package/dist/cjs/src/pro/defx.js +0 -866
  67. package/dist/cjs/src/timex.js +0 -1793
  68. package/js/src/abstract/alp.d.ts +0 -21
  69. package/js/src/abstract/alp.js +0 -5
  70. package/js/src/abstract/defx.d.ts +0 -72
  71. package/js/src/abstract/defx.js +0 -5
  72. package/js/src/abstract/timex.d.ts +0 -65
  73. package/js/src/abstract/timex.js +0 -5
  74. package/js/src/alp.d.ts +0 -209
  75. package/js/src/alp.js +0 -1052
  76. package/js/src/defx.d.ts +0 -348
  77. package/js/src/defx.js +0 -2135
  78. package/js/src/pro/defx.d.ts +0 -236
  79. package/js/src/pro/defx.js +0 -859
  80. package/js/src/timex.d.ts +0 -247
  81. package/js/src/timex.js +0 -1786
package/js/src/gate.d.ts CHANGED
@@ -12,7 +12,7 @@ export default class gate extends Exchange {
12
12
  * @name gate#loadUnifiedStatus
13
13
  * @param {object} [params] extra parameters specific to the exchange API endpoint
14
14
  * @description returns unifiedAccount so the user can check if the unified account is enabled
15
- * @see https://www.gate.com/docs/developers/apiv4/#get-account-detail
15
+ * @see https://www.gate.com/docs/developers/apiv4/#retrieve-user-account-information
16
16
  * @returns {boolean} true or false if the enabled unified account is enabled or not and sets the unifiedAccount option if it is undefined
17
17
  */
18
18
  loadUnifiedStatus(params?: {}): Promise<any>;
@@ -21,7 +21,7 @@ export default class gate extends Exchange {
21
21
  * @method
22
22
  * @name gate#fetchTime
23
23
  * @description fetches the current integer timestamp in milliseconds from the exchange server
24
- * @see https://www.gate.com/docs/developers/apiv4/en/#get-server-current-time
24
+ * @see https://www.gate.com/docs/developers/apiv4/#get-server-current-time
25
25
  * @param {object} [params] extra parameters specific to the exchange API endpoint
26
26
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
27
27
  */
@@ -32,11 +32,11 @@ export default class gate extends Exchange {
32
32
  * @method
33
33
  * @name gate#fetchMarkets
34
34
  * @description retrieves data on all markets for gate
35
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-currency-pairs-supported // spot
35
+ * @see https://www.gate.com/docs/developers/apiv4/#query-all-supported-currency-pairs // spot
36
36
  * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-supported-currency-pairs-supported-in-margin-trading // margin
37
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-futures-contracts // swap
38
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-futures-contracts-2 // future
39
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-the-contracts-with-specified-underlying-and-expiration-time // option
37
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-all-futures-contracts // swap
38
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-all-futures-contracts-2 // future
39
+ * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-contracts-for-specified-underlying-and-expiration-date // option
40
40
  * @param {object} [params] extra parameters specific to the exchange API endpoint
41
41
  * @returns {object[]} an array of objects representing market data
42
42
  */
@@ -106,7 +106,7 @@ export default class gate extends Exchange {
106
106
  * @method
107
107
  * @name gate#fetchCurrencies
108
108
  * @description fetches all available currencies on an exchange
109
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-currencies-details
109
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-all-currency-information
110
110
  * @param {object} [params] extra parameters specific to the exchange API endpoint
111
111
  * @returns {object} an associative dictionary of currencies
112
112
  */
@@ -115,7 +115,7 @@ export default class gate extends Exchange {
115
115
  * @method
116
116
  * @name gate#fetchFundingRate
117
117
  * @description fetch the current funding rate
118
- * @see https://www.gate.com/docs/developers/apiv4/en/#get-a-single-contract
118
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-single-contract-information
119
119
  * @param {string} symbol unified market symbol
120
120
  * @param {object} [params] extra parameters specific to the exchange API endpoint
121
121
  * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
@@ -125,7 +125,7 @@ export default class gate extends Exchange {
125
125
  * @method
126
126
  * @name gate#fetchFundingRates
127
127
  * @description fetch the funding rate for multiple markets
128
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-futures-contracts
128
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-all-futures-contracts
129
129
  * @param {string[]|undefined} symbols list of unified market symbols
130
130
  * @param {object} [params] extra parameters specific to the exchange API endpoint
131
131
  * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols
@@ -138,6 +138,7 @@ export default class gate extends Exchange {
138
138
  * @method
139
139
  * @name gate#fetchDepositAddressesByNetwork
140
140
  * @description fetch a dictionary of addresses for a currency, indexed by network
141
+ * @see https://www.gate.com/docs/developers/apiv4/en/#generate-currency-deposit-address
141
142
  * @param {string} code unified currency code of the currency for the deposit address
142
143
  * @param {object} [params] extra parameters specific to the api endpoint
143
144
  * @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/?id=address-structure} indexed by the network
@@ -165,7 +166,7 @@ export default class gate extends Exchange {
165
166
  * @method
166
167
  * @name gate#fetchTradingFee
167
168
  * @description fetch the trading fees for a market
168
- * @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-personal-trading-fee
169
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-fees
169
170
  * @param {string} symbol unified market symbol
170
171
  * @param {object} [params] extra parameters specific to the exchange API endpoint
171
172
  * @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
@@ -175,7 +176,7 @@ export default class gate extends Exchange {
175
176
  * @method
176
177
  * @name gate#fetchTradingFees
177
178
  * @description fetch the trading fees for multiple markets
178
- * @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-personal-trading-fee
179
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-fees
179
180
  * @param {object} [params] extra parameters specific to the exchange API endpoint
180
181
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
181
182
  */
@@ -194,7 +195,7 @@ export default class gate extends Exchange {
194
195
  * @name gate#fetchTransactionFees
195
196
  * @deprecated
196
197
  * @description please use fetchDepositWithdrawFees instead
197
- * @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-withdrawal-status
198
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-withdrawal-status
198
199
  * @param {string[]|undefined} codes list of unified currency codes
199
200
  * @param {object} [params] extra parameters specific to the exchange API endpoint
200
201
  * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
@@ -204,7 +205,7 @@ export default class gate extends Exchange {
204
205
  * @method
205
206
  * @name gate#fetchDepositWithdrawFees
206
207
  * @description fetch deposit and withdraw fees
207
- * @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-withdrawal-status
208
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-withdrawal-status
208
209
  * @param {string[]|undefined} codes list of unified currency codes
209
210
  * @param {object} [params] extra parameters specific to the exchange API endpoint
210
211
  * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
@@ -215,8 +216,8 @@ export default class gate extends Exchange {
215
216
  * @method
216
217
  * @name gate#fetchFundingHistory
217
218
  * @description fetch the history of funding payments paid and received on this account
218
- * @see https://www.gate.com/docs/developers/apiv4/en/#query-account-book-2
219
- * @see https://www.gate.com/docs/developers/apiv4/en/#query-account-book-3
219
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-account-change-history
220
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-account-change-history-2
220
221
  * @param {string} symbol unified market symbol
221
222
  * @param {int} [since] the earliest time in ms to fetch funding history for
222
223
  * @param {int} [limit] the maximum number of funding history structures to retrieve
@@ -238,10 +239,10 @@ export default class gate extends Exchange {
238
239
  * @method
239
240
  * @name gate#fetchOrderBook
240
241
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
241
- * @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-order-book
242
- * @see https://www.gate.com/docs/developers/apiv4/en/#futures-order-book
243
- * @see https://www.gate.com/docs/developers/apiv4/en/#futures-order-book-2
244
- * @see https://www.gate.com/docs/developers/apiv4/en/#options-order-book
242
+ * @see https://www.gate.com/docs/developers/apiv4/en/#get-market-depth-information
243
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-market-depth-information
244
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-market-depth-information-2
245
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-options-contract-order-book
245
246
  * @param {string} symbol unified symbol of the market to fetch the order book for
246
247
  * @param {int} [limit] the maximum amount of order book entries to return
247
248
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -252,10 +253,10 @@ export default class gate extends Exchange {
252
253
  * @method
253
254
  * @name gate#fetchTicker
254
255
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
255
- * @see https://www.gate.com/docs/developers/apiv4/en/#get-details-of-a-specifc-order
256
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-futures-tickers
257
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-futures-tickers-2
258
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-tickers-of-options-contracts
256
+ * @see https://www.gate.com/docs/developers/apiv4/en/#get-currency-pair-ticker-information
257
+ * @see https://www.gate.com/docs/developers/apiv4/en/#get-all-futures-trading-statistics
258
+ * @see https://www.gate.com/docs/developers/apiv4/en/#get-all-futures-trading-statistics-2
259
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-options-market-ticker-information
259
260
  * @param {string} symbol unified symbol of the market to fetch the ticker for
260
261
  * @param {object} [params] extra parameters specific to the exchange API endpoint
261
262
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
@@ -266,10 +267,10 @@ export default class gate extends Exchange {
266
267
  * @method
267
268
  * @name gate#fetchTickers
268
269
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
269
- * @see https://www.gate.com/docs/developers/apiv4/en/#get-details-of-a-specifc-order
270
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-futures-tickers
271
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-futures-tickers-2
272
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-tickers-of-options-contracts
270
+ * @see https://www.gate.com/docs/developers/apiv4/en/#get-currency-pair-ticker-information
271
+ * @see https://www.gate.com/docs/developers/apiv4/en/#get-all-futures-trading-statistics
272
+ * @see https://www.gate.com/docs/developers/apiv4/en/#get-all-futures-trading-statistics-2
273
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-options-market-ticker-information
273
274
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
274
275
  * @param {object} [params] extra parameters specific to the exchange API endpoint
275
276
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
@@ -279,9 +280,10 @@ export default class gate extends Exchange {
279
280
  /**
280
281
  * @method
281
282
  * @name gate#fetchBalance
282
- * @see https://www.gate.com/docs/developers/apiv4/en/#margin-account-list
283
283
  * @see https://www.gate.com/docs/developers/apiv4/en/#get-unified-account-information
284
284
  * @see https://www.gate.com/docs/developers/apiv4/en/#list-spot-trading-accounts
285
+ * @see https://www.gate.com/docs/developers/apiv4/en/#margin-account-list
286
+ * @see https://www.gate.com/docs/developers/apiv4/en/#funding-account-list
285
287
  * @see https://www.gate.com/docs/developers/apiv4/en/#get-futures-account
286
288
  * @see https://www.gate.com/docs/developers/apiv4/en/#get-futures-account-2
287
289
  * @see https://www.gate.com/docs/developers/apiv4/en/#query-account-information
@@ -298,10 +300,10 @@ export default class gate extends Exchange {
298
300
  * @method
299
301
  * @name gateio#fetchOHLCV
300
302
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
301
- * @see https://www.gate.com/docs/developers/apiv4/en/#market-candlesticks // spot
302
- * @see https://www.gate.com/docs/developers/apiv4/en/#get-futures-candlesticks // swap
303
- * @see https://www.gate.com/docs/developers/apiv4/en/#market-candlesticks // future
304
- * @see https://www.gate.com/docs/developers/apiv4/en/#get-options-candlesticks // option
303
+ * @see https://www.gate.com/docs/developers/apiv4/en/#market-k-line-chart // spot
304
+ * @see https://www.gate.com/docs/developers/apiv4/en/#futures-market-k-line-chart // swap
305
+ * @see https://www.gate.com/docs/developers/apiv4/en/#futures-market-k-line-chart-2 // future
306
+ * @see https://www.gate.com/docs/developers/apiv4/en/#options-contract-market-candlestick-chart // option
305
307
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
306
308
  * @param {string} timeframe the length of time each candle represents
307
309
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -318,7 +320,7 @@ export default class gate extends Exchange {
318
320
  * @method
319
321
  * @name gate#fetchFundingRateHistory
320
322
  * @description fetches historical funding rate prices
321
- * @see https://www.gate.com/docs/developers/apiv4/en/#funding-rate-history
323
+ * @see https://www.gate.com/docs/developers/apiv4/en/#get-all-futures-trading-statistics
322
324
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
323
325
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
324
326
  * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
@@ -333,10 +335,10 @@ export default class gate extends Exchange {
333
335
  * @method
334
336
  * @name gate#fetchTrades
335
337
  * @description get the list of most recent trades for a particular symbol
336
- * @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-market-trades
337
- * @see https://www.gate.com/docs/developers/apiv4/en/#futures-trading-history
338
- * @see https://www.gate.com/docs/developers/apiv4/en/#futures-trading-history-2
339
- * @see https://www.gate.com/docs/developers/apiv4/en/#options-trade-history
338
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-market-transaction-records
339
+ * @see https://www.gate.com/docs/developers/apiv4/en/#futures-market-transaction-records
340
+ * @see https://www.gate.com/docs/developers/apiv4/en/#futures-market-transaction-records-2
341
+ * @see https://www.gate.com/docs/developers/apiv4/en/#market-trade-records
340
342
  * @param {string} symbol unified symbol of the market to fetch trades for
341
343
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
342
344
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -350,10 +352,10 @@ export default class gate extends Exchange {
350
352
  * @method
351
353
  * @name gate#fetchOrderTrades
352
354
  * @description fetch all the trades made from a single order
353
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history
354
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history-2
355
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history-3
356
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history-4
355
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records
356
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records-by-time-range
357
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records-3
358
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records-4
357
359
  * @param {string} id order id
358
360
  * @param {string} symbol unified market symbol
359
361
  * @param {int} [since] the earliest time in ms to fetch trades for
@@ -366,10 +368,10 @@ export default class gate extends Exchange {
366
368
  * @method
367
369
  * @name gate#fetchMyTrades
368
370
  * @description Fetch personal trading history
369
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history
370
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history-2
371
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history-3
372
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-personal-trading-history-4
371
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records
372
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records-by-time-range
373
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records-3
374
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-trading-records-4
373
375
  * @param {string} symbol unified market symbol
374
376
  * @param {int} [since] the earliest time in ms to fetch trades for
375
377
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -393,7 +395,7 @@ export default class gate extends Exchange {
393
395
  * @method
394
396
  * @name gate#fetchDeposits
395
397
  * @description fetch all deposits made to an account
396
- * @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-deposit-records
398
+ * @see https://www.gate.com/docs/developers/apiv4/en/#get-deposit-records
397
399
  * @param {string} code unified currency code
398
400
  * @param {int} [since] the earliest time in ms to fetch deposits for
399
401
  * @param {int} [limit] the maximum number of deposits structures to retrieve
@@ -407,7 +409,7 @@ export default class gate extends Exchange {
407
409
  * @method
408
410
  * @name gate#fetchWithdrawals
409
411
  * @description fetch all withdrawals made from an account
410
- * @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-withdrawal-records
412
+ * @see https://www.gate.com/docs/developers/apiv4/en/#get-withdrawal-records
411
413
  * @param {string} code unified currency code
412
414
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
413
415
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
@@ -438,11 +440,11 @@ export default class gate extends Exchange {
438
440
  * @name gate#createOrder
439
441
  * @description Create an order on the exchange
440
442
  * @see https://www.gate.com/docs/developers/apiv4/en/#create-an-order
441
- * @see https://www.gate.com/docs/developers/apiv4/en/#create-a-price-triggered-order
442
- * @see https://www.gate.com/docs/developers/apiv4/en/#create-a-futures-order
443
- * @see https://www.gate.com/docs/developers/apiv4/en/#create-a-price-triggered-order-2
444
- * @see https://www.gate.com/docs/developers/apiv4/en/#create-a-futures-order-2
445
- * @see https://www.gate.com/docs/developers/apiv4/en/#create-a-price-triggered-order-3
443
+ * @see https://www.gate.com/docs/developers/apiv4/en/#create-price-triggered-order
444
+ * @see https://www.gate.com/docs/developers/apiv4/en/#place-futures-order
445
+ * @see https://www.gate.com/docs/developers/apiv4/en/#create-price-triggered-order-2
446
+ * @see https://www.gate.com/docs/developers/apiv4/en/#place-futures-order-2
447
+ * @see https://www.gate.com/docs/developers/apiv4/en/#create-price-triggered-order-3
446
448
  * @see https://www.gate.com/docs/developers/apiv4/en/#create-an-options-order
447
449
  * @param {string} symbol Unified CCXT market symbol
448
450
  * @param {string} type 'limit' or 'market' *"market" is contract only*
@@ -475,9 +477,8 @@ export default class gate extends Exchange {
475
477
  * @method
476
478
  * @name gate#createOrders
477
479
  * @description create a list of trade orders
478
- * @see https://www.gate.com/docs/developers/apiv4/en/#get-a-single-order-2
479
- * @see https://www.gate.com/docs/developers/apiv4/en/#create-a-batch-of-orders
480
- * @see https://www.gate.com/docs/developers/apiv4/en/#create-a-batch-of-futures-orders
480
+ * @see https://www.gate.com/docs/developers/apiv4/en/#batch-place-orders
481
+ * @see https://www.gate.com/docs/developers/apiv4/en/#place-batch-futures-orders
481
482
  * @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
482
483
  * @param {object} [params] extra parameters specific to the exchange API endpoint
483
484
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
@@ -501,8 +502,8 @@ export default class gate extends Exchange {
501
502
  * @method
502
503
  * @name gate#editOrder
503
504
  * @description edit a trade order, gate currently only supports the modification of the price or amount fields
504
- * @see https://www.gate.com/docs/developers/apiv4/en/#amend-an-order
505
- * @see https://www.gate.com/docs/developers/apiv4/en/#amend-an-order-2
505
+ * @see https://www.gate.com/docs/developers/apiv4/en/#amend-single-order
506
+ * @see https://www.gate.com/docs/developers/apiv4/en/#amend-single-order-2
506
507
  * @param {string} id order id
507
508
  * @param {string} symbol unified symbol of the market to create an order in
508
509
  * @param {string} type 'market' or 'limit'
@@ -521,10 +522,13 @@ export default class gate extends Exchange {
521
522
  * @method
522
523
  * @name gate#fetchOrder
523
524
  * @description Retrieves information on an order
524
- * @see https://www.gate.com/docs/developers/apiv4/en/#get-a-single-order
525
- * @see https://www.gate.com/docs/developers/apiv4/en/#get-a-single-order-2
526
- * @see https://www.gate.com/docs/developers/apiv4/en/#get-a-single-order-3
527
- * @see https://www.gate.com/docs/developers/apiv4/en/#get-a-single-order-4
525
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-single-order-details
526
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-single-auto-order-details
527
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-single-order-details-2
528
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-single-auto-order-details-2
529
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-single-order-details-3
530
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-single-auto-order-details-3
531
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-single-order-details-4
528
532
  * @param {string} id Order id
529
533
  * @param {string} symbol Unified market symbol, *required for spot and margin*
530
534
  * @param {object} [params] Parameters specified by the exchange api
@@ -541,7 +545,6 @@ export default class gate extends Exchange {
541
545
  * @name gate#fetchOpenOrders
542
546
  * @description fetch all unfilled currently open orders
543
547
  * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-open-orders
544
- * @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-running-auto-order-list
545
548
  * @param {string} symbol unified market symbol
546
549
  * @param {int} [since] the earliest time in ms to fetch open orders for
547
550
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -557,14 +560,14 @@ export default class gate extends Exchange {
557
560
  * @method
558
561
  * @name gate#fetchClosedOrders
559
562
  * @description fetches information on multiple closed orders made by the user
560
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-orders
561
- * @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-running-auto-order-list
562
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-futures-orders
563
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-auto-orders
564
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-futures-orders-2
565
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-auto-orders-2
563
+ * @see https://www.gate.com/en-eu/docs/developers/apiv4/#list-orders
564
+ * @see https://www.gate.com/en-eu/docs/developers/apiv4/#retrieve-running-auto-order-list
565
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-order-list
566
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-auto-order-list
567
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-order-list-2
568
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-auto-order-list-2
566
569
  * @see https://www.gate.com/docs/developers/apiv4/en/#list-options-orders
567
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-futures-orders-by-time-range
570
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-order-list-by-time-range
568
571
  * @param {string} symbol unified market symbol of the market orders were made in
569
572
  * @param {int} [since] the earliest time in ms to fetch orders for
570
573
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -583,10 +586,13 @@ export default class gate extends Exchange {
583
586
  * @method
584
587
  * @name gate#cancelOrder
585
588
  * @description Cancels an open order
586
- * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-a-single-order
587
- * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-a-single-order-2
588
- * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-a-single-order-3
589
- * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-a-single-order-4
589
+ * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-single-order
590
+ * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-single-auto-order
591
+ * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-single-order-2
592
+ * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-single-auto-order-2
593
+ * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-single-order-3
594
+ * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-single-auto-order-3
595
+ * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-single-order-4
590
596
  * @param {string} id Order id
591
597
  * @param {string} symbol Unified market symbol
592
598
  * @param {object} [params] Parameters specified by the exchange api
@@ -599,8 +605,8 @@ export default class gate extends Exchange {
599
605
  * @method
600
606
  * @name gate#cancelOrders
601
607
  * @description cancel multiple orders
602
- * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-a-batch-of-orders-with-an-id-list
603
- * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-a-batch-of-orders-with-an-id-list-2
608
+ * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-batch-orders-by-specified-id-list
609
+ * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-batch-orders-by-specified-id-list-2
604
610
  * @param {string[]} ids order ids
605
611
  * @param {string} symbol unified symbol of the market the order was made in
606
612
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -612,7 +618,7 @@ export default class gate extends Exchange {
612
618
  * @method
613
619
  * @name gate#cancelOrdersForSymbols
614
620
  * @description cancel multiple orders for multiple symbols
615
- * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-a-batch-of-orders-with-an-id-list
621
+ * @see https://www.gate.com/en-eu/docs/developers/apiv4/#cancel-a-batch-of-orders-with-an-id-list
616
622
  * @param {CancellationRequest[]} orders list of order ids with symbol, example [{"id": "a", "symbol": "BTC/USDT"}, {"id": "b", "symbol": "ETH/USDT"}]
617
623
  * @param {object} [params] extra parameters specific to the exchange API endpoint
618
624
  * @param {string[]} [params.clientOrderIds] client order ids
@@ -625,9 +631,12 @@ export default class gate extends Exchange {
625
631
  * @name gate#cancelAllOrders
626
632
  * @description cancel all open orders
627
633
  * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-open-orders-in-specified-currency-pair
628
- * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-open-orders-matched
629
- * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-open-orders-matched-2
630
- * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-open-orders-matched-3
634
+ * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-auto-orders
635
+ * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-orders-with-open-status
636
+ * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-auto-orders-2
637
+ * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-orders-with-open-status-2
638
+ * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-auto-orders-3
639
+ * @see https://www.gate.com/docs/developers/apiv4/en/#cancel-all-orders-with-open-status-3
631
640
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
632
641
  * @param {object} [params] extra parameters specific to the exchange API endpoint
633
642
  * @param {bool} [params.unifiedAccount] set to true for canceling unified account orders
@@ -666,8 +675,8 @@ export default class gate extends Exchange {
666
675
  * @method
667
676
  * @name gate#fetchPosition
668
677
  * @description fetch data on an open contract position
669
- * @see https://www.gate.com/docs/developers/apiv4/en/#get-single-position
670
- * @see https://www.gate.com/docs/developers/apiv4/en/#get-single-position-2
678
+ * @see https://www.gate.com/docs/developers/apiv4/en/#get-single-position-information
679
+ * @see https://www.gate.com/docs/developers/apiv4/en/#get-single-position-information-2
671
680
  * @see https://www.gate.com/docs/developers/apiv4/en/#get-specified-contract-position
672
681
  * @param {string} symbol unified market symbol of the market the position is held in
673
682
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -678,8 +687,8 @@ export default class gate extends Exchange {
678
687
  * @method
679
688
  * @name gate#fetchPositions
680
689
  * @description fetch all open positions
681
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-positions-of-a-user
682
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-positions-of-a-user-2
690
+ * @see https://www.gate.com/docs/developers/apiv4/en/#get-user-position-list
691
+ * @see https://www.gate.com/docs/developers/apiv4/en/#get-user-position-list-2
683
692
  * @see https://www.gate.com/docs/developers/apiv4/en/#list-user-s-positions-of-specified-underlying
684
693
  * @param {string[]|undefined} symbols Not used by gate, but parsed internally by CCXT
685
694
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -692,8 +701,8 @@ export default class gate extends Exchange {
692
701
  * @method
693
702
  * @name gate#fetchLeverageTiers
694
703
  * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
695
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-futures-contracts
696
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-futures-contracts-2
704
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-all-futures-contracts
705
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-all-futures-contracts-2
697
706
  * @param {string[]} [symbols] list of unified market symbols
698
707
  * @param {object} [params] extra parameters specific to the exchange API endpoint
699
708
  * @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols
@@ -703,7 +712,8 @@ export default class gate extends Exchange {
703
712
  * @method
704
713
  * @name gate#fetchMarketLeverageTiers
705
714
  * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market
706
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-risk-limit-tiers
715
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-risk-limit-tiers
716
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-risk-limit-tiers-2
707
717
  * @param {string} symbol unified market symbol
708
718
  * @param {object} [params] extra parameters specific to the exchange API endpoint
709
719
  * @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}
@@ -713,9 +723,9 @@ export default class gate extends Exchange {
713
723
  parseMarketLeverageTiers(info: any, market?: Market): LeverageTier[];
714
724
  /**
715
725
  * @method
716
- * @name gate#repayMargin
726
+ * @name gate#repayIsolatedMargin
717
727
  * @description repay borrowed margin and interest
718
- * @see https://www.gate.com/docs/apiv4/en/#repay-a-loan
728
+ * @see https://www.gate.com/docs/developers/apiv4/en/#borrow-or-repay-2
719
729
  * @param {string} symbol unified market symbol
720
730
  * @param {string} code unified currency code of the currency to repay
721
731
  * @param {float} amount the amount to repay
@@ -737,7 +747,6 @@ export default class gate extends Exchange {
737
747
  * @method
738
748
  * @name gate#repayCrossMargin
739
749
  * @description repay cross margin borrowed margin and interest
740
- * @see https://www.gate.com/docs/developers/apiv4/en/#cross-margin-repayments
741
750
  * @see https://www.gate.com/docs/developers/apiv4/en/#borrow-or-repay
742
751
  * @param {string} code unified currency code of the currency to repay
743
752
  * @param {float} amount the amount to repay
@@ -760,7 +769,7 @@ export default class gate extends Exchange {
760
769
  * @method
761
770
  * @name gate#borrowIsolatedMargin
762
771
  * @description create a loan to borrow margin
763
- * @see https://www.gate.com/docs/developers/apiv4/en/#marginuni
772
+ * @see https://www.gate.com/docs/developers/apiv4/en/#borrow-or-repay-2
764
773
  * @param {string} symbol unified market symbol, required for isolated margin
765
774
  * @param {string} code unified currency code of the currency to borrow
766
775
  * @param {float} amount the amount to borrow
@@ -779,15 +788,14 @@ export default class gate extends Exchange {
779
788
  }>;
780
789
  /**
781
790
  * @method
782
- * @name gate#borrowMargin
791
+ * @name gate#borrowCrossMargin
783
792
  * @description create a loan to borrow margin
784
- * @see https://www.gate.com/docs/apiv4/en/#create-a-cross-margin-borrow-loan
785
793
  * @see https://www.gate.com/docs/developers/apiv4/en/#borrow-or-repay
786
794
  * @param {string} code unified currency code of the currency to borrow
787
795
  * @param {float} amount the amount to borrow
788
796
  * @param {object} [params] extra parameters specific to the exchange API endpoint
789
797
  * @param {string} [params.rate] '0.0002' or '0.002' extra parameter required for isolated margin
790
- * @param {boolean} [params.unifiedAccount] set to true for borrowing in the unified account
798
+ * @param {boolean} [params.unifiedAccount] default true (set to false to use deprecated privateMarginPostCrossLoans method)
791
799
  * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
792
800
  */
793
801
  borrowCrossMargin(code: string, amount: number, params?: {}): Promise<{
@@ -812,9 +820,8 @@ export default class gate extends Exchange {
812
820
  * @method
813
821
  * @name gate#fetchBorrowInterest
814
822
  * @description fetch the interest owed by the user for borrowing currency for margin trading
815
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-interest-records
816
- * @see https://www.gate.com/docs/developers/apiv4/en/#interest-records-for-the-cross-margin-account
817
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-interest-records-2
823
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-interest-deduction-records
824
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-interest-deduction-records-2
818
825
  * @param {string} [code] unified currency code
819
826
  * @param {string} [symbol] unified market symbol when fetching interest in isolated markets
820
827
  * @param {int} [since] the earliest time in ms to fetch borrow interest for
@@ -862,7 +869,7 @@ export default class gate extends Exchange {
862
869
  * @method
863
870
  * @name gate#fetchOpenInterest
864
871
  * @description Retrieves the open interest of a currency
865
- * @see https://www.gate.com/docs/developers/apiv4/en/#futures-stats
872
+ * @see https://www.gate.com/docs/developers/apiv4/en/#futures-statistics
866
873
  * @param {string} symbol Unified CCXT market symbol
867
874
  * @param {string} timeframe "5m", "15m", "30m", "1h", "4h", "1d"
868
875
  * @param {int} [since] the time(ms) of the earliest record to retrieve as a unix timestamp
@@ -884,7 +891,7 @@ export default class gate extends Exchange {
884
891
  * @method
885
892
  * @name gate#fetchSettlementHistory
886
893
  * @description fetches historical settlement records
887
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-settlement-history-2
894
+ * @see https://www.gate.com/docs/developers/apiv4/en/#list-settlement-history
888
895
  * @param {string} symbol unified market symbol of the settlement history, required on gate
889
896
  * @param {int} [since] timestamp in ms
890
897
  * @param {int} [limit] number of records
@@ -896,7 +903,8 @@ export default class gate extends Exchange {
896
903
  * @method
897
904
  * @name gate#fetchMySettlementHistory
898
905
  * @description fetches historical settlement records of the user
899
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-my-options-settlements
906
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-personal-settlement-records
907
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-settlement-records
900
908
  * @param {string} symbol unified market symbol of the settlement history
901
909
  * @param {int} [since] timestamp in ms
902
910
  * @param {int} [limit] number of records
@@ -916,11 +924,11 @@ export default class gate extends Exchange {
916
924
  * @method
917
925
  * @name gate#fetchLedger
918
926
  * @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
919
- * @see https://www.gate.com/docs/developers/apiv4/en/#query-account-book
920
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-margin-account-balance-change-history
921
- * @see https://www.gate.com/docs/developers/apiv4/en/#query-account-book-2
922
- * @see https://www.gate.com/docs/developers/apiv4/en/#query-account-book-3
923
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-account-changing-history
927
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-spot-account-transaction-history
928
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-margin-account-balance-change-history
929
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-account-change-history
930
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-futures-account-change-history-2
931
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-account-change-history
924
932
  * @param {string} [code] unified currency code
925
933
  * @param {int} [since] timestamp in ms of the earliest ledger entry
926
934
  * @param {int} [limit] max number of ledger entries to return
@@ -936,7 +944,7 @@ export default class gate extends Exchange {
936
944
  * @method
937
945
  * @name gate#setPositionMode
938
946
  * @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
939
- * @see https://www.gate.com/docs/developers/apiv4/en/#enable-or-disable-dual-mode
947
+ * @see https://www.gate.com/docs/developers/apiv4/en/#set-position-mode
940
948
  * @param {bool} hedged set to true to enable dual mode
941
949
  * @param {string|undefined} symbol if passed, dual mode is set for all markets with the same settle currency
942
950
  * @param {object} params extra parameters specific to the exchange API endpoint
@@ -948,7 +956,7 @@ export default class gate extends Exchange {
948
956
  * @method
949
957
  * @name gate#fetchUnderlyingAssets
950
958
  * @description fetches the market ids of underlying assets for a specific contract market type
951
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-underlyings
959
+ * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-underlying-assets
952
960
  * @param {object} [params] exchange specific params
953
961
  * @param {string} [params.type] the contract market type, 'option', 'swap' or 'future', the default is 'option'
954
962
  * @returns {object[]} a list of [underlying assets]{@link https://docs.ccxt.com/?id=underlying-assets-structure}
@@ -958,7 +966,7 @@ export default class gate extends Exchange {
958
966
  * @method
959
967
  * @name gate#fetchLiquidations
960
968
  * @description retrieves the public liquidations of a trading pair
961
- * @see https://www.gate.com/docs/developers/apiv4/en/#retrieve-liquidation-history
969
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-liquidation-order-history
962
970
  * @param {string} symbol unified CCXT market symbol
963
971
  * @param {int} [since] the earliest time in ms to fetch liquidations for
964
972
  * @param {int} [limit] the maximum number of liquidation structures to retrieve
@@ -971,8 +979,8 @@ export default class gate extends Exchange {
971
979
  * @method
972
980
  * @name gate#fetchMyLiquidations
973
981
  * @description retrieves the users liquidated positions
974
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-liquidation-history
975
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-liquidation-history-2
982
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-liquidation-history
983
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-liquidation-history-2
976
984
  * @see https://www.gate.com/docs/developers/apiv4/en/#list-user-s-liquidation-history-of-specified-underlying
977
985
  * @param {string} symbol unified CCXT market symbol
978
986
  * @param {int} [since] the earliest time in ms to fetch liquidations for
@@ -986,7 +994,7 @@ export default class gate extends Exchange {
986
994
  * @method
987
995
  * @name gate#fetchGreeks
988
996
  * @description fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
989
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-tickers-of-options-contracts
997
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-options-market-ticker-information
990
998
  * @param {string} symbol unified symbol of the market to fetch greeks for
991
999
  * @param {object} [params] extra parameters specific to the exchange API endpoint
992
1000
  * @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
@@ -997,8 +1005,8 @@ export default class gate extends Exchange {
997
1005
  * @method
998
1006
  * @name gate#closePosition
999
1007
  * @description closes open positions for a market
1000
- * @see https://www.gate.com/docs/developers/apiv4/en/#create-a-futures-order
1001
- * @see https://www.gate.com/docs/developers/apiv4/en/#create-a-futures-order-2
1008
+ * @see https://www.gate.com/docs/developers/apiv4/en/#place-futures-order
1009
+ * @see https://www.gate.com/docs/developers/apiv4/en/#place-futures-order-2
1002
1010
  * @see https://www.gate.com/docs/developers/apiv4/en/#create-an-options-order
1003
1011
  * @param {string} symbol Unified CCXT market symbol
1004
1012
  * @param {string} side 'buy' or 'sell'
@@ -1011,8 +1019,7 @@ export default class gate extends Exchange {
1011
1019
  * @name gate#fetchLeverage
1012
1020
  * @description fetch the set leverage for a market
1013
1021
  * @see https://www.gate.com/docs/developers/apiv4/en/#get-unified-account-information
1014
- * @see https://www.gate.com/docs/developers/apiv4/en/#get-detail-of-lending-market
1015
- * @see https://www.gate.com/docs/developers/apiv4/en/#query-one-single-margin-currency-pair-deprecated
1022
+ * @see https://www.gate.com/docs/developers/apiv4/en/#get-lending-market-details
1016
1023
  * @param {string} symbol unified market symbol
1017
1024
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1018
1025
  * @param {boolean} [params.unified] default false, set to true for fetching the unified accounts leverage
@@ -1024,7 +1031,6 @@ export default class gate extends Exchange {
1024
1031
  * @name gate#fetchLeverages
1025
1032
  * @description fetch the set leverage for all leverage markets, only spot margin is supported on gate
1026
1033
  * @see https://www.gate.com/docs/developers/apiv4/en/#list-lending-markets
1027
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-supported-currency-pairs-supported-in-margin-trading-deprecated
1028
1034
  * @param {string[]} symbols a list of unified market symbols
1029
1035
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1030
1036
  * @param {boolean} [params.unified] default false, set to true for fetching unified account leverages
@@ -1036,7 +1042,7 @@ export default class gate extends Exchange {
1036
1042
  * @method
1037
1043
  * @name gate#fetchOption
1038
1044
  * @description fetches option data that is commonly found in an option chain
1039
- * @see https://www.gate.com/docs/developers/apiv4/en/#query-specified-contract-detail
1045
+ * @see https://www.gate.com/docs/developers/apiv4/en/#query-specified-contract-details
1040
1046
  * @param {string} symbol unified market symbol
1041
1047
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1042
1048
  * @returns {object} an [option chain structure]{@link https://docs.ccxt.com/?id=option-chain-structure}
@@ -1046,7 +1052,7 @@ export default class gate extends Exchange {
1046
1052
  * @method
1047
1053
  * @name gate#fetchOptionChain
1048
1054
  * @description fetches data for an underlying asset that is commonly found in an option chain
1049
- * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-the-contracts-with-specified-underlying-and-expiration-time
1055
+ * @see https://www.gate.com/docs/developers/apiv4/en/#list-all-contracts-for-specified-underlying-and-expiration-date
1050
1056
  * @param {string} code base currency to fetch an option chain for
1051
1057
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1052
1058
  * @param {string} [params.underlying] the underlying asset, can be obtained from fetchUnderlyingAssets ()
@@ -1059,8 +1065,8 @@ export default class gate extends Exchange {
1059
1065
  * @method
1060
1066
  * @name gate#fetchPositionsHistory
1061
1067
  * @description fetches historical positions
1062
- * @see https://www.gate.com/docs/developers/apiv4/#list-position-close-history
1063
- * @see https://www.gate.com/docs/developers/apiv4/#list-position-close-history-2
1068
+ * @see https://www.gate.com/docs/developers/apiv4/#query-position-close-history
1069
+ * @see https://www.gate.com/docs/developers/apiv4/#query-position-close-history-2
1064
1070
  * @param {string[]} symbols unified conract symbols, must all have the same settle currency and the same market type
1065
1071
  * @param {int} [since] the earliest time in ms to fetch positions for
1066
1072
  * @param {int} [limit] the maximum amount of records to fetch, default=1000