ccxt 4.4.32 → 4.4.34
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 +8 -7
- package/dist/ccxt.browser.min.js +6 -6
- package/dist/cjs/ccxt.js +4 -1
- package/dist/cjs/src/abstract/ellipx.js +9 -0
- package/dist/cjs/src/alpaca.js +2 -0
- package/dist/cjs/src/base/Exchange.js +116 -1
- package/dist/cjs/src/binance.js +164 -6
- package/dist/cjs/src/bingx.js +156 -9
- package/dist/cjs/src/bitbank.js +5 -0
- package/dist/cjs/src/bitbns.js +2 -0
- package/dist/cjs/src/bitfinex2.js +2 -1
- package/dist/cjs/src/bitget.js +177 -44
- package/dist/cjs/src/bitmex.js +2 -0
- package/dist/cjs/src/bitopro.js +3 -0
- package/dist/cjs/src/bitrue.js +1 -0
- package/dist/cjs/src/btcmarkets.js +2 -0
- package/dist/cjs/src/bybit.js +148 -13
- package/dist/cjs/src/cex.js +16 -6
- package/dist/cjs/src/coinbase.js +5 -24
- package/dist/cjs/src/coinbaseexchange.js +2 -1
- package/dist/cjs/src/coinex.js +2 -0
- package/dist/cjs/src/coinone.js +7 -7
- package/dist/cjs/src/coinsph.js +7 -7
- package/dist/cjs/src/coinspot.js +39 -39
- package/dist/cjs/src/cryptocom.js +36 -34
- package/dist/cjs/src/ellipx.js +1871 -0
- package/dist/cjs/src/gate.js +2 -1
- package/dist/cjs/src/hyperliquid.js +16 -2
- package/dist/cjs/src/kraken.js +1 -0
- package/dist/cjs/src/krakenfutures.js +3 -1
- package/dist/cjs/src/kucoinfutures.js +1 -1
- package/dist/cjs/src/lbank.js +1 -0
- package/dist/cjs/src/okcoin.js +2 -0
- package/dist/cjs/src/okx.js +104 -9
- package/dist/cjs/src/onetrading.js +14 -1
- package/dist/cjs/src/paradex.js +2 -0
- package/dist/cjs/src/phemex.js +35 -7
- package/dist/cjs/src/poloniex.js +3 -1
- package/dist/cjs/src/poloniexfutures.js +3 -1
- package/dist/cjs/src/pro/idex.js +5 -0
- package/dist/cjs/src/pro/okx.js +11 -1
- package/dist/cjs/src/pro/probit.js +4 -2
- package/dist/cjs/src/pro/woo.js +15 -15
- package/dist/cjs/src/vertex.js +2 -0
- package/dist/cjs/src/woo.js +69 -69
- package/examples/js/cli.js +1 -1
- package/js/ccxt.d.ts +5 -2
- package/js/ccxt.js +4 -2
- package/js/src/abstract/bingx.d.ts +16 -0
- package/js/src/abstract/bitbank.d.ts +5 -0
- package/js/src/abstract/bitfinex2.d.ts +1 -0
- package/js/src/abstract/coinbaseexchange.d.ts +1 -0
- package/js/src/abstract/ellipx.d.ts +28 -0
- package/js/src/abstract/ellipx.js +11 -0
- package/js/src/abstract/kraken.d.ts +1 -0
- package/js/src/alpaca.js +2 -0
- package/js/src/base/Exchange.d.ts +11 -0
- package/js/src/base/Exchange.js +116 -1
- package/js/src/binance.js +164 -6
- package/js/src/bingx.d.ts +3 -1
- package/js/src/bingx.js +156 -9
- package/js/src/bitbank.js +5 -0
- package/js/src/bitbns.js +2 -0
- package/js/src/bitfinex2.js +2 -1
- package/js/src/bitget.d.ts +4 -4
- package/js/src/bitget.js +177 -44
- package/js/src/bitmex.js +2 -0
- package/js/src/bitopro.d.ts +1 -0
- package/js/src/bitopro.js +3 -0
- package/js/src/bitrue.js +1 -0
- package/js/src/btcmarkets.d.ts +1 -0
- package/js/src/btcmarkets.js +2 -0
- package/js/src/bybit.d.ts +3 -2
- package/js/src/bybit.js +149 -14
- package/js/src/cex.d.ts +1 -0
- package/js/src/cex.js +17 -7
- package/js/src/coinbase.d.ts +2 -1
- package/js/src/coinbase.js +5 -24
- package/js/src/coinbaseexchange.js +2 -1
- package/js/src/coinex.js +2 -0
- package/js/src/coinone.js +7 -7
- package/js/src/coinsph.js +7 -7
- package/js/src/coinspot.js +39 -39
- package/js/src/cryptocom.d.ts +1 -1
- package/js/src/cryptocom.js +36 -34
- package/js/src/ellipx.d.ts +236 -0
- package/js/src/ellipx.js +1874 -0
- package/js/src/gate.d.ts +2 -2
- package/js/src/gate.js +2 -1
- package/js/src/hyperliquid.d.ts +2 -1
- package/js/src/hyperliquid.js +16 -2
- package/js/src/kraken.js +1 -0
- package/js/src/krakenfutures.js +3 -1
- package/js/src/kucoinfutures.d.ts +1 -1
- package/js/src/kucoinfutures.js +1 -1
- package/js/src/lbank.js +1 -0
- package/js/src/okcoin.js +2 -0
- package/js/src/okx.d.ts +1 -1
- package/js/src/okx.js +104 -9
- package/js/src/onetrading.d.ts +5 -0
- package/js/src/onetrading.js +15 -2
- package/js/src/paradex.js +2 -0
- package/js/src/phemex.d.ts +4 -0
- package/js/src/phemex.js +35 -7
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/poloniex.js +3 -1
- package/js/src/poloniexfutures.d.ts +1 -1
- package/js/src/poloniexfutures.js +3 -1
- package/js/src/pro/idex.d.ts +5 -0
- package/js/src/pro/idex.js +5 -0
- package/js/src/pro/okx.js +11 -1
- package/js/src/pro/probit.js +4 -2
- package/js/src/pro/woo.d.ts +11 -11
- package/js/src/pro/woo.js +15 -15
- package/js/src/vertex.js +2 -0
- package/js/src/woo.d.ts +60 -60
- package/js/src/woo.js +69 -69
- package/package.json +3 -3
package/js/src/woo.js
CHANGED
|
@@ -25,7 +25,7 @@ export default class woo extends Exchange {
|
|
|
25
25
|
'version': 'v1',
|
|
26
26
|
'certified': true,
|
|
27
27
|
'pro': true,
|
|
28
|
-
'hostname': '
|
|
28
|
+
'hostname': 'woox.io',
|
|
29
29
|
'has': {
|
|
30
30
|
'CORS': undefined,
|
|
31
31
|
'spot': true,
|
|
@@ -134,24 +134,24 @@ export default class woo extends Exchange {
|
|
|
134
134
|
'urls': {
|
|
135
135
|
'logo': 'https://user-images.githubusercontent.com/1294454/150730761-1a00e5e0-d28c-480f-9e65-089ce3e6ef3b.jpg',
|
|
136
136
|
'api': {
|
|
137
|
-
'pub': 'https://api-pub.
|
|
137
|
+
'pub': 'https://api-pub.woox.io',
|
|
138
138
|
'public': 'https://api.{hostname}',
|
|
139
139
|
'private': 'https://api.{hostname}',
|
|
140
140
|
},
|
|
141
141
|
'test': {
|
|
142
|
-
'pub': 'https://api-pub.staging.
|
|
143
|
-
'public': 'https://api.staging.
|
|
144
|
-
'private': 'https://api.staging.
|
|
142
|
+
'pub': 'https://api-pub.staging.woox.io',
|
|
143
|
+
'public': 'https://api.staging.woox.io',
|
|
144
|
+
'private': 'https://api.staging.woox.io',
|
|
145
145
|
},
|
|
146
|
-
'www': 'https://
|
|
146
|
+
'www': 'https://woox.io/',
|
|
147
147
|
'doc': [
|
|
148
|
-
'https://docs.
|
|
148
|
+
'https://docs.woox.io/',
|
|
149
149
|
],
|
|
150
150
|
'fees': [
|
|
151
|
-
'https://support.
|
|
151
|
+
'https://support.woox.io/hc/en-001/articles/4404611795353--Trading-Fees',
|
|
152
152
|
],
|
|
153
153
|
'referral': {
|
|
154
|
-
'url': 'https://
|
|
154
|
+
'url': 'https://woox.io/register?ref=DIJT0CNL',
|
|
155
155
|
'discount': 0.35,
|
|
156
156
|
},
|
|
157
157
|
},
|
|
@@ -349,7 +349,7 @@ export default class woo extends Exchange {
|
|
|
349
349
|
* @method
|
|
350
350
|
* @name woo#fetchStatus
|
|
351
351
|
* @description the latest known information on the availability of the exchange API
|
|
352
|
-
* @see https://docs.
|
|
352
|
+
* @see https://docs.woox.io/#get-system-maintenance-status-public
|
|
353
353
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
354
354
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
355
355
|
*/
|
|
@@ -388,7 +388,7 @@ export default class woo extends Exchange {
|
|
|
388
388
|
* @method
|
|
389
389
|
* @name woo#fetchTime
|
|
390
390
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
391
|
-
* @see https://docs.
|
|
391
|
+
* @see https://docs.woox.io/#get-system-maintenance-status-public
|
|
392
392
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
393
393
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
394
394
|
*/
|
|
@@ -410,7 +410,7 @@ export default class woo extends Exchange {
|
|
|
410
410
|
* @method
|
|
411
411
|
* @name woo#fetchMarkets
|
|
412
412
|
* @description retrieves data on all markets for woo
|
|
413
|
-
* @see https://docs.
|
|
413
|
+
* @see https://docs.woox.io/#exchange-information
|
|
414
414
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
415
415
|
* @returns {object[]} an array of objects representing market data
|
|
416
416
|
*/
|
|
@@ -528,7 +528,7 @@ export default class woo extends Exchange {
|
|
|
528
528
|
* @method
|
|
529
529
|
* @name woo#fetchTrades
|
|
530
530
|
* @description get the list of most recent trades for a particular symbol
|
|
531
|
-
* @see https://docs.
|
|
531
|
+
* @see https://docs.woox.io/#market-trades-public
|
|
532
532
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
533
533
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
534
534
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -659,7 +659,7 @@ export default class woo extends Exchange {
|
|
|
659
659
|
* @method
|
|
660
660
|
* @name woo#fetchTradingFees
|
|
661
661
|
* @description fetch the trading fees for multiple markets
|
|
662
|
-
* @see https://docs.
|
|
662
|
+
* @see https://docs.woox.io/#get-account-information-new
|
|
663
663
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
664
664
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
665
665
|
*/
|
|
@@ -715,7 +715,7 @@ export default class woo extends Exchange {
|
|
|
715
715
|
* @method
|
|
716
716
|
* @name woo#fetchCurrencies
|
|
717
717
|
* @description fetches all available currencies on an exchange
|
|
718
|
-
* @see https://docs.
|
|
718
|
+
* @see https://docs.woox.io/#available-token-public
|
|
719
719
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
720
720
|
* @returns {object} an associative dictionary of currencies
|
|
721
721
|
*/
|
|
@@ -852,7 +852,7 @@ export default class woo extends Exchange {
|
|
|
852
852
|
* @method
|
|
853
853
|
* @name woo#createMarketBuyOrderWithCost
|
|
854
854
|
* @description create a market buy order by providing the symbol and cost
|
|
855
|
-
* @see https://docs.
|
|
855
|
+
* @see https://docs.woox.io/#send-order
|
|
856
856
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
857
857
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
858
858
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -870,7 +870,7 @@ export default class woo extends Exchange {
|
|
|
870
870
|
* @method
|
|
871
871
|
* @name woo#createMarketSellOrderWithCost
|
|
872
872
|
* @description create a market sell order by providing the symbol and cost
|
|
873
|
-
* @see https://docs.
|
|
873
|
+
* @see https://docs.woox.io/#send-order
|
|
874
874
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
875
875
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
876
876
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -888,7 +888,7 @@ export default class woo extends Exchange {
|
|
|
888
888
|
* @method
|
|
889
889
|
* @name woo#createTrailingAmountOrder
|
|
890
890
|
* @description create a trailing order by providing the symbol, type, side, amount, price and trailingAmount
|
|
891
|
-
* @see https://docs.
|
|
891
|
+
* @see https://docs.woox.io/#send-algo-order
|
|
892
892
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
893
893
|
* @param {string} type 'market' or 'limit'
|
|
894
894
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -914,7 +914,7 @@ export default class woo extends Exchange {
|
|
|
914
914
|
* @method
|
|
915
915
|
* @name woo#createTrailingPercentOrder
|
|
916
916
|
* @description create a trailing order by providing the symbol, type, side, amount, price and trailingPercent
|
|
917
|
-
* @see https://docs.
|
|
917
|
+
* @see https://docs.woox.io/#send-algo-order
|
|
918
918
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
919
919
|
* @param {string} type 'market' or 'limit'
|
|
920
920
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -940,8 +940,8 @@ export default class woo extends Exchange {
|
|
|
940
940
|
* @method
|
|
941
941
|
* @name woo#createOrder
|
|
942
942
|
* @description create a trade order
|
|
943
|
-
* @see https://docs.
|
|
944
|
-
* @see https://docs.
|
|
943
|
+
* @see https://docs.woox.io/#send-order
|
|
944
|
+
* @see https://docs.woox.io/#send-algo-order
|
|
945
945
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
946
946
|
* @param {string} type 'market' or 'limit'
|
|
947
947
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -1150,10 +1150,10 @@ export default class woo extends Exchange {
|
|
|
1150
1150
|
* @method
|
|
1151
1151
|
* @name woo#editOrder
|
|
1152
1152
|
* @description edit a trade order
|
|
1153
|
-
* @see https://docs.
|
|
1154
|
-
* @see https://docs.
|
|
1155
|
-
* @see https://docs.
|
|
1156
|
-
* @see https://docs.
|
|
1153
|
+
* @see https://docs.woox.io/#edit-order
|
|
1154
|
+
* @see https://docs.woox.io/#edit-order-by-client_order_id
|
|
1155
|
+
* @see https://docs.woox.io/#edit-algo-order
|
|
1156
|
+
* @see https://docs.woox.io/#edit-algo-order-by-client_order_id
|
|
1157
1157
|
* @param {string} id order id
|
|
1158
1158
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
1159
1159
|
* @param {string} type 'market' or 'limit'
|
|
@@ -1246,9 +1246,9 @@ export default class woo extends Exchange {
|
|
|
1246
1246
|
/**
|
|
1247
1247
|
* @method
|
|
1248
1248
|
* @name woo#cancelOrder
|
|
1249
|
-
* @see https://docs.
|
|
1250
|
-
* @see https://docs.
|
|
1251
|
-
* @see https://docs.
|
|
1249
|
+
* @see https://docs.woox.io/#cancel-algo-order
|
|
1250
|
+
* @see https://docs.woox.io/#cancel-order
|
|
1251
|
+
* @see https://docs.woox.io/#cancel-order-by-client_order_id
|
|
1252
1252
|
* @description cancels an open order
|
|
1253
1253
|
* @param {string} id order id
|
|
1254
1254
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
@@ -1303,9 +1303,9 @@ export default class woo extends Exchange {
|
|
|
1303
1303
|
/**
|
|
1304
1304
|
* @method
|
|
1305
1305
|
* @name woo#cancelAllOrders
|
|
1306
|
-
* @see https://docs.
|
|
1307
|
-
* @see https://docs.
|
|
1308
|
-
* @see https://docs.
|
|
1306
|
+
* @see https://docs.woox.io/#cancel-all-pending-orders
|
|
1307
|
+
* @see https://docs.woox.io/#cancel-orders
|
|
1308
|
+
* @see https://docs.woox.io/#cancel-all-pending-algo-orders
|
|
1309
1309
|
* @description cancel all open orders in a market
|
|
1310
1310
|
* @param {string} symbol unified market symbol
|
|
1311
1311
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1341,7 +1341,7 @@ export default class woo extends Exchange {
|
|
|
1341
1341
|
* @method
|
|
1342
1342
|
* @name woo#cancelAllOrdersAfter
|
|
1343
1343
|
* @description dead man's switch, cancel all orders after the given timeout
|
|
1344
|
-
* @see https://docs.
|
|
1344
|
+
* @see https://docs.woox.io/#cancel-all-after
|
|
1345
1345
|
* @param {number} timeout time in milliseconds, 0 represents cancel the timer
|
|
1346
1346
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1347
1347
|
* @returns {object} the api result
|
|
@@ -1368,8 +1368,8 @@ export default class woo extends Exchange {
|
|
|
1368
1368
|
/**
|
|
1369
1369
|
* @method
|
|
1370
1370
|
* @name woo#fetchOrder
|
|
1371
|
-
* @see https://docs.
|
|
1372
|
-
* @see https://docs.
|
|
1371
|
+
* @see https://docs.woox.io/#get-algo-order
|
|
1372
|
+
* @see https://docs.woox.io/#get-order
|
|
1373
1373
|
* @description fetches information on an order made by the user
|
|
1374
1374
|
* @param {string} id the order id
|
|
1375
1375
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
@@ -1439,8 +1439,8 @@ export default class woo extends Exchange {
|
|
|
1439
1439
|
* @method
|
|
1440
1440
|
* @name woo#fetchOrders
|
|
1441
1441
|
* @description fetches information on multiple orders made by the user
|
|
1442
|
-
* @see https://docs.
|
|
1443
|
-
* @see https://docs.
|
|
1442
|
+
* @see https://docs.woox.io/#get-orders
|
|
1443
|
+
* @see https://docs.woox.io/#get-algo-orders
|
|
1444
1444
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1445
1445
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1446
1446
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -1534,8 +1534,8 @@ export default class woo extends Exchange {
|
|
|
1534
1534
|
* @method
|
|
1535
1535
|
* @name woo#fetchOpenOrders
|
|
1536
1536
|
* @description fetches information on multiple orders made by the user
|
|
1537
|
-
* @see https://docs.
|
|
1538
|
-
* @see https://docs.
|
|
1537
|
+
* @see https://docs.woox.io/#get-orders
|
|
1538
|
+
* @see https://docs.woox.io/#get-algo-orders
|
|
1539
1539
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1540
1540
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1541
1541
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -1556,8 +1556,8 @@ export default class woo extends Exchange {
|
|
|
1556
1556
|
* @method
|
|
1557
1557
|
* @name woo#fetchClosedOrders
|
|
1558
1558
|
* @description fetches information on multiple orders made by the user
|
|
1559
|
-
* @see https://docs.
|
|
1560
|
-
* @see https://docs.
|
|
1559
|
+
* @see https://docs.woox.io/#get-orders
|
|
1560
|
+
* @see https://docs.woox.io/#get-algo-orders
|
|
1561
1561
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1562
1562
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1563
1563
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -1714,7 +1714,7 @@ export default class woo extends Exchange {
|
|
|
1714
1714
|
* @method
|
|
1715
1715
|
* @name woo#fetchOrderBook
|
|
1716
1716
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1717
|
-
* @see https://docs.
|
|
1717
|
+
* @see https://docs.woox.io/#orderbook-snapshot-public
|
|
1718
1718
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1719
1719
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1720
1720
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1753,8 +1753,8 @@ export default class woo extends Exchange {
|
|
|
1753
1753
|
/**
|
|
1754
1754
|
* @method
|
|
1755
1755
|
* @name woo#fetchOHLCV
|
|
1756
|
-
* @see https://docs.
|
|
1757
|
-
* @see https://docs.
|
|
1756
|
+
* @see https://docs.woox.io/#kline-public
|
|
1757
|
+
* @see https://docs.woox.io/#kline-historical-data-public
|
|
1758
1758
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
1759
1759
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
1760
1760
|
* @param {string} timeframe the length of time each candle represents
|
|
@@ -1850,7 +1850,7 @@ export default class woo extends Exchange {
|
|
|
1850
1850
|
* @method
|
|
1851
1851
|
* @name woo#fetchOrderTrades
|
|
1852
1852
|
* @description fetch all the trades made from a single order
|
|
1853
|
-
* @see https://docs.
|
|
1853
|
+
* @see https://docs.woox.io/#get-trades
|
|
1854
1854
|
* @param {string} id order id
|
|
1855
1855
|
* @param {string} symbol unified market symbol
|
|
1856
1856
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -1893,7 +1893,7 @@ export default class woo extends Exchange {
|
|
|
1893
1893
|
* @method
|
|
1894
1894
|
* @name woo#fetchMyTrades
|
|
1895
1895
|
* @description fetch all trades made by the user
|
|
1896
|
-
* @see https://docs.
|
|
1896
|
+
* @see https://docs.woox.io/#get-trades
|
|
1897
1897
|
* @param {string} symbol unified market symbol
|
|
1898
1898
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1899
1899
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -1954,7 +1954,7 @@ export default class woo extends Exchange {
|
|
|
1954
1954
|
* @method
|
|
1955
1955
|
* @name woo#fetchAccounts
|
|
1956
1956
|
* @description fetch all the accounts associated with a profile
|
|
1957
|
-
* @see https://docs.
|
|
1957
|
+
* @see https://docs.woox.io/#get-assets-of-subaccounts
|
|
1958
1958
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1959
1959
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
1960
1960
|
*/
|
|
@@ -2000,7 +2000,7 @@ export default class woo extends Exchange {
|
|
|
2000
2000
|
* @method
|
|
2001
2001
|
* @name woo#fetchBalance
|
|
2002
2002
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
2003
|
-
* @see https://docs.
|
|
2003
|
+
* @see https://docs.woox.io/#get-current-holding-get-balance-new
|
|
2004
2004
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2005
2005
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
2006
2006
|
*/
|
|
@@ -2052,7 +2052,7 @@ export default class woo extends Exchange {
|
|
|
2052
2052
|
* @method
|
|
2053
2053
|
* @name woo#fetchDepositAddress
|
|
2054
2054
|
* @description fetch the deposit address for a currency associated with this account
|
|
2055
|
-
* @see https://docs.
|
|
2055
|
+
* @see https://docs.woox.io/#get-token-deposit-address
|
|
2056
2056
|
* @param {string} code unified currency code
|
|
2057
2057
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2058
2058
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -2145,7 +2145,7 @@ export default class woo extends Exchange {
|
|
|
2145
2145
|
* @method
|
|
2146
2146
|
* @name woo#fetchLedger
|
|
2147
2147
|
* @description fetch the history of changes, actions done by the user or operations that altered balance of the user
|
|
2148
|
-
* @see https://docs.
|
|
2148
|
+
* @see https://docs.woox.io/#get-asset-history
|
|
2149
2149
|
* @param {string} [code] unified currency code, default is undefined
|
|
2150
2150
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2151
2151
|
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
@@ -2211,7 +2211,7 @@ export default class woo extends Exchange {
|
|
|
2211
2211
|
* @method
|
|
2212
2212
|
* @name woo#fetchDeposits
|
|
2213
2213
|
* @description fetch all deposits made to an account
|
|
2214
|
-
* @see https://docs.
|
|
2214
|
+
* @see https://docs.woox.io/#get-asset-history
|
|
2215
2215
|
* @param {string} code unified currency code
|
|
2216
2216
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2217
2217
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -2228,7 +2228,7 @@ export default class woo extends Exchange {
|
|
|
2228
2228
|
* @method
|
|
2229
2229
|
* @name woo#fetchWithdrawals
|
|
2230
2230
|
* @description fetch all withdrawals made from an account
|
|
2231
|
-
* @see https://docs.
|
|
2231
|
+
* @see https://docs.woox.io/#get-asset-history
|
|
2232
2232
|
* @param {string} code unified currency code
|
|
2233
2233
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2234
2234
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -2245,7 +2245,7 @@ export default class woo extends Exchange {
|
|
|
2245
2245
|
* @method
|
|
2246
2246
|
* @name woo#fetchDepositsWithdrawals
|
|
2247
2247
|
* @description fetch history of deposits and withdrawals
|
|
2248
|
-
* @see https://docs.
|
|
2248
|
+
* @see https://docs.woox.io/#get-asset-history
|
|
2249
2249
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2250
2250
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2251
2251
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
@@ -2320,7 +2320,7 @@ export default class woo extends Exchange {
|
|
|
2320
2320
|
* @method
|
|
2321
2321
|
* @name woo#transfer
|
|
2322
2322
|
* @description transfer currency internally between wallets on the same account
|
|
2323
|
-
* @see https://docs.
|
|
2323
|
+
* @see https://docs.woox.io/#get-transfer-history
|
|
2324
2324
|
* @param {string} code unified currency code
|
|
2325
2325
|
* @param {float} amount amount to transfer
|
|
2326
2326
|
* @param {string} fromAccount account to transfer from
|
|
@@ -2358,7 +2358,7 @@ export default class woo extends Exchange {
|
|
|
2358
2358
|
* @method
|
|
2359
2359
|
* @name woo#fetchTransfers
|
|
2360
2360
|
* @description fetch a history of internal transfers made on an account
|
|
2361
|
-
* @see https://docs.
|
|
2361
|
+
* @see https://docs.woox.io/#get-transfer-history
|
|
2362
2362
|
* @param {string} code unified currency code of the currency transferred
|
|
2363
2363
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
2364
2364
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
@@ -2464,7 +2464,7 @@ export default class woo extends Exchange {
|
|
|
2464
2464
|
* @method
|
|
2465
2465
|
* @name woo#withdraw
|
|
2466
2466
|
* @description make a withdrawal
|
|
2467
|
-
* @see https://docs.
|
|
2467
|
+
* @see https://docs.woox.io/#token-withdraw
|
|
2468
2468
|
* @param {string} code unified currency code
|
|
2469
2469
|
* @param {float} amount the amount to withdraw
|
|
2470
2470
|
* @param {string} address the address to withdraw to
|
|
@@ -2507,7 +2507,7 @@ export default class woo extends Exchange {
|
|
|
2507
2507
|
* @method
|
|
2508
2508
|
* @name woo#repayMargin
|
|
2509
2509
|
* @description repay borrowed margin and interest
|
|
2510
|
-
* @see https://docs.
|
|
2510
|
+
* @see https://docs.woox.io/#repay-interest
|
|
2511
2511
|
* @param {string} code unified currency code of the currency to repay
|
|
2512
2512
|
* @param {float} amount the amount to repay
|
|
2513
2513
|
* @param {string} symbol not used by woo.repayMargin ()
|
|
@@ -2688,7 +2688,7 @@ export default class woo extends Exchange {
|
|
|
2688
2688
|
* @method
|
|
2689
2689
|
* @name woo#fetchFundingHistory
|
|
2690
2690
|
* @description fetch the history of funding payments paid and received on this account
|
|
2691
|
-
* @see https://docs.
|
|
2691
|
+
* @see https://docs.woox.io/#get-funding-fee-history
|
|
2692
2692
|
* @param {string} [symbol] unified market symbol
|
|
2693
2693
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
2694
2694
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
@@ -2876,7 +2876,7 @@ export default class woo extends Exchange {
|
|
|
2876
2876
|
* @method
|
|
2877
2877
|
* @name woo#fetchFundingRateHistory
|
|
2878
2878
|
* @description fetches historical funding rate prices
|
|
2879
|
-
* @see https://docs.
|
|
2879
|
+
* @see https://docs.woox.io/#get-funding-rate-history-for-one-market-public
|
|
2880
2880
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2881
2881
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2882
2882
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
@@ -2943,7 +2943,7 @@ export default class woo extends Exchange {
|
|
|
2943
2943
|
* @method
|
|
2944
2944
|
* @name woo#setPositionMode
|
|
2945
2945
|
* @description set hedged to true or false for a market
|
|
2946
|
-
* @see https://docs.
|
|
2946
|
+
* @see https://docs.woox.io/#update-position-mode
|
|
2947
2947
|
* @param {bool} hedged set to true to use HEDGE_MODE, false for ONE_WAY
|
|
2948
2948
|
* @param {string} symbol not used by woo setPositionMode
|
|
2949
2949
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -2974,7 +2974,7 @@ export default class woo extends Exchange {
|
|
|
2974
2974
|
* @method
|
|
2975
2975
|
* @name woo#fetchLeverage
|
|
2976
2976
|
* @description fetch the set leverage for a market
|
|
2977
|
-
* @see https://docs.
|
|
2977
|
+
* @see https://docs.woox.io/#get-account-information-new
|
|
2978
2978
|
* @param {string} symbol unified market symbol
|
|
2979
2979
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2980
2980
|
* @param {string} [params.marginMode] *for swap markets only* 'cross' or 'isolated'
|
|
@@ -3106,8 +3106,8 @@ export default class woo extends Exchange {
|
|
|
3106
3106
|
* @method
|
|
3107
3107
|
* @name woo#setLeverage
|
|
3108
3108
|
* @description set the level of leverage for a market
|
|
3109
|
-
* @see https://docs.
|
|
3110
|
-
* @see https://docs.
|
|
3109
|
+
* @see https://docs.woox.io/#update-leverage-setting
|
|
3110
|
+
* @see https://docs.woox.io/#update-futures-leverage-setting
|
|
3111
3111
|
* @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)
|
|
3112
3112
|
* @param {string} [symbol] unified market symbol (is mandatory for swap markets)
|
|
3113
3113
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -3142,7 +3142,7 @@ export default class woo extends Exchange {
|
|
|
3142
3142
|
* @method
|
|
3143
3143
|
* @name woo#addMargin
|
|
3144
3144
|
* @description add margin
|
|
3145
|
-
* @see https://docs.
|
|
3145
|
+
* @see https://docs.woox.io/#update-isolated-margin-setting
|
|
3146
3146
|
* @param {string} symbol unified market symbol
|
|
3147
3147
|
* @param {float} amount amount of margin to add
|
|
3148
3148
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -3156,7 +3156,7 @@ export default class woo extends Exchange {
|
|
|
3156
3156
|
* @method
|
|
3157
3157
|
* @name woo#reduceMargin
|
|
3158
3158
|
* @description remove margin from a position
|
|
3159
|
-
* @see https://docs.
|
|
3159
|
+
* @see https://docs.woox.io/#update-isolated-margin-setting
|
|
3160
3160
|
* @param {string} symbol unified market symbol
|
|
3161
3161
|
* @param {float} amount amount of margin to remove
|
|
3162
3162
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -3372,7 +3372,7 @@ export default class woo extends Exchange {
|
|
|
3372
3372
|
* @method
|
|
3373
3373
|
* @name woo#fetchConvertQuote
|
|
3374
3374
|
* @description fetch a quote for converting from one currency to another
|
|
3375
|
-
* @see https://docs.
|
|
3375
|
+
* @see https://docs.woox.io/#get-quote-rfq
|
|
3376
3376
|
* @param {string} fromCode the currency that you want to sell and convert from
|
|
3377
3377
|
* @param {string} toCode the currency that you want to buy and convert into
|
|
3378
3378
|
* @param {float} [amount] how much you want to trade in units of the from currency
|
|
@@ -3414,7 +3414,7 @@ export default class woo extends Exchange {
|
|
|
3414
3414
|
* @method
|
|
3415
3415
|
* @name woo#createConvertTrade
|
|
3416
3416
|
* @description convert from one currency to another
|
|
3417
|
-
* @see https://docs.
|
|
3417
|
+
* @see https://docs.woox.io/#send-quote-rft
|
|
3418
3418
|
* @param {string} id the id of the trade that you want to make
|
|
3419
3419
|
* @param {string} fromCode the currency that you want to sell and convert from
|
|
3420
3420
|
* @param {string} toCode the currency that you want to buy and convert into
|
|
@@ -3445,7 +3445,7 @@ export default class woo extends Exchange {
|
|
|
3445
3445
|
* @method
|
|
3446
3446
|
* @name woo#fetchConvertTrade
|
|
3447
3447
|
* @description fetch the data for a conversion trade
|
|
3448
|
-
* @see https://docs.
|
|
3448
|
+
* @see https://docs.woox.io/#get-quote-trade
|
|
3449
3449
|
* @param {string} id the id of the trade that you want to fetch
|
|
3450
3450
|
* @param {string} [code] the unified currency code of the conversion trade
|
|
3451
3451
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -3488,7 +3488,7 @@ export default class woo extends Exchange {
|
|
|
3488
3488
|
* @method
|
|
3489
3489
|
* @name woo#fetchConvertTradeHistory
|
|
3490
3490
|
* @description fetch the users history of conversion trades
|
|
3491
|
-
* @see https://docs.
|
|
3491
|
+
* @see https://docs.woox.io/#get-quote-trades
|
|
3492
3492
|
* @param {string} [code] the unified currency code
|
|
3493
3493
|
* @param {int} [since] the earliest time in ms to fetch conversions for
|
|
3494
3494
|
* @param {int} [limit] the maximum number of conversion structures to retrieve
|
|
@@ -3589,7 +3589,7 @@ export default class woo extends Exchange {
|
|
|
3589
3589
|
* @method
|
|
3590
3590
|
* @name woo#fetchConvertCurrencies
|
|
3591
3591
|
* @description fetches all available currencies that can be converted
|
|
3592
|
-
* @see https://docs.
|
|
3592
|
+
* @see https://docs.woox.io/#get-quote-asset-info
|
|
3593
3593
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3594
3594
|
* @returns {object} an associative dictionary of currencies
|
|
3595
3595
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccxt",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.34",
|
|
4
4
|
"description": "A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges",
|
|
5
5
|
"unpkg": "dist/ccxt.browser.min.js",
|
|
6
6
|
"type": "module",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"response-php-sync": "npm run ti-php -- --responseTests --sync",
|
|
128
128
|
"response-php": "npm run response-php-sync && npm run response-php-async",
|
|
129
129
|
"response-tests": "npm run response-js && npm run response-py && npm run response-php && npm run response-cs",
|
|
130
|
-
"static-
|
|
130
|
+
"static-updater": "node ./utils/update-static-tests-data --update",
|
|
131
131
|
"id-tests-js": "npm run ti-js -- --idTests",
|
|
132
132
|
"id-tests-py": "npm run ti-py -- --idTests",
|
|
133
133
|
"id-tests-php": "npm run ti-php -- --idTests",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"as-table": "1.0.37",
|
|
164
164
|
"asciichart": "^1.5.25",
|
|
165
165
|
"assert": "^2.0.0",
|
|
166
|
-
"ast-transpiler": "^0.0.
|
|
166
|
+
"ast-transpiler": "^0.0.60",
|
|
167
167
|
"docsify": "^4.11.4",
|
|
168
168
|
"eslint": "8.22.0",
|
|
169
169
|
"eslint-config-airbnb-base": "15.0.0",
|