ccxt 4.1.99 → 4.2.1

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
@@ -40,6 +40,7 @@ var bitpanda = require('./src/bitpanda.js');
40
40
  var bitrue = require('./src/bitrue.js');
41
41
  var bitso = require('./src/bitso.js');
42
42
  var bitstamp = require('./src/bitstamp.js');
43
+ var bitteam = require('./src/bitteam.js');
43
44
  var bitvavo = require('./src/bitvavo.js');
44
45
  var bl3p = require('./src/bl3p.js');
45
46
  var blockchaincom = require('./src/blockchaincom.js');
@@ -168,7 +169,7 @@ var woo$1 = require('./src/pro/woo.js');
168
169
 
169
170
  //-----------------------------------------------------------------------------
170
171
  // this is updated by vss.js when building
171
- const version = '4.1.99';
172
+ const version = '4.2.1';
172
173
  Exchange["default"].ccxtVersion = version;
173
174
  const exchanges = {
174
175
  'ace': ace,
@@ -199,6 +200,7 @@ const exchanges = {
199
200
  'bitrue': bitrue,
200
201
  'bitso': bitso,
201
202
  'bitstamp': bitstamp,
203
+ 'bitteam': bitteam,
202
204
  'bitvavo': bitvavo,
203
205
  'bl3p': bl3p,
204
206
  'blockchaincom': blockchaincom,
@@ -396,6 +398,7 @@ exports.bitpanda = bitpanda;
396
398
  exports.bitrue = bitrue;
397
399
  exports.bitso = bitso;
398
400
  exports.bitstamp = bitstamp;
401
+ exports.bitteam = bitteam;
399
402
  exports.bitvavo = bitvavo;
400
403
  exports.bl3p = bl3p;
401
404
  exports.blockchaincom = blockchaincom;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var Exchange$1 = require('../base/Exchange.js');
4
+
5
+ // -------------------------------------------------------------------------------
6
+ class Exchange extends Exchange$1["default"] {
7
+ }
8
+
9
+ module.exports = Exchange;
@@ -24,7 +24,7 @@ class bequant extends hitbtc {
24
24
  'fees': [
25
25
  'https://bequant.io/fees-and-limits',
26
26
  ],
27
- 'referral': 'https://bequant.io',
27
+ 'referral': 'https://bequant.io/referral/dd104e3bee7634ec',
28
28
  },
29
29
  });
30
30
  }
@@ -3221,14 +3221,13 @@ class bitget extends bitget$1 {
3221
3221
  // "1399132.341"
3222
3222
  // ]
3223
3223
  //
3224
- const volumeIndex = (market['inverse']) ? 6 : 5;
3225
3224
  return [
3226
3225
  this.safeInteger(ohlcv, 0),
3227
3226
  this.safeNumber(ohlcv, 1),
3228
3227
  this.safeNumber(ohlcv, 2),
3229
3228
  this.safeNumber(ohlcv, 3),
3230
3229
  this.safeNumber(ohlcv, 4),
3231
- this.safeNumber(ohlcv, volumeIndex),
3230
+ this.safeNumber(ohlcv, 5),
3232
3231
  ];
3233
3232
  }
3234
3233
  async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
@@ -3536,10 +3535,16 @@ class bitget extends bitget$1 {
3536
3535
  // Use transferable instead of available for swap and margin https://github.com/ccxt/ccxt/pull/19127
3537
3536
  const spotAccountFree = this.safeString(entry, 'available');
3538
3537
  const contractAccountFree = this.safeString(entry, 'maxTransferOut');
3539
- account['free'] = (contractAccountFree !== undefined) ? contractAccountFree : spotAccountFree;
3540
- const frozen = this.safeString(entry, 'frozen');
3541
- const locked = this.safeString(entry, 'locked');
3542
- account['used'] = Precise["default"].stringAdd(frozen, locked);
3538
+ if (contractAccountFree !== undefined) {
3539
+ account['free'] = contractAccountFree;
3540
+ account['total'] = this.safeString(entry, 'accountEquity');
3541
+ }
3542
+ else {
3543
+ account['free'] = spotAccountFree;
3544
+ const frozen = this.safeString(entry, 'frozen');
3545
+ const locked = this.safeString(entry, 'locked');
3546
+ account['used'] = Precise["default"].stringAdd(frozen, locked);
3547
+ }
3543
3548
  }
3544
3549
  result[code] = account;
3545
3550
  }
@@ -5017,6 +5022,9 @@ class bitget extends bitget$1 {
5017
5022
  // }
5018
5023
  // }
5019
5024
  //
5025
+ if (typeof response === 'string') {
5026
+ response = JSON.parse(response);
5027
+ }
5020
5028
  const data = this.safeValue(response, 'data');
5021
5029
  const first = this.safeValue(data, 0, data);
5022
5030
  return this.parseOrder(first, market);