ccxt 4.2.26 → 4.2.27

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
@@ -56,6 +56,7 @@ var coincheck = require('./src/coincheck.js');
56
56
  var coinex = require('./src/coinex.js');
57
57
  var coinlist = require('./src/coinlist.js');
58
58
  var coinmate = require('./src/coinmate.js');
59
+ var coinmetro = require('./src/coinmetro.js');
59
60
  var coinone = require('./src/coinone.js');
60
61
  var coinsph = require('./src/coinsph.js');
61
62
  var coinspot = require('./src/coinspot.js');
@@ -174,7 +175,7 @@ var woo$1 = require('./src/pro/woo.js');
174
175
 
175
176
  //-----------------------------------------------------------------------------
176
177
  // this is updated by vss.js when building
177
- const version = '4.2.26';
178
+ const version = '4.2.27';
178
179
  Exchange["default"].ccxtVersion = version;
179
180
  const exchanges = {
180
181
  'ace': ace,
@@ -221,6 +222,7 @@ const exchanges = {
221
222
  'coinex': coinex,
222
223
  'coinlist': coinlist,
223
224
  'coinmate': coinmate,
225
+ 'coinmetro': coinmetro,
224
226
  'coinone': coinone,
225
227
  'coinsph': coinsph,
226
228
  'coinspot': coinspot,
@@ -424,6 +426,7 @@ exports.coincheck = coincheck;
424
426
  exports.coinex = coinex;
425
427
  exports.coinlist = coinlist;
426
428
  exports.coinmate = coinmate;
429
+ exports.coinmetro = coinmetro;
427
430
  exports.coinone = coinone;
428
431
  exports.coinsph = coinsph;
429
432
  exports.coinspot = coinspot;
@@ -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;
@@ -4078,6 +4078,9 @@ class Exchange {
4078
4078
  return this.cancelOrder(this.safeValue(order, 'id'), this.safeValue(order, 'symbol'), params);
4079
4079
  }
4080
4080
  async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
4081
+ if (this.has['fetchOpenOrders'] && this.has['fetchClosedOrders']) {
4082
+ throw new errors.NotSupported(this.id + ' fetchOrders() is not supported yet, consider using fetchOpenOrders() and fetchClosedOrders() instead');
4083
+ }
4081
4084
  throw new errors.NotSupported(this.id + ' fetchOrders() is not supported yet');
4082
4085
  }
4083
4086
  async fetchOrdersWs(symbol = undefined, since = undefined, limit = undefined, params = {}) {
@@ -3337,11 +3337,16 @@ class coinbase extends coinbase$1 {
3337
3337
  'Content-Type': 'application/json',
3338
3338
  };
3339
3339
  }
3340
- else if (this.token) {
3340
+ else if (this.token && !this.checkRequiredCredentials(false)) {
3341
3341
  headers = {
3342
3342
  'Authorization': 'Bearer ' + this.token,
3343
3343
  'Content-Type': 'application/json',
3344
3344
  };
3345
+ if (method !== 'GET') {
3346
+ if (Object.keys(query).length) {
3347
+ body = this.json(query);
3348
+ }
3349
+ }
3345
3350
  }
3346
3351
  else {
3347
3352
  this.checkRequiredCredentials();