ccxt 4.1.3 → 4.1.4
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 +3 -3
- package/dist/ccxt.browser.js +81 -5
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/Exchange.js +3 -0
- package/dist/cjs/src/idex.js +1 -1
- package/dist/cjs/src/kraken.js +37 -1
- package/dist/cjs/src/kucoinfutures.js +1 -1
- package/dist/cjs/src/okx.js +37 -0
- package/dist/cjs/src/whitebit.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/base/Exchange.js +3 -0
- package/js/src/idex.js +1 -1
- package/js/src/kraken.js +37 -1
- package/js/src/kucoinfutures.js +1 -1
- package/js/src/okx.js +37 -0
- package/js/src/whitebit.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -214,13 +214,13 @@ console.log(version, Object.keys(exchanges));
|
|
|
214
214
|
|
|
215
215
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
|
216
216
|
|
|
217
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.1.
|
|
218
|
-
* unpkg: https://unpkg.com/ccxt@4.1.
|
|
217
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.1.4/dist/ccxt.browser.js
|
|
218
|
+
* unpkg: https://unpkg.com/ccxt@4.1.4/dist/ccxt.browser.js
|
|
219
219
|
|
|
220
220
|
CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
|
|
221
221
|
|
|
222
222
|
```HTML
|
|
223
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.1.
|
|
223
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.1.4/dist/ccxt.browser.js"></script>
|
|
224
224
|
```
|
|
225
225
|
|
|
226
226
|
Creates a global `ccxt` object:
|
package/dist/ccxt.browser.js
CHANGED
|
@@ -8206,6 +8206,9 @@ class Exchange {
|
|
|
8206
8206
|
if (!tradesAreParsed) {
|
|
8207
8207
|
trades = this.parseTrades(rawTrades, market);
|
|
8208
8208
|
}
|
|
8209
|
+
else {
|
|
8210
|
+
trades = rawTrades;
|
|
8211
|
+
}
|
|
8209
8212
|
this.number = oldNumber;
|
|
8210
8213
|
let tradesLength = 0;
|
|
8211
8214
|
const isArray = Array.isArray(trades);
|
|
@@ -138402,7 +138405,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
138402
138405
|
//
|
|
138403
138406
|
// { serverTime: '1655258263236' }
|
|
138404
138407
|
//
|
|
138405
|
-
return this.
|
|
138408
|
+
return this.safeInteger(response, 'serverTime');
|
|
138406
138409
|
}
|
|
138407
138410
|
async fetchWithdrawal(id, code = undefined, params = {}) {
|
|
138408
138411
|
/**
|
|
@@ -140846,6 +140849,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
140846
140849
|
* @method
|
|
140847
140850
|
* @name kraken#fetchMarkets
|
|
140848
140851
|
* @description retrieves data on all markets for kraken
|
|
140852
|
+
* @see https://docs.kraken.com/rest/#tag/Market-Data/operation/getTradableAssetPairs
|
|
140849
140853
|
* @param {object} [params] extra parameters specific to the exchange api endpoint
|
|
140850
140854
|
* @returns {object[]} an array of objects representing market data
|
|
140851
140855
|
*/
|
|
@@ -141031,6 +141035,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
141031
141035
|
* @method
|
|
141032
141036
|
* @name kraken#fetchCurrencies
|
|
141033
141037
|
* @description fetches all available currencies on an exchange
|
|
141038
|
+
* @see https://docs.kraken.com/rest/#tag/Market-Data/operation/getAssetInfo
|
|
141034
141039
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
141035
141040
|
* @returns {object} an associative dictionary of currencies
|
|
141036
141041
|
*/
|
|
@@ -141089,6 +141094,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
141089
141094
|
* @method
|
|
141090
141095
|
* @name kraken#fetchTradingFee
|
|
141091
141096
|
* @description fetch the trading fees for a market
|
|
141097
|
+
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getTradeVolume
|
|
141092
141098
|
* @param {string} symbol unified market symbol
|
|
141093
141099
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
141094
141100
|
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
@@ -141157,6 +141163,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
141157
141163
|
* @method
|
|
141158
141164
|
* @name kraken#fetchOrderBook
|
|
141159
141165
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
141166
|
+
* @see https://docs.kraken.com/rest/#tag/Market-Data/operation/getOrderBook
|
|
141160
141167
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
141161
141168
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
141162
141169
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
@@ -141259,6 +141266,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
141259
141266
|
* @method
|
|
141260
141267
|
* @name kraken#fetchTickers
|
|
141261
141268
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
141269
|
+
* @see https://docs.kraken.com/rest/#tag/Market-Data/operation/getTickerInformation
|
|
141262
141270
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
141263
141271
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
141264
141272
|
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
@@ -141295,6 +141303,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
141295
141303
|
* @method
|
|
141296
141304
|
* @name kraken#fetchTicker
|
|
141297
141305
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
141306
|
+
* @see https://docs.kraken.com/rest/#tag/Market-Data/operation/getTickerInformation
|
|
141298
141307
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
141299
141308
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
141300
141309
|
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
@@ -141339,6 +141348,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
141339
141348
|
* @method
|
|
141340
141349
|
* @name kraken#fetchOHLCV
|
|
141341
141350
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
141351
|
+
* @see https://docs.kraken.com/rest/#tag/Market-Data/operation/getOHLCData
|
|
141342
141352
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
141343
141353
|
* @param {string} timeframe the length of time each candle represents
|
|
141344
141354
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -141451,6 +141461,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
141451
141461
|
* @method
|
|
141452
141462
|
* @name kraken#fetchLedger
|
|
141453
141463
|
* @description fetch the history of changes, actions done by the user or operations that altered balance of the user
|
|
141464
|
+
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getLedgers
|
|
141454
141465
|
* @param {string} code unified currency code, default is undefined
|
|
141455
141466
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
141456
141467
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
@@ -141629,6 +141640,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
141629
141640
|
* @method
|
|
141630
141641
|
* @name kraken#fetchTrades
|
|
141631
141642
|
* @description get the list of most recent trades for a particular symbol
|
|
141643
|
+
* @see https://docs.kraken.com/rest/#tag/Market-Data/operation/getRecentTrades
|
|
141632
141644
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
141633
141645
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
141634
141646
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -141702,6 +141714,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
141702
141714
|
* @method
|
|
141703
141715
|
* @name kraken#fetchBalance
|
|
141704
141716
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
141717
|
+
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getAccountBalance
|
|
141705
141718
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
141706
141719
|
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
141707
141720
|
*/
|
|
@@ -141945,6 +141958,16 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
141945
141958
|
}
|
|
141946
141959
|
const clientOrderId = this.safeString(order, 'userref');
|
|
141947
141960
|
const rawTrades = this.safeValue(order, 'trades');
|
|
141961
|
+
const trades = [];
|
|
141962
|
+
for (let i = 0; i < rawTrades.length; i++) {
|
|
141963
|
+
const rawTrade = rawTrades[i];
|
|
141964
|
+
if (typeof rawTrade === 'string') {
|
|
141965
|
+
trades.push(this.safeTrade({ 'id': rawTrade, 'orderId': id, 'symbol': symbol, 'info': {} }));
|
|
141966
|
+
}
|
|
141967
|
+
else {
|
|
141968
|
+
trades.push(rawTrade);
|
|
141969
|
+
}
|
|
141970
|
+
}
|
|
141948
141971
|
stopPrice = this.safeNumber(order, 'stopprice', stopPrice);
|
|
141949
141972
|
return this.safeOrder({
|
|
141950
141973
|
'id': id,
|
|
@@ -141968,7 +141991,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
141968
141991
|
'average': average,
|
|
141969
141992
|
'remaining': undefined,
|
|
141970
141993
|
'fee': fee,
|
|
141971
|
-
'trades':
|
|
141994
|
+
'trades': trades,
|
|
141972
141995
|
}, market);
|
|
141973
141996
|
}
|
|
141974
141997
|
orderRequest(method, symbol, type, request, price = undefined, params = {}) {
|
|
@@ -142104,6 +142127,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142104
142127
|
* @method
|
|
142105
142128
|
* @name kraken#fetchOrder
|
|
142106
142129
|
* @description fetches information on an order made by the user
|
|
142130
|
+
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getOrdersInfo
|
|
142107
142131
|
* @param {string} symbol not used by kraken fetchOrder
|
|
142108
142132
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
142109
142133
|
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
@@ -142173,6 +142197,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142173
142197
|
* @method
|
|
142174
142198
|
* @name kraken#fetchOrderTrades
|
|
142175
142199
|
* @description fetch all the trades made from a single order
|
|
142200
|
+
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getTradesInfo
|
|
142176
142201
|
* @param {string} id order id
|
|
142177
142202
|
* @param {string} symbol unified market symbol
|
|
142178
142203
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -142272,6 +142297,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142272
142297
|
* @method
|
|
142273
142298
|
* @name kraken#fetchMyTrades
|
|
142274
142299
|
* @description fetch all trades made by the user
|
|
142300
|
+
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getTradeHistory
|
|
142275
142301
|
* @param {string} symbol unified market symbol
|
|
142276
142302
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
142277
142303
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -142331,6 +142357,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142331
142357
|
* @method
|
|
142332
142358
|
* @name kraken#cancelOrder
|
|
142333
142359
|
* @description cancels an open order
|
|
142360
|
+
* @see https://docs.kraken.com/rest/#tag/Trading/operation/cancelOrder
|
|
142334
142361
|
* @param {string} id order id
|
|
142335
142362
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
142336
142363
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
@@ -142361,6 +142388,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142361
142388
|
* @method
|
|
142362
142389
|
* @name kraken#cancelOrders
|
|
142363
142390
|
* @description cancel multiple orders
|
|
142391
|
+
* @see https://docs.kraken.com/rest/#tag/Trading/operation/cancelOrderBatch
|
|
142364
142392
|
* @param {string[]} ids open orders transaction ID (txid) or user reference (userref)
|
|
142365
142393
|
* @param {string} symbol unified market symbol
|
|
142366
142394
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
@@ -142385,6 +142413,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142385
142413
|
* @method
|
|
142386
142414
|
* @name kraken#cancelAllOrders
|
|
142387
142415
|
* @description cancel all open orders
|
|
142416
|
+
* @see https://docs.kraken.com/rest/#tag/Trading/operation/cancelAllOrders
|
|
142388
142417
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
142389
142418
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
142390
142419
|
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
@@ -142397,6 +142426,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142397
142426
|
* @method
|
|
142398
142427
|
* @name kraken#fetchOpenOrders
|
|
142399
142428
|
* @description fetch all unfilled currently open orders
|
|
142429
|
+
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenOrders
|
|
142400
142430
|
* @param {string} symbol unified market symbol
|
|
142401
142431
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
142402
142432
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -142428,6 +142458,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142428
142458
|
* @method
|
|
142429
142459
|
* @name kraken#fetchClosedOrders
|
|
142430
142460
|
* @description fetches information on multiple closed orders made by the user
|
|
142461
|
+
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getClosedOrders
|
|
142431
142462
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
142432
142463
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
142433
142464
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
@@ -142625,6 +142656,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142625
142656
|
* @method
|
|
142626
142657
|
* @name kraken#fetchDeposits
|
|
142627
142658
|
* @description fetch all deposits made to an account
|
|
142659
|
+
* @see https://docs.kraken.com/rest/#tag/Funding/operation/getStatusRecentDeposits
|
|
142628
142660
|
* @param {string} code unified currency code
|
|
142629
142661
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
142630
142662
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -142661,6 +142693,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142661
142693
|
* @method
|
|
142662
142694
|
* @name kraken#fetchTime
|
|
142663
142695
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
142696
|
+
* @see https://docs.kraken.com/rest/#tag/Market-Data/operation/getServerTime
|
|
142664
142697
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
142665
142698
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
142666
142699
|
*/
|
|
@@ -142683,6 +142716,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142683
142716
|
* @method
|
|
142684
142717
|
* @name kraken#fetchWithdrawals
|
|
142685
142718
|
* @description fetch all withdrawals made from an account
|
|
142719
|
+
* @see https://docs.kraken.com/rest/#tag/Funding/operation/getStatusRecentWithdrawals
|
|
142686
142720
|
* @param {string} code unified currency code
|
|
142687
142721
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
142688
142722
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -142719,6 +142753,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142719
142753
|
* @method
|
|
142720
142754
|
* @name kraken#createDepositAddress
|
|
142721
142755
|
* @description create a currency deposit address
|
|
142756
|
+
* @see https://docs.kraken.com/rest/#tag/Funding/operation/getDepositAddresses
|
|
142722
142757
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
142723
142758
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
142724
142759
|
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
@@ -142765,6 +142800,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142765
142800
|
* @method
|
|
142766
142801
|
* @name kraken#fetchDepositAddress
|
|
142767
142802
|
* @description fetch the deposit address for a currency associated with this account
|
|
142803
|
+
* @see https://docs.kraken.com/rest/#tag/Funding/operation/getDepositAddresses
|
|
142768
142804
|
* @param {string} code unified currency code
|
|
142769
142805
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
142770
142806
|
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
@@ -142846,6 +142882,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142846
142882
|
* @method
|
|
142847
142883
|
* @name kraken#withdraw
|
|
142848
142884
|
* @description make a withdrawal
|
|
142885
|
+
* @see https://docs.kraken.com/rest/#tag/Funding/operation/withdrawFunds
|
|
142849
142886
|
* @param {string} code unified currency code
|
|
142850
142887
|
* @param {float} amount the amount to withdraw
|
|
142851
142888
|
* @param {string} address the address to withdraw to
|
|
@@ -142882,6 +142919,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142882
142919
|
* @method
|
|
142883
142920
|
* @name kraken#fetchPositions
|
|
142884
142921
|
* @description fetch all open positions
|
|
142922
|
+
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenPositions
|
|
142885
142923
|
* @param {string[]|undefined} symbols not used by kraken fetchPositions ()
|
|
142886
142924
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
142887
142925
|
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
@@ -142953,6 +142991,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142953
142991
|
async transferOut(code, amount, params = {}) {
|
|
142954
142992
|
/**
|
|
142955
142993
|
* @description transfer from spot wallet to futures wallet
|
|
142994
|
+
* @see https://docs.kraken.com/rest/#tag/User-Funding/operation/walletTransfer
|
|
142956
142995
|
* @param {str} code Unified currency code
|
|
142957
142996
|
* @param {float} amount Size of the transfer
|
|
142958
142997
|
* @param {dict} [params] Exchange specific parameters
|
|
@@ -150013,7 +150052,7 @@ class kucoinfutures extends _abstract_kucoinfutures_js__WEBPACK_IMPORTED_MODULE_
|
|
|
150013
150052
|
// data: 1637385119302,
|
|
150014
150053
|
// }
|
|
150015
150054
|
//
|
|
150016
|
-
return this.
|
|
150055
|
+
return this.safeInteger(response, 'data');
|
|
150017
150056
|
}
|
|
150018
150057
|
async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
150019
150058
|
/**
|
|
@@ -176788,6 +176827,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
176788
176827
|
* @method
|
|
176789
176828
|
* @name okx#fetchStatus
|
|
176790
176829
|
* @description the latest known information on the availability of the exchange API
|
|
176830
|
+
* @see https://www.okx.com/docs-v5/en/#status-get-status
|
|
176791
176831
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
176792
176832
|
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
176793
176833
|
*/
|
|
@@ -176836,6 +176876,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
176836
176876
|
* @method
|
|
176837
176877
|
* @name okx#fetchTime
|
|
176838
176878
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
176879
|
+
* @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-system-time
|
|
176839
176880
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
176840
176881
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
176841
176882
|
*/
|
|
@@ -176858,6 +176899,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
176858
176899
|
* @method
|
|
176859
176900
|
* @name okx#fetchAccounts
|
|
176860
176901
|
* @description fetch all the accounts associated with a profile
|
|
176902
|
+
* @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-account-configuration
|
|
176861
176903
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
176862
176904
|
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
176863
176905
|
*/
|
|
@@ -177282,6 +177324,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
177282
177324
|
* @method
|
|
177283
177325
|
* @name okx#fetchOrderBook
|
|
177284
177326
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
177327
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-get-order-book
|
|
177285
177328
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
177286
177329
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
177287
177330
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
@@ -177383,6 +177426,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
177383
177426
|
* @method
|
|
177384
177427
|
* @name okx#fetchTicker
|
|
177385
177428
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
177429
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-get-ticker
|
|
177386
177430
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
177387
177431
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
177388
177432
|
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
@@ -177473,6 +177517,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
177473
177517
|
* @method
|
|
177474
177518
|
* @name okx#fetchTickers
|
|
177475
177519
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
177520
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-get-tickers
|
|
177476
177521
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
177477
177522
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
177478
177523
|
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
@@ -177785,6 +177830,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
177785
177830
|
* @method
|
|
177786
177831
|
* @name okx#fetchFundingRateHistory
|
|
177787
177832
|
* @description fetches historical funding rate prices
|
|
177833
|
+
* @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-funding-rate-history
|
|
177788
177834
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
177789
177835
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
177790
177836
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
@@ -177923,6 +177969,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
177923
177969
|
* @method
|
|
177924
177970
|
* @name okx#fetchTradingFee
|
|
177925
177971
|
* @description fetch the trading fees for a market
|
|
177972
|
+
* @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-fee-rates
|
|
177926
177973
|
* @param {string} symbol unified market symbol
|
|
177927
177974
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
177928
177975
|
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
@@ -177972,6 +178019,8 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
177972
178019
|
* @method
|
|
177973
178020
|
* @name okx#fetchBalance
|
|
177974
178021
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
178022
|
+
* @see https://www.okx.com/docs-v5/en/#funding-account-rest-api-get-balance
|
|
178023
|
+
* @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-balance
|
|
177975
178024
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
177976
178025
|
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
177977
178026
|
*/
|
|
@@ -178507,6 +178556,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
178507
178556
|
* @method
|
|
178508
178557
|
* @name okx#cancelOrder
|
|
178509
178558
|
* @description cancels an open order
|
|
178559
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-trade-post-cancel-order
|
|
178510
178560
|
* @param {string} id order id
|
|
178511
178561
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
178512
178562
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
@@ -178561,6 +178611,8 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
178561
178611
|
* @method
|
|
178562
178612
|
* @name okx#cancelOrders
|
|
178563
178613
|
* @description cancel multiple orders
|
|
178614
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-trade-post-cancel-multiple-orders
|
|
178615
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-algo-trading-post-cancel-algo-order
|
|
178564
178616
|
* @param {string[]} ids order ids
|
|
178565
178617
|
* @param {string} symbol unified market symbol
|
|
178566
178618
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
@@ -178863,6 +178915,8 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
178863
178915
|
* @method
|
|
178864
178916
|
* @name okx#fetchOrder
|
|
178865
178917
|
* @description fetch an order by the id
|
|
178918
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-trade-get-order-details
|
|
178919
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-algo-trading-get-algo-order-details
|
|
178866
178920
|
* @param {string} id the order id
|
|
178867
178921
|
* @param {string} symbol unified market symbol
|
|
178868
178922
|
* @param {object} [params] extra and exchange specific parameters
|
|
@@ -179009,6 +179063,8 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
179009
179063
|
* @name okx#fetchOpenOrders
|
|
179010
179064
|
* @description Fetch orders that are still open
|
|
179011
179065
|
* @description fetch all unfilled currently open orders
|
|
179066
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-trade-get-order-list
|
|
179067
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-algo-trading-get-algo-order-list
|
|
179012
179068
|
* @param {string} symbol unified market symbol
|
|
179013
179069
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
179014
179070
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -179157,6 +179213,8 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
179157
179213
|
* @method
|
|
179158
179214
|
* @name okx#fetchCanceledOrders
|
|
179159
179215
|
* @description fetches information on multiple canceled orders made by the user
|
|
179216
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-trade-get-order-history-last-7-days
|
|
179217
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-algo-trading-get-algo-order-history
|
|
179160
179218
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
179161
179219
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
179162
179220
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
@@ -179331,6 +179389,8 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
179331
179389
|
* @method
|
|
179332
179390
|
* @name okx#fetchClosedOrders
|
|
179333
179391
|
* @description fetches information on multiple closed orders made by the user
|
|
179392
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-trade-get-order-history-last-7-days
|
|
179393
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-algo-trading-get-algo-order-history
|
|
179334
179394
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
179335
179395
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
179336
179396
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
@@ -179496,6 +179556,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
179496
179556
|
* @method
|
|
179497
179557
|
* @name okx#fetchMyTrades
|
|
179498
179558
|
* @description fetch all trades made by the user
|
|
179559
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-trade-get-transaction-details-last-3-months
|
|
179499
179560
|
* @param {string} symbol unified market symbol
|
|
179500
179561
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
179501
179562
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -179556,6 +179617,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
179556
179617
|
* @method
|
|
179557
179618
|
* @name okx#fetchOrderTrades
|
|
179558
179619
|
* @description fetch all the trades made from a single order
|
|
179620
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-trade-get-transaction-details-last-3-months
|
|
179559
179621
|
* @param {string} id order id
|
|
179560
179622
|
* @param {string} symbol unified market symbol
|
|
179561
179623
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -179874,6 +179936,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
179874
179936
|
* @method
|
|
179875
179937
|
* @name okx#fetchDepositAddressesByNetwork
|
|
179876
179938
|
* @description fetch a dictionary of addresses for a currency, indexed by network
|
|
179939
|
+
* @see https://www.okx.com/docs-v5/en/#funding-account-rest-api-get-deposit-address
|
|
179877
179940
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
179878
179941
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
179879
179942
|
* @returns {object} a dictionary of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure} indexed by the network
|
|
@@ -179915,6 +179978,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
179915
179978
|
* @method
|
|
179916
179979
|
* @name okx#fetchDepositAddress
|
|
179917
179980
|
* @description fetch the deposit address for a currency associated with this account
|
|
179981
|
+
* @see https://www.okx.com/docs-v5/en/#funding-account-rest-api-get-deposit-address
|
|
179918
179982
|
* @param {string} code unified currency code
|
|
179919
179983
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
179920
179984
|
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
@@ -179955,6 +180019,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
179955
180019
|
* @method
|
|
179956
180020
|
* @name okx#withdraw
|
|
179957
180021
|
* @description make a withdrawal
|
|
180022
|
+
* @see https://www.okx.com/docs-v5/en/#funding-account-rest-api-withdrawal
|
|
179958
180023
|
* @param {string} code unified currency code
|
|
179959
180024
|
* @param {float} amount the amount to withdraw
|
|
179960
180025
|
* @param {string} address the address to withdraw to
|
|
@@ -180899,6 +180964,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
180899
180964
|
* @method
|
|
180900
180965
|
* @name okx#fetchTransfers
|
|
180901
180966
|
* @description fetch a history of internal transfers made on an account
|
|
180967
|
+
* @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-bills-details-last-3-months
|
|
180902
180968
|
* @param {string} code unified currency code of the currency transferred
|
|
180903
180969
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
180904
180970
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
@@ -181065,6 +181131,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
181065
181131
|
* @method
|
|
181066
181132
|
* @name okx#fetchFundingRate
|
|
181067
181133
|
* @description fetch the current funding rate
|
|
181134
|
+
* @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-funding-rate
|
|
181068
181135
|
* @param {string} symbol unified market symbol
|
|
181069
181136
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
181070
181137
|
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
@@ -181103,6 +181170,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
181103
181170
|
* @method
|
|
181104
181171
|
* @name okx#fetchFundingHistory
|
|
181105
181172
|
* @description fetch the history of funding payments paid and received on this account
|
|
181173
|
+
* @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-bills-details-last-3-months
|
|
181106
181174
|
* @param {string} symbol unified market symbol
|
|
181107
181175
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
181108
181176
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
@@ -181323,6 +181391,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
181323
181391
|
* @method
|
|
181324
181392
|
* @name okx#setPositionMode
|
|
181325
181393
|
* @description set hedged to true or false for a market
|
|
181394
|
+
* @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-set-position-mode
|
|
181326
181395
|
* @param {bool} hedged set to true to use long_short_mode, false for net_mode
|
|
181327
181396
|
* @param {string} symbol not used by okx setPositionMode
|
|
181328
181397
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
@@ -181357,6 +181426,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
181357
181426
|
* @method
|
|
181358
181427
|
* @name okx#setMarginMode
|
|
181359
181428
|
* @description set margin mode to 'cross' or 'isolated'
|
|
181429
|
+
* @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-set-leverage
|
|
181360
181430
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
181361
181431
|
* @param {string} symbol unified market symbol
|
|
181362
181432
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
@@ -181405,6 +181475,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
181405
181475
|
* @method
|
|
181406
181476
|
* @name okx#fetchBorrowRates
|
|
181407
181477
|
* @description fetch the borrow interest rates of all currencies
|
|
181478
|
+
* @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-interest-rate
|
|
181408
181479
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
181409
181480
|
* @returns {object} a list of [borrow rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
|
|
181410
181481
|
*/
|
|
@@ -181444,6 +181515,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
181444
181515
|
* @method
|
|
181445
181516
|
* @name okx#fetchBorrowRate
|
|
181446
181517
|
* @description fetch the rate of interest to borrow a currency for margin trading
|
|
181518
|
+
* @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-interest-rate
|
|
181447
181519
|
* @param {string} code unified currency code
|
|
181448
181520
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
181449
181521
|
* @returns {object} a [borrow rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
|
|
@@ -181537,6 +181609,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
181537
181609
|
* @method
|
|
181538
181610
|
* @name okx#fetchBorrowRateHistories
|
|
181539
181611
|
* @description retrieves a history of a multiple currencies borrow interest rate at specific time slots, returns all currencies if no symbols passed, default is undefined
|
|
181612
|
+
* @see https://www.okx.com/docs-v5/en/#financial-product-savings-get-public-borrow-history-public
|
|
181540
181613
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
181541
181614
|
* @param {int} [since] timestamp in ms of the earliest borrowRate, default is undefined
|
|
181542
181615
|
* @param {int} [limit] max number of borrow rate prices to return, default is undefined
|
|
@@ -181579,6 +181652,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
181579
181652
|
* @method
|
|
181580
181653
|
* @name okx#fetchBorrowRateHistory
|
|
181581
181654
|
* @description retrieves a history of a currencies borrow interest rate at specific time slots
|
|
181655
|
+
* @see https://www.okx.com/docs-v5/en/#financial-product-savings-get-public-borrow-history-public
|
|
181582
181656
|
* @param {string} code unified currency code
|
|
181583
181657
|
* @param {int} [since] timestamp for the earliest borrow rate
|
|
181584
181658
|
* @param {int} [limit] the maximum number of [borrow rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure} to retrieve
|
|
@@ -181670,6 +181744,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
181670
181744
|
* @method
|
|
181671
181745
|
* @name okx#reduceMargin
|
|
181672
181746
|
* @description remove margin from a position
|
|
181747
|
+
* @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-increase-decrease-margin
|
|
181673
181748
|
* @param {string} symbol unified market symbol
|
|
181674
181749
|
* @param {float} amount the amount of margin to remove
|
|
181675
181750
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
@@ -181682,6 +181757,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
181682
181757
|
* @method
|
|
181683
181758
|
* @name okx#addMargin
|
|
181684
181759
|
* @description add margin
|
|
181760
|
+
* @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-increase-decrease-margin
|
|
181685
181761
|
* @param {string} symbol unified market symbol
|
|
181686
181762
|
* @param {float} amount amount of margin to add
|
|
181687
181763
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
@@ -260439,7 +260515,7 @@ class whitebit extends _abstract_whitebit_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
260439
260515
|
// ]
|
|
260440
260516
|
// }
|
|
260441
260517
|
//
|
|
260442
|
-
const timestamp = this.
|
|
260518
|
+
const timestamp = this.parseToInt(_base_Precise_js__WEBPACK_IMPORTED_MODULE_3__/* .Precise.stringMul */ .O.stringMul(this.safeString(response, 'timestamp'), '1000'));
|
|
260443
260519
|
return this.parseOrderBook(response, symbol, timestamp);
|
|
260444
260520
|
}
|
|
260445
260521
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
@@ -273993,7 +274069,7 @@ SOFTWARE.
|
|
|
273993
274069
|
|
|
273994
274070
|
//-----------------------------------------------------------------------------
|
|
273995
274071
|
// this is updated by vss.js when building
|
|
273996
|
-
const version = '4.1.
|
|
274072
|
+
const version = '4.1.4';
|
|
273997
274073
|
_src_base_Exchange_js__WEBPACK_IMPORTED_MODULE_0__/* .Exchange.ccxtVersion */ .e.ccxtVersion = version;
|
|
273998
274074
|
//-----------------------------------------------------------------------------
|
|
273999
274075
|
|