ccxt 4.5.22 → 4.5.23
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 +6 -5
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +6 -1
- package/dist/cjs/src/abstract/bullish.js +11 -0
- package/dist/cjs/src/base/Exchange.js +3 -2
- package/dist/cjs/src/base/ws/WsClient.js +15 -0
- package/dist/cjs/src/binance.js +159 -36
- package/dist/cjs/src/bingx.js +2 -1
- package/dist/cjs/src/bitmart.js +1 -0
- package/dist/cjs/src/bullish.js +2919 -0
- package/dist/cjs/src/bybit.js +34 -37
- package/dist/cjs/src/gate.js +2 -2
- package/dist/cjs/src/htx.js +4 -1
- package/dist/cjs/src/hyperliquid.js +115 -12
- package/dist/cjs/src/kucoin.js +22 -3
- package/dist/cjs/src/mexc.js +7 -0
- package/dist/cjs/src/okx.js +117 -63
- package/dist/cjs/src/paradex.js +78 -3
- package/dist/cjs/src/pro/binance.js +131 -29
- package/dist/cjs/src/pro/bullish.js +781 -0
- package/dist/cjs/src/pro/coinbase.js +2 -2
- package/dist/cjs/src/pro/hyperliquid.js +75 -15
- package/dist/cjs/src/pro/upbit.js +28 -82
- package/js/ccxt.d.ts +8 -2
- package/js/ccxt.js +6 -2
- package/js/src/abstract/binance.d.ts +1 -0
- package/js/src/abstract/binancecoinm.d.ts +1 -0
- package/js/src/abstract/binanceus.d.ts +1 -0
- package/js/src/abstract/binanceusdm.d.ts +1 -0
- package/js/src/abstract/bingx.d.ts +1 -0
- package/js/src/abstract/bullish.d.ts +65 -0
- package/js/src/abstract/bullish.js +5 -0
- package/js/src/abstract/kucoin.d.ts +15 -0
- package/js/src/abstract/kucoinfutures.d.ts +15 -0
- package/js/src/abstract/mexc.d.ts +7 -0
- package/js/src/abstract/myokx.d.ts +90 -39
- package/js/src/abstract/okx.d.ts +90 -39
- package/js/src/abstract/okxus.d.ts +90 -39
- package/js/src/base/Exchange.d.ts +1 -1
- package/js/src/base/Exchange.js +3 -2
- package/js/src/base/ws/Client.d.ts +1 -0
- package/js/src/base/ws/WsClient.js +15 -0
- package/js/src/binance.d.ts +14 -5
- package/js/src/binance.js +159 -36
- package/js/src/bingx.js +2 -1
- package/js/src/bitmart.js +1 -0
- package/js/src/bullish.d.ts +446 -0
- package/js/src/bullish.js +2912 -0
- package/js/src/bybit.js +34 -37
- package/js/src/gate.js +2 -2
- package/js/src/htx.js +4 -1
- package/js/src/hyperliquid.d.ts +24 -0
- package/js/src/hyperliquid.js +115 -12
- package/js/src/kucoin.js +22 -3
- package/js/src/mexc.js +7 -0
- package/js/src/okx.js +117 -63
- package/js/src/paradex.d.ts +15 -1
- package/js/src/paradex.js +78 -3
- package/js/src/pro/binance.d.ts +7 -0
- package/js/src/pro/binance.js +131 -29
- package/js/src/pro/bullish.d.ts +108 -0
- package/js/src/pro/bullish.js +774 -0
- package/js/src/pro/coinbase.js +2 -2
- package/js/src/pro/hyperliquid.d.ts +13 -1
- package/js/src/pro/hyperliquid.js +75 -15
- package/js/src/pro/upbit.d.ts +0 -1
- package/js/src/pro/upbit.js +28 -82
- package/package.json +2 -2
|
@@ -787,7 +787,7 @@ class coinbase extends coinbase$1["default"] {
|
|
|
787
787
|
'type': this.safeString(order, 'order_type'),
|
|
788
788
|
'timeInForce': undefined,
|
|
789
789
|
'postOnly': undefined,
|
|
790
|
-
'side': this.
|
|
790
|
+
'side': this.safeStringLower2(order, 'side', 'order_side'),
|
|
791
791
|
'price': this.safeString(order, 'limit_price'),
|
|
792
792
|
'stopPrice': stopPrice,
|
|
793
793
|
'triggerPrice': stopPrice,
|
|
@@ -796,7 +796,7 @@ class coinbase extends coinbase$1["default"] {
|
|
|
796
796
|
'average': this.safeString(order, 'avg_price'),
|
|
797
797
|
'filled': this.safeString(order, 'cumulative_quantity'),
|
|
798
798
|
'remaining': this.safeString(order, 'leaves_quantity'),
|
|
799
|
-
'status': this.
|
|
799
|
+
'status': this.parseOrderStatus(this.safeString(order, 'status')),
|
|
800
800
|
'fee': {
|
|
801
801
|
'amount': this.safeString(order, 'total_fees'),
|
|
802
802
|
'currency': this.safeString(market, 'quote'),
|
|
@@ -308,6 +308,11 @@ class hyperliquid extends hyperliquid$1["default"] {
|
|
|
308
308
|
async watchTicker(symbol, params = {}) {
|
|
309
309
|
const market = this.market(symbol);
|
|
310
310
|
symbol = market['symbol'];
|
|
311
|
+
// try to infer dex from market
|
|
312
|
+
const dexName = this.safeString(this.safeDict(market, 'info', {}), 'dex');
|
|
313
|
+
if (dexName) {
|
|
314
|
+
params = this.extend(params, { 'dex': dexName });
|
|
315
|
+
}
|
|
311
316
|
const tickers = await this.watchTickers([symbol], params);
|
|
312
317
|
return tickers[symbol];
|
|
313
318
|
}
|
|
@@ -318,12 +323,13 @@ class hyperliquid extends hyperliquid$1["default"] {
|
|
|
318
323
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
319
324
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
320
325
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
326
|
+
* @param {string} [params.dex] for for hip3 tokens subscription, eg: 'xyz' or 'flx`, if symbols are provided we will infer it from the first symbol's market
|
|
321
327
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
322
328
|
*/
|
|
323
329
|
async watchTickers(symbols = undefined, params = {}) {
|
|
324
330
|
await this.loadMarkets();
|
|
325
331
|
symbols = this.marketSymbols(symbols, undefined, true);
|
|
326
|
-
|
|
332
|
+
let messageHash = 'tickers';
|
|
327
333
|
const url = this.urls['api']['ws']['public'];
|
|
328
334
|
const request = {
|
|
329
335
|
'method': 'subscribe',
|
|
@@ -332,6 +338,21 @@ class hyperliquid extends hyperliquid$1["default"] {
|
|
|
332
338
|
'user': '0x0000000000000000000000000000000000000000',
|
|
333
339
|
},
|
|
334
340
|
};
|
|
341
|
+
let defaultDex = this.safeString(params, 'dex');
|
|
342
|
+
const firstSymbol = this.safeString(symbols, 0);
|
|
343
|
+
if (firstSymbol !== undefined) {
|
|
344
|
+
const market = this.market(firstSymbol);
|
|
345
|
+
const dexName = this.safeString(this.safeDict(market, 'info', {}), 'dex');
|
|
346
|
+
if (dexName !== undefined) {
|
|
347
|
+
defaultDex = dexName;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
if (defaultDex !== undefined) {
|
|
351
|
+
params = this.omit(params, 'dex');
|
|
352
|
+
messageHash = 'tickers:' + defaultDex;
|
|
353
|
+
request['subscription']['type'] = 'allMids';
|
|
354
|
+
request['subscription']['dex'] = defaultDex;
|
|
355
|
+
}
|
|
335
356
|
const tickers = await this.watch(url, messageHash, this.extend(request, params), messageHash);
|
|
336
357
|
if (this.newUpdates) {
|
|
337
358
|
return this.filterByArrayTickers(tickers, 'symbol', symbols);
|
|
@@ -399,6 +420,19 @@ class hyperliquid extends hyperliquid$1["default"] {
|
|
|
399
420
|
return this.filterBySymbolSinceLimit(trades, symbol, since, limit, true);
|
|
400
421
|
}
|
|
401
422
|
handleWsTickers(client, message) {
|
|
423
|
+
// hip3 mids
|
|
424
|
+
// {
|
|
425
|
+
// channel: 'allMids',
|
|
426
|
+
// data: {
|
|
427
|
+
// dex: 'flx',
|
|
428
|
+
// mids: {
|
|
429
|
+
// 'flx:COIN': '270.075',
|
|
430
|
+
// 'flx:CRCL': '78.8175',
|
|
431
|
+
// 'flx:NVDA': '180.64',
|
|
432
|
+
// 'flx:TSLA': '436.075'
|
|
433
|
+
// }
|
|
434
|
+
// }
|
|
435
|
+
// }
|
|
402
436
|
//
|
|
403
437
|
// {
|
|
404
438
|
// "channel": "webData2",
|
|
@@ -445,13 +479,36 @@ class hyperliquid extends hyperliquid$1["default"] {
|
|
|
445
479
|
// }
|
|
446
480
|
// }
|
|
447
481
|
//
|
|
482
|
+
// handle hip3 mids
|
|
483
|
+
const channel = this.safeString(message, 'channel');
|
|
484
|
+
if (channel === 'allMids') {
|
|
485
|
+
const data = this.safeDict(message, 'data', {});
|
|
486
|
+
const mids = this.safeDict(data, 'mids', {});
|
|
487
|
+
if (mids !== undefined) {
|
|
488
|
+
const keys = Object.keys(mids);
|
|
489
|
+
for (let i = 0; i < keys.length; i++) {
|
|
490
|
+
const name = keys[i];
|
|
491
|
+
const marketId = this.coinToMarketId(name);
|
|
492
|
+
const market = this.safeMarket(marketId, undefined, undefined, 'swap');
|
|
493
|
+
const symbol = market['symbol'];
|
|
494
|
+
const ticker = this.parseWsTicker({
|
|
495
|
+
'price': this.safeNumber(mids, name),
|
|
496
|
+
}, market);
|
|
497
|
+
this.tickers[symbol] = ticker;
|
|
498
|
+
}
|
|
499
|
+
const messageHash = 'tickers:' + this.safeString(data, 'dex');
|
|
500
|
+
client.resolve(this.tickers, messageHash);
|
|
501
|
+
return true;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
448
504
|
// spot
|
|
449
505
|
const rawData = this.safeDict(message, 'data', {});
|
|
450
506
|
const spotAssets = this.safeList(rawData, 'spotAssetCtxs', []);
|
|
451
507
|
const parsedTickers = [];
|
|
452
508
|
for (let i = 0; i < spotAssets.length; i++) {
|
|
453
509
|
const assetObject = spotAssets[i];
|
|
454
|
-
const
|
|
510
|
+
const coin = this.safeString(assetObject, 'coin');
|
|
511
|
+
const marketId = this.coinToMarketId(coin);
|
|
455
512
|
const market = this.safeMarket(marketId, undefined, undefined, 'spot');
|
|
456
513
|
const symbol = market['symbol'];
|
|
457
514
|
const ticker = this.parseWsTicker(assetObject, market);
|
|
@@ -464,8 +521,9 @@ class hyperliquid extends hyperliquid$1["default"] {
|
|
|
464
521
|
const assetCtxs = this.safeList(rawData, 'assetCtxs', []);
|
|
465
522
|
for (let i = 0; i < universe.length; i++) {
|
|
466
523
|
const data = this.extend(this.safeDict(universe, i, {}), this.safeDict(assetCtxs, i, {}));
|
|
467
|
-
const
|
|
468
|
-
const
|
|
524
|
+
const coin = this.safeString(data, 'name');
|
|
525
|
+
const marketId = this.coinToMarketId(coin);
|
|
526
|
+
const market = this.safeMarket(marketId, undefined, undefined, 'swap');
|
|
469
527
|
const symbol = market['symbol'];
|
|
470
528
|
const ticker = this.parseWsTicker(data, market);
|
|
471
529
|
this.tickers[symbol] = ticker;
|
|
@@ -473,6 +531,7 @@ class hyperliquid extends hyperliquid$1["default"] {
|
|
|
473
531
|
}
|
|
474
532
|
const tickers = this.indexBy(parsedTickers, 'symbol');
|
|
475
533
|
client.resolve(tickers, 'tickers');
|
|
534
|
+
return true;
|
|
476
535
|
}
|
|
477
536
|
parseWsTicker(rawTicker, market = undefined) {
|
|
478
537
|
return this.parseTicker(rawTicker, market);
|
|
@@ -534,18 +593,18 @@ class hyperliquid extends hyperliquid$1["default"] {
|
|
|
534
593
|
const messageHash = 'myTrades';
|
|
535
594
|
client.resolve(trades, messageHash);
|
|
536
595
|
}
|
|
596
|
+
/**
|
|
597
|
+
* @method
|
|
598
|
+
* @name hyperliquid#watchTrades
|
|
599
|
+
* @description watches information on multiple trades made in a market
|
|
600
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
601
|
+
* @param {string} symbol unified market symbol of the market trades were made in
|
|
602
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
603
|
+
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
604
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
605
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
606
|
+
*/
|
|
537
607
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
538
|
-
// s
|
|
539
|
-
// @method
|
|
540
|
-
// @name hyperliquid#watchTrades
|
|
541
|
-
// @description watches information on multiple trades made in a market
|
|
542
|
-
// @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
543
|
-
// @param {string} symbol unified market symbol of the market trades were made in
|
|
544
|
-
// @param {int} [since] the earliest time in ms to fetch trades for
|
|
545
|
-
// @param {int} [limit] the maximum number of trade structures to retrieve
|
|
546
|
-
// @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
547
|
-
// @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
548
|
-
//
|
|
549
608
|
await this.loadMarkets();
|
|
550
609
|
const market = this.market(symbol);
|
|
551
610
|
symbol = market['symbol'];
|
|
@@ -1083,6 +1142,7 @@ class hyperliquid extends hyperliquid$1["default"] {
|
|
|
1083
1142
|
'orderUpdates': this.handleOrder,
|
|
1084
1143
|
'userFills': this.handleMyTrades,
|
|
1085
1144
|
'webData2': this.handleWsTickers,
|
|
1145
|
+
'allMids': this.handleWsTickers,
|
|
1086
1146
|
'post': this.handleWsPost,
|
|
1087
1147
|
'subscriptionResponse': this.handleSubscriptionResponse,
|
|
1088
1148
|
};
|
|
@@ -35,11 +35,13 @@ class upbit extends upbit$1["default"] {
|
|
|
35
35
|
},
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
async
|
|
38
|
+
async watchPublicMultiple(symbols, channel, params = {}) {
|
|
39
39
|
await this.loadMarkets();
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
if (symbols === undefined) {
|
|
41
|
+
symbols = this.symbols;
|
|
42
|
+
}
|
|
43
|
+
symbols = this.marketSymbols(symbols);
|
|
44
|
+
const marketIds = this.marketIds(symbols);
|
|
43
45
|
const url = this.implodeParams(this.urls['api']['ws'], {
|
|
44
46
|
'hostname': this.hostname,
|
|
45
47
|
});
|
|
@@ -49,16 +51,18 @@ class upbit extends upbit$1["default"] {
|
|
|
49
51
|
client.subscriptions[subscriptionsKey] = {};
|
|
50
52
|
}
|
|
51
53
|
const subscriptions = client.subscriptions[subscriptionsKey];
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
messageHash
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
const messageHashes = [];
|
|
55
|
+
for (let i = 0; i < symbols.length; i++) {
|
|
56
|
+
const marketId = marketIds[i];
|
|
57
|
+
const symbol = symbols[i];
|
|
58
|
+
const messageHash = channel + ':' + symbol;
|
|
59
|
+
messageHashes.push(messageHash);
|
|
60
|
+
if (!(messageHash in subscriptions)) {
|
|
61
|
+
subscriptions[messageHash] = {
|
|
62
|
+
'type': channel,
|
|
63
|
+
'codes': [marketId],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
62
66
|
}
|
|
63
67
|
const finalMessage = [
|
|
64
68
|
{
|
|
@@ -70,34 +74,7 @@ class upbit extends upbit$1["default"] {
|
|
|
70
74
|
const key = channelKeys[i];
|
|
71
75
|
finalMessage.push(subscriptions[key]);
|
|
72
76
|
}
|
|
73
|
-
return await this.
|
|
74
|
-
}
|
|
75
|
-
async watchPublicMultiple(symbols, channel, params = {}) {
|
|
76
|
-
await this.loadMarkets();
|
|
77
|
-
if (symbols === undefined) {
|
|
78
|
-
symbols = this.symbols;
|
|
79
|
-
}
|
|
80
|
-
symbols = this.marketSymbols(symbols);
|
|
81
|
-
const marketIds = this.marketIds(symbols);
|
|
82
|
-
const url = this.implodeParams(this.urls['api']['ws'], {
|
|
83
|
-
'hostname': this.hostname,
|
|
84
|
-
});
|
|
85
|
-
const messageHashes = [];
|
|
86
|
-
for (let i = 0; i < marketIds.length; i++) {
|
|
87
|
-
messageHashes.push(channel + ':' + marketIds[i]);
|
|
88
|
-
}
|
|
89
|
-
const request = [
|
|
90
|
-
{
|
|
91
|
-
'ticket': this.uuid(),
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
'type': channel,
|
|
95
|
-
'codes': marketIds,
|
|
96
|
-
// 'isOnlySnapshot': false,
|
|
97
|
-
// 'isOnlyRealtime': false,
|
|
98
|
-
},
|
|
99
|
-
];
|
|
100
|
-
return await this.watchMultiple(url, messageHashes, request, messageHashes);
|
|
77
|
+
return await this.watchMultiple(url, messageHashes, finalMessage, messageHashes);
|
|
101
78
|
}
|
|
102
79
|
/**
|
|
103
80
|
* @method
|
|
@@ -109,7 +86,7 @@ class upbit extends upbit$1["default"] {
|
|
|
109
86
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
110
87
|
*/
|
|
111
88
|
async watchTicker(symbol, params = {}) {
|
|
112
|
-
return await this.
|
|
89
|
+
return await this.watchPublicMultiple([symbol], 'ticker');
|
|
113
90
|
}
|
|
114
91
|
/**
|
|
115
92
|
* @method
|
|
@@ -155,37 +132,7 @@ class upbit extends upbit$1["default"] {
|
|
|
155
132
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
156
133
|
*/
|
|
157
134
|
async watchTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
158
|
-
await this.
|
|
159
|
-
symbols = this.marketSymbols(symbols, undefined, false, true, true);
|
|
160
|
-
const channel = 'trade';
|
|
161
|
-
const messageHashes = [];
|
|
162
|
-
const url = this.implodeParams(this.urls['api']['ws'], {
|
|
163
|
-
'hostname': this.hostname,
|
|
164
|
-
});
|
|
165
|
-
if (symbols !== undefined) {
|
|
166
|
-
for (let i = 0; i < symbols.length; i++) {
|
|
167
|
-
const market = this.market(symbols[i]);
|
|
168
|
-
const marketId = market['id'];
|
|
169
|
-
const symbol = market['symbol'];
|
|
170
|
-
this.options[channel] = this.safeValue(this.options, channel, {});
|
|
171
|
-
this.options[channel][symbol] = true;
|
|
172
|
-
messageHashes.push(channel + ':' + marketId);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
const optionSymbols = Object.keys(this.options[channel]);
|
|
176
|
-
const marketIds = this.marketIds(optionSymbols);
|
|
177
|
-
const request = [
|
|
178
|
-
{
|
|
179
|
-
'ticket': this.uuid(),
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
'type': channel,
|
|
183
|
-
'codes': marketIds,
|
|
184
|
-
// 'isOnlySnapshot': false,
|
|
185
|
-
// 'isOnlyRealtime': false,
|
|
186
|
-
},
|
|
187
|
-
];
|
|
188
|
-
const trades = await this.watchMultiple(url, messageHashes, request, messageHashes);
|
|
135
|
+
const trades = await this.watchPublicMultiple(symbols, 'trade');
|
|
189
136
|
if (this.newUpdates) {
|
|
190
137
|
const first = this.safeValue(trades, 0);
|
|
191
138
|
const tradeSymbol = this.safeString(first, 'symbol');
|
|
@@ -204,7 +151,7 @@ class upbit extends upbit$1["default"] {
|
|
|
204
151
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
205
152
|
*/
|
|
206
153
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
207
|
-
const orderbook = await this.
|
|
154
|
+
const orderbook = await this.watchPublicMultiple([symbol], 'orderbook');
|
|
208
155
|
return orderbook.limit();
|
|
209
156
|
}
|
|
210
157
|
/**
|
|
@@ -225,7 +172,7 @@ class upbit extends upbit$1["default"] {
|
|
|
225
172
|
throw new errors.NotSupported(this.id + ' watchOHLCV does not support' + timeframe + ' candle.');
|
|
226
173
|
}
|
|
227
174
|
const timeFrameOHLCV = 'candle.' + timeframe;
|
|
228
|
-
return await this.
|
|
175
|
+
return await this.watchPublicMultiple([symbol], timeFrameOHLCV);
|
|
229
176
|
}
|
|
230
177
|
handleTicker(client, message) {
|
|
231
178
|
// 2020-03-17T23:07:36.511Z "onMessage" <Buffer 7b 22 74 79 70 65 22 3a 22 74 69 63 6b 65 72 22 2c 22 63 6f 64 65 22 3a 22 42 54 43 2d 45 54 48 22 2c 22 6f 70 65 6e 69 6e 67 5f 70 72 69 63 65 22 3a ... >
|
|
@@ -264,11 +211,10 @@ class upbit extends upbit$1["default"] {
|
|
|
264
211
|
// "acc_trade_price_24h": 2.5955306323568927,
|
|
265
212
|
// "acc_trade_volume_24h": 118.38798416,
|
|
266
213
|
// "stream_type": "SNAPSHOT" }
|
|
267
|
-
const marketId = this.safeString(message, 'code');
|
|
268
|
-
const messageHash = 'ticker:' + marketId;
|
|
269
214
|
const ticker = this.parseTicker(message);
|
|
270
215
|
const symbol = ticker['symbol'];
|
|
271
216
|
this.tickers[symbol] = ticker;
|
|
217
|
+
const messageHash = 'ticker:' + symbol;
|
|
272
218
|
client.resolve(ticker, messageHash);
|
|
273
219
|
}
|
|
274
220
|
handleOrderBook(client, message) {
|
|
@@ -322,7 +268,7 @@ class upbit extends upbit$1["default"] {
|
|
|
322
268
|
const datetime = this.iso8601(timestamp);
|
|
323
269
|
orderbook['timestamp'] = timestamp;
|
|
324
270
|
orderbook['datetime'] = datetime;
|
|
325
|
-
const messageHash = 'orderbook:' +
|
|
271
|
+
const messageHash = 'orderbook:' + symbol;
|
|
326
272
|
client.resolve(orderbook, messageHash);
|
|
327
273
|
}
|
|
328
274
|
handleTrades(client, message) {
|
|
@@ -349,8 +295,7 @@ class upbit extends upbit$1["default"] {
|
|
|
349
295
|
this.trades[symbol] = stored;
|
|
350
296
|
}
|
|
351
297
|
stored.append(trade);
|
|
352
|
-
const
|
|
353
|
-
const messageHash = 'trade:' + marketId;
|
|
298
|
+
const messageHash = 'trade:' + symbol;
|
|
354
299
|
client.resolve(stored, messageHash);
|
|
355
300
|
}
|
|
356
301
|
handleOHLCV(client, message) {
|
|
@@ -369,7 +314,8 @@ class upbit extends upbit$1["default"] {
|
|
|
369
314
|
// stream_type: 'REALTIME'
|
|
370
315
|
// }
|
|
371
316
|
const marketId = this.safeString(message, 'code');
|
|
372
|
-
const
|
|
317
|
+
const symbol = this.safeSymbol(marketId, undefined);
|
|
318
|
+
const messageHash = 'candle.1s:' + symbol;
|
|
373
319
|
const ohlcv = this.parseOHLCV(message);
|
|
374
320
|
client.resolve(ohlcv, messageHash);
|
|
375
321
|
}
|
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 { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarketMarginModes, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio, OrderBooks, OpenInterests, ConstructorArgs } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.5.
|
|
7
|
+
declare const version = "4.5.22";
|
|
8
8
|
import alpaca from './src/alpaca.js';
|
|
9
9
|
import apex from './src/apex.js';
|
|
10
10
|
import arkham from './src/arkham.js';
|
|
@@ -39,6 +39,7 @@ import btcalpha from './src/btcalpha.js';
|
|
|
39
39
|
import btcbox from './src/btcbox.js';
|
|
40
40
|
import btcmarkets from './src/btcmarkets.js';
|
|
41
41
|
import btcturk from './src/btcturk.js';
|
|
42
|
+
import bullish from './src/bullish.js';
|
|
42
43
|
import bybit from './src/bybit.js';
|
|
43
44
|
import cex from './src/cex.js';
|
|
44
45
|
import coinbase from './src/coinbase.js';
|
|
@@ -136,6 +137,7 @@ import bittradePro from './src/pro/bittrade.js';
|
|
|
136
137
|
import bitvavoPro from './src/pro/bitvavo.js';
|
|
137
138
|
import blockchaincomPro from './src/pro/blockchaincom.js';
|
|
138
139
|
import blofinPro from './src/pro/blofin.js';
|
|
140
|
+
import bullishPro from './src/pro/bullish.js';
|
|
139
141
|
import bybitPro from './src/pro/bybit.js';
|
|
140
142
|
import cexPro from './src/pro/cex.js';
|
|
141
143
|
import coinbasePro from './src/pro/coinbase.js';
|
|
@@ -223,6 +225,7 @@ declare const exchanges: {
|
|
|
223
225
|
btcbox: typeof btcbox;
|
|
224
226
|
btcmarkets: typeof btcmarkets;
|
|
225
227
|
btcturk: typeof btcturk;
|
|
228
|
+
bullish: typeof bullish;
|
|
226
229
|
bybit: typeof bybit;
|
|
227
230
|
cex: typeof cex;
|
|
228
231
|
coinbase: typeof coinbase;
|
|
@@ -322,6 +325,7 @@ declare const pro: {
|
|
|
322
325
|
bitvavo: typeof bitvavoPro;
|
|
323
326
|
blockchaincom: typeof blockchaincomPro;
|
|
324
327
|
blofin: typeof blofinPro;
|
|
328
|
+
bullish: typeof bullishPro;
|
|
325
329
|
bybit: typeof bybitPro;
|
|
326
330
|
cex: typeof cexPro;
|
|
327
331
|
coinbase: typeof coinbasePro;
|
|
@@ -404,6 +408,7 @@ declare const ccxt: {
|
|
|
404
408
|
bitvavo: typeof bitvavoPro;
|
|
405
409
|
blockchaincom: typeof blockchaincomPro;
|
|
406
410
|
blofin: typeof blofinPro;
|
|
411
|
+
bullish: typeof bullishPro;
|
|
407
412
|
bybit: typeof bybitPro;
|
|
408
413
|
cex: typeof cexPro;
|
|
409
414
|
coinbase: typeof coinbasePro;
|
|
@@ -492,6 +497,7 @@ declare const ccxt: {
|
|
|
492
497
|
btcbox: typeof btcbox;
|
|
493
498
|
btcmarkets: typeof btcmarkets;
|
|
494
499
|
btcturk: typeof btcturk;
|
|
500
|
+
bullish: typeof bullish;
|
|
495
501
|
bybit: typeof bybit;
|
|
496
502
|
cex: typeof cex;
|
|
497
503
|
coinbase: typeof coinbase;
|
|
@@ -567,5 +573,5 @@ declare const ccxt: {
|
|
|
567
573
|
zaif: typeof zaif;
|
|
568
574
|
zonda: typeof zonda;
|
|
569
575
|
} & typeof functions & typeof errors;
|
|
570
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, alpaca, apex, arkham, ascendex, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, oceanex, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
576
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, alpaca, apex, arkham, ascendex, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bullish, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, oceanex, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
571
577
|
export default ccxt;
|
package/js/ccxt.js
CHANGED
|
@@ -32,7 +32,7 @@ import * as errors from './src/base/errors.js';
|
|
|
32
32
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
33
33
|
//-----------------------------------------------------------------------------
|
|
34
34
|
// this is updated by vss.js when building
|
|
35
|
-
const version = '4.5.
|
|
35
|
+
const version = '4.5.22';
|
|
36
36
|
Exchange.ccxtVersion = version;
|
|
37
37
|
//-----------------------------------------------------------------------------
|
|
38
38
|
import alpaca from './src/alpaca.js';
|
|
@@ -69,6 +69,7 @@ import btcalpha from './src/btcalpha.js';
|
|
|
69
69
|
import btcbox from './src/btcbox.js';
|
|
70
70
|
import btcmarkets from './src/btcmarkets.js';
|
|
71
71
|
import btcturk from './src/btcturk.js';
|
|
72
|
+
import bullish from './src/bullish.js';
|
|
72
73
|
import bybit from './src/bybit.js';
|
|
73
74
|
import cex from './src/cex.js';
|
|
74
75
|
import coinbase from './src/coinbase.js';
|
|
@@ -167,6 +168,7 @@ import bittradePro from './src/pro/bittrade.js';
|
|
|
167
168
|
import bitvavoPro from './src/pro/bitvavo.js';
|
|
168
169
|
import blockchaincomPro from './src/pro/blockchaincom.js';
|
|
169
170
|
import blofinPro from './src/pro/blofin.js';
|
|
171
|
+
import bullishPro from './src/pro/bullish.js';
|
|
170
172
|
import bybitPro from './src/pro/bybit.js';
|
|
171
173
|
import cexPro from './src/pro/cex.js';
|
|
172
174
|
import coinbasePro from './src/pro/coinbase.js';
|
|
@@ -254,6 +256,7 @@ const exchanges = {
|
|
|
254
256
|
'btcbox': btcbox,
|
|
255
257
|
'btcmarkets': btcmarkets,
|
|
256
258
|
'btcturk': btcturk,
|
|
259
|
+
'bullish': bullish,
|
|
257
260
|
'bybit': bybit,
|
|
258
261
|
'cex': cex,
|
|
259
262
|
'coinbase': coinbase,
|
|
@@ -353,6 +356,7 @@ const pro = {
|
|
|
353
356
|
'bitvavo': bitvavoPro,
|
|
354
357
|
'blockchaincom': blockchaincomPro,
|
|
355
358
|
'blofin': blofinPro,
|
|
359
|
+
'bullish': bullishPro,
|
|
356
360
|
'bybit': bybitPro,
|
|
357
361
|
'cex': cexPro,
|
|
358
362
|
'coinbase': coinbasePro,
|
|
@@ -418,6 +422,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
418
422
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
419
423
|
//-----------------------------------------------------------------------------
|
|
420
424
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
421
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, alpaca, apex, arkham, ascendex, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, oceanex, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
425
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, alpaca, apex, arkham, ascendex, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bullish, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, oceanex, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
422
426
|
export default ccxt;
|
|
423
427
|
//-----------------------------------------------------------------------------
|
|
@@ -482,6 +482,7 @@ interface Exchange {
|
|
|
482
482
|
fapiPublicGetTime(params?: {}): Promise<implicitReturnType>;
|
|
483
483
|
fapiPublicGetExchangeInfo(params?: {}): Promise<implicitReturnType>;
|
|
484
484
|
fapiPublicGetDepth(params?: {}): Promise<implicitReturnType>;
|
|
485
|
+
fapiPublicGetRpiDepth(params?: {}): Promise<implicitReturnType>;
|
|
485
486
|
fapiPublicGetTrades(params?: {}): Promise<implicitReturnType>;
|
|
486
487
|
fapiPublicGetHistoricalTrades(params?: {}): Promise<implicitReturnType>;
|
|
487
488
|
fapiPublicGetAggTrades(params?: {}): Promise<implicitReturnType>;
|
|
@@ -482,6 +482,7 @@ interface binance {
|
|
|
482
482
|
fapiPublicGetTime(params?: {}): Promise<implicitReturnType>;
|
|
483
483
|
fapiPublicGetExchangeInfo(params?: {}): Promise<implicitReturnType>;
|
|
484
484
|
fapiPublicGetDepth(params?: {}): Promise<implicitReturnType>;
|
|
485
|
+
fapiPublicGetRpiDepth(params?: {}): Promise<implicitReturnType>;
|
|
485
486
|
fapiPublicGetTrades(params?: {}): Promise<implicitReturnType>;
|
|
486
487
|
fapiPublicGetHistoricalTrades(params?: {}): Promise<implicitReturnType>;
|
|
487
488
|
fapiPublicGetAggTrades(params?: {}): Promise<implicitReturnType>;
|
|
@@ -534,6 +534,7 @@ interface binance {
|
|
|
534
534
|
fapiPublicGetTime(params?: {}): Promise<implicitReturnType>;
|
|
535
535
|
fapiPublicGetExchangeInfo(params?: {}): Promise<implicitReturnType>;
|
|
536
536
|
fapiPublicGetDepth(params?: {}): Promise<implicitReturnType>;
|
|
537
|
+
fapiPublicGetRpiDepth(params?: {}): Promise<implicitReturnType>;
|
|
537
538
|
fapiPublicGetTrades(params?: {}): Promise<implicitReturnType>;
|
|
538
539
|
fapiPublicGetHistoricalTrades(params?: {}): Promise<implicitReturnType>;
|
|
539
540
|
fapiPublicGetAggTrades(params?: {}): Promise<implicitReturnType>;
|
|
@@ -482,6 +482,7 @@ interface binance {
|
|
|
482
482
|
fapiPublicGetTime(params?: {}): Promise<implicitReturnType>;
|
|
483
483
|
fapiPublicGetExchangeInfo(params?: {}): Promise<implicitReturnType>;
|
|
484
484
|
fapiPublicGetDepth(params?: {}): Promise<implicitReturnType>;
|
|
485
|
+
fapiPublicGetRpiDepth(params?: {}): Promise<implicitReturnType>;
|
|
485
486
|
fapiPublicGetTrades(params?: {}): Promise<implicitReturnType>;
|
|
486
487
|
fapiPublicGetHistoricalTrades(params?: {}): Promise<implicitReturnType>;
|
|
487
488
|
fapiPublicGetAggTrades(params?: {}): Promise<implicitReturnType>;
|
|
@@ -30,6 +30,7 @@ interface Exchange {
|
|
|
30
30
|
spotV1PrivatePostOcoCancel(params?: {}): Promise<implicitReturnType>;
|
|
31
31
|
spotV2PublicGetMarketDepth(params?: {}): Promise<implicitReturnType>;
|
|
32
32
|
spotV2PublicGetMarketKline(params?: {}): Promise<implicitReturnType>;
|
|
33
|
+
spotV2PublicGetTickerPrice(params?: {}): Promise<implicitReturnType>;
|
|
33
34
|
spotV3PrivateGetGetAssetTransfer(params?: {}): Promise<implicitReturnType>;
|
|
34
35
|
spotV3PrivateGetAssetTransfer(params?: {}): Promise<implicitReturnType>;
|
|
35
36
|
spotV3PrivateGetCapitalDepositHisrec(params?: {}): Promise<implicitReturnType>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
publicGetV1Nonce(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicGetV1Time(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
publicGetV1Assets(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
publicGetV1AssetsSymbol(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
publicGetV1Markets(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
publicGetV1MarketsSymbol(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
publicGetV1HistoryMarketsSymbol(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
publicGetV1MarketsSymbolOrderbookHybrid(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
publicGetV1MarketsSymbolTrades(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
publicGetV1MarketsSymbolTick(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
publicGetV1MarketsSymbolCandle(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
publicGetV1HistoryMarketsSymbolTrades(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
publicGetV1HistoryMarketsSymbolFundingRate(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
publicGetV1IndexPrices(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
publicGetV1IndexPricesAssetSymbol(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
publicGetV1ExpiryPricesSymbol(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
publicGetV1OptionLadder(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
publicGetV1OptionLadderSymbol(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
privateGetV2Orders(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
privateGetV2HistoryOrders(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
privateGetV2OrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
privateGetV2AmmInstructions(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
privateGetV2AmmInstructionsInstructionId(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
privateGetV1WalletsTransactions(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
privateGetV1WalletsLimitsSymbol(params?: {}): Promise<implicitReturnType>;
|
|
29
|
+
privateGetV1WalletsDepositInstructionsCryptoSymbol(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
privateGetV1WalletsWithdrawalInstructionsCryptoSymbol(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
privateGetV1WalletsDepositInstructionsFiatSymbol(params?: {}): Promise<implicitReturnType>;
|
|
32
|
+
privateGetV1WalletsWithdrawalInstructionsFiatSymbol(params?: {}): Promise<implicitReturnType>;
|
|
33
|
+
privateGetV1WalletsSelfHostedVerificationAttempts(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
privateGetV1Trades(params?: {}): Promise<implicitReturnType>;
|
|
35
|
+
privateGetV1HistoryTrades(params?: {}): Promise<implicitReturnType>;
|
|
36
|
+
privateGetV1TradesTradeId(params?: {}): Promise<implicitReturnType>;
|
|
37
|
+
privateGetV1TradesClientOrderIdClientOrderId(params?: {}): Promise<implicitReturnType>;
|
|
38
|
+
privateGetV1AccountsAsset(params?: {}): Promise<implicitReturnType>;
|
|
39
|
+
privateGetV1AccountsAssetSymbol(params?: {}): Promise<implicitReturnType>;
|
|
40
|
+
privateGetV1UsersLogout(params?: {}): Promise<implicitReturnType>;
|
|
41
|
+
privateGetV1UsersHmacLogin(params?: {}): Promise<implicitReturnType>;
|
|
42
|
+
privateGetV1AccountsTradingAccounts(params?: {}): Promise<implicitReturnType>;
|
|
43
|
+
privateGetV1AccountsTradingAccountsTradingAccountId(params?: {}): Promise<implicitReturnType>;
|
|
44
|
+
privateGetV1DerivativesPositions(params?: {}): Promise<implicitReturnType>;
|
|
45
|
+
privateGetV1HistoryDerivativesSettlement(params?: {}): Promise<implicitReturnType>;
|
|
46
|
+
privateGetV1HistoryTransfer(params?: {}): Promise<implicitReturnType>;
|
|
47
|
+
privateGetV1HistoryBorrowInterest(params?: {}): Promise<implicitReturnType>;
|
|
48
|
+
privateGetV2MmpConfiguration(params?: {}): Promise<implicitReturnType>;
|
|
49
|
+
privateGetV2OtcTrades(params?: {}): Promise<implicitReturnType>;
|
|
50
|
+
privateGetV2OtcTradesOtcTradeId(params?: {}): Promise<implicitReturnType>;
|
|
51
|
+
privateGetV2OtcTradesUnconfirmedTrade(params?: {}): Promise<implicitReturnType>;
|
|
52
|
+
privatePostV2Orders(params?: {}): Promise<implicitReturnType>;
|
|
53
|
+
privatePostV2Command(params?: {}): Promise<implicitReturnType>;
|
|
54
|
+
privatePostV2AmmInstructions(params?: {}): Promise<implicitReturnType>;
|
|
55
|
+
privatePostV1WalletsWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
56
|
+
privatePostV2UsersLogin(params?: {}): Promise<implicitReturnType>;
|
|
57
|
+
privatePostV1SimulatePortfolioMargin(params?: {}): Promise<implicitReturnType>;
|
|
58
|
+
privatePostV1WalletsSelfHostedInitiate(params?: {}): Promise<implicitReturnType>;
|
|
59
|
+
privatePostV2MmpConfiguration(params?: {}): Promise<implicitReturnType>;
|
|
60
|
+
privatePostV2OtcTrades(params?: {}): Promise<implicitReturnType>;
|
|
61
|
+
privatePostV2OtcCommand(params?: {}): Promise<implicitReturnType>;
|
|
62
|
+
}
|
|
63
|
+
declare abstract class Exchange extends _Exchange {
|
|
64
|
+
}
|
|
65
|
+
export default Exchange;
|