ccxt 4.3.29 → 4.3.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/ccxt.js CHANGED
@@ -185,7 +185,7 @@ var woofipro$1 = require('./src/pro/woofipro.js');
185
185
 
186
186
  //-----------------------------------------------------------------------------
187
187
  // this is updated by vss.js when building
188
- const version = '4.3.29';
188
+ const version = '4.3.30';
189
189
  Exchange["default"].ccxtVersion = version;
190
190
  const exchanges = {
191
191
  'ace': ace,
@@ -6126,6 +6126,9 @@ class Exchange {
6126
6126
  }
6127
6127
  parseMarginModes(response, symbols = undefined, symbolKey = undefined, marketType = undefined) {
6128
6128
  const marginModeStructures = {};
6129
+ if (marketType === undefined) {
6130
+ marketType = 'swap'; // default to swap
6131
+ }
6129
6132
  for (let i = 0; i < response.length; i++) {
6130
6133
  const info = response[i];
6131
6134
  const marketId = this.safeString(info, symbolKey);
@@ -6141,6 +6144,9 @@ class Exchange {
6141
6144
  }
6142
6145
  parseLeverages(response, symbols = undefined, symbolKey = undefined, marketType = undefined) {
6143
6146
  const leverageStructures = {};
6147
+ if (marketType === undefined) {
6148
+ marketType = 'swap'; // default to swap
6149
+ }
6144
6150
  for (let i = 0; i < response.length; i++) {
6145
6151
  const info = response[i];
6146
6152
  const marketId = this.safeString(info, symbolKey);
@@ -2541,7 +2541,7 @@ class bingx extends bingx$1 {
2541
2541
  'stopLossPrice': stopLossPrice,
2542
2542
  'takeProfitPrice': takeProfitPrice,
2543
2543
  'average': this.safeString2(order, 'avgPrice', 'ap'),
2544
- 'cost': undefined,
2544
+ 'cost': this.safeString(order, 'cummulativeQuoteQty'),
2545
2545
  'amount': this.safeStringN(order, ['origQty', 'q', 'quantity']),
2546
2546
  'filled': this.safeString2(order, 'executedQty', 'z'),
2547
2547
  'remaining': undefined,