ccxt 4.1.6 → 4.1.8
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/CHANGELOG.md +194 -0
- package/README.md +3 -3
- package/dist/ccxt.browser.js +142 -97
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/binance.js +11 -11
- package/dist/cjs/src/bingx.js +2 -2
- package/dist/cjs/src/bitbns.js +3 -3
- package/dist/cjs/src/bitfinex2.js +5 -5
- package/dist/cjs/src/bitget.js +6 -6
- package/dist/cjs/src/bitmart.js +2 -0
- package/dist/cjs/src/bitmex.js +4 -4
- package/dist/cjs/src/bybit.js +7 -7
- package/dist/cjs/src/coinbase.js +5 -5
- package/dist/cjs/src/coinbasepro.js +3 -3
- package/dist/cjs/src/coinfalcon.js +3 -3
- package/dist/cjs/src/cryptocom.js +5 -5
- package/dist/cjs/src/gate.js +6 -6
- package/dist/cjs/src/huobi.js +4 -4
- package/dist/cjs/src/kraken.js +1 -1
- package/dist/cjs/src/krakenfutures.js +2 -2
- package/dist/cjs/src/kucoin.js +9 -9
- package/dist/cjs/src/kucoinfutures.js +6 -6
- package/dist/cjs/src/mexc.js +46 -3
- package/dist/cjs/src/okx.js +8 -8
- package/dist/cjs/src/poloniex.js +2 -2
- package/dist/cjs/src/pro/exmo.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +1 -0
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/abstract/mexc3.d.ts +2 -0
- package/js/src/binance.js +11 -11
- package/js/src/bingx.js +2 -2
- package/js/src/bitbns.js +3 -3
- package/js/src/bitfinex2.js +5 -5
- package/js/src/bitget.js +6 -6
- package/js/src/bitmart.js +2 -0
- package/js/src/bitmex.js +4 -4
- package/js/src/bybit.js +7 -7
- package/js/src/coinbase.js +5 -5
- package/js/src/coinbasepro.js +3 -3
- package/js/src/coinfalcon.js +3 -3
- package/js/src/cryptocom.js +5 -5
- package/js/src/gate.js +6 -6
- package/js/src/huobi.js +4 -4
- package/js/src/kraken.js +1 -1
- package/js/src/krakenfutures.js +2 -2
- package/js/src/kucoin.js +9 -9
- package/js/src/kucoinfutures.js +6 -6
- package/js/src/mexc.d.ts +1 -1
- package/js/src/mexc.js +46 -3
- package/js/src/okx.js +8 -8
- package/js/src/poloniex.js +2 -2
- package/js/src/pro/exmo.js +1 -1
- package/package.json +1 -1
package/dist/ccxt.browser.js
CHANGED
|
@@ -19219,7 +19219,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
19219
19219
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
19220
19220
|
* @param {string} [params.price] "mark" or "index" for mark price and index price candles
|
|
19221
19221
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
19222
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
19222
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
19223
19223
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
19224
19224
|
*/
|
|
19225
19225
|
await this.loadMarkets();
|
|
@@ -19562,7 +19562,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
19562
19562
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
19563
19563
|
* @param {int} [params.until] only used when fetchTradesMethod is 'publicGetAggTrades', 'fapiPublicGetAggTrades', or 'dapiPublicGetAggTrades'
|
|
19564
19564
|
* @param {int} [params.fetchTradesMethod] 'publicGetAggTrades' (spot default), 'fapiPublicGetAggTrades' (swap default), 'dapiPublicGetAggTrades' (future default), 'eapiPublicGetTrades' (option default), 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', 'publicGetHistoricalTrades', 'fapiPublicGetHistoricalTrades', 'dapiPublicGetHistoricalTrades', 'eapiPublicGetHistoricalTrades'
|
|
19565
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
19565
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
19566
19566
|
*
|
|
19567
19567
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
19568
19568
|
* @param {int} [params.fromId] trade id to fetch from, default gets most recent trades, not used when fetchTradesMethod is 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', or 'eapiPublicGetTrades'
|
|
@@ -20606,7 +20606,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
20606
20606
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
20607
20607
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
|
|
20608
20608
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
20609
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
20609
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
20610
20610
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
20611
20611
|
*/
|
|
20612
20612
|
this.checkRequiredSymbol('fetchOrders', symbol);
|
|
@@ -20817,7 +20817,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
20817
20817
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
20818
20818
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
20819
20819
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
20820
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
20820
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
20821
20821
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
20822
20822
|
*/
|
|
20823
20823
|
const orders = await this.fetchOrders(symbol, since, limit, params);
|
|
@@ -20835,7 +20835,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
20835
20835
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
20836
20836
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
20837
20837
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
20838
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
20838
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
20839
20839
|
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
20840
20840
|
*/
|
|
20841
20841
|
this.checkRequiredSymbol('fetchCanceledOrders', symbol);
|
|
@@ -21069,7 +21069,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
21069
21069
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
21070
21070
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
21071
21071
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
21072
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
21072
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
21073
21073
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
21074
21074
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
21075
21075
|
*/
|
|
@@ -21359,7 +21359,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
21359
21359
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
21360
21360
|
* @param {bool} [params.fiat] if true, only fiat deposits will be returned
|
|
21361
21361
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
21362
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
21362
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
21363
21363
|
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
21364
21364
|
*/
|
|
21365
21365
|
await this.loadMarkets();
|
|
@@ -21474,7 +21474,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
21474
21474
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
21475
21475
|
* @param {bool} [params.fiat] if true, only fiat withdrawals will be returned
|
|
21476
21476
|
* @param {int} [params.until] the latest time in ms to fetch withdrawals for
|
|
21477
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
21477
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
21478
21478
|
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
21479
21479
|
*/
|
|
21480
21480
|
await this.loadMarkets();
|
|
@@ -21951,7 +21951,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
21951
21951
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
21952
21952
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
21953
21953
|
* @param {int} [params.until] the latest time in ms to fetch transfers for
|
|
21954
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
21954
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
21955
21955
|
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
21956
21956
|
*/
|
|
21957
21957
|
await this.loadMarkets();
|
|
@@ -22681,7 +22681,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
22681
22681
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
22682
22682
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
22683
22683
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
22684
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
22684
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
22685
22685
|
* @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
|
|
22686
22686
|
*/
|
|
22687
22687
|
await this.loadMarkets();
|
|
@@ -24096,7 +24096,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
24096
24096
|
* @param {int} [limit] max number of ledger entrys to return
|
|
24097
24097
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
24098
24098
|
* @param {int} [params.until] timestamp in ms of the latest ledger entry
|
|
24099
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
24099
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
24100
24100
|
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
24101
24101
|
*/
|
|
24102
24102
|
await this.loadMarkets();
|
|
@@ -25880,7 +25880,7 @@ class bingx extends _abstract_bingx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
25880
25880
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
25881
25881
|
* @param {string} [params.price] "mark" or "index" for mark price and index price candles
|
|
25882
25882
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
25883
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
25883
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
25884
25884
|
* @returns {[[int]]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
25885
25885
|
*/
|
|
25886
25886
|
await this.loadMarkets();
|
|
@@ -26288,7 +26288,7 @@ class bingx extends _abstract_bingx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
26288
26288
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
26289
26289
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
26290
26290
|
* @param {int} [params.until] timestamp in ms of the latest funding rate to fetch
|
|
26291
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
26291
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
26292
26292
|
* @returns {[object]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
|
|
26293
26293
|
*/
|
|
26294
26294
|
this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
|
|
@@ -30722,13 +30722,13 @@ class bitbns extends _abstract_bitbns_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
30722
30722
|
if (numParts > 1) {
|
|
30723
30723
|
let currencyId = this.safeString(parts, 1);
|
|
30724
30724
|
// note that "Money" stands for INR - the only fiat in bitbns
|
|
30725
|
+
const account = this.account();
|
|
30726
|
+
account['free'] = this.safeString(data, key);
|
|
30727
|
+
account['used'] = this.safeString(data, 'inorder' + currencyId);
|
|
30725
30728
|
if (currencyId === 'Money') {
|
|
30726
30729
|
currencyId = 'INR';
|
|
30727
30730
|
}
|
|
30728
30731
|
const code = this.safeCurrencyCode(currencyId);
|
|
30729
|
-
const account = this.account();
|
|
30730
|
-
account['free'] = this.safeString(data, key);
|
|
30731
|
-
account['used'] = this.safeString(data, 'inorder' + currencyId);
|
|
30732
30732
|
result[code] = account;
|
|
30733
30733
|
}
|
|
30734
30734
|
}
|
|
@@ -34461,7 +34461,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
34461
34461
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
34462
34462
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
34463
34463
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
34464
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
34464
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
34465
34465
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
34466
34466
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
34467
34467
|
*/
|
|
@@ -34512,7 +34512,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
34512
34512
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
34513
34513
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
34514
34514
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
34515
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
34515
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
34516
34516
|
*/
|
|
34517
34517
|
await this.loadMarkets();
|
|
34518
34518
|
let paginate = false;
|
|
@@ -35006,7 +35006,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
35006
35006
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
35007
35007
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
35008
35008
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
35009
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
35009
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
35010
35010
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
35011
35011
|
*/
|
|
35012
35012
|
// returns the most recent closed or canceled orders up to circa two weeks ago
|
|
@@ -35896,7 +35896,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
35896
35896
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
35897
35897
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
35898
35898
|
* @param {int} [params.until] timestamp in ms of the latest ledger entry
|
|
35899
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
35899
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
35900
35900
|
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
35901
35901
|
*/
|
|
35902
35902
|
await this.loadMarkets();
|
|
@@ -36013,7 +36013,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
36013
36013
|
* @param {string} symbol unified market symbol
|
|
36014
36014
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
36015
36015
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
36016
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
36016
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
36017
36017
|
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
36018
36018
|
*/
|
|
36019
36019
|
await this.loadMarkets();
|
|
@@ -39631,7 +39631,7 @@ class bitget extends _abstract_bitget_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
39631
39631
|
* @param {string} [params.pageNo] pageNo default 1
|
|
39632
39632
|
* @param {string} [params.pageSize] pageSize default 20. Max 100
|
|
39633
39633
|
* @param {int} [params.until] end tim in ms
|
|
39634
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
39634
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
39635
39635
|
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
39636
39636
|
*/
|
|
39637
39637
|
await this.loadMarkets();
|
|
@@ -39769,7 +39769,7 @@ class bitget extends _abstract_bitget_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
39769
39769
|
* @param {string} [params.pageNo] pageNo default 1
|
|
39770
39770
|
* @param {string} [params.pageSize] pageSize default 20. Max 100
|
|
39771
39771
|
* @param {int} [params.until] end time in ms
|
|
39772
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
39772
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
39773
39773
|
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
39774
39774
|
*/
|
|
39775
39775
|
await this.loadMarkets();
|
|
@@ -40584,7 +40584,7 @@ class bitget extends _abstract_bitget_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
40584
40584
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
40585
40585
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
40586
40586
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
40587
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
40587
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
40588
40588
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
40589
40589
|
*/
|
|
40590
40590
|
await this.loadMarkets();
|
|
@@ -41974,7 +41974,7 @@ class bitget extends _abstract_bitget_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
41974
41974
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
41975
41975
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
41976
41976
|
* @param {int} [params.until] end tim in ms
|
|
41977
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
41977
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
41978
41978
|
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
41979
41979
|
*/
|
|
41980
41980
|
await this.loadMarkets();
|
|
@@ -42075,7 +42075,7 @@ class bitget extends _abstract_bitget_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
42075
42075
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
42076
42076
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
42077
42077
|
* @param {int} [params.until] *swap only* the latest time in ms to fetch entries for
|
|
42078
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
42078
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
42079
42079
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
42080
42080
|
*/
|
|
42081
42081
|
this.checkRequiredSymbol('fetchMyTrades', symbol);
|
|
@@ -42981,7 +42981,7 @@ class bitget extends _abstract_bitget_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
42981
42981
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
42982
42982
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
42983
42983
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
42984
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
42984
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
42985
42985
|
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
42986
42986
|
*/
|
|
42987
42987
|
await this.loadMarkets();
|
|
@@ -44633,6 +44633,8 @@ class bitmart extends _abstract_bitmart_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
44633
44633
|
'spot/v1/margin/isolated/account': 6,
|
|
44634
44634
|
'spot/v1/trade_fee': 6,
|
|
44635
44635
|
'spot/v1/user_fee': 6,
|
|
44636
|
+
// broker
|
|
44637
|
+
'spot/v1/broker/rebate': 1,
|
|
44636
44638
|
// contract
|
|
44637
44639
|
'contract/private/assets-detail': 5,
|
|
44638
44640
|
'contract/private/order': 1.2,
|
|
@@ -49326,7 +49328,7 @@ class bitmex extends _abstract_bitmex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
49326
49328
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
49327
49329
|
* @param {object} [params] extra parameters specific to the bitmex api endpoint
|
|
49328
49330
|
* @param {int} [params.until] the earliest time in ms to fetch orders for
|
|
49329
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
49331
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
49330
49332
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
49331
49333
|
*/
|
|
49332
49334
|
await this.loadMarkets();
|
|
@@ -49405,7 +49407,7 @@ class bitmex extends _abstract_bitmex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
49405
49407
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
49406
49408
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
49407
49409
|
* @param {object} [params] extra parameters specific to the bitmex api endpoint
|
|
49408
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
49410
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
49409
49411
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
49410
49412
|
*/
|
|
49411
49413
|
await this.loadMarkets();
|
|
@@ -49886,7 +49888,7 @@ class bitmex extends _abstract_bitmex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
49886
49888
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
49887
49889
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
49888
49890
|
* @param {object} [params] extra parameters specific to the bitmex api endpoint
|
|
49889
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
49891
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
49890
49892
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
49891
49893
|
*/
|
|
49892
49894
|
await this.loadMarkets();
|
|
@@ -50209,7 +50211,7 @@ class bitmex extends _abstract_bitmex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
50209
50211
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
50210
50212
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
50211
50213
|
* @param {object} [params] extra parameters specific to the bitmex api endpoint
|
|
50212
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
50214
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
50213
50215
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
50214
50216
|
*/
|
|
50215
50217
|
await this.loadMarkets();
|
|
@@ -73837,7 +73839,7 @@ class bybit extends _abstract_bybit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
73837
73839
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
73838
73840
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
73839
73841
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
73840
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
73842
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
73841
73843
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
73842
73844
|
*/
|
|
73843
73845
|
this.checkRequiredSymbol('fetchOHLCV', symbol);
|
|
@@ -74081,7 +74083,7 @@ class bybit extends _abstract_bybit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
74081
74083
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
74082
74084
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
74083
74085
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
74084
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
74086
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
74085
74087
|
* @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
|
|
74086
74088
|
*/
|
|
74087
74089
|
this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
|
|
@@ -75914,7 +75916,7 @@ class bybit extends _abstract_bybit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
75914
75916
|
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
75915
75917
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
75916
75918
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
75917
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
75919
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
75918
75920
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
75919
75921
|
*/
|
|
75920
75922
|
await this.loadMarkets();
|
|
@@ -76294,7 +76296,7 @@ class bybit extends _abstract_bybit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
76294
76296
|
* @param {boolean} [params.stop] true if stop order
|
|
76295
76297
|
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
76296
76298
|
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
76297
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
76299
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
76298
76300
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
76299
76301
|
*/
|
|
76300
76302
|
await this.loadMarkets();
|
|
@@ -76516,7 +76518,7 @@ class bybit extends _abstract_bybit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
76516
76518
|
* @param {int} [params.until] the latest time in ms to fetch deposits for, default = 30 days after since
|
|
76517
76519
|
*
|
|
76518
76520
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
76519
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
76521
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
76520
76522
|
* @param {string} [params.cursor] used for pagination
|
|
76521
76523
|
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
76522
76524
|
*/
|
|
@@ -76585,7 +76587,7 @@ class bybit extends _abstract_bybit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
76585
76587
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
76586
76588
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
76587
76589
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
76588
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
76590
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
76589
76591
|
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
76590
76592
|
*/
|
|
76591
76593
|
await this.loadMarkets();
|
|
@@ -78097,7 +78099,7 @@ class bybit extends _abstract_bybit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
78097
78099
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
78098
78100
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
78099
78101
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
78100
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
78102
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
78101
78103
|
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
78102
78104
|
*/
|
|
78103
78105
|
await this.loadMarkets();
|
|
@@ -83025,7 +83027,7 @@ class coinbase extends _abstract_coinbase_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
83025
83027
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
83026
83028
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
83027
83029
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
83028
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
83030
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
83029
83031
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
83030
83032
|
*/
|
|
83031
83033
|
await this.loadMarkets();
|
|
@@ -83191,7 +83193,7 @@ class coinbase extends _abstract_coinbase_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
83191
83193
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
83192
83194
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
83193
83195
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
83194
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
83196
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
83195
83197
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
83196
83198
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
83197
83199
|
*/
|
|
@@ -83213,7 +83215,7 @@ class coinbase extends _abstract_coinbase_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
83213
83215
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
83214
83216
|
* @param {int} [limit] the maximum number of closed order structures to retrieve
|
|
83215
83217
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
83216
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
83218
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
83217
83219
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
83218
83220
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
83219
83221
|
*/
|
|
@@ -83251,7 +83253,7 @@ class coinbase extends _abstract_coinbase_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
83251
83253
|
* @param {int} [limit] the maximum amount of candles to fetch, not used by coinbase
|
|
83252
83254
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
83253
83255
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
83254
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
83256
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
83255
83257
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
83256
83258
|
*/
|
|
83257
83259
|
await this.loadMarkets();
|
|
@@ -83375,7 +83377,7 @@ class coinbase extends _abstract_coinbase_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
83375
83377
|
* @param {int} [limit] the maximum number of trade structures to fetch
|
|
83376
83378
|
* @param {object} [params] extra parameters specific to the coinbase api endpoint
|
|
83377
83379
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
83378
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
83380
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
83379
83381
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
83380
83382
|
*/
|
|
83381
83383
|
await this.loadMarkets();
|
|
@@ -84458,7 +84460,7 @@ class coinbasepro extends _abstract_coinbasepro_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
84458
84460
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
84459
84461
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
84460
84462
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
84461
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
84463
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
84462
84464
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
84463
84465
|
*/
|
|
84464
84466
|
this.checkRequiredSymbol('fetchMyTrades', symbol);
|
|
@@ -84585,7 +84587,7 @@ class coinbasepro extends _abstract_coinbasepro_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
84585
84587
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
84586
84588
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
84587
84589
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
84588
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
84590
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
84589
84591
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
84590
84592
|
*/
|
|
84591
84593
|
await this.loadMarkets();
|
|
@@ -84820,7 +84822,7 @@ class coinbasepro extends _abstract_coinbasepro_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
84820
84822
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
84821
84823
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
84822
84824
|
* @param {int} [params.until] the latest time in ms to fetch open orders for
|
|
84823
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
84825
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
84824
84826
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
84825
84827
|
*/
|
|
84826
84828
|
await this.loadMarkets();
|
|
@@ -92212,9 +92214,9 @@ class coinfalcon extends _abstract_coinfalcon_js__WEBPACK_IMPORTED_MODULE_0__/*
|
|
|
92212
92214
|
const amountString = this.safeString(transaction, 'amount');
|
|
92213
92215
|
const amount = this.parseNumber(amountString);
|
|
92214
92216
|
const feeCostString = this.safeString(transaction, 'fee');
|
|
92215
|
-
let feeCost = 0;
|
|
92217
|
+
let feeCost = '0';
|
|
92216
92218
|
if (feeCostString !== undefined) {
|
|
92217
|
-
feeCost =
|
|
92219
|
+
feeCost = feeCostString;
|
|
92218
92220
|
}
|
|
92219
92221
|
return {
|
|
92220
92222
|
'info': transaction,
|
|
@@ -92236,7 +92238,7 @@ class coinfalcon extends _abstract_coinfalcon_js__WEBPACK_IMPORTED_MODULE_0__/*
|
|
|
92236
92238
|
'updated': undefined,
|
|
92237
92239
|
'fee': {
|
|
92238
92240
|
'currency': code,
|
|
92239
|
-
'cost': feeCost,
|
|
92241
|
+
'cost': this.parseNumber(feeCost),
|
|
92240
92242
|
},
|
|
92241
92243
|
};
|
|
92242
92244
|
}
|
|
@@ -97281,7 +97283,7 @@ class cryptocom extends _abstract_cryptocom_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
97281
97283
|
* @param {int} [limit] the maximum number of order structures to retrieve, default 100 max 100
|
|
97282
97284
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
97283
97285
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
97284
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
97286
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
97285
97287
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
97286
97288
|
*/
|
|
97287
97289
|
await this.loadMarkets();
|
|
@@ -97362,7 +97364,7 @@ class cryptocom extends _abstract_cryptocom_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
97362
97364
|
* @param {int} [limit] the maximum number of trades to fetch
|
|
97363
97365
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
97364
97366
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
97365
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
97367
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
97366
97368
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
97367
97369
|
*/
|
|
97368
97370
|
await this.loadMarkets();
|
|
@@ -97422,7 +97424,7 @@ class cryptocom extends _abstract_cryptocom_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
97422
97424
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
97423
97425
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
97424
97426
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
97425
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
97427
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
97426
97428
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
97427
97429
|
*/
|
|
97428
97430
|
await this.loadMarkets();
|
|
@@ -97920,7 +97922,7 @@ class cryptocom extends _abstract_cryptocom_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
97920
97922
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
97921
97923
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
97922
97924
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
97923
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
97925
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
97924
97926
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
97925
97927
|
*/
|
|
97926
97928
|
await this.loadMarkets();
|
|
@@ -99415,7 +99417,7 @@ class cryptocom extends _abstract_cryptocom_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
99415
99417
|
* @param {int} [limit] the maximum amount of [funding rate structures] to fetch
|
|
99416
99418
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
99417
99419
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
99418
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
99420
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
99419
99421
|
* @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
|
|
99420
99422
|
*/
|
|
99421
99423
|
this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
|
|
@@ -117187,7 +117189,7 @@ class gate extends _abstract_gate_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
117187
117189
|
* @param {object} [params] extra parameters specific to the gateio api endpoint
|
|
117188
117190
|
* @param {string} [params.price] "mark" or "index" for mark price and index price candles
|
|
117189
117191
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
117190
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
117192
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
117191
117193
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume (units in quote currency)
|
|
117192
117194
|
*/
|
|
117193
117195
|
await this.loadMarkets();
|
|
@@ -117363,7 +117365,7 @@ class gate extends _abstract_gate_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
117363
117365
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
117364
117366
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
117365
117367
|
* @param {int} [params.until] timestamp in ms of the latest trade to fetch
|
|
117366
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
117368
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
117367
117369
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
117368
117370
|
*/
|
|
117369
117371
|
await this.loadMarkets();
|
|
@@ -117514,7 +117516,7 @@ class gate extends _abstract_gate_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
117514
117516
|
* @param {int} [params.offset] *contract only* list offset, starting from 0
|
|
117515
117517
|
* @param {string} [params.last_id] *contract only* specify list staring point using the id of last record in previous list-query results
|
|
117516
117518
|
* @param {int} [params.count_total] *contract only* whether to return total number matched, default to 0(no return)
|
|
117517
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
117519
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
117518
117520
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
117519
117521
|
*/
|
|
117520
117522
|
await this.loadMarkets();
|
|
@@ -117783,7 +117785,7 @@ class gate extends _abstract_gate_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
117783
117785
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
117784
117786
|
* @param {int} [params.until] end time in ms
|
|
117785
117787
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
117786
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
117788
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
117787
117789
|
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
117788
117790
|
*/
|
|
117789
117791
|
await this.loadMarkets();
|
|
@@ -117820,7 +117822,7 @@ class gate extends _abstract_gate_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
117820
117822
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
117821
117823
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
117822
117824
|
* @param {int} [params.until] end time in ms
|
|
117823
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
117825
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
117824
117826
|
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
117825
117827
|
*/
|
|
117826
117828
|
await this.loadMarkets();
|
|
@@ -120396,7 +120398,7 @@ class gate extends _abstract_gate_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
120396
120398
|
* @param {int} [limit] max number of ledger entries to return
|
|
120397
120399
|
* @param {object} [params] extra parameters specific to the gate api endpoint
|
|
120398
120400
|
* @param {int} [params.until] end time in ms
|
|
120399
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
120401
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
120400
120402
|
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
120401
120403
|
*/
|
|
120402
120404
|
await this.loadMarkets();
|
|
@@ -129929,7 +129931,7 @@ class huobi extends _abstract_huobi_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
129929
129931
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
129930
129932
|
* @param {object} [params] extra parameters specific to the huobi api endpoint
|
|
129931
129933
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
129932
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
129934
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
129933
129935
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
129934
129936
|
*/
|
|
129935
129937
|
await this.loadMarkets();
|
|
@@ -130206,7 +130208,7 @@ class huobi extends _abstract_huobi_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
130206
130208
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
130207
130209
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
130208
130210
|
* @param {object} [params] extra parameters specific to the huobi api endpoint
|
|
130209
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
130211
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
130210
130212
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
130211
130213
|
*/
|
|
130212
130214
|
await this.loadMarkets();
|
|
@@ -131488,7 +131490,7 @@ class huobi extends _abstract_huobi_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
131488
131490
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
131489
131491
|
* @param {object} [params] extra parameters specific to the huobi api endpoint
|
|
131490
131492
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
131491
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
131493
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
131492
131494
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
131493
131495
|
*/
|
|
131494
131496
|
await this.loadMarkets();
|
|
@@ -134856,7 +134858,7 @@ class huobi extends _abstract_huobi_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
134856
134858
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
134857
134859
|
* @param {object} [params] extra parameters specific to the huobi api endpoint
|
|
134858
134860
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
134859
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
134861
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
134860
134862
|
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
134861
134863
|
*/
|
|
134862
134864
|
await this.loadMarkets();
|
|
@@ -142199,7 +142201,7 @@ class kraken extends _abstract_kraken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
142199
142201
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
142200
142202
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
142201
142203
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
142202
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
142204
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
142203
142205
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
142204
142206
|
*/
|
|
142205
142207
|
await this.loadMarkets();
|
|
@@ -144599,7 +144601,7 @@ class krakenfutures extends _abstract_krakenfutures_js__WEBPACK_IMPORTED_MODULE_
|
|
|
144599
144601
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
144600
144602
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
144601
144603
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
144602
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
144604
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
144603
144605
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
144604
144606
|
*/
|
|
144605
144607
|
await this.loadMarkets();
|
|
@@ -144685,7 +144687,7 @@ class krakenfutures extends _abstract_krakenfutures_js__WEBPACK_IMPORTED_MODULE_
|
|
|
144685
144687
|
* @param {int} [limit] Total number of trades, cannot exceed 100
|
|
144686
144688
|
* @param {object} [params] Exchange specific params
|
|
144687
144689
|
* @param {int} [params.until] Timestamp in ms of latest trade
|
|
144688
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
144690
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
144689
144691
|
* @returns An array of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
144690
144692
|
*/
|
|
144691
144693
|
await this.loadMarkets();
|
|
@@ -147769,7 +147771,7 @@ class kucoin extends _abstract_kucoin_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
147769
147771
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
147770
147772
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
147771
147773
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
147772
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
147774
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
147773
147775
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
147774
147776
|
*/
|
|
147775
147777
|
await this.loadMarkets();
|
|
@@ -148433,10 +148435,10 @@ class kucoin extends _abstract_kucoin_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
148433
148435
|
* @param {string} [params.tradeType] TRADE for spot trading, MARGIN_TRADE for Margin Trading
|
|
148434
148436
|
* @param {bool} [params.stop] True if fetching a stop order
|
|
148435
148437
|
* @param {bool} [params.hf] false, // true for hf order
|
|
148436
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
148438
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
148437
148439
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
148438
148440
|
*/
|
|
148439
|
-
await this.loadMarkets;
|
|
148441
|
+
await this.loadMarkets();
|
|
148440
148442
|
let paginate = false;
|
|
148441
148443
|
[paginate, params] = this.handleOptionAndParams(params, 'fetchClosedOrders', 'paginate');
|
|
148442
148444
|
if (paginate) {
|
|
@@ -148466,10 +148468,10 @@ class kucoin extends _abstract_kucoin_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
148466
148468
|
* @param {string} [params.orderIds] *stop orders only* comma seperated order ID list
|
|
148467
148469
|
* @param {bool} [params.stop] True if fetching a stop order
|
|
148468
148470
|
* @param {bool} [params.hf] false, // true for hf order
|
|
148469
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
148471
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
148470
148472
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
148471
148473
|
*/
|
|
148472
|
-
await this.loadMarkets;
|
|
148474
|
+
await this.loadMarkets();
|
|
148473
148475
|
let paginate = false;
|
|
148474
148476
|
[paginate, params] = this.handleOptionAndParams(params, 'fetchOpenOrders', 'paginate');
|
|
148475
148477
|
if (paginate) {
|
|
@@ -148763,7 +148765,7 @@ class kucoin extends _abstract_kucoin_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
148763
148765
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
148764
148766
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
148765
148767
|
* @param {bool} [params.hf] false, // true for hf order
|
|
148766
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
148768
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
148767
148769
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
148768
148770
|
*/
|
|
148769
148771
|
await this.loadMarkets();
|
|
@@ -149266,7 +149268,7 @@ class kucoin extends _abstract_kucoin_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
149266
149268
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
149267
149269
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
149268
149270
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
149269
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
149271
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
149270
149272
|
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
149271
149273
|
*/
|
|
149272
149274
|
await this.loadMarkets();
|
|
@@ -149350,7 +149352,7 @@ class kucoin extends _abstract_kucoin_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
149350
149352
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
149351
149353
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
149352
149354
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
149353
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
149355
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
149354
149356
|
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
149355
149357
|
*/
|
|
149356
149358
|
await this.loadMarkets();
|
|
@@ -149874,7 +149876,7 @@ class kucoin extends _abstract_kucoin_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
149874
149876
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
149875
149877
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
149876
149878
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
149877
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
149879
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
149878
149880
|
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
149879
149881
|
*/
|
|
149880
149882
|
await this.loadMarkets();
|
|
@@ -150998,7 +151000,7 @@ class kucoinfutures extends _abstract_kucoinfutures_js__WEBPACK_IMPORTED_MODULE_
|
|
|
150998
151000
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
150999
151001
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
151000
151002
|
* @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
|
|
151001
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
151003
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
151002
151004
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
151003
151005
|
*/
|
|
151004
151006
|
await this.loadMarkets();
|
|
@@ -151886,7 +151888,7 @@ class kucoinfutures extends _abstract_kucoinfutures_js__WEBPACK_IMPORTED_MODULE_
|
|
|
151886
151888
|
* @param {int} [params.until] End time in ms
|
|
151887
151889
|
* @param {string} [params.side] buy or sell
|
|
151888
151890
|
* @param {string} [params.type] limit or market
|
|
151889
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
151891
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
151890
151892
|
* @returns An [array of order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
151891
151893
|
*/
|
|
151892
151894
|
await this.loadMarkets();
|
|
@@ -151992,10 +151994,10 @@ class kucoinfutures extends _abstract_kucoinfutures_js__WEBPACK_IMPORTED_MODULE_
|
|
|
151992
151994
|
* @param {int} [params.till] end time in ms
|
|
151993
151995
|
* @param {string} [params.side] buy or sell
|
|
151994
151996
|
* @param {string} [params.type] limit, or market
|
|
151995
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
151997
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
151996
151998
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
151997
151999
|
*/
|
|
151998
|
-
await this.loadMarkets;
|
|
152000
|
+
await this.loadMarkets();
|
|
151999
152001
|
let paginate = false;
|
|
152000
152002
|
[paginate, params] = this.handleOptionAndParams(params, 'fetchClosedOrders', 'paginate');
|
|
152001
152003
|
if (paginate) {
|
|
@@ -152366,7 +152368,7 @@ class kucoinfutures extends _abstract_kucoinfutures_js__WEBPACK_IMPORTED_MODULE_
|
|
|
152366
152368
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
152367
152369
|
* @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
|
|
152368
152370
|
* @param {int} [params.until] End time in ms
|
|
152369
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
152371
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
152370
152372
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
152371
152373
|
*/
|
|
152372
152374
|
await this.loadMarkets();
|
|
@@ -152792,7 +152794,7 @@ class kucoinfutures extends _abstract_kucoinfutures_js__WEBPACK_IMPORTED_MODULE_
|
|
|
152792
152794
|
* @param {int} [since] not used by kucuoinfutures
|
|
152793
152795
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
152794
152796
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
152795
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
152797
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
152796
152798
|
* @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
|
|
152797
152799
|
*/
|
|
152798
152800
|
if (symbol === undefined) {
|
|
@@ -162722,6 +162724,8 @@ class mexc extends _abstract_mexc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
162722
162724
|
'rebate/detail/kickback': 1,
|
|
162723
162725
|
'rebate/referCode': 1,
|
|
162724
162726
|
'rebate/affiliate/commission': 1,
|
|
162727
|
+
'rebate/affiliate/withdraw': 1,
|
|
162728
|
+
'rebate/affiliate/commission/detail': 1,
|
|
162725
162729
|
'mxDeduct/enable': 1,
|
|
162726
162730
|
'userDataStream': 1,
|
|
162727
162731
|
},
|
|
@@ -163886,11 +163890,15 @@ class mexc extends _abstract_mexc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
163886
163890
|
/**
|
|
163887
163891
|
* @method
|
|
163888
163892
|
* @name mexc3#fetchTrades
|
|
163893
|
+
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#recent-trades-list
|
|
163894
|
+
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#compressed-aggregate-trades-list
|
|
163895
|
+
* @see https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-contract-transaction-data
|
|
163889
163896
|
* @description get the list of most recent trades for a particular symbol
|
|
163890
163897
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
163891
163898
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
163892
163899
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
163893
163900
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
163901
|
+
* @param {int} [params.until] *spot only* *since must be defined* the latest time in ms to fetch entries for
|
|
163894
163902
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
163895
163903
|
*/
|
|
163896
163904
|
await this.loadMarkets();
|
|
@@ -163901,11 +163909,21 @@ class mexc extends _abstract_mexc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
163901
163909
|
if (limit !== undefined) {
|
|
163902
163910
|
request['limit'] = limit;
|
|
163903
163911
|
}
|
|
163904
|
-
// if (since !== undefined) {
|
|
163905
|
-
// request['startTime'] = since; bug in api, waiting for fix
|
|
163906
|
-
// }
|
|
163907
163912
|
let trades = undefined;
|
|
163908
163913
|
if (market['spot']) {
|
|
163914
|
+
const until = this.safeIntegerN(params, ['endTime', 'until', 'till']);
|
|
163915
|
+
if (since !== undefined) {
|
|
163916
|
+
request['startTime'] = since;
|
|
163917
|
+
if (until === undefined) {
|
|
163918
|
+
throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_2__.ArgumentsRequired(this.id + ' fetchTrades() requires an until parameter when since is provided');
|
|
163919
|
+
}
|
|
163920
|
+
}
|
|
163921
|
+
if (until !== undefined) {
|
|
163922
|
+
if (since === undefined) {
|
|
163923
|
+
throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_2__.ArgumentsRequired(this.id + ' fetchTrades() requires a since parameter when until is provided');
|
|
163924
|
+
}
|
|
163925
|
+
request['endTime'] = until;
|
|
163926
|
+
}
|
|
163909
163927
|
let method = this.safeString(this.options, 'fetchTradesMethod', 'spotPublicGetAggTrades');
|
|
163910
163928
|
method = this.safeString(params, 'method', method); // AggTrades, HistoricalTrades, Trades
|
|
163911
163929
|
trades = await this[method](this.extend(request, params));
|
|
@@ -164136,31 +164154,53 @@ class mexc extends _abstract_mexc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
164136
164154
|
/**
|
|
164137
164155
|
* @method
|
|
164138
164156
|
* @name mexc3#fetchOHLCV
|
|
164157
|
+
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#kline-candlestick-data
|
|
164158
|
+
* @see https://mexcdevelop.github.io/apidocs/contract_v1_en/#k-line-data
|
|
164139
164159
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
164140
164160
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
164141
164161
|
* @param {string} timeframe the length of time each candle represents
|
|
164142
164162
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
164143
164163
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
164144
164164
|
* @param {object} [params] extra parameters specific to the mexc3 api endpoint
|
|
164165
|
+
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
164166
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
164145
164167
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
164146
164168
|
*/
|
|
164147
164169
|
await this.loadMarkets();
|
|
164148
164170
|
const market = this.market(symbol);
|
|
164171
|
+
const maxLimit = (market['spot']) ? 1000 : 2000;
|
|
164172
|
+
let paginate = false;
|
|
164173
|
+
[paginate, params] = this.handleOptionAndParams(params, 'fetchOHLCV', 'paginate', false);
|
|
164174
|
+
if (paginate) {
|
|
164175
|
+
return await this.fetchPaginatedCallDeterministic('fetchOHLCV', symbol, since, limit, timeframe, params, maxLimit);
|
|
164176
|
+
}
|
|
164149
164177
|
const options = this.safeValue(this.options, 'timeframes', {});
|
|
164150
164178
|
const timeframes = this.safeValue(options, market['type'], {});
|
|
164151
164179
|
const timeframeValue = this.safeString(timeframes, timeframe);
|
|
164180
|
+
const duration = this.parseTimeframe(timeframe) * 1000;
|
|
164152
164181
|
const request = {
|
|
164153
164182
|
'symbol': market['id'],
|
|
164154
164183
|
'interval': timeframeValue,
|
|
164155
164184
|
};
|
|
164156
164185
|
let candles = undefined;
|
|
164157
164186
|
if (market['spot']) {
|
|
164187
|
+
const until = this.safeIntegerN(params, ['until', 'endTime', 'till']);
|
|
164158
164188
|
if (since !== undefined) {
|
|
164159
164189
|
request['startTime'] = since;
|
|
164190
|
+
if (until === undefined) {
|
|
164191
|
+
// we have to calculate it assuming we can get at most 2000 entries per request
|
|
164192
|
+
const end = this.sum(since, maxLimit * duration);
|
|
164193
|
+
const now = this.milliseconds();
|
|
164194
|
+
request['endTime'] = Math.min(end, now);
|
|
164195
|
+
}
|
|
164160
164196
|
}
|
|
164161
164197
|
if (limit !== undefined) {
|
|
164162
164198
|
request['limit'] = limit;
|
|
164163
164199
|
}
|
|
164200
|
+
if (until !== undefined) {
|
|
164201
|
+
params = this.omit(params, ['until', 'till']);
|
|
164202
|
+
request['endTime'] = until;
|
|
164203
|
+
}
|
|
164164
164204
|
const response = await this.spotPublicGetKlines(this.extend(request, params));
|
|
164165
164205
|
//
|
|
164166
164206
|
// [
|
|
@@ -164179,9 +164219,14 @@ class mexc extends _abstract_mexc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
164179
164219
|
candles = response;
|
|
164180
164220
|
}
|
|
164181
164221
|
else if (market['swap']) {
|
|
164222
|
+
const until = this.safeIntegerProductN(params, ['until', 'endTime', 'till'], 0.001);
|
|
164182
164223
|
if (since !== undefined) {
|
|
164183
164224
|
request['start'] = this.parseToInt(since / 1000);
|
|
164184
164225
|
}
|
|
164226
|
+
if (until !== undefined) {
|
|
164227
|
+
params = this.omit(params, ['until', 'till']);
|
|
164228
|
+
request['end'] = until;
|
|
164229
|
+
}
|
|
164185
164230
|
const priceType = this.safeString(params, 'price', 'default');
|
|
164186
164231
|
params = this.omit(params, 'price');
|
|
164187
164232
|
const method = this.getSupportedMapping(priceType, {
|
|
@@ -178803,7 +178848,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
178803
178848
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
178804
178849
|
* @param {string} [params.price] "mark" or "index" for mark price and index price candles
|
|
178805
178850
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
178806
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
178851
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
178807
178852
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
178808
178853
|
*/
|
|
178809
178854
|
await this.loadMarkets();
|
|
@@ -178903,7 +178948,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
178903
178948
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
178904
178949
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
178905
178950
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
178906
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
178951
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
178907
178952
|
* @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
|
|
178908
178953
|
*/
|
|
178909
178954
|
if (symbol === undefined) {
|
|
@@ -180147,7 +180192,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
180147
180192
|
* @param {bool} [params.stop] True if fetching trigger or conditional orders
|
|
180148
180193
|
* @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
|
|
180149
180194
|
* @param {string} [params.algoId] Algo ID "'433845797218942976'"
|
|
180150
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
180195
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
180151
180196
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
180152
180197
|
*/
|
|
180153
180198
|
await this.loadMarkets();
|
|
@@ -180479,7 +180524,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
180479
180524
|
* @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
|
|
180480
180525
|
* @param {string} [params.algoId] Algo ID "'433845797218942976'"
|
|
180481
180526
|
* @param {int} [params.until] timestamp in ms to fetch orders for
|
|
180482
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
180527
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
180483
180528
|
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
180484
180529
|
*/
|
|
180485
180530
|
await this.loadMarkets();
|
|
@@ -180648,7 +180693,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
180648
180693
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
180649
180694
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
180650
180695
|
* @param {int} [params.until] Timestamp in ms of the latest time to retrieve trades for
|
|
180651
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
180696
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
180652
180697
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
180653
180698
|
*/
|
|
180654
180699
|
await this.loadMarkets();
|
|
@@ -180742,7 +180787,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
180742
180787
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
180743
180788
|
* @param {string} [params.marginMode] 'cross' or 'isolated'
|
|
180744
180789
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
180745
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
180790
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
180746
180791
|
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
180747
180792
|
*/
|
|
180748
180793
|
await this.loadMarkets();
|
|
@@ -181206,7 +181251,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
181206
181251
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
181207
181252
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
181208
181253
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
181209
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
181254
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
181210
181255
|
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
181211
181256
|
*/
|
|
181212
181257
|
await this.loadMarkets();
|
|
@@ -181312,7 +181357,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
181312
181357
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
181313
181358
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
181314
181359
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
181315
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
181360
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
181316
181361
|
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
181317
181362
|
*/
|
|
181318
181363
|
await this.loadMarkets();
|
|
@@ -189093,7 +189138,7 @@ class poloniex extends _abstract_poloniex_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
189093
189138
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
189094
189139
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
189095
189140
|
* @param {int} [params.until] timestamp in ms
|
|
189096
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
189141
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
189097
189142
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
189098
189143
|
*/
|
|
189099
189144
|
await this.loadMarkets();
|
|
@@ -189655,7 +189700,7 @@ class poloniex extends _abstract_poloniex_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
189655
189700
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
189656
189701
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
189657
189702
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
189658
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters]
|
|
189703
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
189659
189704
|
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
189660
189705
|
*/
|
|
189661
189706
|
await this.loadMarkets();
|
|
@@ -216257,7 +216302,7 @@ class exmo extends _exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z {
|
|
|
216257
216302
|
const symbol = this.safeSymbol(marketId);
|
|
216258
216303
|
const orderBook = this.safeValue(message, 'data', {});
|
|
216259
216304
|
const messageHash = 'orderbook:' + symbol;
|
|
216260
|
-
const timestamp = this.
|
|
216305
|
+
const timestamp = this.safeInteger(message, 'ts');
|
|
216261
216306
|
let storedOrderBook = this.safeValue(this.orderbooks, symbol);
|
|
216262
216307
|
if (storedOrderBook === undefined) {
|
|
216263
216308
|
storedOrderBook = this.orderBook({});
|
|
@@ -275219,7 +275264,7 @@ SOFTWARE.
|
|
|
275219
275264
|
|
|
275220
275265
|
//-----------------------------------------------------------------------------
|
|
275221
275266
|
// this is updated by vss.js when building
|
|
275222
|
-
const version = '4.1.
|
|
275267
|
+
const version = '4.1.8';
|
|
275223
275268
|
_src_base_Exchange_js__WEBPACK_IMPORTED_MODULE_0__/* .Exchange.ccxtVersion */ .e.ccxtVersion = version;
|
|
275224
275269
|
//-----------------------------------------------------------------------------
|
|
275225
275270
|
|