ccxt 4.5.33 → 4.5.34

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 (184) hide show
  1. package/README.md +19 -5
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +4 -4
  4. package/dist/cjs/src/{btcalpha.js → alp.js} +45 -45
  5. package/dist/cjs/src/ascendex.js +2 -2
  6. package/dist/cjs/src/aster.js +15 -22
  7. package/dist/cjs/src/backpack.js +2 -2
  8. package/dist/cjs/src/binance.js +6 -4
  9. package/dist/cjs/src/bingx.js +2 -1
  10. package/dist/cjs/src/bitfinex.js +6 -11
  11. package/dist/cjs/src/bitget.js +4 -4
  12. package/dist/cjs/src/bitmart.js +1 -1
  13. package/dist/cjs/src/bitmex.js +1 -1
  14. package/dist/cjs/src/bitso.js +1 -1
  15. package/dist/cjs/src/bitstamp.js +1 -1
  16. package/dist/cjs/src/blofin.js +1 -1
  17. package/dist/cjs/src/bybit.js +49 -26
  18. package/dist/cjs/src/cex.js +1 -1
  19. package/dist/cjs/src/coinbase.js +7 -6
  20. package/dist/cjs/src/coinbaseexchange.js +1 -1
  21. package/dist/cjs/src/coincatch.js +3 -3
  22. package/dist/cjs/src/coinex.js +2 -2
  23. package/dist/cjs/src/coinmetro.js +1 -1
  24. package/dist/cjs/src/cryptocom.js +4 -1
  25. package/dist/cjs/src/deepcoin.js +1 -1
  26. package/dist/cjs/src/defx.js +1 -1
  27. package/dist/cjs/src/delta.js +3 -3
  28. package/dist/cjs/src/digifinex.js +1 -1
  29. package/dist/cjs/src/dydx.js +1 -1
  30. package/dist/cjs/src/exmo.js +2 -2
  31. package/dist/cjs/src/foxbit.js +1 -1
  32. package/dist/cjs/src/gate.js +23 -3
  33. package/dist/cjs/src/hashkey.js +1 -1
  34. package/dist/cjs/src/hibachi.js +1 -1
  35. package/dist/cjs/src/hitbtc.js +2 -2
  36. package/dist/cjs/src/htx.js +26 -1
  37. package/dist/cjs/src/hyperliquid.js +5 -4
  38. package/dist/cjs/src/kraken.js +1 -1
  39. package/dist/cjs/src/kucoin.js +1 -1
  40. package/dist/cjs/src/kucoinfutures.js +1 -1
  41. package/dist/cjs/src/luno.js +1 -1
  42. package/dist/cjs/src/mexc.js +2 -2
  43. package/dist/cjs/src/modetrade.js +1 -1
  44. package/dist/cjs/src/ndax.js +1 -1
  45. package/dist/cjs/src/okx.js +4 -4
  46. package/dist/cjs/src/paradex.js +1 -1
  47. package/dist/cjs/src/phemex.js +1 -1
  48. package/dist/cjs/src/poloniex.js +2 -2
  49. package/dist/cjs/src/pro/apex.js +5 -4
  50. package/dist/cjs/src/pro/arkham.js +1 -1
  51. package/dist/cjs/src/pro/aster.js +905 -33
  52. package/dist/cjs/src/pro/bitget.js +14 -1
  53. package/dist/cjs/src/pro/okx.js +1 -1
  54. package/dist/cjs/src/toobit.js +1 -1
  55. package/dist/cjs/src/whitebit.js +1 -1
  56. package/dist/cjs/src/woo.js +3 -3
  57. package/dist/cjs/src/woofipro.js +1 -1
  58. package/dist/cjs/src/xt.js +2 -2
  59. package/dist/cjs/src/zebpay.js +2 -2
  60. package/dist/cjs/src/zonda.js +1 -1
  61. package/js/ccxt.d.ts +5 -5
  62. package/js/ccxt.js +4 -4
  63. package/js/src/abstract/aster.d.ts +6 -8
  64. package/js/src/abstract/binance.d.ts +2 -0
  65. package/js/src/abstract/binancecoinm.d.ts +2 -0
  66. package/js/src/abstract/binanceus.d.ts +2 -0
  67. package/js/src/abstract/binanceusdm.d.ts +2 -0
  68. package/js/src/abstract/bingx.d.ts +1 -0
  69. package/js/src/abstract/bybit.d.ts +15 -0
  70. package/js/src/abstract/cryptocom.d.ts +3 -0
  71. package/js/src/abstract/gate.d.ts +13 -0
  72. package/js/src/abstract/gateio.d.ts +13 -0
  73. package/js/src/abstract/htx.d.ts +25 -0
  74. package/js/src/abstract/huobi.d.ts +25 -0
  75. package/js/src/{btcalpha.d.ts → alp.d.ts} +37 -37
  76. package/js/src/{btcalpha.js → alp.js} +44 -44
  77. package/js/src/ascendex.d.ts +2 -2
  78. package/js/src/ascendex.js +2 -2
  79. package/js/src/aster.js +15 -22
  80. package/js/src/backpack.js +2 -2
  81. package/js/src/binance.d.ts +4 -4
  82. package/js/src/binance.js +6 -4
  83. package/js/src/bingx.d.ts +1 -1
  84. package/js/src/bingx.js +2 -1
  85. package/js/src/bitfinex.d.ts +1 -2
  86. package/js/src/bitfinex.js +6 -11
  87. package/js/src/bitget.d.ts +3 -3
  88. package/js/src/bitget.js +4 -4
  89. package/js/src/bitmart.d.ts +1 -1
  90. package/js/src/bitmart.js +1 -1
  91. package/js/src/bitmex.d.ts +1 -1
  92. package/js/src/bitmex.js +1 -1
  93. package/js/src/bitso.d.ts +1 -1
  94. package/js/src/bitso.js +1 -1
  95. package/js/src/bitstamp.d.ts +1 -1
  96. package/js/src/bitstamp.js +1 -1
  97. package/js/src/blofin.d.ts +1 -1
  98. package/js/src/blofin.js +1 -1
  99. package/js/src/bybit.d.ts +1 -1
  100. package/js/src/bybit.js +49 -26
  101. package/js/src/cex.d.ts +1 -1
  102. package/js/src/cex.js +1 -1
  103. package/js/src/coinbase.d.ts +1 -1
  104. package/js/src/coinbase.js +7 -6
  105. package/js/src/coinbaseexchange.d.ts +1 -1
  106. package/js/src/coinbaseexchange.js +1 -1
  107. package/js/src/coincatch.d.ts +3 -3
  108. package/js/src/coincatch.js +3 -3
  109. package/js/src/coinex.d.ts +2 -2
  110. package/js/src/coinex.js +2 -2
  111. package/js/src/coinmetro.d.ts +1 -1
  112. package/js/src/coinmetro.js +1 -1
  113. package/js/src/cryptocom.d.ts +1 -1
  114. package/js/src/cryptocom.js +4 -1
  115. package/js/src/deepcoin.d.ts +1 -1
  116. package/js/src/deepcoin.js +1 -1
  117. package/js/src/defx.d.ts +1 -1
  118. package/js/src/defx.js +1 -1
  119. package/js/src/delta.d.ts +3 -3
  120. package/js/src/delta.js +3 -3
  121. package/js/src/digifinex.d.ts +1 -1
  122. package/js/src/digifinex.js +1 -1
  123. package/js/src/dydx.d.ts +1 -1
  124. package/js/src/dydx.js +1 -1
  125. package/js/src/exmo.d.ts +2 -2
  126. package/js/src/exmo.js +2 -2
  127. package/js/src/foxbit.js +1 -1
  128. package/js/src/gate.d.ts +3 -3
  129. package/js/src/gate.js +23 -3
  130. package/js/src/hashkey.d.ts +1 -1
  131. package/js/src/hashkey.js +1 -1
  132. package/js/src/hibachi.d.ts +1 -1
  133. package/js/src/hibachi.js +1 -1
  134. package/js/src/hitbtc.d.ts +2 -2
  135. package/js/src/hitbtc.js +2 -2
  136. package/js/src/htx.d.ts +1 -1
  137. package/js/src/htx.js +26 -1
  138. package/js/src/hyperliquid.d.ts +3 -3
  139. package/js/src/hyperliquid.js +5 -4
  140. package/js/src/kraken.d.ts +1 -1
  141. package/js/src/kraken.js +1 -1
  142. package/js/src/kucoin.d.ts +1 -1
  143. package/js/src/kucoin.js +1 -1
  144. package/js/src/kucoinfutures.d.ts +1 -1
  145. package/js/src/kucoinfutures.js +1 -1
  146. package/js/src/luno.d.ts +1 -1
  147. package/js/src/luno.js +1 -1
  148. package/js/src/mexc.d.ts +2 -2
  149. package/js/src/mexc.js +2 -2
  150. package/js/src/modetrade.d.ts +1 -1
  151. package/js/src/modetrade.js +1 -1
  152. package/js/src/ndax.d.ts +1 -1
  153. package/js/src/ndax.js +1 -1
  154. package/js/src/okx.d.ts +3 -3
  155. package/js/src/okx.js +4 -4
  156. package/js/src/paradex.js +1 -1
  157. package/js/src/phemex.d.ts +1 -1
  158. package/js/src/phemex.js +1 -1
  159. package/js/src/poloniex.d.ts +2 -2
  160. package/js/src/poloniex.js +2 -2
  161. package/js/src/pro/apex.js +5 -4
  162. package/js/src/pro/arkham.js +1 -1
  163. package/js/src/pro/aster.d.ts +68 -2
  164. package/js/src/pro/aster.js +906 -34
  165. package/js/src/pro/bitget.js +14 -1
  166. package/js/src/pro/okx.d.ts +1 -1
  167. package/js/src/pro/okx.js +1 -1
  168. package/js/src/toobit.d.ts +1 -1
  169. package/js/src/toobit.js +1 -1
  170. package/js/src/whitebit.js +1 -1
  171. package/js/src/woo.d.ts +3 -3
  172. package/js/src/woo.js +3 -3
  173. package/js/src/woofipro.d.ts +1 -1
  174. package/js/src/woofipro.js +1 -1
  175. package/js/src/xt.d.ts +2 -2
  176. package/js/src/xt.js +2 -2
  177. package/js/src/zebpay.d.ts +2 -2
  178. package/js/src/zebpay.js +2 -2
  179. package/js/src/zonda.d.ts +1 -1
  180. package/js/src/zonda.js +1 -1
  181. package/package.json +1 -1
  182. /package/dist/cjs/src/abstract/{btcalpha.js → alp.js} +0 -0
  183. /package/js/src/abstract/{btcalpha.d.ts → alp.d.ts} +0 -0
  184. /package/js/src/abstract/{btcalpha.js → alp.js} +0 -0
package/dist/cjs/ccxt.js CHANGED
@@ -8,6 +8,7 @@ var Exchange = require('./src/base/Exchange.js');
8
8
  var Precise = require('./src/base/Precise.js');
9
9
  var functions = require('./src/base/functions.js');
10
10
  var errors = require('./src/base/errors.js');
11
+ var alp = require('./src/alp.js');
11
12
  var alpaca = require('./src/alpaca.js');
12
13
  var apex = require('./src/apex.js');
13
14
  var arkham = require('./src/arkham.js');
@@ -39,7 +40,6 @@ var bittrade = require('./src/bittrade.js');
39
40
  var bitvavo = require('./src/bitvavo.js');
40
41
  var blockchaincom = require('./src/blockchaincom.js');
41
42
  var blofin = require('./src/blofin.js');
42
- var btcalpha = require('./src/btcalpha.js');
43
43
  var btcbox = require('./src/btcbox.js');
44
44
  var btcmarkets = require('./src/btcmarkets.js');
45
45
  var btcturk = require('./src/btcturk.js');
@@ -200,9 +200,10 @@ var xt$1 = require('./src/pro/xt.js');
200
200
 
201
201
  //-----------------------------------------------------------------------------
202
202
  // this is updated by vss.js when building
203
- const version = '4.5.33';
203
+ const version = '4.5.34';
204
204
  Exchange["default"].ccxtVersion = version;
205
205
  const exchanges = {
206
+ 'alp': alp["default"],
206
207
  'alpaca': alpaca["default"],
207
208
  'apex': apex["default"],
208
209
  'arkham': arkham["default"],
@@ -234,7 +235,6 @@ const exchanges = {
234
235
  'bitvavo': bitvavo["default"],
235
236
  'blockchaincom': blockchaincom["default"],
236
237
  'blofin': blofin["default"],
237
- 'btcalpha': btcalpha["default"],
238
238
  'btcbox': btcbox["default"],
239
239
  'btcmarkets': btcmarkets["default"],
240
240
  'btcturk': btcturk["default"],
@@ -446,6 +446,7 @@ exports.RequestTimeout = errors.RequestTimeout;
446
446
  exports.RestrictedLocation = errors.RestrictedLocation;
447
447
  exports.UnsubscribeError = errors.UnsubscribeError;
448
448
  exports.errors = errors;
449
+ exports.alp = alp["default"];
449
450
  exports.alpaca = alpaca["default"];
450
451
  exports.apex = apex["default"];
451
452
  exports.arkham = arkham["default"];
@@ -477,7 +478,6 @@ exports.bittrade = bittrade["default"];
477
478
  exports.bitvavo = bitvavo["default"];
478
479
  exports.blockchaincom = blockchaincom["default"];
479
480
  exports.blofin = blofin["default"];
480
- exports.btcalpha = btcalpha["default"];
481
481
  exports.btcbox = btcbox["default"];
482
482
  exports.btcmarkets = btcmarkets["default"];
483
483
  exports.btcturk = btcturk["default"];
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var btcalpha$1 = require('./abstract/btcalpha.js');
5
+ var alp$1 = require('./abstract/alp.js');
6
6
  var errors = require('./base/errors.js');
7
7
  var Precise = require('./base/Precise.js');
8
8
  var number = require('./base/functions/number.js');
@@ -11,14 +11,14 @@ var sha256 = require('./static_dependencies/noble-hashes/sha256.js');
11
11
  // ---------------------------------------------------------------------------
12
12
  // ---------------------------------------------------------------------------
13
13
  /**
14
- * @class btcalpha
14
+ * @class alp
15
15
  * @augments Exchange
16
16
  */
17
- class btcalpha extends btcalpha$1["default"] {
17
+ class alp extends alp$1["default"] {
18
18
  describe() {
19
19
  return this.deepExtend(super.describe(), {
20
- 'id': 'btcalpha',
21
- 'name': 'BTC-Alpha',
20
+ 'id': 'alp',
21
+ 'name': 'Alp',
22
22
  'countries': ['US'],
23
23
  'version': 'v1',
24
24
  'rateLimit': 10,
@@ -140,12 +140,12 @@ class btcalpha extends btcalpha$1["default"] {
140
140
  'urls': {
141
141
  'logo': 'https://github.com/user-attachments/assets/dce49f3a-61e5-4ba0-a2fe-41d192fd0e5d',
142
142
  'api': {
143
- 'rest': 'https://btc-alpha.com/api',
143
+ 'rest': 'https://alp.com/api',
144
144
  },
145
- 'www': 'https://btc-alpha.com',
146
- 'doc': 'https://btc-alpha.github.io/api-docs',
147
- 'fees': 'https://btc-alpha.com/fees/',
148
- 'referral': 'https://btc-alpha.com/?r=123788',
145
+ 'www': 'https://alp.com',
146
+ 'doc': 'https://alpcomdev.github.io/alp-api-docs/',
147
+ 'fees': 'https://alp.com/fees/',
148
+ 'referral': 'https://alp.com/?r=123788',
149
149
  },
150
150
  'api': {
151
151
  'public': {
@@ -274,9 +274,9 @@ class btcalpha extends btcalpha$1["default"] {
274
274
  }
275
275
  /**
276
276
  * @method
277
- * @name btcalpha#fetchMarkets
278
- * @description retrieves data on all markets for btcalpha
279
- * @see https://btc-alpha.github.io/api-docs/#list-all-currencies
277
+ * @name alp#fetchMarkets
278
+ * @description retrieves data on all markets for alp
279
+ * @see https://alpcomdev.github.io/alp-api-docs/#list-all-currencies
280
280
  * @param {object} [params] extra parameters specific to the exchange API endpoint
281
281
  * @returns {object[]} an array of objects representing market data
282
282
  */
@@ -360,8 +360,8 @@ class btcalpha extends btcalpha$1["default"] {
360
360
  }
361
361
  /**
362
362
  * @method
363
- * @name btcalpha#fetchTickers
364
- * @see https://btc-alpha.github.io/api-docs/#tickers
363
+ * @name alp#fetchTickers
364
+ * @see https://alpcomdev.github.io/alp-api-docs/#tickers
365
365
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
366
366
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
367
367
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -390,8 +390,8 @@ class btcalpha extends btcalpha$1["default"] {
390
390
  }
391
391
  /**
392
392
  * @method
393
- * @name btcalpha#fetchTicker
394
- * @see https://btc-alpha.github.io/api-docs/#tickers
393
+ * @name alp#fetchTicker
394
+ * @see https://alpcomdev.github.io/alp-api-docs/#tickers
395
395
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
396
396
  * @param {string} symbol unified symbol of the market to fetch the ticker for
397
397
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -463,8 +463,8 @@ class btcalpha extends btcalpha$1["default"] {
463
463
  }
464
464
  /**
465
465
  * @method
466
- * @name btcalpha#fetchOrderBook
467
- * @see https://btc-alpha.github.io/api-docs/#get-orderbook
466
+ * @name alp#fetchOrderBook
467
+ * @see https://alpcomdev.github.io/alp-api-docs/#get-orderbook
468
468
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
469
469
  * @param {string} symbol unified symbol of the market to fetch the order book for
470
470
  * @param {int} [limit] the maximum amount of order book entries to return
@@ -545,9 +545,9 @@ class btcalpha extends btcalpha$1["default"] {
545
545
  }
546
546
  /**
547
547
  * @method
548
- * @name btcalpha#fetchTrades
548
+ * @name alp#fetchTrades
549
549
  * @description get the list of most recent trades for a particular symbol
550
- * @see https://btc-alpha.github.io/api-docs/#list-all-exchanges
550
+ * @see https://alpcomdev.github.io/alp-api-docs/#list-all-exchanges
551
551
  * @param {string} symbol unified symbol of the market to fetch trades for
552
552
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
553
553
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -570,9 +570,9 @@ class btcalpha extends btcalpha$1["default"] {
570
570
  }
571
571
  /**
572
572
  * @method
573
- * @name btcalpha#fetchDeposits
573
+ * @name alp#fetchDeposits
574
574
  * @description fetch all deposits made to an account
575
- * @see https://btc-alpha.github.io/api-docs/#list-own-deposits
575
+ * @see https://alpcomdev.github.io/alp-api-docs/#list-own-deposits
576
576
  * @param {string} code unified currency code
577
577
  * @param {int} [since] the earliest time in ms to fetch deposits for
578
578
  * @param {int} [limit] the maximum number of deposits structures to retrieve
@@ -600,9 +600,9 @@ class btcalpha extends btcalpha$1["default"] {
600
600
  }
601
601
  /**
602
602
  * @method
603
- * @name btcalpha#fetchWithdrawals
603
+ * @name alp#fetchWithdrawals
604
604
  * @description fetch all withdrawals made from an account
605
- * @see https://btc-alpha.github.io/api-docs/#list-own-made-withdraws
605
+ * @see https://alpcomdev.github.io/alp-api-docs/#list-own-made-withdraws
606
606
  * @param {string} code unified currency code
607
607
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
608
608
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
@@ -708,9 +708,9 @@ class btcalpha extends btcalpha$1["default"] {
708
708
  }
709
709
  /**
710
710
  * @method
711
- * @name btcalpha#fetchOHLCV
711
+ * @name alp#fetchOHLCV
712
712
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
713
- * @see https://btc-alpha.github.io/api-docs/#charts
713
+ * @see https://alpcomdev.github.io/alp-api-docs/#charts
714
714
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
715
715
  * @param {string} timeframe the length of time each candle represents
716
716
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -756,9 +756,9 @@ class btcalpha extends btcalpha$1["default"] {
756
756
  }
757
757
  /**
758
758
  * @method
759
- * @name btcalpha#fetchBalance
759
+ * @name alp#fetchBalance
760
760
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
761
- * @see https://btc-alpha.github.io/api-docs/#list-own-wallets
761
+ * @see https://alpcomdev.github.io/alp-api-docs/#list-own-wallets
762
762
  * @param {object} [params] extra parameters specific to the exchange API endpoint
763
763
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
764
764
  */
@@ -849,8 +849,8 @@ class btcalpha extends btcalpha$1["default"] {
849
849
  }
850
850
  /**
851
851
  * @method
852
- * @name btcalpha#createOrder
853
- * @see https://btc-alpha.github.io/api-docs/#create-order
852
+ * @name alp#createOrder
853
+ * @see https://alpcomdev.github.io/alp-api-docs/#create-order
854
854
  * @description create a trade order
855
855
  * @param {string} symbol unified symbol of the market to create an order in
856
856
  * @param {string} type 'limit'
@@ -884,8 +884,8 @@ class btcalpha extends btcalpha$1["default"] {
884
884
  }
885
885
  /**
886
886
  * @method
887
- * @name btcalpha#cancelOrder
888
- * @see https://btc-alpha.github.io/api-docs/#cancel-order
887
+ * @name alp#cancelOrder
888
+ * @see https://alpcomdev.github.io/alp-api-docs/#cancel-order
889
889
  * @description cancels an open order
890
890
  * @param {string} id order id
891
891
  * @param {string} symbol unified symbol of the market the order was made in
@@ -906,11 +906,11 @@ class btcalpha extends btcalpha$1["default"] {
906
906
  }
907
907
  /**
908
908
  * @method
909
- * @name btcalpha#fetchOrder
910
- * @see https://btc-alpha.github.io/api-docs/#retrieve-single-order
909
+ * @name alp#fetchOrder
910
+ * @see https://alpcomdev.github.io/alp-api-docs/#retrieve-single-order
911
911
  * @description fetches information on an order made by the user
912
912
  * @param {string} id the order id
913
- * @param {string} symbol not used by btcalpha fetchOrder
913
+ * @param {string} symbol not used by alp fetchOrder
914
914
  * @param {object} [params] extra parameters specific to the exchange API endpoint
915
915
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
916
916
  */
@@ -924,8 +924,8 @@ class btcalpha extends btcalpha$1["default"] {
924
924
  }
925
925
  /**
926
926
  * @method
927
- * @name btcalpha#fetchOrders
928
- * @see https://btc-alpha.github.io/api-docs/#list-own-orders
927
+ * @name alp#fetchOrders
928
+ * @see https://alpcomdev.github.io/alp-api-docs/#list-own-orders
929
929
  * @description fetches information on multiple orders made by the user
930
930
  * @param {string} symbol unified market symbol of the market orders were made in
931
931
  * @param {int} [since] the earliest time in ms to fetch orders for
@@ -949,9 +949,9 @@ class btcalpha extends btcalpha$1["default"] {
949
949
  }
950
950
  /**
951
951
  * @method
952
- * @name btcalpha#fetchOpenOrders
952
+ * @name alp#fetchOpenOrders
953
953
  * @description fetch all unfilled currently open orders
954
- * @see https://btc-alpha.github.io/api-docs/#list-own-orders
954
+ * @see https://alpcomdev.github.io/alp-api-docs/#list-own-orders
955
955
  * @param {string} symbol unified market symbol
956
956
  * @param {int} [since] the earliest time in ms to fetch open orders for
957
957
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -966,9 +966,9 @@ class btcalpha extends btcalpha$1["default"] {
966
966
  }
967
967
  /**
968
968
  * @method
969
- * @name btcalpha#fetchClosedOrders
969
+ * @name alp#fetchClosedOrders
970
970
  * @description fetches information on multiple closed orders made by the user
971
- * @see https://btc-alpha.github.io/api-docs/#list-own-orders
971
+ * @see https://alpcomdev.github.io/alp-api-docs/#list-own-orders
972
972
  * @param {string} symbol unified market symbol of the market orders were made in
973
973
  * @param {int} [since] the earliest time in ms to fetch orders for
974
974
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -983,9 +983,9 @@ class btcalpha extends btcalpha$1["default"] {
983
983
  }
984
984
  /**
985
985
  * @method
986
- * @name btcalpha#fetchMyTrades
986
+ * @name alp#fetchMyTrades
987
987
  * @description fetch all trades made by the user
988
- * @see https://btc-alpha.github.io/api-docs/#list-own-exchanges
988
+ * @see https://alpcomdev.github.io/alp-api-docs/#list-own-exchanges
989
989
  * @param {string} symbol unified market symbol
990
990
  * @param {int} [since] the earliest time in ms to fetch trades for
991
991
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -1056,4 +1056,4 @@ class btcalpha extends btcalpha$1["default"] {
1056
1056
  }
1057
1057
  }
1058
1058
 
1059
- exports["default"] = btcalpha;
1059
+ exports["default"] = alp;
@@ -3082,7 +3082,7 @@ class ascendex extends ascendex$1["default"] {
3082
3082
  * @param {string} symbol unified market symbol
3083
3083
  * @param {float} amount the amount of margin to remove
3084
3084
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3085
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=reduce-margin-structure}
3085
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure}
3086
3086
  */
3087
3087
  async reduceMargin(symbol, amount, params = {}) {
3088
3088
  return await this.modifyMarginHelper(symbol, -amount, 'reduce', params);
@@ -3094,7 +3094,7 @@ class ascendex extends ascendex$1["default"] {
3094
3094
  * @param {string} symbol unified market symbol
3095
3095
  * @param {float} amount amount of margin to add
3096
3096
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3097
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
3097
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure}
3098
3098
  */
3099
3099
  async addMargin(symbol, amount, params = {}) {
3100
3100
  return await this.modifyMarginHelper(symbol, amount, 'add', params);
@@ -214,15 +214,6 @@ class aster extends aster$1["default"] {
214
214
  'v1/adlQuantile',
215
215
  'v1/forceOrders',
216
216
  ],
217
- 'post': [
218
- 'v1/listenKey',
219
- ],
220
- 'put': [
221
- 'v1/listenKey',
222
- ],
223
- 'delete': [
224
- 'v1/listenKey',
225
- ],
226
217
  },
227
218
  'fapiPrivate': {
228
219
  'get': [
@@ -255,11 +246,16 @@ class aster extends aster$1["default"] {
255
246
  'v1/leverage',
256
247
  'v1/marginType',
257
248
  'v1/positionMargin',
249
+ 'v1/listenKey',
250
+ ],
251
+ 'put': [
252
+ 'v1/listenKey',
258
253
  ],
259
254
  'delete': [
260
255
  'v1/order',
261
256
  'v1/allOpenOrders',
262
257
  'v1/batchOrders',
258
+ 'v1/listenKey',
263
259
  ],
264
260
  },
265
261
  'sapiPublic': {
@@ -277,17 +273,6 @@ class aster extends aster$1["default"] {
277
273
  'v1/ticker/bookTicker',
278
274
  'v1/aster/withdraw/estimateFee',
279
275
  ],
280
- 'post': [
281
- 'v1/getNonce',
282
- 'v1/createApiKey',
283
- 'v1/listenKey',
284
- ],
285
- 'put': [
286
- 'v1/listenKey',
287
- ],
288
- 'delete': [
289
- 'v1/listenKey',
290
- ],
291
276
  },
292
277
  'sapiPrivate': {
293
278
  'get': [
@@ -304,10 +289,15 @@ class aster extends aster$1["default"] {
304
289
  'v1/asset/wallet/transfer',
305
290
  'v1/asset/sendToAddress',
306
291
  'v1/aster/user-withdraw',
292
+ 'v1/listenKey',
293
+ ],
294
+ 'put': [
295
+ 'v1/listenKey',
307
296
  ],
308
297
  'delete': [
309
298
  'v1/order',
310
299
  'v1/allOpenOrders',
300
+ 'v1/listenKey',
311
301
  ],
312
302
  },
313
303
  },
@@ -342,6 +332,7 @@ class aster extends aster$1["default"] {
342
332
  },
343
333
  },
344
334
  'options': {
335
+ 'defaultType': 'spot',
345
336
  'recvWindow': 10 * 1000,
346
337
  'defaultTimeInForce': 'GTC',
347
338
  'zeroAddress': '0x0000000000000000000000000000000000000000',
@@ -3710,10 +3701,12 @@ class aster extends aster$1["default"] {
3710
3701
  headers = {
3711
3702
  'X-MBX-APIKEY': this.apiKey,
3712
3703
  };
3713
- const nonce = this.milliseconds();
3704
+ const timestamp = this.milliseconds();
3705
+ // Nonce is in microseconds
3706
+ const nonce = this.microseconds();
3714
3707
  const defaultRecvWindow = this.safeInteger(this.options, 'recvWindow');
3715
3708
  let extendedParams = this.extend({
3716
- 'timestamp': nonce,
3709
+ 'timestamp': timestamp,
3717
3710
  }, params);
3718
3711
  if (defaultRecvWindow !== undefined) {
3719
3712
  extendedParams['recvWindow'] = defaultRecvWindow;
@@ -1221,12 +1221,12 @@ class backpack extends backpack$1["default"] {
1221
1221
  //
1222
1222
  // fetchTrades
1223
1223
  // {
1224
- // "id": 8721564,
1224
+ // "id": 8721563,
1225
1225
  // "isBuyerMaker": false,
1226
1226
  // "price": "117427.6",
1227
1227
  // "quantity": "0.00016",
1228
1228
  // "quoteQuantity": "18.788416",
1229
- // "timestamp": 1753123916818
1229
+ // "timestamp": 1753123916819
1230
1230
  // }
1231
1231
  //
1232
1232
  // fetchMyTrades
@@ -500,6 +500,7 @@ class binance extends binance$1["default"] {
500
500
  'portfolio/negative-balance-exchange-record': 2,
501
501
  'portfolio/pmloan-history': 5,
502
502
  'portfolio/earn-asset-balance': 150,
503
+ 'portfolio/delta-mode': 150,
503
504
  // staking
504
505
  'staking/productList': 0.1,
505
506
  'staking/position': 0.1,
@@ -659,6 +660,7 @@ class binance extends binance$1["default"] {
659
660
  'portfolio/mint': 20,
660
661
  'portfolio/redeem': 20,
661
662
  'portfolio/earn-asset-transfer': 150,
663
+ 'portfolio/delta-mode': 150,
662
664
  'lending/auto-invest/plan/add': 0.1,
663
665
  'lending/auto-invest/plan/edit': 0.1,
664
666
  'lending/auto-invest/plan/edit-status': 0.1,
@@ -11936,7 +11938,7 @@ class binance extends binance$1["default"] {
11936
11938
  * @param {string} id the identification number of the ledger entry
11937
11939
  * @param {string} code unified currency code
11938
11940
  * @param {object} [params] extra parameters specific to the exchange API endpoint
11939
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
11941
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure}
11940
11942
  */
11941
11943
  async fetchLedgerEntry(id, code = undefined, params = {}) {
11942
11944
  await this.loadMarkets();
@@ -11983,7 +11985,7 @@ class binance extends binance$1["default"] {
11983
11985
  * @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)
11984
11986
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the ledger for a portfolio margin account
11985
11987
  * @param {string} [params.subType] "linear" or "inverse"
11986
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
11988
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure}
11987
11989
  */
11988
11990
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
11989
11991
  await this.loadMarkets();
@@ -12571,7 +12573,7 @@ class binance extends binance$1["default"] {
12571
12573
  * @param {string} symbol unified market symbol
12572
12574
  * @param {float} amount the amount of margin to remove
12573
12575
  * @param {object} [params] extra parameters specific to the exchange API endpoint
12574
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=reduce-margin-structure}
12576
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure}
12575
12577
  */
12576
12578
  async reduceMargin(symbol, amount, params = {}) {
12577
12579
  return await this.modifyMarginHelper(symbol, amount, 2, params);
@@ -12585,7 +12587,7 @@ class binance extends binance$1["default"] {
12585
12587
  * @param {string} symbol unified market symbol
12586
12588
  * @param {float} amount amount of margin to add
12587
12589
  * @param {object} [params] extra parameters specific to the exchange API endpoint
12588
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
12590
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure}
12589
12591
  */
12590
12592
  async addMargin(symbol, amount, params = {}) {
12591
12593
  return await this.modifyMarginHelper(symbol, amount, 1, params);
@@ -309,6 +309,7 @@ class bingx extends bingx$1["default"] {
309
309
  'quote/bookTicker': 1,
310
310
  },
311
311
  'post': {
312
+ 'trade/getVst': 5,
312
313
  'trade/order': 2,
313
314
  'trade/batchOrders': 2,
314
315
  'trade/closeAllPositions': 2,
@@ -5507,7 +5508,7 @@ class bingx extends bingx$1["default"] {
5507
5508
  * @param {string} symbol unified market symbol of the market to set margin in
5508
5509
  * @param {float} amount the amount to set the margin to
5509
5510
  * @param {object} [params] parameters specific to the bingx api endpoint
5510
- * @returns {object} A [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
5511
+ * @returns {object} A [margin structure]{@link https://docs.ccxt.com/?id=margin-structure}
5511
5512
  */
5512
5513
  async setMargin(symbol, amount, params = {}) {
5513
5514
  const type = this.safeInteger(params, 'type'); // 1 increase margin 2 decrease margin
@@ -548,9 +548,6 @@ class bitfinex extends bitfinex$1["default"] {
548
548
  isFiat(code) {
549
549
  return (code in this.options['fiat']);
550
550
  }
551
- getCurrencyId(code) {
552
- return 'f' + code;
553
- }
554
551
  getCurrencyName(code) {
555
552
  // temporary fix for transpiler recognition, even though this is in parent class
556
553
  if (code in this.options['currencyNames']) {
@@ -661,8 +658,8 @@ class bitfinex extends bitfinex$1["default"] {
661
658
  base = this.safeString(splitBase, 0);
662
659
  quote = this.safeString(splitQuote, 0);
663
660
  let symbol = base + '/' + quote;
664
- baseId = this.getCurrencyId(baseId);
665
- quoteId = this.getCurrencyId(quoteId);
661
+ // baseId = 'f' + baseId;
662
+ // quoteId = 'f' + quoteId;
666
663
  let settle = undefined;
667
664
  let settleId = undefined;
668
665
  if (swap) {
@@ -882,7 +879,6 @@ class bitfinex extends bitfinex$1["default"] {
882
879
  const fee = this.safeNumber(fees, 1);
883
880
  const undl = this.safeList(indexed['undl'], id, []);
884
881
  const precision = '8'; // default precision, todo: fix "magic constants"
885
- const fid = 'f' + id;
886
882
  const dwStatuses = this.safeList(indexed['statuses'], id, []);
887
883
  const depositEnabled = this.safeInteger(dwStatuses, 1) === 1;
888
884
  const withdrawEnabled = this.safeInteger(dwStatuses, 2) === 1;
@@ -909,8 +905,7 @@ class bitfinex extends bitfinex$1["default"] {
909
905
  };
910
906
  }
911
907
  result[code] = this.safeCurrencyStructure({
912
- 'id': fid,
913
- 'uppercaseId': id,
908
+ 'id': id,
914
909
  'code': code,
915
910
  'info': [id, label, pool, feeValues, undl],
916
911
  'type': type,
@@ -2698,7 +2693,7 @@ class bitfinex extends bitfinex$1["default"] {
2698
2693
  let response = undefined;
2699
2694
  if (code !== undefined) {
2700
2695
  currency = this.currency(code);
2701
- request['currency'] = currency['uppercaseId'];
2696
+ request['currency'] = currency['id'];
2702
2697
  response = await this.privatePostAuthRMovementsCurrencyHist(this.extend(request, params));
2703
2698
  }
2704
2699
  else {
@@ -3092,7 +3087,7 @@ class bitfinex extends bitfinex$1["default"] {
3092
3087
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3093
3088
  * @param {int} [params.until] timestamp in ms of the latest ledger entry
3094
3089
  * @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)
3095
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
3090
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure}
3096
3091
  */
3097
3092
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
3098
3093
  await this.loadMarkets();
@@ -3113,7 +3108,7 @@ class bitfinex extends bitfinex$1["default"] {
3113
3108
  let response = undefined;
3114
3109
  if (code !== undefined) {
3115
3110
  currency = this.currency(code);
3116
- request['currency'] = currency['uppercaseId'];
3111
+ request['currency'] = currency['id'];
3117
3112
  response = await this.privatePostAuthRLedgersCurrencyHist(this.extend(request, params));
3118
3113
  }
3119
3114
  else {
@@ -2423,7 +2423,7 @@ class bitget extends bitget$1["default"] {
2423
2423
  'max': undefined,
2424
2424
  },
2425
2425
  'cost': {
2426
- 'min': undefined,
2426
+ 'min': this.safeNumber(market, 'minOrderAmount'),
2427
2427
  'max': undefined,
2428
2428
  },
2429
2429
  },
@@ -7456,7 +7456,7 @@ class bitget extends bitget$1["default"] {
7456
7456
  * @param {string} [params.symbol] *contract only* unified market symbol
7457
7457
  * @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
7458
7458
  * @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)
7459
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
7459
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure}
7460
7460
  */
7461
7461
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
7462
7462
  await this.loadMarkets();
@@ -8978,7 +8978,7 @@ class bitget extends bitget$1["default"] {
8978
8978
  * @param {string} symbol unified market symbol
8979
8979
  * @param {float} amount the amount of margin to remove
8980
8980
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8981
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=reduce-margin-structure}
8981
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure}
8982
8982
  */
8983
8983
  async reduceMargin(symbol, amount, params = {}) {
8984
8984
  if (amount > 0) {
@@ -8998,7 +8998,7 @@ class bitget extends bitget$1["default"] {
8998
8998
  * @param {string} symbol unified market symbol
8999
8999
  * @param {float} amount the amount of margin to add
9000
9000
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9001
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
9001
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure}
9002
9002
  */
9003
9003
  async addMargin(symbol, amount, params = {}) {
9004
9004
  const holdSide = this.safeString(params, 'holdSide');
@@ -5285,7 +5285,7 @@ class bitmart extends bitmart$1["default"] {
5285
5285
  * @param {int} [limit] max number of ledger entries to return
5286
5286
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5287
5287
  * @param {int} [params.until] timestamp in ms of the latest ledger entry
5288
- * @returns {object[]} a list of [ledger structures]{@link https://docs.ccxt.com/?id=ledger}
5288
+ * @returns {object[]} a list of [ledger structures]{@link https://docs.ccxt.com/?id=ledger-entry-structure}
5289
5289
  */
5290
5290
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
5291
5291
  await this.loadMarkets();
@@ -1328,7 +1328,7 @@ class bitmex extends bitmex$1["default"] {
1328
1328
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
1329
1329
  * @param {int} [limit] max number of ledger entries to return, default is undefined
1330
1330
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1331
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
1331
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure}
1332
1332
  */
1333
1333
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
1334
1334
  await this.loadMarkets();
@@ -300,7 +300,7 @@ class bitso extends bitso$1["default"] {
300
300
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
301
301
  * @param {int} [limit] max number of ledger entries to return, default is undefined
302
302
  * @param {object} [params] extra parameters specific to the exchange API endpoint
303
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
303
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure}
304
304
  */
305
305
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
306
306
  const request = {};
@@ -2135,7 +2135,7 @@ class bitstamp extends bitstamp$1["default"] {
2135
2135
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
2136
2136
  * @param {int} [limit] max number of ledger entries to return, default is undefined
2137
2137
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2138
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
2138
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure}
2139
2139
  */
2140
2140
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
2141
2141
  await this.loadMarkets();
@@ -1716,7 +1716,7 @@ class blofin extends blofin$1["default"] {
1716
1716
  * @param {string} [params.marginMode] 'cross' or 'isolated'
1717
1717
  * @param {int} [params.until] the latest time in ms to fetch entries for
1718
1718
  * @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)
1719
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
1719
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure}
1720
1720
  */
1721
1721
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
1722
1722
  await this.loadMarkets();