ccxt 4.3.17 → 4.3.19
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 -5
- package/dist/cjs/ccxt.js +6 -1
- package/dist/cjs/src/abstract/woofipro.js +9 -0
- package/dist/cjs/src/ascendex.js +3 -4
- package/dist/cjs/src/base/Exchange.js +43 -3
- package/dist/cjs/src/base/functions/crypto.js +10 -3
- package/dist/cjs/src/base/functions/encode.js +6 -3
- package/dist/cjs/src/base/functions/number.js +8 -5
- package/dist/cjs/src/base/functions/rsa.js +5 -5
- package/dist/cjs/src/bigone.js +1 -1
- package/dist/cjs/src/binance.js +32 -8
- package/dist/cjs/src/bitfinex.js +25 -1
- package/dist/cjs/src/bitfinex2.js +59 -51
- package/dist/cjs/src/bitget.js +1 -5
- package/dist/cjs/src/bitmart.js +3 -3
- package/dist/cjs/src/bitstamp.js +1 -3
- package/dist/cjs/src/bybit.js +1 -0
- package/dist/cjs/src/coinex.js +321 -537
- package/dist/cjs/src/coinlist.js +1 -2
- package/dist/cjs/src/deribit.js +1 -1
- package/dist/cjs/src/hollaex.js +3 -3
- package/dist/cjs/src/htx.js +1 -1
- package/dist/cjs/src/indodax.js +1 -1
- package/dist/cjs/src/latoken.js +1 -1
- package/dist/cjs/src/mexc.js +1 -1
- package/dist/cjs/src/novadax.js +0 -1
- package/dist/cjs/src/okx.js +17 -0
- package/dist/cjs/src/poloniex.js +1 -2
- package/dist/cjs/src/pro/bitget.js +136 -192
- package/dist/cjs/src/pro/bybit.js +4 -2
- package/dist/cjs/src/pro/coinbaseinternational.js +9 -1
- package/dist/cjs/src/pro/okx.js +85 -0
- package/dist/cjs/src/pro/woofipro.js +1263 -0
- package/dist/cjs/src/wavesexchange.js +2 -2
- package/dist/cjs/src/woo.js +17 -3
- package/dist/cjs/src/woofipro.js +2698 -0
- package/js/ccxt.d.ts +8 -2
- package/js/ccxt.js +6 -2
- package/js/src/abstract/bybit.d.ts +1 -0
- package/js/src/abstract/okx.d.ts +1 -0
- package/js/src/abstract/woofipro.d.ts +122 -0
- package/js/src/abstract/woofipro.js +11 -0
- package/js/src/ace.d.ts +2 -2
- package/js/src/ascendex.d.ts +5 -15
- package/js/src/ascendex.js +3 -4
- package/js/src/base/Exchange.d.ts +27 -18
- package/js/src/base/Exchange.js +43 -3
- package/js/src/base/functions/crypto.d.ts +1 -1
- package/js/src/base/functions/crypto.js +10 -3
- package/js/src/base/functions/encode.d.ts +1 -1
- package/js/src/base/functions/encode.js +6 -3
- package/js/src/base/functions/number.d.ts +1 -1
- package/js/src/base/functions/number.js +8 -5
- package/js/src/base/functions/rsa.js +6 -6
- package/js/src/base/types.d.ts +4 -0
- package/js/src/bigone.d.ts +4 -14
- package/js/src/bigone.js +1 -1
- package/js/src/binance.d.ts +13 -71
- package/js/src/binance.js +32 -8
- package/js/src/binancecoinm.d.ts +2 -22
- package/js/src/binanceusdm.d.ts +2 -22
- package/js/src/bingx.d.ts +4 -14
- package/js/src/bit2c.d.ts +2 -2
- package/js/src/bitbank.d.ts +2 -2
- package/js/src/bitbns.d.ts +2 -2
- package/js/src/bitfinex.d.ts +6 -16
- package/js/src/bitfinex.js +25 -1
- package/js/src/bitfinex2.d.ts +6 -16
- package/js/src/bitfinex2.js +59 -51
- package/js/src/bitflyer.d.ts +2 -2
- package/js/src/bitget.d.ts +7 -17
- package/js/src/bitget.js +1 -5
- package/js/src/bithumb.d.ts +3 -3
- package/js/src/bitmart.d.ts +5 -14
- package/js/src/bitmart.js +3 -3
- package/js/src/bitmex.d.ts +4 -4
- package/js/src/bitopro.d.ts +2 -2
- package/js/src/bitrue.d.ts +5 -5
- package/js/src/bitso.d.ts +2 -2
- package/js/src/bitstamp.d.ts +3 -3
- package/js/src/bitstamp.js +1 -3
- package/js/src/bitteam.d.ts +2 -2
- package/js/src/bitvavo.d.ts +5 -5
- package/js/src/bl3p.d.ts +2 -2
- package/js/src/blockchaincom.d.ts +2 -2
- package/js/src/blofin.d.ts +4 -14
- package/js/src/btcalpha.d.ts +2 -2
- package/js/src/btcbox.d.ts +2 -2
- package/js/src/btcmarkets.d.ts +2 -2
- package/js/src/btcturk.d.ts +2 -2
- package/js/src/bybit.d.ts +8 -56
- package/js/src/bybit.js +1 -0
- package/js/src/cex.d.ts +2 -2
- package/js/src/coinbase.d.ts +4 -4
- package/js/src/coinbasepro.d.ts +3 -3
- package/js/src/coincheck.d.ts +2 -2
- package/js/src/coinex.d.ts +6 -16
- package/js/src/coinex.js +321 -537
- package/js/src/coinlist.d.ts +5 -15
- package/js/src/coinlist.js +1 -2
- package/js/src/coinmate.d.ts +2 -2
- package/js/src/coinmetro.d.ts +3 -3
- package/js/src/coinone.d.ts +2 -2
- package/js/src/coinsph.d.ts +2 -2
- package/js/src/coinspot.d.ts +2 -2
- package/js/src/cryptocom.d.ts +2 -2
- package/js/src/currencycom.d.ts +3 -3
- package/js/src/delta.d.ts +5 -43
- package/js/src/deribit.d.ts +7 -55
- package/js/src/deribit.js +1 -1
- package/js/src/digifinex.d.ts +5 -15
- package/js/src/exmo.d.ts +2 -2
- package/js/src/gate.d.ts +6 -54
- package/js/src/gemini.d.ts +2 -2
- package/js/src/hitbtc.d.ts +4 -14
- package/js/src/hollaex.d.ts +3 -3
- package/js/src/hollaex.js +3 -3
- package/js/src/htx.d.ts +6 -16
- package/js/src/htx.js +1 -1
- package/js/src/huobijp.d.ts +4 -4
- package/js/src/hyperliquid.d.ts +1 -1
- package/js/src/idex.d.ts +3 -3
- package/js/src/independentreserve.d.ts +2 -2
- package/js/src/indodax.d.ts +2 -2
- package/js/src/indodax.js +1 -1
- package/js/src/kraken.d.ts +4 -14
- package/js/src/krakenfutures.d.ts +4 -14
- package/js/src/kucoin.d.ts +5 -15
- package/js/src/kucoinfutures.d.ts +4 -14
- package/js/src/kuna.d.ts +2 -2
- package/js/src/latoken.d.ts +5 -15
- package/js/src/latoken.js +1 -1
- package/js/src/lbank.d.ts +2 -2
- package/js/src/luno.d.ts +2 -2
- package/js/src/lykke.d.ts +2 -2
- package/js/src/mercado.d.ts +2 -2
- package/js/src/mexc.d.ts +8 -28
- package/js/src/mexc.js +1 -1
- package/js/src/ndax.d.ts +2 -2
- package/js/src/novadax.d.ts +4 -15
- package/js/src/novadax.js +0 -1
- package/js/src/okcoin.d.ts +4 -14
- package/js/src/okx.d.ts +10 -68
- package/js/src/okx.js +17 -0
- package/js/src/onetrading.d.ts +2 -2
- package/js/src/paymium.d.ts +4 -14
- package/js/src/phemex.d.ts +5 -15
- package/js/src/poloniex.d.ts +3 -13
- package/js/src/poloniex.js +1 -2
- package/js/src/poloniexfutures.d.ts +2 -2
- package/js/src/pro/bitget.js +137 -193
- package/js/src/pro/bybit.js +4 -2
- package/js/src/pro/coinbaseinternational.d.ts +3 -3
- package/js/src/pro/coinbaseinternational.js +9 -1
- package/js/src/pro/okx.d.ts +4 -1
- package/js/src/pro/okx.js +85 -0
- package/js/src/pro/woofipro.d.ts +47 -0
- package/js/src/pro/woofipro.js +1264 -0
- package/js/src/probit.d.ts +3 -3
- package/js/src/timex.d.ts +2 -2
- package/js/src/tokocrypto.d.ts +3 -3
- package/js/src/upbit.d.ts +2 -2
- package/js/src/wavesexchange.d.ts +3 -3
- package/js/src/wavesexchange.js +2 -2
- package/js/src/wazirx.d.ts +2 -2
- package/js/src/whitebit.d.ts +3 -13
- package/js/src/woo.d.ts +7 -17
- package/js/src/woo.js +17 -3
- package/js/src/woofipro.d.ts +131 -0
- package/js/src/woofipro.js +2699 -0
- package/js/src/yobit.d.ts +2 -2
- package/js/src/zaif.d.ts +2 -2
- package/js/src/zonda.d.ts +4 -14
- package/package.json +1 -1
|
@@ -1238,7 +1238,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1238
1238
|
const amountPrecision = this.numberToString(this.toPrecision(amount, this.numberToString(this.markets[symbol]['precision']['amount'])));
|
|
1239
1239
|
return this.parseToInt(parseFloat(amountPrecision));
|
|
1240
1240
|
}
|
|
1241
|
-
|
|
1241
|
+
customCurrencyToPrecision(code, amount, networkCode = undefined) {
|
|
1242
1242
|
const amountPrecision = this.numberToString(this.toPrecision(amount, this.currencies[code]['precision']));
|
|
1243
1243
|
return this.parseToInt(parseFloat(amountPrecision));
|
|
1244
1244
|
}
|
|
@@ -2523,7 +2523,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
2523
2523
|
const feeAssetId = 'WAVES';
|
|
2524
2524
|
const type = 4; // transfer
|
|
2525
2525
|
const version = 2;
|
|
2526
|
-
const amountInteger = this.
|
|
2526
|
+
const amountInteger = this.customCurrencyToPrecision(code, amount);
|
|
2527
2527
|
const currency = this.currency(code);
|
|
2528
2528
|
const timestamp = this.milliseconds();
|
|
2529
2529
|
const byteArray = [
|
package/dist/cjs/src/woo.js
CHANGED
|
@@ -401,6 +401,7 @@ class woo extends woo$1 {
|
|
|
401
401
|
* @method
|
|
402
402
|
* @name woo#fetchMarkets
|
|
403
403
|
* @description retrieves data on all markets for woo
|
|
404
|
+
* @see https://docs.woo.org/#exchange-information
|
|
404
405
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
405
406
|
* @returns {object[]} an array of objects representing market data
|
|
406
407
|
*/
|
|
@@ -518,6 +519,7 @@ class woo extends woo$1 {
|
|
|
518
519
|
* @method
|
|
519
520
|
* @name woo#fetchTrades
|
|
520
521
|
* @description get the list of most recent trades for a particular symbol
|
|
522
|
+
* @see https://docs.woo.org/#market-trades-public
|
|
521
523
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
522
524
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
523
525
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -700,6 +702,7 @@ class woo extends woo$1 {
|
|
|
700
702
|
* @method
|
|
701
703
|
* @name woo#fetchCurrencies
|
|
702
704
|
* @description fetches all available currencies on an exchange
|
|
705
|
+
* @see https://docs.woo.org/#available-token-public
|
|
703
706
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
704
707
|
* @returns {object} an associative dictionary of currencies
|
|
705
708
|
*/
|
|
@@ -855,6 +858,7 @@ class woo extends woo$1 {
|
|
|
855
858
|
* @method
|
|
856
859
|
* @name woo#createTrailingAmountOrder
|
|
857
860
|
* @description create a trailing order by providing the symbol, type, side, amount, price and trailingAmount
|
|
861
|
+
* @see https://docs.woo.org/#send-algo-order
|
|
858
862
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
859
863
|
* @param {string} type 'market' or 'limit'
|
|
860
864
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -880,6 +884,7 @@ class woo extends woo$1 {
|
|
|
880
884
|
* @method
|
|
881
885
|
* @name woo#createTrailingPercentOrder
|
|
882
886
|
* @description create a trailing order by providing the symbol, type, side, amount, price and trailingPercent
|
|
887
|
+
* @see https://docs.woo.org/#send-algo-order
|
|
883
888
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
884
889
|
* @param {string} type 'market' or 'limit'
|
|
885
890
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -1670,6 +1675,7 @@ class woo extends woo$1 {
|
|
|
1670
1675
|
* @method
|
|
1671
1676
|
* @name woo#fetchOrderBook
|
|
1672
1677
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1678
|
+
* @see https://docs.woo.org/#orderbook-snapshot-public
|
|
1673
1679
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1674
1680
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1675
1681
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1805,6 +1811,7 @@ class woo extends woo$1 {
|
|
|
1805
1811
|
* @method
|
|
1806
1812
|
* @name woo#fetchOrderTrades
|
|
1807
1813
|
* @description fetch all the trades made from a single order
|
|
1814
|
+
* @see https://docs.woo.org/#get-trades
|
|
1808
1815
|
* @param {string} id order id
|
|
1809
1816
|
* @param {string} symbol unified market symbol
|
|
1810
1817
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -1846,8 +1853,8 @@ class woo extends woo$1 {
|
|
|
1846
1853
|
/**
|
|
1847
1854
|
* @method
|
|
1848
1855
|
* @name woo#fetchMyTrades
|
|
1849
|
-
* @see https://docs.woo.org/#get-trades
|
|
1850
1856
|
* @description fetch all trades made by the user
|
|
1857
|
+
* @see https://docs.woo.org/#get-trades
|
|
1851
1858
|
* @param {string} symbol unified market symbol
|
|
1852
1859
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1853
1860
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -1908,6 +1915,7 @@ class woo extends woo$1 {
|
|
|
1908
1915
|
* @method
|
|
1909
1916
|
* @name woo#fetchAccounts
|
|
1910
1917
|
* @description fetch all the accounts associated with a profile
|
|
1918
|
+
* @see https://docs.woo.org/#get-assets-of-subaccounts
|
|
1911
1919
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1912
1920
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
1913
1921
|
*/
|
|
@@ -2005,6 +2013,7 @@ class woo extends woo$1 {
|
|
|
2005
2013
|
* @method
|
|
2006
2014
|
* @name woo#fetchDepositAddress
|
|
2007
2015
|
* @description fetch the deposit address for a currency associated with this account
|
|
2016
|
+
* @see https://docs.woo.org/#get-token-deposit-address
|
|
2008
2017
|
* @param {string} code unified currency code
|
|
2009
2018
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2010
2019
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -2090,13 +2099,14 @@ class woo extends woo$1 {
|
|
|
2090
2099
|
// "meta": { total: '1', records_per_page: "25", current_page: "1" },
|
|
2091
2100
|
// "success": true
|
|
2092
2101
|
// }
|
|
2093
|
-
return [currency, this.
|
|
2102
|
+
return [currency, this.safeList(response, 'rows', [])];
|
|
2094
2103
|
}
|
|
2095
2104
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2096
2105
|
/**
|
|
2097
2106
|
* @method
|
|
2098
2107
|
* @name woo#fetchLedger
|
|
2099
2108
|
* @description fetch the history of changes, actions done by the user or operations that altered balance of the user
|
|
2109
|
+
* @see https://docs.woo.org/#get-asset-history
|
|
2100
2110
|
* @param {string} code unified currency code, default is undefined
|
|
2101
2111
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2102
2112
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
@@ -2161,6 +2171,7 @@ class woo extends woo$1 {
|
|
|
2161
2171
|
* @method
|
|
2162
2172
|
* @name woo#fetchDeposits
|
|
2163
2173
|
* @description fetch all deposits made to an account
|
|
2174
|
+
* @see https://docs.woo.org/#get-asset-history
|
|
2164
2175
|
* @param {string} code unified currency code
|
|
2165
2176
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2166
2177
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -2177,6 +2188,7 @@ class woo extends woo$1 {
|
|
|
2177
2188
|
* @method
|
|
2178
2189
|
* @name woo#fetchWithdrawals
|
|
2179
2190
|
* @description fetch all withdrawals made from an account
|
|
2191
|
+
* @see https://docs.woo.org/#get-asset-history
|
|
2180
2192
|
* @param {string} code unified currency code
|
|
2181
2193
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2182
2194
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -2193,6 +2205,7 @@ class woo extends woo$1 {
|
|
|
2193
2205
|
* @method
|
|
2194
2206
|
* @name woo#fetchDepositsWithdrawals
|
|
2195
2207
|
* @description fetch history of deposits and withdrawals
|
|
2208
|
+
* @see https://docs.woo.org/#get-asset-history
|
|
2196
2209
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2197
2210
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2198
2211
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
@@ -2266,8 +2279,8 @@ class woo extends woo$1 {
|
|
|
2266
2279
|
/**
|
|
2267
2280
|
* @method
|
|
2268
2281
|
* @name woo#transfer
|
|
2269
|
-
* @see https://docs.woo.org/#get-transfer-history
|
|
2270
2282
|
* @description transfer currency internally between wallets on the same account
|
|
2283
|
+
* @see https://docs.woo.org/#get-transfer-history
|
|
2271
2284
|
* @param {string} code unified currency code
|
|
2272
2285
|
* @param {float} amount amount to transfer
|
|
2273
2286
|
* @param {string} fromAccount account to transfer from
|
|
@@ -2411,6 +2424,7 @@ class woo extends woo$1 {
|
|
|
2411
2424
|
* @method
|
|
2412
2425
|
* @name woo#withdraw
|
|
2413
2426
|
* @description make a withdrawal
|
|
2427
|
+
* @see https://docs.woo.org/#token-withdraw
|
|
2414
2428
|
* @param {string} code unified currency code
|
|
2415
2429
|
* @param {float} amount the amount to withdraw
|
|
2416
2430
|
* @param {string} address the address to withdraw to
|