ccxt 4.1.78 → 4.1.79
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 +3 -3
- package/dist/ccxt.browser.js +11 -4
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/bingx.js +5 -3
- package/dist/cjs/src/coinbase.js +1 -0
- package/dist/cjs/src/cryptocom.js +4 -0
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/coinbase.d.ts +1 -0
- package/js/src/abstract/cryptocom.d.ts +4 -0
- package/js/src/bingx.js +5 -3
- package/js/src/coinbase.js +1 -0
- package/js/src/cryptocom.js +4 -0
- package/package.json +1 -1
package/dist/cjs/ccxt.js
CHANGED
|
@@ -172,7 +172,7 @@ var woo$1 = require('./src/pro/woo.js');
|
|
|
172
172
|
|
|
173
173
|
//-----------------------------------------------------------------------------
|
|
174
174
|
// this is updated by vss.js when building
|
|
175
|
-
const version = '4.1.
|
|
175
|
+
const version = '4.1.79';
|
|
176
176
|
Exchange["default"].ccxtVersion = version;
|
|
177
177
|
const exchanges = {
|
|
178
178
|
'ace': ace,
|
package/dist/cjs/src/bingx.js
CHANGED
|
@@ -1344,7 +1344,7 @@ class bingx extends bingx$1 {
|
|
|
1344
1344
|
// {
|
|
1345
1345
|
// "symbol": "BTC-USDT",
|
|
1346
1346
|
// "priceChange": "52.5",
|
|
1347
|
-
// "priceChangePercent": "0.31",
|
|
1347
|
+
// "priceChangePercent": "0.31%", // they started to add the percent sign in value
|
|
1348
1348
|
// "lastPrice": "16880.5",
|
|
1349
1349
|
// "lastQty": "2.2238",
|
|
1350
1350
|
// "highPrice": "16897.5",
|
|
@@ -1375,8 +1375,10 @@ class bingx extends bingx$1 {
|
|
|
1375
1375
|
const close = this.safeString(ticker, 'lastPrice');
|
|
1376
1376
|
const quoteVolume = this.safeString(ticker, 'quoteVolume');
|
|
1377
1377
|
const baseVolume = this.safeString(ticker, 'volume');
|
|
1378
|
-
let percentage = this.safeString(ticker, 'priceChangePercent'
|
|
1379
|
-
percentage
|
|
1378
|
+
let percentage = this.safeString(ticker, 'priceChangePercent');
|
|
1379
|
+
if (percentage !== undefined) {
|
|
1380
|
+
percentage = percentage.replace('%', '');
|
|
1381
|
+
}
|
|
1380
1382
|
const ts = this.safeInteger(ticker, 'closeTime');
|
|
1381
1383
|
const datetime = this.iso8601(ts);
|
|
1382
1384
|
const bid = this.safeString(ticker, 'bidPrice');
|
package/dist/cjs/src/coinbase.js
CHANGED
|
@@ -203,6 +203,9 @@ class cryptocom extends cryptocom$1 {
|
|
|
203
203
|
'private/get-currency-networks': 10 / 3,
|
|
204
204
|
'private/get-deposit-history': 10 / 3,
|
|
205
205
|
'private/get-deposit-address': 10 / 3,
|
|
206
|
+
'private/export/create-export-request': 10 / 3,
|
|
207
|
+
'private/export/get-export-requests': 10 / 3,
|
|
208
|
+
'private/export/download-export-output': 10 / 3,
|
|
206
209
|
'private/get-account-summary': 10 / 3,
|
|
207
210
|
'private/create-order': 2 / 3,
|
|
208
211
|
'private/cancel-order': 2 / 3,
|
|
@@ -221,6 +224,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
221
224
|
'private/otc/accept-quote': 100,
|
|
222
225
|
'private/otc/get-quote-history': 10 / 3,
|
|
223
226
|
'private/otc/get-trade-history': 10 / 3,
|
|
227
|
+
'private/otc/create-order': 10 / 3,
|
|
224
228
|
},
|
|
225
229
|
},
|
|
226
230
|
},
|
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 { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.1.
|
|
7
|
+
declare const version = "4.1.78";
|
|
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, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.1.
|
|
41
|
+
const version = '4.1.79';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -58,6 +58,7 @@ interface Exchange {
|
|
|
58
58
|
v3PrivateGetBrokerageProductBook(params?: {}): Promise<implicitReturnType>;
|
|
59
59
|
v3PrivateGetBrokerageBestBidAsk(params?: {}): Promise<implicitReturnType>;
|
|
60
60
|
v3PrivateGetBrokerageConvertTradeTradeId(params?: {}): Promise<implicitReturnType>;
|
|
61
|
+
v3PrivateGetBrokerageTime(params?: {}): Promise<implicitReturnType>;
|
|
61
62
|
v3PrivatePostBrokerageOrders(params?: {}): Promise<implicitReturnType>;
|
|
62
63
|
v3PrivatePostBrokerageOrdersBatchCancel(params?: {}): Promise<implicitReturnType>;
|
|
63
64
|
v3PrivatePostBrokerageOrdersEdit(params?: {}): Promise<implicitReturnType>;
|
|
@@ -52,6 +52,9 @@ interface Exchange {
|
|
|
52
52
|
v2PrivatePostPrivateGetCurrencyNetworks(params?: {}): Promise<implicitReturnType>;
|
|
53
53
|
v2PrivatePostPrivateGetDepositHistory(params?: {}): Promise<implicitReturnType>;
|
|
54
54
|
v2PrivatePostPrivateGetDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
55
|
+
v2PrivatePostPrivateExportCreateExportRequest(params?: {}): Promise<implicitReturnType>;
|
|
56
|
+
v2PrivatePostPrivateExportGetExportRequests(params?: {}): Promise<implicitReturnType>;
|
|
57
|
+
v2PrivatePostPrivateExportDownloadExportOutput(params?: {}): Promise<implicitReturnType>;
|
|
55
58
|
v2PrivatePostPrivateGetAccountSummary(params?: {}): Promise<implicitReturnType>;
|
|
56
59
|
v2PrivatePostPrivateCreateOrder(params?: {}): Promise<implicitReturnType>;
|
|
57
60
|
v2PrivatePostPrivateCancelOrder(params?: {}): Promise<implicitReturnType>;
|
|
@@ -70,6 +73,7 @@ interface Exchange {
|
|
|
70
73
|
v2PrivatePostPrivateOtcAcceptQuote(params?: {}): Promise<implicitReturnType>;
|
|
71
74
|
v2PrivatePostPrivateOtcGetQuoteHistory(params?: {}): Promise<implicitReturnType>;
|
|
72
75
|
v2PrivatePostPrivateOtcGetTradeHistory(params?: {}): Promise<implicitReturnType>;
|
|
76
|
+
v2PrivatePostPrivateOtcCreateOrder(params?: {}): Promise<implicitReturnType>;
|
|
73
77
|
derivativesPublicGetPublicAuth(params?: {}): Promise<implicitReturnType>;
|
|
74
78
|
derivativesPublicGetPublicGetInstruments(params?: {}): Promise<implicitReturnType>;
|
|
75
79
|
derivativesPublicGetPublicGetBook(params?: {}): Promise<implicitReturnType>;
|
package/js/src/bingx.js
CHANGED
|
@@ -1347,7 +1347,7 @@ export default class bingx extends Exchange {
|
|
|
1347
1347
|
// {
|
|
1348
1348
|
// "symbol": "BTC-USDT",
|
|
1349
1349
|
// "priceChange": "52.5",
|
|
1350
|
-
// "priceChangePercent": "0.31",
|
|
1350
|
+
// "priceChangePercent": "0.31%", // they started to add the percent sign in value
|
|
1351
1351
|
// "lastPrice": "16880.5",
|
|
1352
1352
|
// "lastQty": "2.2238",
|
|
1353
1353
|
// "highPrice": "16897.5",
|
|
@@ -1378,8 +1378,10 @@ export default class bingx extends Exchange {
|
|
|
1378
1378
|
const close = this.safeString(ticker, 'lastPrice');
|
|
1379
1379
|
const quoteVolume = this.safeString(ticker, 'quoteVolume');
|
|
1380
1380
|
const baseVolume = this.safeString(ticker, 'volume');
|
|
1381
|
-
let percentage = this.safeString(ticker, 'priceChangePercent'
|
|
1382
|
-
percentage
|
|
1381
|
+
let percentage = this.safeString(ticker, 'priceChangePercent');
|
|
1382
|
+
if (percentage !== undefined) {
|
|
1383
|
+
percentage = percentage.replace('%', '');
|
|
1384
|
+
}
|
|
1383
1385
|
const ts = this.safeInteger(ticker, 'closeTime');
|
|
1384
1386
|
const datetime = this.iso8601(ts);
|
|
1385
1387
|
const bid = this.safeString(ticker, 'bidPrice');
|
package/js/src/coinbase.js
CHANGED
package/js/src/cryptocom.js
CHANGED
|
@@ -206,6 +206,9 @@ export default class cryptocom extends Exchange {
|
|
|
206
206
|
'private/get-currency-networks': 10 / 3,
|
|
207
207
|
'private/get-deposit-history': 10 / 3,
|
|
208
208
|
'private/get-deposit-address': 10 / 3,
|
|
209
|
+
'private/export/create-export-request': 10 / 3,
|
|
210
|
+
'private/export/get-export-requests': 10 / 3,
|
|
211
|
+
'private/export/download-export-output': 10 / 3,
|
|
209
212
|
'private/get-account-summary': 10 / 3,
|
|
210
213
|
'private/create-order': 2 / 3,
|
|
211
214
|
'private/cancel-order': 2 / 3,
|
|
@@ -224,6 +227,7 @@ export default class cryptocom extends Exchange {
|
|
|
224
227
|
'private/otc/accept-quote': 100,
|
|
225
228
|
'private/otc/get-quote-history': 10 / 3,
|
|
226
229
|
'private/otc/get-trade-history': 10 / 3,
|
|
230
|
+
'private/otc/create-order': 10 / 3,
|
|
227
231
|
},
|
|
228
232
|
},
|
|
229
233
|
},
|
package/package.json
CHANGED