ccxt 4.4.69 → 4.4.71
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 -8
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +1 -6
- package/dist/cjs/src/abstract/poloniexfutures.js +1 -1
- package/dist/cjs/src/base/Exchange.js +22 -1
- package/dist/cjs/src/binance.js +107 -102
- package/dist/cjs/src/bingx.js +64 -42
- package/dist/cjs/src/bitget.js +50 -340
- package/dist/cjs/src/bitmart.js +15 -1
- package/dist/cjs/src/bitopro.js +1 -0
- package/dist/cjs/src/bitrue.js +1 -0
- package/dist/cjs/src/bybit.js +7 -0
- package/dist/cjs/src/cex.js +1 -0
- package/dist/cjs/src/coinbase.js +24 -4
- package/dist/cjs/src/coinbaseexchange.js +1 -0
- package/dist/cjs/src/deribit.js +1 -0
- package/dist/cjs/src/hashkey.js +4 -2
- package/dist/cjs/src/hyperliquid.js +18 -7
- package/dist/cjs/src/kraken.js +83 -6
- package/dist/cjs/src/kucoin.js +4 -2
- package/dist/cjs/src/mexc.js +8 -4
- package/dist/cjs/src/okx.js +62 -46
- package/dist/cjs/src/poloniex.js +1311 -81
- package/dist/cjs/src/poloniexfutures.js +1 -1
- package/dist/cjs/src/pro/binance.js +94 -94
- package/dist/cjs/src/pro/bingx.js +63 -52
- package/dist/cjs/src/pro/bitget.js +40 -7
- package/dist/cjs/src/pro/bybit.js +86 -38
- package/dist/cjs/src/pro/poloniexfutures.js +1 -1
- package/dist/cjs/src/tradeogre.js +22 -4
- package/dist/cjs/src/whitebit.js +4 -2
- package/js/ccxt.d.ts +3 -9
- package/js/ccxt.js +2 -6
- package/js/src/abstract/bingx.d.ts +1 -0
- package/js/src/abstract/bitmart.d.ts +1 -0
- package/js/src/abstract/bybit.d.ts +4 -0
- package/js/src/abstract/myokx.d.ts +3 -0
- package/js/src/abstract/okx.d.ts +3 -0
- package/js/src/abstract/poloniex.d.ts +36 -0
- package/js/src/abstract/poloniexfutures.js +6 -0
- package/js/src/abstract/tradeogre.d.ts +1 -1
- package/js/src/base/Exchange.d.ts +11 -2
- package/js/src/base/Exchange.js +22 -1
- package/js/src/base/types.d.ts +33 -2
- package/js/src/binance.d.ts +98 -97
- package/js/src/binance.js +107 -102
- package/js/src/bingx.js +64 -42
- package/js/src/bitget.d.ts +0 -1
- package/js/src/bitget.js +50 -340
- package/js/src/bitmart.d.ts +1 -0
- package/js/src/bitmart.js +15 -1
- package/js/src/bitopro.js +1 -0
- package/js/src/bitrue.js +1 -0
- package/js/src/bybit.js +7 -0
- package/js/src/cex.js +1 -0
- package/js/src/coinbase.js +24 -4
- package/js/src/coinbaseexchange.js +1 -0
- package/js/src/deribit.js +1 -0
- package/js/src/hashkey.js +4 -2
- package/js/src/hyperliquid.js +18 -7
- package/js/src/kraken.d.ts +1 -0
- package/js/src/kraken.js +83 -6
- package/js/src/kucoin.js +4 -2
- package/js/src/mexc.js +8 -4
- package/js/src/okx.d.ts +1 -0
- package/js/src/okx.js +62 -46
- package/js/src/poloniex.d.ts +109 -1
- package/js/src/poloniex.js +1311 -81
- package/js/src/poloniexfutures.js +6 -0
- package/js/src/pro/binance.d.ts +94 -94
- package/js/src/pro/binance.js +94 -94
- package/js/src/pro/bingx.js +63 -52
- package/js/src/pro/bitget.js +40 -7
- package/js/src/pro/bybit.d.ts +1 -0
- package/js/src/pro/bybit.js +86 -38
- package/js/src/pro/poloniexfutures.js +6 -0
- package/js/src/tradeogre.d.ts +1 -0
- package/js/src/tradeogre.js +22 -4
- package/js/src/whitebit.js +4 -2
- package/package.json +1 -1
|
@@ -45,6 +45,10 @@ class bitget extends bitget$1 {
|
|
|
45
45
|
'public': 'wss://ws.bitget.com/v2/ws/public',
|
|
46
46
|
'private': 'wss://ws.bitget.com/v2/ws/private',
|
|
47
47
|
},
|
|
48
|
+
'demo': {
|
|
49
|
+
'public': 'wss://wspap.bitget.com/v2/ws/public',
|
|
50
|
+
'private': 'wss://wspap.bitget.com/v2/ws/private',
|
|
51
|
+
},
|
|
48
52
|
},
|
|
49
53
|
},
|
|
50
54
|
'options': {
|
|
@@ -1165,7 +1169,7 @@ class bitget extends bitget$1 {
|
|
|
1165
1169
|
else {
|
|
1166
1170
|
[instType, params] = this.getInstType(market, params);
|
|
1167
1171
|
}
|
|
1168
|
-
if (type === 'spot') {
|
|
1172
|
+
if (type === 'spot' && (symbol !== undefined)) {
|
|
1169
1173
|
subscriptionHash = subscriptionHash + ':' + symbol;
|
|
1170
1174
|
}
|
|
1171
1175
|
if (isTrigger) {
|
|
@@ -1779,7 +1783,14 @@ class bitget extends bitget$1 {
|
|
|
1779
1783
|
client.resolve(this.balance, messageHash);
|
|
1780
1784
|
}
|
|
1781
1785
|
async watchPublic(messageHash, args, params = {}) {
|
|
1782
|
-
|
|
1786
|
+
let url = this.urls['api']['ws']['public'];
|
|
1787
|
+
const sandboxMode = this.safeBool2(this.options, 'sandboxMode', 'sandbox', false);
|
|
1788
|
+
if (sandboxMode) {
|
|
1789
|
+
const instType = this.safeString(args, 'instType');
|
|
1790
|
+
if ((instType !== 'SCOIN-FUTURES') && (instType !== 'SUSDT-FUTURES') && (instType !== 'SUSDC-FUTURES')) {
|
|
1791
|
+
url = this.urls['api']['demo']['public'];
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1783
1794
|
const request = {
|
|
1784
1795
|
'op': 'subscribe',
|
|
1785
1796
|
'args': [args],
|
|
@@ -1788,7 +1799,14 @@ class bitget extends bitget$1 {
|
|
|
1788
1799
|
return await this.watch(url, messageHash, message, messageHash);
|
|
1789
1800
|
}
|
|
1790
1801
|
async unWatchPublic(messageHash, args, params = {}) {
|
|
1791
|
-
|
|
1802
|
+
let url = this.urls['api']['ws']['public'];
|
|
1803
|
+
const sandboxMode = this.safeBool2(this.options, 'sandboxMode', 'sandbox', false);
|
|
1804
|
+
if (sandboxMode) {
|
|
1805
|
+
const instType = this.safeString(args, 'instType');
|
|
1806
|
+
if ((instType !== 'SCOIN-FUTURES') && (instType !== 'SUSDT-FUTURES') && (instType !== 'SUSDC-FUTURES')) {
|
|
1807
|
+
url = this.urls['api']['demo']['public'];
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1792
1810
|
const request = {
|
|
1793
1811
|
'op': 'unsubscribe',
|
|
1794
1812
|
'args': [args],
|
|
@@ -1797,7 +1815,15 @@ class bitget extends bitget$1 {
|
|
|
1797
1815
|
return await this.watch(url, messageHash, message, messageHash);
|
|
1798
1816
|
}
|
|
1799
1817
|
async watchPublicMultiple(messageHashes, argsArray, params = {}) {
|
|
1800
|
-
|
|
1818
|
+
let url = this.urls['api']['ws']['public'];
|
|
1819
|
+
const sandboxMode = this.safeBool2(this.options, 'sandboxMode', 'sandbox', false);
|
|
1820
|
+
if (sandboxMode) {
|
|
1821
|
+
const argsArrayFirst = this.safeDict(argsArray, 0, {});
|
|
1822
|
+
const instType = this.safeString(argsArrayFirst, 'instType');
|
|
1823
|
+
if ((instType !== 'SCOIN-FUTURES') && (instType !== 'SUSDT-FUTURES') && (instType !== 'SUSDC-FUTURES')) {
|
|
1824
|
+
url = this.urls['api']['demo']['public'];
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1801
1827
|
const request = {
|
|
1802
1828
|
'op': 'subscribe',
|
|
1803
1829
|
'args': argsArray,
|
|
@@ -1807,7 +1833,7 @@ class bitget extends bitget$1 {
|
|
|
1807
1833
|
}
|
|
1808
1834
|
async authenticate(params = {}) {
|
|
1809
1835
|
this.checkRequiredCredentials();
|
|
1810
|
-
const url = this.
|
|
1836
|
+
const url = this.safeString(params, 'url');
|
|
1811
1837
|
const client = this.client(url);
|
|
1812
1838
|
const messageHash = 'authenticated';
|
|
1813
1839
|
const future = client.future(messageHash);
|
|
@@ -1834,8 +1860,15 @@ class bitget extends bitget$1 {
|
|
|
1834
1860
|
return await future;
|
|
1835
1861
|
}
|
|
1836
1862
|
async watchPrivate(messageHash, subscriptionHash, args, params = {}) {
|
|
1837
|
-
|
|
1838
|
-
const
|
|
1863
|
+
let url = this.urls['api']['ws']['private'];
|
|
1864
|
+
const sandboxMode = this.safeBool2(this.options, 'sandboxMode', 'sandbox', false);
|
|
1865
|
+
if (sandboxMode) {
|
|
1866
|
+
const instType = this.safeString(args, 'instType');
|
|
1867
|
+
if ((instType !== 'SCOIN-FUTURES') && (instType !== 'SUSDT-FUTURES') && (instType !== 'SUSDC-FUTURES')) {
|
|
1868
|
+
url = this.urls['api']['demo']['private'];
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
await this.authenticate({ 'url': url });
|
|
1839
1872
|
const request = {
|
|
1840
1873
|
'op': 'subscribe',
|
|
1841
1874
|
'args': [args],
|
|
@@ -1563,6 +1563,7 @@ class bybit extends bybit$1 {
|
|
|
1563
1563
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
1564
1564
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
1565
1565
|
* @param {object} [params] exchange specific parameters for the bitmex api endpoint
|
|
1566
|
+
* @param {string} [params.method] exchange specific method, supported: liquidation, allLiquidation
|
|
1566
1567
|
* @returns {object} an array of [liquidation structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#liquidation-structure}
|
|
1567
1568
|
*/
|
|
1568
1569
|
async watchLiquidations(symbol, since = undefined, limit = undefined, params = {}) {
|
|
@@ -1571,8 +1572,10 @@ class bybit extends bybit$1 {
|
|
|
1571
1572
|
symbol = market['symbol'];
|
|
1572
1573
|
const url = await this.getUrlByMarketType(symbol, false, 'watchLiquidations', params);
|
|
1573
1574
|
params = this.cleanParams(params);
|
|
1575
|
+
let method = undefined;
|
|
1576
|
+
[method, params] = this.handleOptionAndParams(params, 'watchLiquidations', 'method', 'liquidation');
|
|
1574
1577
|
const messageHash = 'liquidations::' + symbol;
|
|
1575
|
-
const topic = '
|
|
1578
|
+
const topic = method + '.' + market['id'];
|
|
1576
1579
|
const newLiquidation = await this.watchTopics(url, [messageHash], [topic], params);
|
|
1577
1580
|
if (this.newUpdates) {
|
|
1578
1581
|
return newLiquidation;
|
|
@@ -1581,53 +1584,97 @@ class bybit extends bybit$1 {
|
|
|
1581
1584
|
}
|
|
1582
1585
|
handleLiquidation(client, message) {
|
|
1583
1586
|
//
|
|
1584
|
-
//
|
|
1585
|
-
//
|
|
1586
|
-
//
|
|
1587
|
-
//
|
|
1588
|
-
//
|
|
1589
|
-
//
|
|
1590
|
-
//
|
|
1591
|
-
//
|
|
1592
|
-
//
|
|
1593
|
-
//
|
|
1594
|
-
//
|
|
1595
|
-
//
|
|
1587
|
+
// {
|
|
1588
|
+
// "data": {
|
|
1589
|
+
// "price": "0.03803",
|
|
1590
|
+
// "side": "Buy",
|
|
1591
|
+
// "size": "1637",
|
|
1592
|
+
// "symbol": "GALAUSDT",
|
|
1593
|
+
// "updatedTime": 1673251091822
|
|
1594
|
+
// },
|
|
1595
|
+
// "topic": "liquidation.GALAUSDT",
|
|
1596
|
+
// "ts": 1673251091822,
|
|
1597
|
+
// "type": "snapshot"
|
|
1598
|
+
// }
|
|
1596
1599
|
//
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1600
|
+
// {
|
|
1601
|
+
// "topic": "allLiquidation.ROSEUSDT",
|
|
1602
|
+
// "type": "snapshot",
|
|
1603
|
+
// "ts": 1739502303204,
|
|
1604
|
+
// "data": [
|
|
1605
|
+
// {
|
|
1606
|
+
// "T": 1739502302929,
|
|
1607
|
+
// "s": "ROSEUSDT",
|
|
1608
|
+
// "S": "Sell",
|
|
1609
|
+
// "v": "20000",
|
|
1610
|
+
// "p": "0.04499"
|
|
1611
|
+
// }
|
|
1612
|
+
// ]
|
|
1613
|
+
// }
|
|
1614
|
+
//
|
|
1615
|
+
if (Array.isArray(message['data'])) {
|
|
1616
|
+
const rawLiquidations = this.safeList(message, 'data', []);
|
|
1617
|
+
for (let i = 0; i < rawLiquidations.length; i++) {
|
|
1618
|
+
const rawLiquidation = rawLiquidations[i];
|
|
1619
|
+
const marketId = this.safeString(rawLiquidation, 's');
|
|
1620
|
+
const market = this.safeMarket(marketId, undefined, '', 'contract');
|
|
1621
|
+
const symbol = market['symbol'];
|
|
1622
|
+
const liquidation = this.parseWsLiquidation(rawLiquidation, market);
|
|
1623
|
+
let liquidations = this.safeValue(this.liquidations, symbol);
|
|
1624
|
+
if (liquidations === undefined) {
|
|
1625
|
+
const limit = this.safeInteger(this.options, 'liquidationsLimit', 1000);
|
|
1626
|
+
liquidations = new Cache.ArrayCache(limit);
|
|
1627
|
+
}
|
|
1628
|
+
liquidations.append(liquidation);
|
|
1629
|
+
this.liquidations[symbol] = liquidations;
|
|
1630
|
+
client.resolve([liquidation], 'liquidations');
|
|
1631
|
+
client.resolve([liquidation], 'liquidations::' + symbol);
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
else {
|
|
1635
|
+
const rawLiquidation = this.safeDict(message, 'data', {});
|
|
1636
|
+
const marketId = this.safeString(rawLiquidation, 'symbol');
|
|
1637
|
+
const market = this.safeMarket(marketId, undefined, '', 'contract');
|
|
1638
|
+
const symbol = market['symbol'];
|
|
1639
|
+
const liquidation = this.parseWsLiquidation(rawLiquidation, market);
|
|
1640
|
+
let liquidations = this.safeValue(this.liquidations, symbol);
|
|
1641
|
+
if (liquidations === undefined) {
|
|
1642
|
+
const limit = this.safeInteger(this.options, 'liquidationsLimit', 1000);
|
|
1643
|
+
liquidations = new Cache.ArrayCache(limit);
|
|
1644
|
+
}
|
|
1645
|
+
liquidations.append(liquidation);
|
|
1646
|
+
this.liquidations[symbol] = liquidations;
|
|
1647
|
+
client.resolve([liquidation], 'liquidations');
|
|
1648
|
+
client.resolve([liquidation], 'liquidations::' + symbol);
|
|
1649
|
+
}
|
|
1611
1650
|
}
|
|
1612
1651
|
parseWsLiquidation(liquidation, market = undefined) {
|
|
1613
1652
|
//
|
|
1614
|
-
//
|
|
1615
|
-
//
|
|
1616
|
-
//
|
|
1617
|
-
//
|
|
1618
|
-
//
|
|
1619
|
-
//
|
|
1620
|
-
//
|
|
1653
|
+
// {
|
|
1654
|
+
// "price": "0.03803",
|
|
1655
|
+
// "side": "Buy",
|
|
1656
|
+
// "size": "1637",
|
|
1657
|
+
// "symbol": "GALAUSDT",
|
|
1658
|
+
// "updatedTime": 1673251091822
|
|
1659
|
+
// }
|
|
1660
|
+
//
|
|
1661
|
+
// {
|
|
1662
|
+
// "T": 1739502302929,
|
|
1663
|
+
// "s": "ROSEUSDT",
|
|
1664
|
+
// "S": "Sell",
|
|
1665
|
+
// "v": "20000",
|
|
1666
|
+
// "p": "0.04499"
|
|
1667
|
+
// }
|
|
1621
1668
|
//
|
|
1622
|
-
const marketId = this.
|
|
1669
|
+
const marketId = this.safeString2(liquidation, 'symbol', 's');
|
|
1623
1670
|
market = this.safeMarket(marketId, market, '', 'contract');
|
|
1624
|
-
const timestamp = this.
|
|
1671
|
+
const timestamp = this.safeInteger2(liquidation, 'updatedTime', 'T');
|
|
1625
1672
|
return this.safeLiquidation({
|
|
1626
1673
|
'info': liquidation,
|
|
1627
1674
|
'symbol': market['symbol'],
|
|
1628
|
-
'contracts': this.
|
|
1675
|
+
'contracts': this.safeNumber2(liquidation, 'size', 'v'),
|
|
1629
1676
|
'contractSize': this.safeNumber(market, 'contractSize'),
|
|
1630
|
-
'price': this.
|
|
1677
|
+
'price': this.safeNumber2(liquidation, 'price', 'p'),
|
|
1631
1678
|
'baseValue': undefined,
|
|
1632
1679
|
'quoteValue': undefined,
|
|
1633
1680
|
'timestamp': timestamp,
|
|
@@ -2441,6 +2488,7 @@ class bybit extends bybit$1 {
|
|
|
2441
2488
|
'user.openapi.perp.trade': this.handleMyTrades,
|
|
2442
2489
|
'position': this.handlePositions,
|
|
2443
2490
|
'liquidation': this.handleLiquidation,
|
|
2491
|
+
'allLiquidation': this.handleLiquidation,
|
|
2444
2492
|
'pong': this.handlePong,
|
|
2445
2493
|
'order.create': this.handleOrderWs,
|
|
2446
2494
|
'order.amend': this.handleOrderWs,
|
|
@@ -4,7 +4,7 @@ var poloniexfutures$1 = require('../poloniexfutures.js');
|
|
|
4
4
|
var errors = require('../base/errors.js');
|
|
5
5
|
var Cache = require('../base/ws/Cache.js');
|
|
6
6
|
|
|
7
|
-
//
|
|
7
|
+
// ----------------------------------------------------------------------------
|
|
8
8
|
// ---------------------------------------------------------------------------
|
|
9
9
|
class poloniexfutures extends poloniexfutures$1 {
|
|
10
10
|
describe() {
|
|
@@ -134,7 +134,6 @@ class tradeogre extends tradeogre$1 {
|
|
|
134
134
|
},
|
|
135
135
|
'private': {
|
|
136
136
|
'get': {
|
|
137
|
-
'account/balance': 1,
|
|
138
137
|
'account/balances': 1,
|
|
139
138
|
'account/order/{uuid}': 1,
|
|
140
139
|
},
|
|
@@ -144,6 +143,7 @@ class tradeogre extends tradeogre$1 {
|
|
|
144
143
|
'order/cancel': 1,
|
|
145
144
|
'orders': 1,
|
|
146
145
|
'account/orders': 1,
|
|
146
|
+
'account/balance': 1,
|
|
147
147
|
},
|
|
148
148
|
},
|
|
149
149
|
},
|
|
@@ -596,11 +596,29 @@ class tradeogre extends tradeogre$1 {
|
|
|
596
596
|
* @name tradeogre#fetchBalance
|
|
597
597
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
598
598
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
599
|
+
* @param {string} [params.currency] currency to fetch the balance for
|
|
599
600
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
600
601
|
*/
|
|
601
602
|
async fetchBalance(params = {}) {
|
|
602
603
|
await this.loadMarkets();
|
|
603
|
-
|
|
604
|
+
let response = undefined;
|
|
605
|
+
const currency = this.safeString(params, 'currency');
|
|
606
|
+
if (currency !== undefined) {
|
|
607
|
+
response = await this.privatePostAccountBalance(params);
|
|
608
|
+
const singleCurrencyresult = {
|
|
609
|
+
'info': response,
|
|
610
|
+
};
|
|
611
|
+
const code = this.safeCurrencyCode(currency);
|
|
612
|
+
const account = {
|
|
613
|
+
'total': this.safeNumber(response, 'balance'),
|
|
614
|
+
'free': this.safeNumber(response, 'available'),
|
|
615
|
+
};
|
|
616
|
+
singleCurrencyresult[code] = account;
|
|
617
|
+
return this.safeBalance(singleCurrencyresult);
|
|
618
|
+
}
|
|
619
|
+
else {
|
|
620
|
+
response = await this.privateGetAccountBalances(params);
|
|
621
|
+
}
|
|
604
622
|
const result = this.safeDict(response, 'balances', {});
|
|
605
623
|
return this.parseBalance(result);
|
|
606
624
|
}
|
|
@@ -764,11 +782,11 @@ class tradeogre extends tradeogre$1 {
|
|
|
764
782
|
'side': this.safeString(order, 'type'),
|
|
765
783
|
'price': this.safeString(order, 'price'),
|
|
766
784
|
'triggerPrice': undefined,
|
|
767
|
-
'amount':
|
|
785
|
+
'amount': undefined,
|
|
768
786
|
'cost': undefined,
|
|
769
787
|
'average': undefined,
|
|
770
788
|
'filled': this.safeString(order, 'fulfilled'),
|
|
771
|
-
'remaining':
|
|
789
|
+
'remaining': this.safeString(order, 'quantity'),
|
|
772
790
|
'status': undefined,
|
|
773
791
|
'fee': {
|
|
774
792
|
'currency': undefined,
|
package/dist/cjs/src/whitebit.js
CHANGED
|
@@ -1357,9 +1357,11 @@ class whitebit extends whitebit$1 {
|
|
|
1357
1357
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1358
1358
|
*/
|
|
1359
1359
|
async createMarketOrderWithCost(symbol, side, cost, params = {}) {
|
|
1360
|
-
|
|
1360
|
+
const req = {
|
|
1361
|
+
'cost': cost,
|
|
1362
|
+
};
|
|
1361
1363
|
// only buy side is supported
|
|
1362
|
-
return await this.createOrder(symbol, 'market', side, 0, undefined, params);
|
|
1364
|
+
return await this.createOrder(symbol, 'market', side, 0, undefined, this.extend(req, params));
|
|
1363
1365
|
}
|
|
1364
1366
|
/**
|
|
1365
1367
|
* @method
|
package/js/ccxt.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { Exchange } from './src/base/Exchange.js';
|
|
|
2
2
|
import { Precise } from './src/base/Precise.js';
|
|
3
3
|
import * as functions from './src/base/functions.js';
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
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, DepositAddressResponse, 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 } from './src/base/types.js';
|
|
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, DepositAddressResponse, 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, 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.4.
|
|
7
|
+
declare const version = "4.4.70";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
|
@@ -101,7 +101,6 @@ import paradex from './src/paradex.js';
|
|
|
101
101
|
import paymium from './src/paymium.js';
|
|
102
102
|
import phemex from './src/phemex.js';
|
|
103
103
|
import poloniex from './src/poloniex.js';
|
|
104
|
-
import poloniexfutures from './src/poloniexfutures.js';
|
|
105
104
|
import probit from './src/probit.js';
|
|
106
105
|
import timex from './src/timex.js';
|
|
107
106
|
import tokocrypto from './src/tokocrypto.js';
|
|
@@ -182,7 +181,6 @@ import p2bPro from './src/pro/p2b.js';
|
|
|
182
181
|
import paradexPro from './src/pro/paradex.js';
|
|
183
182
|
import phemexPro from './src/pro/phemex.js';
|
|
184
183
|
import poloniexPro from './src/pro/poloniex.js';
|
|
185
|
-
import poloniexfuturesPro from './src/pro/poloniexfutures.js';
|
|
186
184
|
import probitPro from './src/pro/probit.js';
|
|
187
185
|
import upbitPro from './src/pro/upbit.js';
|
|
188
186
|
import vertexPro from './src/pro/vertex.js';
|
|
@@ -287,7 +285,6 @@ declare const exchanges: {
|
|
|
287
285
|
paymium: typeof paymium;
|
|
288
286
|
phemex: typeof phemex;
|
|
289
287
|
poloniex: typeof poloniex;
|
|
290
|
-
poloniexfutures: typeof poloniexfutures;
|
|
291
288
|
probit: typeof probit;
|
|
292
289
|
timex: typeof timex;
|
|
293
290
|
tokocrypto: typeof tokocrypto;
|
|
@@ -370,7 +367,6 @@ declare const pro: {
|
|
|
370
367
|
paradex: typeof paradexPro;
|
|
371
368
|
phemex: typeof phemexPro;
|
|
372
369
|
poloniex: typeof poloniexPro;
|
|
373
|
-
poloniexfutures: typeof poloniexfuturesPro;
|
|
374
370
|
probit: typeof probitPro;
|
|
375
371
|
upbit: typeof upbitPro;
|
|
376
372
|
vertex: typeof vertexPro;
|
|
@@ -451,7 +447,6 @@ declare const ccxt: {
|
|
|
451
447
|
paradex: typeof paradexPro;
|
|
452
448
|
phemex: typeof phemexPro;
|
|
453
449
|
poloniex: typeof poloniexPro;
|
|
454
|
-
poloniexfutures: typeof poloniexfuturesPro;
|
|
455
450
|
probit: typeof probitPro;
|
|
456
451
|
upbit: typeof upbitPro;
|
|
457
452
|
vertex: typeof vertexPro;
|
|
@@ -557,7 +552,6 @@ declare const ccxt: {
|
|
|
557
552
|
paymium: typeof paymium;
|
|
558
553
|
phemex: typeof phemex;
|
|
559
554
|
poloniex: typeof poloniex;
|
|
560
|
-
poloniexfutures: typeof poloniexfutures;
|
|
561
555
|
probit: typeof probit;
|
|
562
556
|
timex: typeof timex;
|
|
563
557
|
tokocrypto: typeof tokocrypto;
|
|
@@ -573,5 +567,5 @@ declare const ccxt: {
|
|
|
573
567
|
zaif: typeof zaif;
|
|
574
568
|
zonda: typeof zonda;
|
|
575
569
|
} & typeof functions & typeof errors;
|
|
576
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, 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, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, 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, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex1, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, mercado, mexc, myokx, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex,
|
|
570
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, 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, DepositAddressResponse, 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, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex1, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, mercado, mexc, myokx, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
577
571
|
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, 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.4.
|
|
35
|
+
const version = '4.4.71';
|
|
36
36
|
Exchange.ccxtVersion = version;
|
|
37
37
|
//-----------------------------------------------------------------------------
|
|
38
38
|
import ace from './src/ace.js';
|
|
@@ -131,7 +131,6 @@ import paradex from './src/paradex.js';
|
|
|
131
131
|
import paymium from './src/paymium.js';
|
|
132
132
|
import phemex from './src/phemex.js';
|
|
133
133
|
import poloniex from './src/poloniex.js';
|
|
134
|
-
import poloniexfutures from './src/poloniexfutures.js';
|
|
135
134
|
import probit from './src/probit.js';
|
|
136
135
|
import timex from './src/timex.js';
|
|
137
136
|
import tokocrypto from './src/tokocrypto.js';
|
|
@@ -213,7 +212,6 @@ import p2bPro from './src/pro/p2b.js';
|
|
|
213
212
|
import paradexPro from './src/pro/paradex.js';
|
|
214
213
|
import phemexPro from './src/pro/phemex.js';
|
|
215
214
|
import poloniexPro from './src/pro/poloniex.js';
|
|
216
|
-
import poloniexfuturesPro from './src/pro/poloniexfutures.js';
|
|
217
215
|
import probitPro from './src/pro/probit.js';
|
|
218
216
|
import upbitPro from './src/pro/upbit.js';
|
|
219
217
|
import vertexPro from './src/pro/vertex.js';
|
|
@@ -318,7 +316,6 @@ const exchanges = {
|
|
|
318
316
|
'paymium': paymium,
|
|
319
317
|
'phemex': phemex,
|
|
320
318
|
'poloniex': poloniex,
|
|
321
|
-
'poloniexfutures': poloniexfutures,
|
|
322
319
|
'probit': probit,
|
|
323
320
|
'timex': timex,
|
|
324
321
|
'tokocrypto': tokocrypto,
|
|
@@ -401,7 +398,6 @@ const pro = {
|
|
|
401
398
|
'paradex': paradexPro,
|
|
402
399
|
'phemex': phemexPro,
|
|
403
400
|
'poloniex': poloniexPro,
|
|
404
|
-
'poloniexfutures': poloniexfuturesPro,
|
|
405
401
|
'probit': probitPro,
|
|
406
402
|
'upbit': upbitPro,
|
|
407
403
|
'vertex': vertexPro,
|
|
@@ -422,6 +418,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
422
418
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
423
419
|
//-----------------------------------------------------------------------------
|
|
424
420
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
425
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, 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, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex1, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, mercado, mexc, myokx, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex,
|
|
421
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, 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, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex1, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, mercado, mexc, myokx, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
426
422
|
export default ccxt;
|
|
427
423
|
//-----------------------------------------------------------------------------
|
|
@@ -15,6 +15,7 @@ interface Exchange {
|
|
|
15
15
|
spotV1PrivateGetTradeMyTrades(params?: {}): Promise<implicitReturnType>;
|
|
16
16
|
spotV1PrivateGetUserCommissionRate(params?: {}): Promise<implicitReturnType>;
|
|
17
17
|
spotV1PrivateGetAccountBalance(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
spotV1PrivateGetAccountAllAccountBalance(params?: {}): Promise<implicitReturnType>;
|
|
18
19
|
spotV1PrivatePostTradeOrder(params?: {}): Promise<implicitReturnType>;
|
|
19
20
|
spotV1PrivatePostTradeCancel(params?: {}): Promise<implicitReturnType>;
|
|
20
21
|
spotV1PrivatePostTradeBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
@@ -107,6 +107,7 @@ interface Exchange {
|
|
|
107
107
|
privatePostContractPrivateSubmitTpSlOrder(params?: {}): Promise<implicitReturnType>;
|
|
108
108
|
privatePostContractPrivateModifyPlanOrder(params?: {}): Promise<implicitReturnType>;
|
|
109
109
|
privatePostContractPrivateModifyPresetPlanOrder(params?: {}): Promise<implicitReturnType>;
|
|
110
|
+
privatePostContractPrivateModifyLimitOrder(params?: {}): Promise<implicitReturnType>;
|
|
110
111
|
privatePostContractPrivateModifyTpSlOrder(params?: {}): Promise<implicitReturnType>;
|
|
111
112
|
privatePostContractPrivateSubmitTrailOrder(params?: {}): Promise<implicitReturnType>;
|
|
112
113
|
privatePostContractPrivateCancelTrailOrder(params?: {}): Promise<implicitReturnType>;
|
|
@@ -55,6 +55,7 @@ interface Exchange {
|
|
|
55
55
|
publicGetV5CryptoLoanLoanableData(params?: {}): Promise<implicitReturnType>;
|
|
56
56
|
publicGetV5InsLoanProductInfos(params?: {}): Promise<implicitReturnType>;
|
|
57
57
|
publicGetV5InsLoanEnsureTokensConvert(params?: {}): Promise<implicitReturnType>;
|
|
58
|
+
publicGetV5EarnProduct(params?: {}): Promise<implicitReturnType>;
|
|
58
59
|
privateGetV5MarketInstrumentsInfo(params?: {}): Promise<implicitReturnType>;
|
|
59
60
|
privateGetV2PrivateWalletFundRecords(params?: {}): Promise<implicitReturnType>;
|
|
60
61
|
privateGetSpotV3PrivateOrder(params?: {}): Promise<implicitReturnType>;
|
|
@@ -191,6 +192,8 @@ interface Exchange {
|
|
|
191
192
|
privateGetV5BrokerEarningsInfo(params?: {}): Promise<implicitReturnType>;
|
|
192
193
|
privateGetV5BrokerAccountInfo(params?: {}): Promise<implicitReturnType>;
|
|
193
194
|
privateGetV5BrokerAssetQuerySubMemberDepositRecord(params?: {}): Promise<implicitReturnType>;
|
|
195
|
+
privateGetV5EarnOrder(params?: {}): Promise<implicitReturnType>;
|
|
196
|
+
privateGetV5EarnPosition(params?: {}): Promise<implicitReturnType>;
|
|
194
197
|
privatePostSpotV3PrivateOrder(params?: {}): Promise<implicitReturnType>;
|
|
195
198
|
privatePostSpotV3PrivateCancelOrder(params?: {}): Promise<implicitReturnType>;
|
|
196
199
|
privatePostSpotV3PrivateCancelOrders(params?: {}): Promise<implicitReturnType>;
|
|
@@ -306,6 +309,7 @@ interface Exchange {
|
|
|
306
309
|
privatePostV5BrokerAwardInfo(params?: {}): Promise<implicitReturnType>;
|
|
307
310
|
privatePostV5BrokerAwardDistributeAward(params?: {}): Promise<implicitReturnType>;
|
|
308
311
|
privatePostV5BrokerAwardDistributionRecord(params?: {}): Promise<implicitReturnType>;
|
|
312
|
+
privatePostV5EarnPlaceOrder(params?: {}): Promise<implicitReturnType>;
|
|
309
313
|
}
|
|
310
314
|
declare abstract class Exchange extends _Exchange {
|
|
311
315
|
}
|
|
@@ -106,7 +106,9 @@ interface okx {
|
|
|
106
106
|
privateGetTradeEasyConvertCurrencyList(params?: {}): Promise<implicitReturnType>;
|
|
107
107
|
privateGetTradeEasyConvertHistory(params?: {}): Promise<implicitReturnType>;
|
|
108
108
|
privateGetTradeOneClickRepayCurrencyList(params?: {}): Promise<implicitReturnType>;
|
|
109
|
+
privateGetTradeOneClickRepayCurrencyListV2(params?: {}): Promise<implicitReturnType>;
|
|
109
110
|
privateGetTradeOneClickRepayHistory(params?: {}): Promise<implicitReturnType>;
|
|
111
|
+
privateGetTradeOneClickRepayHistoryV2(params?: {}): Promise<implicitReturnType>;
|
|
110
112
|
privateGetTradeAccountRateLimit(params?: {}): Promise<implicitReturnType>;
|
|
111
113
|
privateGetAssetCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
112
114
|
privateGetAssetBalances(params?: {}): Promise<implicitReturnType>;
|
|
@@ -249,6 +251,7 @@ interface okx {
|
|
|
249
251
|
privatePostTradeCancelAdvanceAlgos(params?: {}): Promise<implicitReturnType>;
|
|
250
252
|
privatePostTradeEasyConvert(params?: {}): Promise<implicitReturnType>;
|
|
251
253
|
privatePostTradeOneClickRepay(params?: {}): Promise<implicitReturnType>;
|
|
254
|
+
privatePostTradeOneClickRepayV2(params?: {}): Promise<implicitReturnType>;
|
|
252
255
|
privatePostTradeMassCancel(params?: {}): Promise<implicitReturnType>;
|
|
253
256
|
privatePostTradeCancelAllAfter(params?: {}): Promise<implicitReturnType>;
|
|
254
257
|
privatePostAssetTransfer(params?: {}): Promise<implicitReturnType>;
|
package/js/src/abstract/okx.d.ts
CHANGED
|
@@ -106,7 +106,9 @@ interface Exchange {
|
|
|
106
106
|
privateGetTradeEasyConvertCurrencyList(params?: {}): Promise<implicitReturnType>;
|
|
107
107
|
privateGetTradeEasyConvertHistory(params?: {}): Promise<implicitReturnType>;
|
|
108
108
|
privateGetTradeOneClickRepayCurrencyList(params?: {}): Promise<implicitReturnType>;
|
|
109
|
+
privateGetTradeOneClickRepayCurrencyListV2(params?: {}): Promise<implicitReturnType>;
|
|
109
110
|
privateGetTradeOneClickRepayHistory(params?: {}): Promise<implicitReturnType>;
|
|
111
|
+
privateGetTradeOneClickRepayHistoryV2(params?: {}): Promise<implicitReturnType>;
|
|
110
112
|
privateGetTradeAccountRateLimit(params?: {}): Promise<implicitReturnType>;
|
|
111
113
|
privateGetAssetCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
112
114
|
privateGetAssetBalances(params?: {}): Promise<implicitReturnType>;
|
|
@@ -249,6 +251,7 @@ interface Exchange {
|
|
|
249
251
|
privatePostTradeCancelAdvanceAlgos(params?: {}): Promise<implicitReturnType>;
|
|
250
252
|
privatePostTradeEasyConvert(params?: {}): Promise<implicitReturnType>;
|
|
251
253
|
privatePostTradeOneClickRepay(params?: {}): Promise<implicitReturnType>;
|
|
254
|
+
privatePostTradeOneClickRepayV2(params?: {}): Promise<implicitReturnType>;
|
|
252
255
|
privatePostTradeMassCancel(params?: {}): Promise<implicitReturnType>;
|
|
253
256
|
privatePostTradeCancelAllAfter(params?: {}): Promise<implicitReturnType>;
|
|
254
257
|
privatePostAssetTransfer(params?: {}): Promise<implicitReturnType>;
|
|
@@ -66,6 +66,42 @@ interface Exchange {
|
|
|
66
66
|
privateDeleteSmartorders(params?: {}): Promise<implicitReturnType>;
|
|
67
67
|
privatePutOrdersId(params?: {}): Promise<implicitReturnType>;
|
|
68
68
|
privatePutSmartordersId(params?: {}): Promise<implicitReturnType>;
|
|
69
|
+
swapPublicGetV3MarketAllInstruments(params?: {}): Promise<implicitReturnType>;
|
|
70
|
+
swapPublicGetV3MarketInstruments(params?: {}): Promise<implicitReturnType>;
|
|
71
|
+
swapPublicGetV3MarketOrderBook(params?: {}): Promise<implicitReturnType>;
|
|
72
|
+
swapPublicGetV3MarketCandles(params?: {}): Promise<implicitReturnType>;
|
|
73
|
+
swapPublicGetV3MarketIndexPriceCandlesticks(params?: {}): Promise<implicitReturnType>;
|
|
74
|
+
swapPublicGetV3MarketPremiumIndexCandlesticks(params?: {}): Promise<implicitReturnType>;
|
|
75
|
+
swapPublicGetV3MarketMarkPriceCandlesticks(params?: {}): Promise<implicitReturnType>;
|
|
76
|
+
swapPublicGetV3MarketTrades(params?: {}): Promise<implicitReturnType>;
|
|
77
|
+
swapPublicGetV3MarketLiquidationOrder(params?: {}): Promise<implicitReturnType>;
|
|
78
|
+
swapPublicGetV3MarketTickers(params?: {}): Promise<implicitReturnType>;
|
|
79
|
+
swapPublicGetV3MarketMarkPrice(params?: {}): Promise<implicitReturnType>;
|
|
80
|
+
swapPublicGetV3MarketIndexPrice(params?: {}): Promise<implicitReturnType>;
|
|
81
|
+
swapPublicGetV3MarketIndexPriceComponents(params?: {}): Promise<implicitReturnType>;
|
|
82
|
+
swapPublicGetV3MarketFundingRate(params?: {}): Promise<implicitReturnType>;
|
|
83
|
+
swapPublicGetV3MarketOpenInterest(params?: {}): Promise<implicitReturnType>;
|
|
84
|
+
swapPublicGetV3MarketInsurance(params?: {}): Promise<implicitReturnType>;
|
|
85
|
+
swapPublicGetV3MarketRiskLimit(params?: {}): Promise<implicitReturnType>;
|
|
86
|
+
swapPrivateGetV3AccountBalance(params?: {}): Promise<implicitReturnType>;
|
|
87
|
+
swapPrivateGetV3AccountBills(params?: {}): Promise<implicitReturnType>;
|
|
88
|
+
swapPrivateGetV3TradeOrderOpens(params?: {}): Promise<implicitReturnType>;
|
|
89
|
+
swapPrivateGetV3TradeOrderTrades(params?: {}): Promise<implicitReturnType>;
|
|
90
|
+
swapPrivateGetV3TradeOrderHistory(params?: {}): Promise<implicitReturnType>;
|
|
91
|
+
swapPrivateGetV3TradePositionOpens(params?: {}): Promise<implicitReturnType>;
|
|
92
|
+
swapPrivateGetV3TradePositionHistory(params?: {}): Promise<implicitReturnType>;
|
|
93
|
+
swapPrivateGetV3PositionLeverages(params?: {}): Promise<implicitReturnType>;
|
|
94
|
+
swapPrivateGetV3PositionMode(params?: {}): Promise<implicitReturnType>;
|
|
95
|
+
swapPrivatePostV3TradeOrder(params?: {}): Promise<implicitReturnType>;
|
|
96
|
+
swapPrivatePostV3TradeOrders(params?: {}): Promise<implicitReturnType>;
|
|
97
|
+
swapPrivatePostV3TradePosition(params?: {}): Promise<implicitReturnType>;
|
|
98
|
+
swapPrivatePostV3TradePositionAll(params?: {}): Promise<implicitReturnType>;
|
|
99
|
+
swapPrivatePostV3PositionLeverage(params?: {}): Promise<implicitReturnType>;
|
|
100
|
+
swapPrivatePostV3PositionMode(params?: {}): Promise<implicitReturnType>;
|
|
101
|
+
swapPrivatePostV3TradePositionMargin(params?: {}): Promise<implicitReturnType>;
|
|
102
|
+
swapPrivateDeleteV3TradeOrder(params?: {}): Promise<implicitReturnType>;
|
|
103
|
+
swapPrivateDeleteV3TradeBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
104
|
+
swapPrivateDeleteV3TradeAllOrders(params?: {}): Promise<implicitReturnType>;
|
|
69
105
|
}
|
|
70
106
|
declare abstract class Exchange extends _Exchange {
|
|
71
107
|
}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
// ----------------------------------------------------------------------------
|
|
2
|
+
|
|
3
|
+
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
+
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
+
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
+
|
|
1
7
|
// -------------------------------------------------------------------------------
|
|
2
8
|
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
9
|
class Exchange extends _Exchange {
|
|
@@ -7,7 +7,6 @@ interface Exchange {
|
|
|
7
7
|
publicGetHistoryMarket(params?: {}): Promise<implicitReturnType>;
|
|
8
8
|
publicGetChartIntervalMarketTimestamp(params?: {}): Promise<implicitReturnType>;
|
|
9
9
|
publicGetChartIntervalMarket(params?: {}): Promise<implicitReturnType>;
|
|
10
|
-
privateGetAccountBalance(params?: {}): Promise<implicitReturnType>;
|
|
11
10
|
privateGetAccountBalances(params?: {}): Promise<implicitReturnType>;
|
|
12
11
|
privateGetAccountOrderUuid(params?: {}): Promise<implicitReturnType>;
|
|
13
12
|
privatePostOrderBuy(params?: {}): Promise<implicitReturnType>;
|
|
@@ -15,6 +14,7 @@ interface Exchange {
|
|
|
15
14
|
privatePostOrderCancel(params?: {}): Promise<implicitReturnType>;
|
|
16
15
|
privatePostOrders(params?: {}): Promise<implicitReturnType>;
|
|
17
16
|
privatePostAccountOrders(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
privatePostAccountBalance(params?: {}): Promise<implicitReturnType>;
|
|
18
18
|
}
|
|
19
19
|
declare abstract class Exchange extends _Exchange {
|
|
20
20
|
}
|