ccxt 4.5.63 → 4.5.64

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 (124) hide show
  1. package/README.md +6 -8
  2. package/dist/ccxt.browser.min.js +4 -4
  3. package/dist/cjs/ccxt.js +6 -12
  4. package/dist/cjs/src/aster.js +2 -2
  5. package/dist/cjs/src/base/Exchange.js +34 -3
  6. package/dist/cjs/src/bitget.js +5 -3
  7. package/dist/cjs/src/bitmex.js +1 -1
  8. package/dist/cjs/src/bitstamp.js +2 -1
  9. package/dist/cjs/src/bitvavo.js +1 -0
  10. package/dist/cjs/src/btcbox.js +1 -1
  11. package/dist/cjs/src/bullish.js +1 -1
  12. package/dist/cjs/src/bybiteu.js +3 -0
  13. package/dist/cjs/src/coinbase.js +3 -2
  14. package/dist/cjs/src/coinbaseinternational.js +1 -1
  15. package/dist/cjs/src/delta.js +23 -1
  16. package/dist/cjs/src/derive.js +1 -1
  17. package/dist/cjs/src/digifinex.js +12 -0
  18. package/dist/cjs/src/dydx.js +2 -2
  19. package/dist/cjs/src/extended.js +1 -1
  20. package/dist/cjs/src/gateeu.js +1 -0
  21. package/dist/cjs/src/grvt.js +1 -1
  22. package/dist/cjs/src/hashkey.js +127 -6
  23. package/dist/cjs/src/hibachi.js +20 -10
  24. package/dist/cjs/src/hyperliquid.js +1 -1
  25. package/dist/cjs/src/kraken.js +2 -0
  26. package/dist/cjs/src/kucoin.js +1 -1
  27. package/dist/cjs/src/kucoineu.js +3 -0
  28. package/dist/cjs/src/lighter.js +6 -4
  29. package/dist/cjs/src/mudrex.js +1328 -0
  30. package/dist/cjs/src/myokx.js +3 -0
  31. package/dist/cjs/src/okxus.js +1 -5
  32. package/dist/cjs/src/onetrading.js +1 -0
  33. package/dist/cjs/src/pacifica.js +1 -1
  34. package/dist/cjs/src/poloniex.js +1 -1
  35. package/dist/cjs/src/pro/bingx.js +4 -2
  36. package/dist/cjs/src/pro/bitget.js +9 -7
  37. package/dist/cjs/src/pro/grvt.js +1 -1
  38. package/dist/cjs/src/pro/hashkey.js +1 -1
  39. package/dist/cjs/src/pro/kraken.js +1 -1
  40. package/dist/cjs/src/pro/mudrex.js +226 -0
  41. package/dist/cjs/src/pro/okxus.js +1 -1
  42. package/js/ccxt.d.ts +8 -14
  43. package/js/ccxt.js +6 -10
  44. package/js/src/abstract/binance.d.ts +3 -0
  45. package/js/src/abstract/binancecoinm.d.ts +3 -0
  46. package/js/src/abstract/binanceus.d.ts +3 -0
  47. package/js/src/abstract/binanceusdm.d.ts +3 -0
  48. package/js/src/abstract/bybit.d.ts +39 -0
  49. package/js/src/abstract/bybiteu.d.ts +39 -0
  50. package/js/src/abstract/coincheck.d.ts +3 -0
  51. package/js/src/abstract/coinsph.d.ts +8 -1
  52. package/js/src/abstract/kucoineu.js +0 -6
  53. package/js/src/abstract/mudrex.d.ts +33 -0
  54. package/js/src/aster.js +2 -2
  55. package/js/src/base/Exchange.d.ts +10 -1
  56. package/js/src/base/Exchange.js +34 -3
  57. package/js/src/bitget.js +5 -3
  58. package/js/src/bitmex.js +1 -1
  59. package/js/src/bitstamp.js +2 -1
  60. package/js/src/bitvavo.js +1 -0
  61. package/js/src/btcbox.js +1 -1
  62. package/js/src/bullish.js +1 -1
  63. package/js/src/bybiteu.js +3 -0
  64. package/js/src/coinbase.js +3 -2
  65. package/js/src/coinbaseinternational.js +1 -1
  66. package/js/src/delta.d.ts +12 -0
  67. package/js/src/delta.js +23 -1
  68. package/js/src/derive.js +1 -1
  69. package/js/src/digifinex.d.ts +12 -0
  70. package/js/src/digifinex.js +12 -0
  71. package/js/src/dydx.d.ts +2 -2
  72. package/js/src/dydx.js +2 -2
  73. package/js/src/extended.js +1 -1
  74. package/js/src/gateeu.js +1 -0
  75. package/js/src/grvt.d.ts +1 -1
  76. package/js/src/grvt.js +1 -1
  77. package/js/src/hashkey.d.ts +40 -3
  78. package/js/src/hashkey.js +127 -6
  79. package/js/src/hibachi.d.ts +9 -5
  80. package/js/src/hibachi.js +20 -10
  81. package/js/src/hyperliquid.js +1 -1
  82. package/js/src/kraken.js +2 -0
  83. package/js/src/kucoin.js +1 -1
  84. package/js/src/kucoineu.js +3 -0
  85. package/js/src/lighter.js +6 -4
  86. package/js/src/mudrex.d.ts +310 -0
  87. package/js/src/mudrex.js +1321 -0
  88. package/js/src/myokx.js +3 -0
  89. package/js/src/okxus.js +1 -5
  90. package/js/src/onetrading.js +1 -0
  91. package/js/src/pacifica.js +1 -1
  92. package/js/src/poloniex.js +1 -1
  93. package/js/src/pro/bingx.js +4 -2
  94. package/js/src/pro/bitget.js +9 -7
  95. package/js/src/pro/grvt.d.ts +1 -1
  96. package/js/src/pro/grvt.js +1 -1
  97. package/js/src/pro/hashkey.d.ts +1 -1
  98. package/js/src/pro/hashkey.js +1 -1
  99. package/js/src/pro/kraken.js +1 -1
  100. package/js/src/pro/mudrex.d.ts +23 -0
  101. package/js/src/pro/mudrex.js +219 -0
  102. package/js/src/pro/okxus.js +1 -1
  103. package/package.json +3 -3
  104. package/dist/cjs/src/abstract/coinmetro.js +0 -11
  105. package/dist/cjs/src/abstract/novadax.js +0 -11
  106. package/dist/cjs/src/ascendex.js +0 -3780
  107. package/dist/cjs/src/coinmetro.js +0 -2030
  108. package/dist/cjs/src/novadax.js +0 -1678
  109. package/dist/cjs/src/pro/ascendex.js +0 -1013
  110. package/js/src/abstract/ascendex.d.ts +0 -80
  111. package/js/src/abstract/coinmetro.d.ts +0 -37
  112. package/js/src/abstract/coinmetro.js +0 -5
  113. package/js/src/abstract/novadax.d.ts +0 -32
  114. package/js/src/abstract/novadax.js +0 -5
  115. package/js/src/ascendex.d.ts +0 -436
  116. package/js/src/ascendex.js +0 -3773
  117. package/js/src/coinmetro.d.ts +0 -245
  118. package/js/src/coinmetro.js +0 -2023
  119. package/js/src/novadax.d.ts +0 -279
  120. package/js/src/novadax.js +0 -1671
  121. package/js/src/pro/ascendex.d.ts +0 -99
  122. package/js/src/pro/ascendex.js +0 -1006
  123. /package/dist/cjs/src/abstract/{ascendex.js → mudrex.js} +0 -0
  124. /package/js/src/abstract/{ascendex.js → mudrex.js} +0 -0
package/js/src/hashkey.js CHANGED
@@ -23,10 +23,10 @@ export default class hashkey extends Exchange {
23
23
  'CORS': undefined,
24
24
  'spot': true,
25
25
  'margin': false,
26
- 'swap': false,
26
+ 'swap': true,
27
27
  'future': false,
28
28
  'option': false,
29
- 'addMargin': false,
29
+ 'addMargin': true,
30
30
  'borrowCrossMargin': false,
31
31
  'borrowIsolatedMargin': false,
32
32
  'borrowMargin': false,
@@ -141,13 +141,13 @@ export default class hashkey extends Exchange {
141
141
  'fetchUnderlyingAssets': false,
142
142
  'fetchVolatilityHistory': false,
143
143
  'fetchWithdrawals': true,
144
- 'reduceMargin': false,
144
+ 'reduceMargin': true,
145
145
  'repayCrossMargin': false,
146
146
  'repayIsolatedMargin': false,
147
147
  'sandbox': false,
148
148
  'setLeverage': true,
149
149
  'setMargin': false,
150
- 'setMarginMode': false,
150
+ 'setMarginMode': true,
151
151
  'setPositionMode': false,
152
152
  'transfer': true,
153
153
  'withdraw': true,
@@ -218,10 +218,12 @@ export default class hashkey extends Exchange {
218
218
  'api/v1/futures/riskLimit': 1,
219
219
  'api/v1/futures/commissionRate': 1,
220
220
  'api/v1/futures/getBestOrder': 1,
221
+ 'api/v1/coinInfo': 1,
221
222
  'api/v1/account/vipInfo': 1,
222
223
  'api/v1/account': 1,
223
224
  'api/v1/account/trades': 5,
224
225
  'api/v1/account/type': 5,
226
+ 'api/v1/account/chainType': 1,
225
227
  'api/v1/account/checkApiKey': 1,
226
228
  'api/v1/account/balanceFlow': 5,
227
229
  'api/v1/spot/subAccount/openOrders': 1,
@@ -242,6 +244,8 @@ export default class hashkey extends Exchange {
242
244
  'api/v1/spot/batchOrders': 5,
243
245
  'api/v1/futures/leverage': 1,
244
246
  'api/v1/futures/order': 1,
247
+ 'api/v1/futures/marginType': 1,
248
+ 'api/v1/futures/positionMargin': 1,
245
249
  'api/v1/futures/position/trading-stop': 3,
246
250
  'api/v1/futures/batchOrders': 5,
247
251
  'api/v1/account/assetTransfer': 1,
@@ -4048,6 +4052,123 @@ export default class hashkey extends Exchange {
4048
4052
  //
4049
4053
  return this.parseLeverage(response, market);
4050
4054
  }
4055
+ /**
4056
+ * @method
4057
+ * @name hashkey#setMarginMode
4058
+ * @description set margin mode to 'cross' or 'isolated'
4059
+ * @see https://hashkeyglobal-apidoc.readme.io/reference/change-margin-type
4060
+ * @param {string} marginMode 'cross' or 'isolated'
4061
+ * @param {string} symbol unified market symbol
4062
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4063
+ * @returns {object} response from the exchange
4064
+ */
4065
+ async setMarginMode(marginMode, symbol = undefined, params = {}) {
4066
+ if (symbol === undefined) {
4067
+ throw new ArgumentsRequired(this.id + ' setMarginMode() requires a symbol argument');
4068
+ }
4069
+ await this.loadMarkets();
4070
+ marginMode = marginMode.toUpperCase();
4071
+ if (marginMode === 'CROSSED') {
4072
+ marginMode = 'CROSS';
4073
+ }
4074
+ if ((marginMode !== 'CROSS') && (marginMode !== 'ISOLATED')) {
4075
+ throw new ArgumentsRequired(this.id + ' setMarginMode() marginMode must be either cross or isolated');
4076
+ }
4077
+ const market = this.market(symbol);
4078
+ if (!market['swap']) {
4079
+ throw new BadSymbol(this.id + ' setMarginMode() supports swap markets only');
4080
+ }
4081
+ const request = {
4082
+ 'symbol': market['id'],
4083
+ 'marginType': marginMode,
4084
+ };
4085
+ return await this.privatePostApiV1FuturesMarginType(this.extend(request, params));
4086
+ }
4087
+ /**
4088
+ * @method
4089
+ * @name hashkey#addMargin
4090
+ * @description add margin
4091
+ * @see https://hashkeyglobal-apidoc.readme.io/reference/modify-isolated-position-margin
4092
+ * @param {string} symbol unified market symbol
4093
+ * @param {float} amount amount of margin to add
4094
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4095
+ * @param {string} params.side position side, either 'long' or 'short'
4096
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure}
4097
+ */
4098
+ async addMargin(symbol, amount, params = {}) {
4099
+ return await this.modifyMarginHelper(symbol, amount, 'add', params);
4100
+ }
4101
+ /**
4102
+ * @method
4103
+ * @name hashkey#reduceMargin
4104
+ * @description remove margin from a position
4105
+ * @see https://hashkeyglobal-apidoc.readme.io/reference/modify-isolated-position-margin
4106
+ * @param {string} symbol unified market symbol
4107
+ * @param {float} amount the amount of margin to remove
4108
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4109
+ * @param {string} params.side position side, either 'long' or 'short'
4110
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure}
4111
+ */
4112
+ async reduceMargin(symbol, amount, params = {}) {
4113
+ return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
4114
+ }
4115
+ async modifyMarginHelper(symbol, amount, type, params = {}) {
4116
+ await this.loadMarkets();
4117
+ const market = this.market(symbol);
4118
+ if (!market['swap']) {
4119
+ throw new BadSymbol(this.id + ' modifyMarginHelper() supports swap markets only');
4120
+ }
4121
+ let side = undefined;
4122
+ [side, params] = this.handleParamString(params, 'side');
4123
+ if (side === undefined) {
4124
+ throw new ArgumentsRequired(this.id + ' ' + type + 'Margin() requires a params["side"] argument, either "long" or "short"');
4125
+ }
4126
+ side = side.toUpperCase();
4127
+ if ((side !== 'LONG') && (side !== 'SHORT')) {
4128
+ throw new ArgumentsRequired(this.id + ' ' + type + 'Margin() params["side"] must be either long or short');
4129
+ }
4130
+ let amountString = this.numberToString(amount);
4131
+ if (type === 'reduce') {
4132
+ amountString = Precise.stringMul(amountString, '-1');
4133
+ }
4134
+ const request = {
4135
+ 'symbol': market['id'],
4136
+ 'side': side,
4137
+ 'amount': amountString,
4138
+ };
4139
+ const response = await this.privatePostApiV1FuturesPositionMargin(this.extend(request, params));
4140
+ //
4141
+ // {
4142
+ // "code": "0000",
4143
+ // "symbol": "BTCUSDT-PERPETUAL",
4144
+ // "margin": "12344.345",
4145
+ // "timestamp": "1726869763318"
4146
+ // }
4147
+ //
4148
+ return this.extend(this.parseMarginModification(response, market), {
4149
+ 'type': type,
4150
+ 'amount': amount,
4151
+ });
4152
+ }
4153
+ parseMarginModification(data, market = undefined) {
4154
+ const marketId = this.safeString(data, 'symbol');
4155
+ market = this.safeMarket(marketId, market, undefined, 'swap');
4156
+ const timestamp = this.safeInteger(data, 'timestamp');
4157
+ const errorCode = this.safeString(data, 'code');
4158
+ const success = errorCode === '0000';
4159
+ return {
4160
+ 'info': data,
4161
+ 'symbol': market['symbol'],
4162
+ 'type': undefined,
4163
+ 'marginMode': 'isolated',
4164
+ 'amount': undefined,
4165
+ 'total': this.safeNumber(data, 'margin'),
4166
+ 'code': market['settle'],
4167
+ 'status': (success) ? 'ok' : 'failed',
4168
+ 'timestamp': timestamp,
4169
+ 'datetime': this.iso8601(timestamp),
4170
+ };
4171
+ }
4051
4172
  /**
4052
4173
  * @method
4053
4174
  * @name hashkey#fetchLeverageTiers
@@ -4167,7 +4288,7 @@ export default class hashkey extends Exchange {
4167
4288
  * @method
4168
4289
  * @name hashkey#fetchTradingFee
4169
4290
  * @description fetch the trading fees for a market
4170
- * @see https://developers.binance.com/docs/wallet/asset/trade-fee // spot
4291
+ * @see https://hashkeyglobal-apidoc.readme.io/reference/get-vip-information // spot
4171
4292
  * @see https://hashkeyglobal-apidoc.readme.io/reference/get-futures-commission-rate-request-weight // swap
4172
4293
  * @param {string} symbol unified market symbol
4173
4294
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -4202,7 +4323,7 @@ export default class hashkey extends Exchange {
4202
4323
  * @method
4203
4324
  * @name hashkey#fetchTradingFees
4204
4325
  * @description *for spot markets only* fetch the trading fees for multiple markets
4205
- * @see https://developers.binance.com/docs/wallet/asset/trade-fee
4326
+ * @see https://hashkeyglobal-apidoc.readme.io/reference/get-vip-information
4206
4327
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4207
4328
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
4208
4329
  */
@@ -45,7 +45,8 @@ export default class hibachi extends Exchange {
45
45
  /**
46
46
  * @method
47
47
  * @name hibachi#fetchTicker
48
- * @see https://api-doc.hibachi.xyz/#4abb30c4-e5c7-4b0f-9ade-790111dbfa47
48
+ * @see https://api-doc.hibachi.xyz/#bca696ca-b9b2-4072-8864-5d6b8c09807e
49
+ * @see https://api-doc.hibachi.xyz/#0064ca53-a2d0-41b9-8ade-6b2abf4ccb12
49
50
  * @description fetches a price ticker and the related information for the past 24h
50
51
  * @param {string} symbol unified symbol of the market
51
52
  * @param {object} [params] extra parameters specific to the hibachi api endpoint
@@ -69,6 +70,7 @@ export default class hibachi extends Exchange {
69
70
  * @method
70
71
  * @name hibachi#fetchTradingFees
71
72
  * @description fetch the trading fee
73
+ * @see https://api-doc.hibachi.xyz/#69aafedb-8274-4e21-bbaf-91dace8b8f31
72
74
  * @param {object} [params] extra parameters specific to the exchange API endpoint
73
75
  * @returns {object} a map of market symbols to [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
74
76
  */
@@ -181,7 +183,7 @@ export default class hibachi extends Exchange {
181
183
  * @method
182
184
  * @name hibachi#fetchOrderBook
183
185
  * @description fetches the state of the open orders on the orderbook
184
- * @see https://api-doc.hibachi.xyz/#4abb30c4-e5c7-4b0f-9ade-790111dbfa47
186
+ * @see https://api-doc.hibachi.xyz/#c7a64b0d-9e37-4009-93e5-2aa12e8d7e9b
185
187
  * @param {string} symbol unified symbol of the market
186
188
  * @param {int} [limit] currently unused
187
189
  * @param {object} [params] extra parameters to be passed -- see documentation link above
@@ -214,8 +216,9 @@ export default class hibachi extends Exchange {
214
216
  */
215
217
  fetchOpenOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
216
218
  /**
219
+ * @method
217
220
  * @name hibachi#fetchOHLCV
218
- * @see https://api-doc.hibachi.xyz/#4f0eacec-c61e-4d51-afb3-23c51c2c6bac
221
+ * @see https://api-doc.hibachi.xyz/#4f0eacec-c61e-4d51-afb3-23c51c2c6bac
219
222
  * @description fetches historical candlestick data containing the close, high, low, open prices, interval and the volumeNotional
220
223
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
221
224
  * @param {string} timeframe the length of time each candle represents
@@ -263,6 +266,7 @@ export default class hibachi extends Exchange {
263
266
  * @method
264
267
  * @name hibachi#fetchDepositAddress
265
268
  * @description fetch deposit address for given currency and chain. currently, we have a single EVM address across multiple EVM chains. Note: This method is currently only supported for trustless accounts
269
+ * @see https://api-doc.hibachi.xyz/#6fa35580-3d45-4b59-854d-c9326db06af5
266
270
  * @param {string} code unified currency code
267
271
  * @param {object} [params] extra parameters for API
268
272
  * @param {string} [params.publicKey] your public key, you can get it from UI after creating API key
@@ -298,7 +302,7 @@ export default class hibachi extends Exchange {
298
302
  * @method
299
303
  * @name hibachi#fetchTime
300
304
  * @description fetches the current integer timestamp in milliseconds from the exchange server
301
- * @see http://api-doc.hibachi.xyz/#b5c6a3bc-243d-4d35-b6d4-a74c92495434
305
+ * @see https://api-doc.hibachi.xyz/#3277e546-4cb0-4d30-a832-717af0de9b20
302
306
  * @param {object} [params] extra parameters specific to the exchange API endpoint
303
307
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
304
308
  */
@@ -327,7 +331,7 @@ export default class hibachi extends Exchange {
327
331
  * @method
328
332
  * @name hibachi#fetchFundingRateHistory
329
333
  * @description fetches historical funding rate prices
330
- * @see https://api-doc.hibachi.xyz/#4abb30c4-e5c7-4b0f-9ade-790111dbfa47
334
+ * @see https://api-doc.hibachi.xyz/#079586af-0d94-41ea-99bb-7afcd93bf438
331
335
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
332
336
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
333
337
  * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
package/js/src/hibachi.js CHANGED
@@ -135,25 +135,29 @@ export default class hibachi extends Exchange {
135
135
  'public': {
136
136
  'get': {
137
137
  'market/exchange-info': 1,
138
- 'market/data/trades': 1,
138
+ 'market/inventory': 1,
139
139
  'market/data/prices': 1,
140
140
  'market/data/stats': 1,
141
+ 'market/data/trades': 1,
141
142
  'market/data/klines': 1,
142
- 'market/data/orderbook': 1,
143
143
  'market/data/open-interest': 1,
144
+ 'market/data/orderbook': 1,
144
145
  'market/data/funding-rates': 1,
145
146
  'exchange/utc-timestamp': 1,
146
147
  },
147
148
  },
148
149
  'private': {
149
150
  'get': {
150
- 'capital/deposit-info': 1,
151
+ 'capital/balance': 1,
151
152
  'capital/history': 1,
152
- 'trade/account/trading_history': 1,
153
+ 'capital/deposit-info': 1,
153
154
  'trade/account/info': 1,
154
- 'trade/order': 1,
155
155
  'trade/account/trades': 1,
156
+ 'trade/account/trading_history': 1, // not in current docs, used by fetchLedger
157
+ 'trade/account/settlements_history': 1,
156
158
  'trade/orders': 1,
159
+ 'trade/order': 1,
160
+ 'trade/orders/history': 1,
157
161
  },
158
162
  'put': {
159
163
  'trade/order': 1,
@@ -166,6 +170,8 @@ export default class hibachi extends Exchange {
166
170
  'trade/order': 1,
167
171
  'trade/orders': 1,
168
172
  'capital/withdraw': 1,
173
+ 'capital/transfer': 1,
174
+ 'trade/account/leverage': 1,
169
175
  },
170
176
  },
171
177
  },
@@ -600,7 +606,8 @@ export default class hibachi extends Exchange {
600
606
  /**
601
607
  * @method
602
608
  * @name hibachi#fetchTicker
603
- * @see https://api-doc.hibachi.xyz/#4abb30c4-e5c7-4b0f-9ade-790111dbfa47
609
+ * @see https://api-doc.hibachi.xyz/#bca696ca-b9b2-4072-8864-5d6b8c09807e
610
+ * @see https://api-doc.hibachi.xyz/#0064ca53-a2d0-41b9-8ade-6b2abf4ccb12
604
611
  * @description fetches a price ticker and the related information for the past 24h
605
612
  * @param {string} symbol unified symbol of the market
606
613
  * @param {object} [params] extra parameters specific to the hibachi api endpoint
@@ -745,6 +752,7 @@ export default class hibachi extends Exchange {
745
752
  * @method
746
753
  * @name hibachi#fetchTradingFees
747
754
  * @description fetch the trading fee
755
+ * @see https://api-doc.hibachi.xyz/#69aafedb-8274-4e21-bbaf-91dace8b8f31
748
756
  * @param {object} [params] extra parameters specific to the exchange API endpoint
749
757
  * @returns {object} a map of market symbols to [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
750
758
  */
@@ -1256,7 +1264,7 @@ export default class hibachi extends Exchange {
1256
1264
  * @method
1257
1265
  * @name hibachi#fetchOrderBook
1258
1266
  * @description fetches the state of the open orders on the orderbook
1259
- * @see https://api-doc.hibachi.xyz/#4abb30c4-e5c7-4b0f-9ade-790111dbfa47
1267
+ * @see https://api-doc.hibachi.xyz/#c7a64b0d-9e37-4009-93e5-2aa12e8d7e9b
1260
1268
  * @param {string} symbol unified symbol of the market
1261
1269
  * @param {int} [limit] currently unused
1262
1270
  * @param {object} [params] extra parameters to be passed -- see documentation link above
@@ -1430,8 +1438,9 @@ export default class hibachi extends Exchange {
1430
1438
  return this.parseOrders(response, market, since, limit);
1431
1439
  }
1432
1440
  /**
1441
+ * @method
1433
1442
  * @name hibachi#fetchOHLCV
1434
- * @see https://api-doc.hibachi.xyz/#4f0eacec-c61e-4d51-afb3-23c51c2c6bac
1443
+ * @see https://api-doc.hibachi.xyz/#4f0eacec-c61e-4d51-afb3-23c51c2c6bac
1435
1444
  * @description fetches historical candlestick data containing the close, high, low, open prices, interval and the volumeNotional
1436
1445
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
1437
1446
  * @param {string} timeframe the length of time each candle represents
@@ -1810,6 +1819,7 @@ export default class hibachi extends Exchange {
1810
1819
  * @method
1811
1820
  * @name hibachi#fetchDepositAddress
1812
1821
  * @description fetch deposit address for given currency and chain. currently, we have a single EVM address across multiple EVM chains. Note: This method is currently only supported for trustless accounts
1822
+ * @see https://api-doc.hibachi.xyz/#6fa35580-3d45-4b59-854d-c9326db06af5
1813
1823
  * @param {string} code unified currency code
1814
1824
  * @param {object} [params] extra parameters for API
1815
1825
  * @param {string} [params.publicKey] your public key, you can get it from UI after creating API key
@@ -1982,7 +1992,7 @@ export default class hibachi extends Exchange {
1982
1992
  * @method
1983
1993
  * @name hibachi#fetchTime
1984
1994
  * @description fetches the current integer timestamp in milliseconds from the exchange server
1985
- * @see http://api-doc.hibachi.xyz/#b5c6a3bc-243d-4d35-b6d4-a74c92495434
1995
+ * @see https://api-doc.hibachi.xyz/#3277e546-4cb0-4d30-a832-717af0de9b20
1986
1996
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1987
1997
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
1988
1998
  */
@@ -2080,7 +2090,7 @@ export default class hibachi extends Exchange {
2080
2090
  * @method
2081
2091
  * @name hibachi#fetchFundingRateHistory
2082
2092
  * @description fetches historical funding rate prices
2083
- * @see https://api-doc.hibachi.xyz/#4abb30c4-e5c7-4b0f-9ade-790111dbfa47
2093
+ * @see https://api-doc.hibachi.xyz/#079586af-0d94-41ea-99bb-7afcd93bf438
2084
2094
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
2085
2095
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
2086
2096
  * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
@@ -27,7 +27,7 @@ export default class hyperliquid extends Exchange {
27
27
  'spot': true,
28
28
  'margin': false,
29
29
  'swap': true,
30
- 'future': true,
30
+ 'future': false,
31
31
  'option': false,
32
32
  'addMargin': true,
33
33
  'borrowCrossMargin': false,
package/js/src/kraken.js CHANGED
@@ -260,6 +260,7 @@ export default class kraken extends Exchange {
260
260
  'ZUSD': 'USD',
261
261
  },
262
262
  'options': {
263
+ 'mica': true,
263
264
  'timeDifference': 0, // the difference between system clock and Binance clock
264
265
  'adjustForTimeDifference': false, // controls the adjustment logic upon instantiation
265
266
  'marketsByAltname': {},
@@ -2086,6 +2087,7 @@ export default class kraken extends Exchange {
2086
2087
  'timestamp': timestamp,
2087
2088
  'datetime': this.iso8601(timestamp),
2088
2089
  'lastTradeTimestamp': undefined,
2090
+ 'lastUpdateTimestamp': this.safeTimestamp(order, 'closetm'),
2089
2091
  'status': status,
2090
2092
  'symbol': symbol,
2091
2093
  'type': typeParsed,
package/js/src/kucoin.js CHANGED
@@ -26,7 +26,7 @@ export default class kucoin extends Exchange {
26
26
  'spot': true,
27
27
  'margin': true,
28
28
  'swap': true,
29
- 'future': false,
29
+ 'future': true,
30
30
  'option': false,
31
31
  'addMargin': true,
32
32
  'borrowCrossMargin': true,
@@ -20,6 +20,9 @@ export default class kucoineu extends kucoin {
20
20
  'https://www.kucoin.com/en-eu/docs-new',
21
21
  ],
22
22
  },
23
+ 'options': {
24
+ 'mica': true,
25
+ },
23
26
  });
24
27
  }
25
28
  }
package/js/src/lighter.js CHANGED
@@ -25,7 +25,7 @@ export default class lighter extends Exchange {
25
25
  'quoteJsonNumbers': false,
26
26
  'has': {
27
27
  'CORS': undefined,
28
- 'spot': false,
28
+ 'spot': true,
29
29
  'margin': false,
30
30
  'swap': true,
31
31
  'future': false,
@@ -1010,10 +1010,12 @@ export default class lighter extends Exchange {
1010
1010
  'nonce': nonce,
1011
1011
  'api_key_index': apiKeyIndex,
1012
1012
  'account_index': accountIndex,
1013
- 'integrator_account_index': this.options['integratorAccountIndex'],
1014
- 'integrator_taker_fee': this.options['integratorTakerFee'],
1015
- 'integrator_maker_fee': this.options['integratorMakerFee'],
1016
1013
  };
1014
+ if (this.safeBool(this.options, 'builderFee', true)) {
1015
+ signRaw['integrator_account_index'] = this.options['integratorAccountIndex'];
1016
+ signRaw['integrator_taker_fee'] = this.options['integratorTakerFee'];
1017
+ signRaw['integrator_maker_fee'] = this.options['integratorMakerFee'];
1018
+ }
1017
1019
  const [txType, txInfo] = this.lighterSignModifyOrder(signer, this.extend(signRaw, params));
1018
1020
  const request = {
1019
1021
  'tx_type': txType,