ccxt 4.4.94 → 4.4.96
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 +7 -7
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +4 -1
- package/dist/cjs/src/abstract/foxbit.js +9 -0
- package/dist/cjs/src/apex.js +2 -2
- package/dist/cjs/src/ascendex.js +3 -3
- package/dist/cjs/src/base/Exchange.js +8 -4
- package/dist/cjs/src/base/ws/Future.js +2 -2
- package/dist/cjs/src/bingx.js +148 -94
- package/dist/cjs/src/bitget.js +32 -144
- package/dist/cjs/src/bitmart.js +2 -2
- package/dist/cjs/src/bitrue.js +15 -8
- package/dist/cjs/src/bitstamp.js +1 -0
- package/dist/cjs/src/blofin.js +7 -1
- package/dist/cjs/src/bybit.js +17 -6
- package/dist/cjs/src/coinbase.js +36 -0
- package/dist/cjs/src/coinbaseexchange.js +4 -2
- package/dist/cjs/src/coinmate.js +34 -0
- package/dist/cjs/src/coinone.js +34 -0
- package/dist/cjs/src/coinsph.js +29 -0
- package/dist/cjs/src/coinspot.js +36 -1
- package/dist/cjs/src/cryptocom.js +2 -1
- package/dist/cjs/src/cryptomus.js +41 -1
- package/dist/cjs/src/defx.js +1 -1
- package/dist/cjs/src/derive.js +1 -1
- package/dist/cjs/src/ellipx.js +40 -0
- package/dist/cjs/src/foxbit.js +2016 -0
- package/dist/cjs/src/gate.js +1 -1
- package/dist/cjs/src/hyperliquid.js +3 -2
- package/dist/cjs/src/kucoin.js +1 -1
- package/dist/cjs/src/kucoinfutures.js +3 -2
- package/dist/cjs/src/mexc.js +28 -13
- package/dist/cjs/src/modetrade.js +3 -3
- package/dist/cjs/src/okcoin.js +1 -1
- package/dist/cjs/src/okx.js +12 -3
- package/dist/cjs/src/onetrading.js +1 -1
- package/dist/cjs/src/oxfun.js +2 -1
- package/dist/cjs/src/paradex.js +2 -2
- package/dist/cjs/src/pro/hyperliquid.js +6 -6
- package/dist/cjs/src/pro/kraken.js +18 -18
- package/dist/cjs/src/pro/mexc.js +10 -10
- package/dist/cjs/src/vertex.js +3 -2
- package/dist/cjs/src/woo.js +1281 -894
- package/dist/cjs/src/woofipro.js +2 -2
- package/js/ccxt.d.ts +5 -2
- package/js/ccxt.js +4 -2
- package/js/src/abstract/bingx.d.ts +3 -0
- package/js/src/abstract/foxbit.d.ts +29 -0
- package/js/src/abstract/foxbit.js +11 -0
- package/js/src/abstract/woo.d.ts +58 -3
- package/js/src/apex.d.ts +2 -2
- package/js/src/apex.js +2 -2
- package/js/src/ascendex.d.ts +1 -1
- package/js/src/ascendex.js +3 -3
- package/js/src/base/Exchange.d.ts +7 -6
- package/js/src/base/Exchange.js +8 -4
- package/js/src/base/ws/Future.js +2 -2
- package/js/src/bingx.d.ts +6 -6
- package/js/src/bingx.js +148 -94
- package/js/src/bitget.js +32 -144
- package/js/src/bitmart.d.ts +2 -2
- package/js/src/bitmart.js +2 -2
- package/js/src/bitrue.js +15 -8
- package/js/src/bitstamp.js +2 -1
- package/js/src/bittrade.d.ts +1 -1
- package/js/src/blofin.d.ts +2 -1
- package/js/src/blofin.js +7 -1
- package/js/src/bybit.d.ts +1 -1
- package/js/src/bybit.js +17 -6
- package/js/src/coinbase.js +36 -0
- package/js/src/coinbaseexchange.d.ts +2 -2
- package/js/src/coinbaseexchange.js +4 -2
- package/js/src/coinbaseinternational.d.ts +2 -2
- package/js/src/coinmate.js +34 -0
- package/js/src/coinone.js +34 -0
- package/js/src/coinsph.js +29 -0
- package/js/src/coinspot.d.ts +1 -1
- package/js/src/coinspot.js +36 -1
- package/js/src/cryptocom.d.ts +1 -1
- package/js/src/cryptocom.js +2 -1
- package/js/src/cryptomus.d.ts +1 -1
- package/js/src/cryptomus.js +41 -1
- package/js/src/defx.d.ts +2 -2
- package/js/src/defx.js +1 -1
- package/js/src/derive.d.ts +2 -2
- package/js/src/derive.js +1 -1
- package/js/src/digifinex.d.ts +1 -1
- package/js/src/ellipx.js +40 -0
- package/js/src/foxbit.d.ts +352 -0
- package/js/src/foxbit.js +2016 -0
- package/js/src/gate.js +1 -1
- package/js/src/htx.d.ts +2 -2
- package/js/src/hyperliquid.d.ts +2 -2
- package/js/src/hyperliquid.js +3 -2
- package/js/src/krakenfutures.d.ts +1 -1
- package/js/src/kucoin.d.ts +1 -1
- package/js/src/kucoin.js +1 -1
- package/js/src/kucoinfutures.d.ts +3 -3
- package/js/src/kucoinfutures.js +3 -2
- package/js/src/mexc.d.ts +1 -1
- package/js/src/mexc.js +28 -13
- package/js/src/modetrade.d.ts +2 -4
- package/js/src/modetrade.js +3 -3
- package/js/src/ndax.d.ts +1 -1
- package/js/src/okcoin.d.ts +1 -1
- package/js/src/okcoin.js +1 -1
- package/js/src/okx.d.ts +1 -1
- package/js/src/okx.js +12 -3
- package/js/src/onetrading.d.ts +1 -1
- package/js/src/onetrading.js +1 -1
- package/js/src/oxfun.d.ts +1 -1
- package/js/src/oxfun.js +2 -1
- package/js/src/paradex.d.ts +1 -1
- package/js/src/paradex.js +2 -2
- package/js/src/pro/hyperliquid.js +6 -6
- package/js/src/pro/kraken.js +18 -18
- package/js/src/pro/mexc.js +10 -10
- package/js/src/timex.d.ts +1 -1
- package/js/src/vertex.d.ts +2 -2
- package/js/src/vertex.js +3 -2
- package/js/src/woo.d.ts +80 -50
- package/js/src/woo.js +1281 -894
- package/js/src/woofipro.d.ts +2 -4
- package/js/src/woofipro.js +2 -2
- package/package.json +7 -7
package/js/src/pro/mexc.js
CHANGED
|
@@ -1445,7 +1445,7 @@ export default class mexc extends mexcRest {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
url = this.urls['api']['ws']['spot'];
|
|
1447
1447
|
params['unsubscribed'] = true;
|
|
1448
|
-
this.watchSpotPublic(channel, messageHash, params);
|
|
1448
|
+
await this.watchSpotPublic(channel, messageHash, params);
|
|
1449
1449
|
}
|
|
1450
1450
|
else {
|
|
1451
1451
|
channel = 'unsub.ticker';
|
|
@@ -1453,7 +1453,7 @@ export default class mexc extends mexcRest {
|
|
|
1453
1453
|
'symbol': market['id'],
|
|
1454
1454
|
};
|
|
1455
1455
|
url = this.urls['api']['ws']['swap'];
|
|
1456
|
-
this.watchSwapPublic(channel, messageHash, requestParams, params);
|
|
1456
|
+
await this.watchSwapPublic(channel, messageHash, requestParams, params);
|
|
1457
1457
|
}
|
|
1458
1458
|
const client = this.client(url);
|
|
1459
1459
|
this.handleUnsubscriptions(client, [messageHash]);
|
|
@@ -1517,7 +1517,7 @@ export default class mexc extends mexcRest {
|
|
|
1517
1517
|
messageHashes.push('unsubscribe:ticker');
|
|
1518
1518
|
}
|
|
1519
1519
|
const client = this.client(url);
|
|
1520
|
-
this.watchMultiple(url, messageHashes, this.extend(request, params), messageHashes);
|
|
1520
|
+
await this.watchMultiple(url, messageHashes, this.extend(request, params), messageHashes);
|
|
1521
1521
|
this.handleUnsubscriptions(client, messageHashes);
|
|
1522
1522
|
return undefined;
|
|
1523
1523
|
}
|
|
@@ -1557,7 +1557,7 @@ export default class mexc extends mexcRest {
|
|
|
1557
1557
|
'params': topics,
|
|
1558
1558
|
};
|
|
1559
1559
|
const client = this.client(url);
|
|
1560
|
-
this.watchMultiple(url, messageHashes, this.extend(request, params), messageHashes);
|
|
1560
|
+
await this.watchMultiple(url, messageHashes, this.extend(request, params), messageHashes);
|
|
1561
1561
|
this.handleUnsubscriptions(client, messageHashes);
|
|
1562
1562
|
return undefined;
|
|
1563
1563
|
}
|
|
@@ -1583,7 +1583,7 @@ export default class mexc extends mexcRest {
|
|
|
1583
1583
|
url = this.urls['api']['ws']['spot'];
|
|
1584
1584
|
const channel = 'spot@public.kline.v3.api@' + market['id'] + '@' + timeframeId;
|
|
1585
1585
|
params['unsubscribed'] = true;
|
|
1586
|
-
this.watchSpotPublic(channel, messageHash, params);
|
|
1586
|
+
await this.watchSpotPublic(channel, messageHash, params);
|
|
1587
1587
|
}
|
|
1588
1588
|
else {
|
|
1589
1589
|
url = this.urls['api']['ws']['swap'];
|
|
@@ -1592,7 +1592,7 @@ export default class mexc extends mexcRest {
|
|
|
1592
1592
|
'symbol': market['id'],
|
|
1593
1593
|
'interval': timeframeId,
|
|
1594
1594
|
};
|
|
1595
|
-
this.watchSwapPublic(channel, messageHash, requestParams, params);
|
|
1595
|
+
await this.watchSwapPublic(channel, messageHash, requestParams, params);
|
|
1596
1596
|
}
|
|
1597
1597
|
const client = this.client(url);
|
|
1598
1598
|
this.handleUnsubscriptions(client, [messageHash]);
|
|
@@ -1616,7 +1616,7 @@ export default class mexc extends mexcRest {
|
|
|
1616
1616
|
url = this.urls['api']['ws']['spot'];
|
|
1617
1617
|
const channel = 'spot@public.increase.depth.v3.api@' + market['id'];
|
|
1618
1618
|
params['unsubscribed'] = true;
|
|
1619
|
-
this.watchSpotPublic(channel, messageHash, params);
|
|
1619
|
+
await this.watchSpotPublic(channel, messageHash, params);
|
|
1620
1620
|
}
|
|
1621
1621
|
else {
|
|
1622
1622
|
url = this.urls['api']['ws']['swap'];
|
|
@@ -1624,7 +1624,7 @@ export default class mexc extends mexcRest {
|
|
|
1624
1624
|
const requestParams = {
|
|
1625
1625
|
'symbol': market['id'],
|
|
1626
1626
|
};
|
|
1627
|
-
this.watchSwapPublic(channel, messageHash, requestParams, params);
|
|
1627
|
+
await this.watchSwapPublic(channel, messageHash, requestParams, params);
|
|
1628
1628
|
}
|
|
1629
1629
|
const client = this.client(url);
|
|
1630
1630
|
this.handleUnsubscriptions(client, [messageHash]);
|
|
@@ -1649,7 +1649,7 @@ export default class mexc extends mexcRest {
|
|
|
1649
1649
|
url = this.urls['api']['ws']['spot'];
|
|
1650
1650
|
const channel = 'spot@public.deals.v3.api@' + market['id'];
|
|
1651
1651
|
params['unsubscribed'] = true;
|
|
1652
|
-
this.watchSpotPublic(channel, messageHash, params);
|
|
1652
|
+
await this.watchSpotPublic(channel, messageHash, params);
|
|
1653
1653
|
}
|
|
1654
1654
|
else {
|
|
1655
1655
|
url = this.urls['api']['ws']['swap'];
|
|
@@ -1657,7 +1657,7 @@ export default class mexc extends mexcRest {
|
|
|
1657
1657
|
const requestParams = {
|
|
1658
1658
|
'symbol': market['id'],
|
|
1659
1659
|
};
|
|
1660
|
-
this.watchSwapPublic(channel, messageHash, requestParams, params);
|
|
1660
|
+
await this.watchSwapPublic(channel, messageHash, requestParams, params);
|
|
1661
1661
|
}
|
|
1662
1662
|
const client = this.client(url);
|
|
1663
1663
|
this.handleUnsubscriptions(client, [messageHash]);
|
package/js/src/timex.d.ts
CHANGED
|
@@ -150,7 +150,7 @@ export default class timex extends Exchange {
|
|
|
150
150
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
151
151
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
152
152
|
*/
|
|
153
|
-
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<
|
|
153
|
+
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
154
154
|
/**
|
|
155
155
|
* @method
|
|
156
156
|
* @name timex#cancelOrders
|
package/js/src/vertex.d.ts
CHANGED
|
@@ -272,7 +272,7 @@ export default class vertex extends Exchange {
|
|
|
272
272
|
* @param {boolean} [params.trigger] whether the order is a trigger/algo order
|
|
273
273
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
274
274
|
*/
|
|
275
|
-
cancelAllOrders(symbol?: Str, params?: {}): Promise<
|
|
275
|
+
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
276
276
|
/**
|
|
277
277
|
* @method
|
|
278
278
|
* @name vertex#cancelOrder
|
|
@@ -284,7 +284,7 @@ export default class vertex extends Exchange {
|
|
|
284
284
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
285
285
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
286
286
|
*/
|
|
287
|
-
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<
|
|
287
|
+
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
288
288
|
/**
|
|
289
289
|
* @method
|
|
290
290
|
* @name vertex#cancelOrders
|
package/js/src/vertex.js
CHANGED
|
@@ -2424,7 +2424,7 @@ export default class vertex extends Exchange {
|
|
|
2424
2424
|
// }
|
|
2425
2425
|
//
|
|
2426
2426
|
}
|
|
2427
|
-
return response;
|
|
2427
|
+
return [this.safeOrder({ 'info': response })];
|
|
2428
2428
|
}
|
|
2429
2429
|
/**
|
|
2430
2430
|
* @method
|
|
@@ -2438,7 +2438,8 @@ export default class vertex extends Exchange {
|
|
|
2438
2438
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2439
2439
|
*/
|
|
2440
2440
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
2441
|
-
|
|
2441
|
+
const order = await this.cancelOrders([id], symbol, params);
|
|
2442
|
+
return this.safeOrder({ 'info': order });
|
|
2442
2443
|
}
|
|
2443
2444
|
/**
|
|
2444
2445
|
* @method
|
package/js/src/woo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/woo.js';
|
|
2
|
-
import type { TransferEntry, Balances, Conversion, Currency, FundingRateHistory, Int, Market, MarginModification, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Dict, Strings, Trade, Transaction, Leverage, Account, Currencies, TradingFees, int, FundingHistory, LedgerEntry, FundingRate, FundingRates, DepositAddress, Position } from './base/types.js';
|
|
2
|
+
import type { TransferEntry, Balances, Conversion, Currency, FundingRateHistory, Int, Market, MarginModification, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Dict, Strings, Trade, Transaction, Leverage, Account, Currencies, TradingFees, int, FundingHistory, LedgerEntry, FundingRate, FundingRates, DepositAddress, Position, TradingFeeInterface } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class woo
|
|
5
5
|
* @augments Exchange
|
|
@@ -10,7 +10,7 @@ export default class woo extends Exchange {
|
|
|
10
10
|
* @method
|
|
11
11
|
* @name woo#fetchStatus
|
|
12
12
|
* @description the latest known information on the availability of the exchange API
|
|
13
|
-
* @see https://
|
|
13
|
+
* @see https://developer.woox.io/api-reference/endpoint/public_data/systemInfo
|
|
14
14
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
15
15
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
16
16
|
*/
|
|
@@ -25,7 +25,7 @@ export default class woo extends Exchange {
|
|
|
25
25
|
* @method
|
|
26
26
|
* @name woo#fetchTime
|
|
27
27
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
28
|
-
* @see https://
|
|
28
|
+
* @see https://developer.woox.io/api-reference/endpoint/public_data/systemInfo
|
|
29
29
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
30
30
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
31
31
|
*/
|
|
@@ -34,7 +34,7 @@ export default class woo extends Exchange {
|
|
|
34
34
|
* @method
|
|
35
35
|
* @name woo#fetchMarkets
|
|
36
36
|
* @description retrieves data on all markets for woo
|
|
37
|
-
* @see https://
|
|
37
|
+
* @see https://developer.woox.io/api-reference/endpoint/public_data/instruments
|
|
38
38
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
39
39
|
* @returns {object[]} an array of objects representing market data
|
|
40
40
|
*/
|
|
@@ -44,7 +44,7 @@ export default class woo extends Exchange {
|
|
|
44
44
|
* @method
|
|
45
45
|
* @name woo#fetchTrades
|
|
46
46
|
* @description get the list of most recent trades for a particular symbol
|
|
47
|
-
* @see https://
|
|
47
|
+
* @see https://developer.woox.io/api-reference/endpoint/public_data/marketTrades
|
|
48
48
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
49
49
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
50
50
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -53,12 +53,25 @@ export default class woo extends Exchange {
|
|
|
53
53
|
*/
|
|
54
54
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
55
55
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
56
|
-
parseTokenAndFeeTemp(item: any,
|
|
56
|
+
parseTokenAndFeeTemp(item: any, feeTokenKeys: any, feeAmountKeys: any): any;
|
|
57
|
+
parseTradingFee(fee: Dict, market?: Market): TradingFeeInterface;
|
|
58
|
+
/**
|
|
59
|
+
* @method
|
|
60
|
+
* @name woo#fetchTradingFee
|
|
61
|
+
* @description fetch the trading fees for a market
|
|
62
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/get_tradingFee
|
|
63
|
+
* @param {string} symbol unified market symbol
|
|
64
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
65
|
+
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch trading fees in a portfolio margin account
|
|
66
|
+
* @param {string} [params.subType] "linear" or "inverse"
|
|
67
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
68
|
+
*/
|
|
69
|
+
fetchTradingFee(symbol: string, params?: {}): Promise<TradingFeeInterface>;
|
|
57
70
|
/**
|
|
58
71
|
* @method
|
|
59
72
|
* @name woo#fetchTradingFees
|
|
60
73
|
* @description fetch the trading fees for multiple markets
|
|
61
|
-
* @see https://
|
|
74
|
+
* @see https://developer.woox.io/api-reference/endpoint/account/get_account_info
|
|
62
75
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
63
76
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
64
77
|
*/
|
|
@@ -130,8 +143,8 @@ export default class woo extends Exchange {
|
|
|
130
143
|
* @method
|
|
131
144
|
* @name woo#createOrder
|
|
132
145
|
* @description create a trade order
|
|
133
|
-
* @see https://
|
|
134
|
-
* @see https://
|
|
146
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/post_order
|
|
147
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/post_algo_order
|
|
135
148
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
136
149
|
* @param {string} type 'market' or 'limit'
|
|
137
150
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -181,9 +194,8 @@ export default class woo extends Exchange {
|
|
|
181
194
|
/**
|
|
182
195
|
* @method
|
|
183
196
|
* @name woo#cancelOrder
|
|
184
|
-
* @see https://
|
|
185
|
-
* @see https://
|
|
186
|
-
* @see https://docs.woox.io/#cancel-order-by-client_order_id
|
|
197
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/cancel_order
|
|
198
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/cancel_algo_order
|
|
187
199
|
* @description cancels an open order
|
|
188
200
|
* @param {string} id order id
|
|
189
201
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
@@ -191,35 +203,34 @@ export default class woo extends Exchange {
|
|
|
191
203
|
* @param {boolean} [params.trigger] whether the order is a trigger/algo order
|
|
192
204
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
193
205
|
*/
|
|
194
|
-
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<
|
|
206
|
+
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
195
207
|
/**
|
|
196
208
|
* @method
|
|
197
209
|
* @name woo#cancelAllOrders
|
|
198
|
-
* @see https://
|
|
199
|
-
* @see https://
|
|
200
|
-
* @see https://docs.woox.io/#cancel-all-pending-algo-orders
|
|
210
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/cancel_all_order
|
|
211
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/cancel_algo_orders
|
|
201
212
|
* @description cancel all open orders in a market
|
|
202
213
|
* @param {string} symbol unified market symbol
|
|
203
214
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
204
215
|
* @param {boolean} [params.trigger] whether the order is a trigger/algo order
|
|
205
216
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
206
217
|
*/
|
|
207
|
-
cancelAllOrders(symbol?: Str, params?: {}): Promise<
|
|
218
|
+
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
208
219
|
/**
|
|
209
220
|
* @method
|
|
210
221
|
* @name woo#cancelAllOrdersAfter
|
|
211
222
|
* @description dead man's switch, cancel all orders after the given timeout
|
|
212
|
-
* @see https://
|
|
223
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/cancel_all_after
|
|
213
224
|
* @param {number} timeout time in milliseconds, 0 represents cancel the timer
|
|
214
225
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
215
226
|
* @returns {object} the api result
|
|
216
227
|
*/
|
|
217
|
-
cancelAllOrdersAfter(timeout: Int, params?: {}): Promise<
|
|
228
|
+
cancelAllOrdersAfter(timeout: Int, params?: {}): Promise<any>;
|
|
218
229
|
/**
|
|
219
230
|
* @method
|
|
220
231
|
* @name woo#fetchOrder
|
|
221
|
-
* @see https://
|
|
222
|
-
* @see https://
|
|
232
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/get_order
|
|
233
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/get_algo_order
|
|
223
234
|
* @description fetches information on an order made by the user
|
|
224
235
|
* @param {string} id the order id
|
|
225
236
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
@@ -232,8 +243,8 @@ export default class woo extends Exchange {
|
|
|
232
243
|
* @method
|
|
233
244
|
* @name woo#fetchOrders
|
|
234
245
|
* @description fetches information on multiple orders made by the user
|
|
235
|
-
* @see https://
|
|
236
|
-
* @see https://
|
|
246
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/get_orders
|
|
247
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/get_algo_orders
|
|
237
248
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
238
249
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
239
250
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -241,7 +252,6 @@ export default class woo extends Exchange {
|
|
|
241
252
|
* @param {boolean} [params.trigger] whether the order is a trigger/algo order
|
|
242
253
|
* @param {boolean} [params.isTriggered] whether the order has been triggered (false by default)
|
|
243
254
|
* @param {string} [params.side] 'buy' or 'sell'
|
|
244
|
-
* @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
|
|
245
255
|
* @param {boolean} [params.paginate] set to true if you want to fetch orders with pagination
|
|
246
256
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
247
257
|
*/
|
|
@@ -250,8 +260,8 @@ export default class woo extends Exchange {
|
|
|
250
260
|
* @method
|
|
251
261
|
* @name woo#fetchOpenOrders
|
|
252
262
|
* @description fetches information on multiple orders made by the user
|
|
253
|
-
* @see https://
|
|
254
|
-
* @see https://
|
|
263
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/get_orders
|
|
264
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/get_algo_orders
|
|
255
265
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
256
266
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
257
267
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -268,8 +278,8 @@ export default class woo extends Exchange {
|
|
|
268
278
|
* @method
|
|
269
279
|
* @name woo#fetchClosedOrders
|
|
270
280
|
* @description fetches information on multiple orders made by the user
|
|
271
|
-
* @see https://
|
|
272
|
-
* @see https://
|
|
281
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/get_orders
|
|
282
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/get_algo_orders
|
|
273
283
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
274
284
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
275
285
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -289,7 +299,7 @@ export default class woo extends Exchange {
|
|
|
289
299
|
* @method
|
|
290
300
|
* @name woo#fetchOrderBook
|
|
291
301
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
292
|
-
* @see https://
|
|
302
|
+
* @see https://developer.woox.io/api-reference/endpoint/public_data/orderbook
|
|
293
303
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
294
304
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
295
305
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -299,14 +309,14 @@ export default class woo extends Exchange {
|
|
|
299
309
|
/**
|
|
300
310
|
* @method
|
|
301
311
|
* @name woo#fetchOHLCV
|
|
302
|
-
* @see https://
|
|
303
|
-
* @see https://docs.woox.io/#kline-historical-data-public
|
|
312
|
+
* @see https://developer.woox.io/api-reference/endpoint/public_data/klineHistory
|
|
304
313
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
305
314
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
306
315
|
* @param {string} timeframe the length of time each candle represents
|
|
307
316
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
308
317
|
* @param {int} [limit] max=1000, max=100 when since is defined and is less than (now - (999 * (timeframe in ms)))
|
|
309
318
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
319
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
310
320
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
311
321
|
*/
|
|
312
322
|
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
@@ -328,7 +338,7 @@ export default class woo extends Exchange {
|
|
|
328
338
|
* @method
|
|
329
339
|
* @name woo#fetchMyTrades
|
|
330
340
|
* @description fetch all trades made by the user
|
|
331
|
-
* @see https://
|
|
341
|
+
* @see https://developer.woox.io/api-reference/endpoint/trading/get_transactions
|
|
332
342
|
* @param {string} symbol unified market symbol
|
|
333
343
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
334
344
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -341,7 +351,8 @@ export default class woo extends Exchange {
|
|
|
341
351
|
* @method
|
|
342
352
|
* @name woo#fetchAccounts
|
|
343
353
|
* @description fetch all the accounts associated with a profile
|
|
344
|
-
* @see https://
|
|
354
|
+
* @see https://developer.woox.io/api-reference/endpoint/account/get_account_info
|
|
355
|
+
* @see https://developer.woox.io/api-reference/endpoint/account/sub_accounts
|
|
345
356
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
346
357
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
347
358
|
*/
|
|
@@ -367,7 +378,7 @@ export default class woo extends Exchange {
|
|
|
367
378
|
* @method
|
|
368
379
|
* @name woo#fetchDepositAddress
|
|
369
380
|
* @description fetch the deposit address for a currency associated with this account
|
|
370
|
-
* @see https://
|
|
381
|
+
* @see https://developer.woox.io/api-reference/endpoint/assets/get_wallet_deposit
|
|
371
382
|
* @param {string} code unified currency code
|
|
372
383
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
373
384
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -380,7 +391,7 @@ export default class woo extends Exchange {
|
|
|
380
391
|
* @method
|
|
381
392
|
* @name woo#fetchLedger
|
|
382
393
|
* @description fetch the history of changes, actions done by the user or operations that altered balance of the user
|
|
383
|
-
* @see https://
|
|
394
|
+
* @see https://developer.woox.io/api-reference/endpoint/assets/get_wallet_history
|
|
384
395
|
* @param {string} [code] unified currency code, default is undefined
|
|
385
396
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
386
397
|
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
@@ -395,7 +406,7 @@ export default class woo extends Exchange {
|
|
|
395
406
|
* @method
|
|
396
407
|
* @name woo#fetchDeposits
|
|
397
408
|
* @description fetch all deposits made to an account
|
|
398
|
-
* @see https://
|
|
409
|
+
* @see https://developer.woox.io/api-reference/endpoint/assets/get_wallet_history
|
|
399
410
|
* @param {string} code unified currency code
|
|
400
411
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
401
412
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -407,7 +418,7 @@ export default class woo extends Exchange {
|
|
|
407
418
|
* @method
|
|
408
419
|
* @name woo#fetchWithdrawals
|
|
409
420
|
* @description fetch all withdrawals made from an account
|
|
410
|
-
* @see https://
|
|
421
|
+
* @see https://developer.woox.io/api-reference/endpoint/assets/get_wallet_history
|
|
411
422
|
* @param {string} code unified currency code
|
|
412
423
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
413
424
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -419,7 +430,7 @@ export default class woo extends Exchange {
|
|
|
419
430
|
* @method
|
|
420
431
|
* @name woo#fetchDepositsWithdrawals
|
|
421
432
|
* @description fetch history of deposits and withdrawals
|
|
422
|
-
* @see https://
|
|
433
|
+
* @see https://developer.woox.io/api-reference/endpoint/assets/get_wallet_history
|
|
423
434
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
424
435
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
425
436
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
@@ -446,7 +457,7 @@ export default class woo extends Exchange {
|
|
|
446
457
|
* @method
|
|
447
458
|
* @name woo#fetchTransfers
|
|
448
459
|
* @description fetch a history of internal transfers made on an account
|
|
449
|
-
* @see https://
|
|
460
|
+
* @see https://developer.woox.io/api-reference/endpoint/assets/get_transfer_history
|
|
450
461
|
* @param {string} code unified currency code of the currency transferred
|
|
451
462
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
452
463
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
@@ -513,7 +524,7 @@ export default class woo extends Exchange {
|
|
|
513
524
|
* @method
|
|
514
525
|
* @name woo#fetchFundingHistory
|
|
515
526
|
* @description fetch the history of funding payments paid and received on this account
|
|
516
|
-
* @see https://
|
|
527
|
+
* @see https://developer.woox.io/api-reference/endpoint/futures/get_fundingFee_history
|
|
517
528
|
* @param {string} [symbol] unified market symbol
|
|
518
529
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
519
530
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
@@ -527,7 +538,7 @@ export default class woo extends Exchange {
|
|
|
527
538
|
* @method
|
|
528
539
|
* @name woo#fetchFundingInterval
|
|
529
540
|
* @description fetch the current funding rate interval
|
|
530
|
-
* @see https://
|
|
541
|
+
* @see https://developer.woox.io/api-reference/endpoint/public_data/fundingRate
|
|
531
542
|
* @param {string} symbol unified market symbol
|
|
532
543
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
533
544
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
@@ -537,7 +548,7 @@ export default class woo extends Exchange {
|
|
|
537
548
|
* @method
|
|
538
549
|
* @name woo#fetchFundingRate
|
|
539
550
|
* @description fetch the current funding rate
|
|
540
|
-
* @see https://
|
|
551
|
+
* @see https://developer.woox.io/api-reference/endpoint/public_data/fundingRate
|
|
541
552
|
* @param {string} symbol unified market symbol
|
|
542
553
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
543
554
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
@@ -547,7 +558,7 @@ export default class woo extends Exchange {
|
|
|
547
558
|
* @method
|
|
548
559
|
* @name woo#fetchFundingRates
|
|
549
560
|
* @description fetch the funding rate for multiple markets
|
|
550
|
-
* @see https://
|
|
561
|
+
* @see https://developer.woox.io/api-reference/endpoint/public_data/fundingRate
|
|
551
562
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
552
563
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
553
564
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexed by market symbols
|
|
@@ -557,7 +568,7 @@ export default class woo extends Exchange {
|
|
|
557
568
|
* @method
|
|
558
569
|
* @name woo#fetchFundingRateHistory
|
|
559
570
|
* @description fetches historical funding rate prices
|
|
560
|
-
* @see https://
|
|
571
|
+
* @see https://developer.woox.io/api-reference/endpoint/public_data/fundingRateHistory
|
|
561
572
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
562
573
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
563
574
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
@@ -571,7 +582,7 @@ export default class woo extends Exchange {
|
|
|
571
582
|
* @method
|
|
572
583
|
* @name woo#setPositionMode
|
|
573
584
|
* @description set hedged to true or false for a market
|
|
574
|
-
* @see https://
|
|
585
|
+
* @see https://developer.woox.io/api-reference/endpoint/futures/position_mode
|
|
575
586
|
* @param {bool} hedged set to true to use HEDGE_MODE, false for ONE_WAY
|
|
576
587
|
* @param {string} symbol not used by woo setPositionMode
|
|
577
588
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -582,11 +593,12 @@ export default class woo extends Exchange {
|
|
|
582
593
|
* @method
|
|
583
594
|
* @name woo#fetchLeverage
|
|
584
595
|
* @description fetch the set leverage for a market
|
|
585
|
-
* @see https://
|
|
596
|
+
* @see https://developer.woox.io/api-reference/endpoint/account/get_account_info
|
|
597
|
+
* @see https://developer.woox.io/api-reference/endpoint/futures/get_leverage
|
|
586
598
|
* @param {string} symbol unified market symbol
|
|
587
599
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
588
600
|
* @param {string} [params.marginMode] *for swap markets only* 'cross' or 'isolated'
|
|
589
|
-
* @param {string} [params.
|
|
601
|
+
* @param {string} [params.positionMode] *for swap markets only* 'ONE_WAY' or 'HEDGE_MODE'
|
|
590
602
|
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
591
603
|
*/
|
|
592
604
|
fetchLeverage(symbol: string, params?: {}): Promise<Leverage>;
|
|
@@ -595,13 +607,13 @@ export default class woo extends Exchange {
|
|
|
595
607
|
* @method
|
|
596
608
|
* @name woo#setLeverage
|
|
597
609
|
* @description set the level of leverage for a market
|
|
598
|
-
* @see https://
|
|
599
|
-
* @see https://
|
|
610
|
+
* @see https://developer.woox.io/api-reference/endpoint/spot_margin/set_leverage
|
|
611
|
+
* @see https://developer.woox.io/api-reference/endpoint/futures/set_leverage
|
|
600
612
|
* @param {float} leverage the rate of leverage (1, 2, 3, 4 or 5 for spot markets, 1, 2, 3, 4, 5, 10, 15, 20 for swap markets)
|
|
601
613
|
* @param {string} [symbol] unified market symbol (is mandatory for swap markets)
|
|
602
614
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
603
615
|
* @param {string} [params.marginMode] *for swap markets only* 'cross' or 'isolated'
|
|
604
|
-
* @param {string} [params.
|
|
616
|
+
* @param {string} [params.positionMode] *for swap markets only* 'ONE_WAY' or 'HEDGE_MODE'
|
|
605
617
|
* @returns {object} response from the exchange
|
|
606
618
|
*/
|
|
607
619
|
setLeverage(leverage: Int, symbol?: Str, params?: {}): Promise<any>;
|
|
@@ -630,7 +642,25 @@ export default class woo extends Exchange {
|
|
|
630
642
|
*/
|
|
631
643
|
reduceMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
|
|
632
644
|
modifyMarginHelper(symbol: string, amount: any, type: any, params?: {}): Promise<MarginModification>;
|
|
645
|
+
/**
|
|
646
|
+
* @method
|
|
647
|
+
* @name woo#fetchPosition
|
|
648
|
+
* @description fetch data on an open position
|
|
649
|
+
* @see https://developer.woox.io/api-reference/endpoint/futures/get_positions
|
|
650
|
+
* @param {string} symbol unified market symbol of the market the position is held in
|
|
651
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
652
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
653
|
+
*/
|
|
633
654
|
fetchPosition(symbol: Str, params?: {}): Promise<Position>;
|
|
655
|
+
/**
|
|
656
|
+
* @method
|
|
657
|
+
* @name woo#fetchPositions
|
|
658
|
+
* @description fetch all open positions
|
|
659
|
+
* @see https://developer.woox.io/api-reference/endpoint/futures/get_positions
|
|
660
|
+
* @param {string[]} [symbols] list of unified market symbols
|
|
661
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
662
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
663
|
+
*/
|
|
634
664
|
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
635
665
|
parsePosition(position: Dict, market?: Market): Position;
|
|
636
666
|
/**
|