ccxt 4.3.38 → 4.3.39
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/README.md +5 -5
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/coinlist.js +7 -4
- package/dist/cjs/src/mexc.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/coinlist.js +7 -4
- package/js/src/mexc.js +1 -1
- package/package.json +1 -1
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.
|
|
188
|
+
const version = '4.3.39';
|
|
189
189
|
Exchange["default"].ccxtVersion = version;
|
|
190
190
|
const exchanges = {
|
|
191
191
|
'ace': ace,
|
package/dist/cjs/src/coinlist.js
CHANGED
|
@@ -2285,17 +2285,20 @@ class coinlist extends coinlist$1 {
|
|
|
2285
2285
|
const request = this.omit(params, this.extractParams(path));
|
|
2286
2286
|
const endpoint = '/' + this.implodeParams(path, params);
|
|
2287
2287
|
let url = this.urls['api'][api] + endpoint;
|
|
2288
|
-
const
|
|
2288
|
+
const isBulk = Array.isArray(params);
|
|
2289
|
+
let query = undefined;
|
|
2290
|
+
if (!isBulk) {
|
|
2291
|
+
query = this.urlencode(request);
|
|
2292
|
+
}
|
|
2289
2293
|
if (api === 'private') {
|
|
2290
2294
|
this.checkRequiredCredentials();
|
|
2291
2295
|
const timestamp = this.seconds().toString();
|
|
2292
2296
|
let auth = timestamp + method + endpoint;
|
|
2293
|
-
const isBulk = Array.isArray(params);
|
|
2294
2297
|
if ((method === 'POST') || (method === 'PATCH') || isBulk) {
|
|
2295
2298
|
body = this.json(request);
|
|
2296
2299
|
auth += body;
|
|
2297
2300
|
}
|
|
2298
|
-
else if (query.length !== 0) {
|
|
2301
|
+
else if (query !== undefined && query.length !== 0) {
|
|
2299
2302
|
auth += '?' + query;
|
|
2300
2303
|
url += '?' + query;
|
|
2301
2304
|
}
|
|
@@ -2307,7 +2310,7 @@ class coinlist extends coinlist$1 {
|
|
|
2307
2310
|
'Content-Type': 'application/json',
|
|
2308
2311
|
};
|
|
2309
2312
|
}
|
|
2310
|
-
else if (query.length !== 0) {
|
|
2313
|
+
else if (query !== undefined && query.length !== 0) {
|
|
2311
2314
|
url += '?' + query;
|
|
2312
2315
|
}
|
|
2313
2316
|
return { 'url': url, 'method': method, 'body': body, 'headers': headers };
|
package/dist/cjs/src/mexc.js
CHANGED
|
@@ -147,7 +147,7 @@ class mexc extends mexc$1 {
|
|
|
147
147
|
'fees': [
|
|
148
148
|
'https://www.mexc.com/fee',
|
|
149
149
|
],
|
|
150
|
-
'referral': 'https://
|
|
150
|
+
'referral': 'https://www.mexc.com/register?inviteCode=mexc-1FQ1GNu1',
|
|
151
151
|
},
|
|
152
152
|
'api': {
|
|
153
153
|
'spot': {
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import type { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, Leverage, Leverages, Option, OptionChain, Conversion } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.3.
|
|
7
|
+
declare const version = "4.3.38";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.3.
|
|
41
|
+
const version = '4.3.39';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
package/js/src/coinlist.js
CHANGED
|
@@ -2288,17 +2288,20 @@ export default class coinlist extends Exchange {
|
|
|
2288
2288
|
const request = this.omit(params, this.extractParams(path));
|
|
2289
2289
|
const endpoint = '/' + this.implodeParams(path, params);
|
|
2290
2290
|
let url = this.urls['api'][api] + endpoint;
|
|
2291
|
-
const
|
|
2291
|
+
const isBulk = Array.isArray(params);
|
|
2292
|
+
let query = undefined;
|
|
2293
|
+
if (!isBulk) {
|
|
2294
|
+
query = this.urlencode(request);
|
|
2295
|
+
}
|
|
2292
2296
|
if (api === 'private') {
|
|
2293
2297
|
this.checkRequiredCredentials();
|
|
2294
2298
|
const timestamp = this.seconds().toString();
|
|
2295
2299
|
let auth = timestamp + method + endpoint;
|
|
2296
|
-
const isBulk = Array.isArray(params);
|
|
2297
2300
|
if ((method === 'POST') || (method === 'PATCH') || isBulk) {
|
|
2298
2301
|
body = this.json(request);
|
|
2299
2302
|
auth += body;
|
|
2300
2303
|
}
|
|
2301
|
-
else if (query.length !== 0) {
|
|
2304
|
+
else if (query !== undefined && query.length !== 0) {
|
|
2302
2305
|
auth += '?' + query;
|
|
2303
2306
|
url += '?' + query;
|
|
2304
2307
|
}
|
|
@@ -2310,7 +2313,7 @@ export default class coinlist extends Exchange {
|
|
|
2310
2313
|
'Content-Type': 'application/json',
|
|
2311
2314
|
};
|
|
2312
2315
|
}
|
|
2313
|
-
else if (query.length !== 0) {
|
|
2316
|
+
else if (query !== undefined && query.length !== 0) {
|
|
2314
2317
|
url += '?' + query;
|
|
2315
2318
|
}
|
|
2316
2319
|
return { 'url': url, 'method': method, 'body': body, 'headers': headers };
|
package/js/src/mexc.js
CHANGED
|
@@ -150,7 +150,7 @@ export default class mexc extends Exchange {
|
|
|
150
150
|
'fees': [
|
|
151
151
|
'https://www.mexc.com/fee',
|
|
152
152
|
],
|
|
153
|
-
'referral': 'https://
|
|
153
|
+
'referral': 'https://www.mexc.com/register?inviteCode=mexc-1FQ1GNu1',
|
|
154
154
|
},
|
|
155
155
|
'api': {
|
|
156
156
|
'spot': {
|
package/package.json
CHANGED