ccxt 4.3.59 → 4.3.61

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 (46) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/binance.js +90 -1
  5. package/dist/cjs/src/bingx.js +415 -116
  6. package/dist/cjs/src/bitfinex.js +38 -4
  7. package/dist/cjs/src/bitso.js +4 -1
  8. package/dist/cjs/src/bybit.js +11 -3
  9. package/dist/cjs/src/cryptocom.js +14 -6
  10. package/dist/cjs/src/gate.js +1 -2
  11. package/dist/cjs/src/hyperliquid.js +11 -3
  12. package/dist/cjs/src/kraken.js +1 -1
  13. package/dist/cjs/src/mexc.js +2 -1
  14. package/dist/cjs/src/okx.js +11 -2
  15. package/dist/cjs/src/pro/cex.js +1 -1
  16. package/dist/cjs/src/pro/kucoin.js +34 -3
  17. package/dist/cjs/src/pro/phemex.js +1 -1
  18. package/dist/cjs/src/pro/xt.js +5 -1
  19. package/dist/cjs/src/timex.js +18 -2
  20. package/dist/cjs/src/vertex.js +10 -1
  21. package/dist/cjs/src/xt.js +1 -1
  22. package/js/ccxt.d.ts +1 -1
  23. package/js/ccxt.js +1 -1
  24. package/js/src/abstract/bingx.d.ts +1 -1
  25. package/js/src/binance.d.ts +1 -1
  26. package/js/src/binance.js +90 -1
  27. package/js/src/bingx.js +415 -116
  28. package/js/src/bitfinex.d.ts +2 -2
  29. package/js/src/bitfinex.js +38 -4
  30. package/js/src/bitso.js +4 -1
  31. package/js/src/bybit.js +11 -3
  32. package/js/src/cryptocom.js +14 -6
  33. package/js/src/gate.js +1 -2
  34. package/js/src/hyperliquid.js +11 -3
  35. package/js/src/kraken.js +1 -1
  36. package/js/src/mexc.js +2 -1
  37. package/js/src/okx.js +11 -2
  38. package/js/src/pro/cex.js +1 -1
  39. package/js/src/pro/kucoin.js +34 -3
  40. package/js/src/pro/phemex.js +1 -1
  41. package/js/src/pro/xt.js +5 -1
  42. package/js/src/timex.d.ts +2 -2
  43. package/js/src/timex.js +18 -2
  44. package/js/src/vertex.js +10 -1
  45. package/js/src/xt.js +1 -1
  46. package/package.json +1 -1
package/dist/cjs/ccxt.js CHANGED
@@ -191,7 +191,7 @@ var xt$1 = require('./src/pro/xt.js');
191
191
 
192
192
  //-----------------------------------------------------------------------------
193
193
  // this is updated by vss.js when building
194
- const version = '4.3.59';
194
+ const version = '4.3.61';
195
195
  Exchange["default"].ccxtVersion = version;
196
196
  const exchanges = {
197
197
  'ace': ace,
@@ -7102,31 +7102,73 @@ class binance extends binance$1 {
7102
7102
  let response = undefined;
7103
7103
  if (market['option']) {
7104
7104
  response = await this.eapiPrivateDeleteAllOpenOrders(this.extend(request, params));
7105
+ //
7106
+ // {
7107
+ // "code": 0,
7108
+ // "msg": "success"
7109
+ // }
7110
+ //
7105
7111
  }
7106
7112
  else if (market['linear']) {
7107
7113
  if (isPortfolioMargin) {
7108
7114
  if (isConditional) {
7109
7115
  response = await this.papiDeleteUmConditionalAllOpenOrders(this.extend(request, params));
7116
+ //
7117
+ // {
7118
+ // "code": "200",
7119
+ // "msg": "The operation of cancel all conditional open order is done."
7120
+ // }
7121
+ //
7110
7122
  }
7111
7123
  else {
7112
7124
  response = await this.papiDeleteUmAllOpenOrders(this.extend(request, params));
7125
+ //
7126
+ // {
7127
+ // "code": 200,
7128
+ // "msg": "The operation of cancel all open order is done."
7129
+ // }
7130
+ //
7113
7131
  }
7114
7132
  }
7115
7133
  else {
7116
7134
  response = await this.fapiPrivateDeleteAllOpenOrders(this.extend(request, params));
7135
+ //
7136
+ // {
7137
+ // "code": 200,
7138
+ // "msg": "The operation of cancel all open order is done."
7139
+ // }
7140
+ //
7117
7141
  }
7118
7142
  }
7119
7143
  else if (market['inverse']) {
7120
7144
  if (isPortfolioMargin) {
7121
7145
  if (isConditional) {
7122
7146
  response = await this.papiDeleteCmConditionalAllOpenOrders(this.extend(request, params));
7147
+ //
7148
+ // {
7149
+ // "code": "200",
7150
+ // "msg": "The operation of cancel all conditional open order is done."
7151
+ // }
7152
+ //
7123
7153
  }
7124
7154
  else {
7125
7155
  response = await this.papiDeleteCmAllOpenOrders(this.extend(request, params));
7156
+ //
7157
+ // {
7158
+ // "code": 200,
7159
+ // "msg": "The operation of cancel all open order is done."
7160
+ // }
7161
+ //
7126
7162
  }
7127
7163
  }
7128
7164
  else {
7129
7165
  response = await this.dapiPrivateDeleteAllOpenOrders(this.extend(request, params));
7166
+ //
7167
+ // {
7168
+ // "code": 200,
7169
+ // "msg": "The operation of cancel all open order is done."
7170
+ // }
7171
+ //
7130
7172
  }
7131
7173
  }
7132
7174
  else if ((type === 'margin') || (marginMode !== undefined) || isPortfolioMargin) {
@@ -7138,16 +7180,63 @@ class binance extends binance$1 {
7138
7180
  request['isIsolated'] = true;
7139
7181
  }
7140
7182
  response = await this.sapiDeleteMarginOpenOrders(this.extend(request, params));
7183
+ //
7184
+ // [
7185
+ // {
7186
+ // "symbol": "BTCUSDT",
7187
+ // "isIsolated": true, // if isolated margin
7188
+ // "origClientOrderId": "E6APeyTJvkMvLMYMqu1KQ4",
7189
+ // "orderId": 11,
7190
+ // "orderListId": -1,
7191
+ // "clientOrderId": "pXLV6Hz6mprAcVYpVMTGgx",
7192
+ // "price": "0.089853",
7193
+ // "origQty": "0.178622",
7194
+ // "executedQty": "0.000000",
7195
+ // "cummulativeQuoteQty": "0.000000",
7196
+ // "status": "CANCELED",
7197
+ // "timeInForce": "GTC",
7198
+ // "type": "LIMIT",
7199
+ // "side": "BUY",
7200
+ // "selfTradePreventionMode": "NONE"
7201
+ // },
7202
+ // ...
7203
+ // ]
7204
+ //
7141
7205
  }
7142
7206
  }
7143
7207
  else {
7144
7208
  response = await this.privateDeleteOpenOrders(this.extend(request, params));
7209
+ //
7210
+ // [
7211
+ // {
7212
+ // "symbol": "ADAUSDT",
7213
+ // "origClientOrderId": "x-R4BD3S82662cde7a90114475b86e21",
7214
+ // "orderId": 3935107,
7215
+ // "orderListId": -1,
7216
+ // "clientOrderId": "bqM2w1oTlugfRAjnTIFBE8",
7217
+ // "transactTime": 1720589016657,
7218
+ // "price": "0.35000000",
7219
+ // "origQty": "30.00000000",
7220
+ // "executedQty": "0.00000000",
7221
+ // "cummulativeQuoteQty": "0.00000000",
7222
+ // "status": "CANCELED",
7223
+ // "timeInForce": "GTC",
7224
+ // "type": "LIMIT",
7225
+ // "side": "BUY",
7226
+ // "selfTradePreventionMode": "EXPIRE_MAKER"
7227
+ // }
7228
+ // ]
7229
+ //
7145
7230
  }
7146
7231
  if (Array.isArray(response)) {
7147
7232
  return this.parseOrders(response, market);
7148
7233
  }
7149
7234
  else {
7150
- return response;
7235
+ return [
7236
+ this.safeOrder({
7237
+ 'info': response,
7238
+ }),
7239
+ ];
7151
7240
  }
7152
7241
  }
7153
7242
  async cancelOrders(ids, symbol = undefined, params = {}) {