ccxt 4.1.57 → 4.1.58
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 +22 -13
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/ws/Client.js +1 -1
- package/dist/cjs/src/bitmart.js +4 -4
- package/dist/cjs/src/pro/bittrex.js +9 -0
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/base/ws/Client.js +1 -1
- package/js/src/bitmart.js +4 -4
- package/js/src/pro/bittrex.js +9 -0
- package/package.json +1 -1
package/dist/cjs/ccxt.js
CHANGED
|
@@ -180,7 +180,7 @@ var woo$1 = require('./src/pro/woo.js');
|
|
|
180
180
|
|
|
181
181
|
//-----------------------------------------------------------------------------
|
|
182
182
|
// this is updated by vss.js when building
|
|
183
|
-
const version = '4.1.
|
|
183
|
+
const version = '4.1.58';
|
|
184
184
|
Exchange["default"].ccxtVersion = version;
|
|
185
185
|
const exchanges = {
|
|
186
186
|
'ace': ace,
|
|
@@ -111,7 +111,7 @@ class Client {
|
|
|
111
111
|
if (!this.isOpen()) {
|
|
112
112
|
const error = new errors.RequestTimeout('Connection to ' + this.url + ' failed due to a connection timeout');
|
|
113
113
|
this.onError(error);
|
|
114
|
-
this.connection.close(1006);
|
|
114
|
+
this.connection.close(platform.isNode ? 1006 : 1000);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
setConnectionTimeout() {
|
package/dist/cjs/src/bitmart.js
CHANGED
|
@@ -129,15 +129,15 @@ class bitmart extends bitmart$1 {
|
|
|
129
129
|
'spot/v1/symbols/details': 5,
|
|
130
130
|
'spot/quotation/v3/tickers': 6,
|
|
131
131
|
'spot/quotation/v3/ticker': 4,
|
|
132
|
-
'spot/quotation/v3/lite-klines':
|
|
133
|
-
'spot/quotation/v3/klines':
|
|
132
|
+
'spot/quotation/v3/lite-klines': 5,
|
|
133
|
+
'spot/quotation/v3/klines': 7,
|
|
134
134
|
'spot/quotation/v3/books': 4,
|
|
135
135
|
'spot/quotation/v3/trades': 4,
|
|
136
136
|
'spot/v1/ticker': 5,
|
|
137
137
|
'spot/v2/ticker': 30,
|
|
138
138
|
'spot/v1/ticker_detail': 5,
|
|
139
139
|
'spot/v1/steps': 30,
|
|
140
|
-
'spot/v1/symbols/kline':
|
|
140
|
+
'spot/v1/symbols/kline': 6,
|
|
141
141
|
'spot/v1/symbols/book': 5,
|
|
142
142
|
'spot/v1/symbols/trades': 5,
|
|
143
143
|
// contract markets
|
|
@@ -146,7 +146,7 @@ class bitmart extends bitmart$1 {
|
|
|
146
146
|
'contract/public/depth': 5,
|
|
147
147
|
'contract/public/open-interest': 30,
|
|
148
148
|
'contract/public/funding-rate': 30,
|
|
149
|
-
'contract/public/kline':
|
|
149
|
+
'contract/public/kline': 6,
|
|
150
150
|
'account/v1/currencies': 30,
|
|
151
151
|
},
|
|
152
152
|
},
|
|
@@ -13,6 +13,15 @@ class bittrex extends bittrex$1 {
|
|
|
13
13
|
return this.deepExtend(super.describe(), {
|
|
14
14
|
'has': {
|
|
15
15
|
'ws': true,
|
|
16
|
+
'cancelAllOrdersWs': false,
|
|
17
|
+
'cancelOrdersWs': false,
|
|
18
|
+
'cancelOrderWs': false,
|
|
19
|
+
'createOrderWs': false,
|
|
20
|
+
'editOrderWs': false,
|
|
21
|
+
'fetchBalanceWs': false,
|
|
22
|
+
'fetchOpenOrdersWs': false,
|
|
23
|
+
'fetchOrderWs': false,
|
|
24
|
+
'fetchTradesWs': false,
|
|
16
25
|
'watchBalance': true,
|
|
17
26
|
'watchHeartbeat': true,
|
|
18
27
|
'watchMyTrades': true,
|
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.57";
|
|
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.58';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
package/js/src/base/ws/Client.js
CHANGED
|
@@ -110,7 +110,7 @@ export default class Client {
|
|
|
110
110
|
if (!this.isOpen()) {
|
|
111
111
|
const error = new RequestTimeout('Connection to ' + this.url + ' failed due to a connection timeout');
|
|
112
112
|
this.onError(error);
|
|
113
|
-
this.connection.close(1006);
|
|
113
|
+
this.connection.close(isNode ? 1006 : 1000);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
setConnectionTimeout() {
|
package/js/src/bitmart.js
CHANGED
|
@@ -132,15 +132,15 @@ export default class bitmart extends Exchange {
|
|
|
132
132
|
'spot/v1/symbols/details': 5,
|
|
133
133
|
'spot/quotation/v3/tickers': 6,
|
|
134
134
|
'spot/quotation/v3/ticker': 4,
|
|
135
|
-
'spot/quotation/v3/lite-klines':
|
|
136
|
-
'spot/quotation/v3/klines':
|
|
135
|
+
'spot/quotation/v3/lite-klines': 5,
|
|
136
|
+
'spot/quotation/v3/klines': 7,
|
|
137
137
|
'spot/quotation/v3/books': 4,
|
|
138
138
|
'spot/quotation/v3/trades': 4,
|
|
139
139
|
'spot/v1/ticker': 5,
|
|
140
140
|
'spot/v2/ticker': 30,
|
|
141
141
|
'spot/v1/ticker_detail': 5,
|
|
142
142
|
'spot/v1/steps': 30,
|
|
143
|
-
'spot/v1/symbols/kline':
|
|
143
|
+
'spot/v1/symbols/kline': 6,
|
|
144
144
|
'spot/v1/symbols/book': 5,
|
|
145
145
|
'spot/v1/symbols/trades': 5,
|
|
146
146
|
// contract markets
|
|
@@ -149,7 +149,7 @@ export default class bitmart extends Exchange {
|
|
|
149
149
|
'contract/public/depth': 5,
|
|
150
150
|
'contract/public/open-interest': 30,
|
|
151
151
|
'contract/public/funding-rate': 30,
|
|
152
|
-
'contract/public/kline':
|
|
152
|
+
'contract/public/kline': 6,
|
|
153
153
|
'account/v1/currencies': 30,
|
|
154
154
|
},
|
|
155
155
|
},
|
package/js/src/pro/bittrex.js
CHANGED
|
@@ -16,6 +16,15 @@ export default class bittrex extends bittrexRest {
|
|
|
16
16
|
return this.deepExtend(super.describe(), {
|
|
17
17
|
'has': {
|
|
18
18
|
'ws': true,
|
|
19
|
+
'cancelAllOrdersWs': false,
|
|
20
|
+
'cancelOrdersWs': false,
|
|
21
|
+
'cancelOrderWs': false,
|
|
22
|
+
'createOrderWs': false,
|
|
23
|
+
'editOrderWs': false,
|
|
24
|
+
'fetchBalanceWs': false,
|
|
25
|
+
'fetchOpenOrdersWs': false,
|
|
26
|
+
'fetchOrderWs': false,
|
|
27
|
+
'fetchTradesWs': false,
|
|
19
28
|
'watchBalance': true,
|
|
20
29
|
'watchHeartbeat': true,
|
|
21
30
|
'watchMyTrades': true,
|
package/package.json
CHANGED