ccxt 4.0.103 → 4.0.104

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -214,13 +214,13 @@ console.log(version, Object.keys(exchanges));
214
214
 
215
215
  All-in-one browser bundle (dependencies included), served from a CDN of your choice:
216
216
 
217
- * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.0.103/dist/ccxt.browser.js
218
- * unpkg: https://unpkg.com/ccxt@4.0.103/dist/ccxt.browser.js
217
+ * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.0.104/dist/ccxt.browser.js
218
+ * unpkg: https://unpkg.com/ccxt@4.0.104/dist/ccxt.browser.js
219
219
 
220
220
  CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
221
221
 
222
222
  ```HTML
223
- <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.0.103/dist/ccxt.browser.js"></script>
223
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.0.104/dist/ccxt.browser.js"></script>
224
224
  ```
225
225
 
226
226
  Creates a global `ccxt` object:
@@ -15869,6 +15869,8 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
15869
15869
  'asset/tradeFee': 0.1,
15870
15870
  'asset/ledger-transfer/cloud-mining/queryByPage': 4.0002,
15871
15871
  'asset/convert-transfer/queryByPage': 0.033335,
15872
+ 'asset/wallet/balance': 6,
15873
+ 'asset/custody/transfer-history': 6,
15872
15874
  'margin/loan': 1,
15873
15875
  'margin/repay': 1,
15874
15876
  'margin/account': 1,
@@ -28858,6 +28860,7 @@ class bitbank extends _abstract_bitbank_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
28858
28860
  * @method
28859
28861
  * @name bitbank#fetchMarkets
28860
28862
  * @description retrieves data on all markets for bitbank
28863
+ * @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-all-pairs-info
28861
28864
  * @param {object} [params] extra parameters specific to the exchange api endpoint
28862
28865
  * @returns {object[]} an array of objects representing market data
28863
28866
  */
@@ -28984,6 +28987,7 @@ class bitbank extends _abstract_bitbank_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
28984
28987
  * @method
28985
28988
  * @name bitbank#fetchTicker
28986
28989
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
28990
+ * @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#ticker
28987
28991
  * @param {string} symbol unified symbol of the market to fetch the ticker for
28988
28992
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
28989
28993
  * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
@@ -29002,6 +29006,7 @@ class bitbank extends _abstract_bitbank_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
29002
29006
  * @method
29003
29007
  * @name bitbank#fetchOrderBook
29004
29008
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
29009
+ * @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#depth
29005
29010
  * @param {string} symbol unified symbol of the market to fetch the order book for
29006
29011
  * @param {int} [limit] the maximum amount of order book entries to return
29007
29012
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
@@ -29067,6 +29072,7 @@ class bitbank extends _abstract_bitbank_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
29067
29072
  * @method
29068
29073
  * @name bitbank#fetchTrades
29069
29074
  * @description get the list of most recent trades for a particular symbol
29075
+ * @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#transactions
29070
29076
  * @param {string} symbol unified symbol of the market to fetch trades for
29071
29077
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
29072
29078
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -29088,6 +29094,7 @@ class bitbank extends _abstract_bitbank_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
29088
29094
  * @method
29089
29095
  * @name bitbank#fetchTradingFees
29090
29096
  * @description fetch the trading fees for multiple markets
29097
+ * @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-all-pairs-info
29091
29098
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
29092
29099
  * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
29093
29100
  */
@@ -29165,6 +29172,7 @@ class bitbank extends _abstract_bitbank_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
29165
29172
  * @method
29166
29173
  * @name bitbank#fetchOHLCV
29167
29174
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
29175
+ * @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/public-api.md#candlestick
29168
29176
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
29169
29177
  * @param {string} timeframe the length of time each candle represents
29170
29178
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -29236,6 +29244,7 @@ class bitbank extends _abstract_bitbank_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
29236
29244
  * @method
29237
29245
  * @name bitbank#fetchBalance
29238
29246
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
29247
+ * @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#assets
29239
29248
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
29240
29249
  * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
29241
29250
  */
@@ -29329,6 +29338,7 @@ class bitbank extends _abstract_bitbank_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
29329
29338
  * @method
29330
29339
  * @name bitbank#createOrder
29331
29340
  * @description create a trade order
29341
+ * @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#create-new-order
29332
29342
  * @param {string} symbol unified symbol of the market to create an order in
29333
29343
  * @param {string} type 'market' or 'limit'
29334
29344
  * @param {string} side 'buy' or 'sell'
@@ -29357,6 +29367,7 @@ class bitbank extends _abstract_bitbank_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
29357
29367
  * @method
29358
29368
  * @name bitbank#cancelOrder
29359
29369
  * @description cancels an open order
29370
+ * @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#cancel-order
29360
29371
  * @param {string} id order id
29361
29372
  * @param {string} symbol unified symbol of the market the order was made in
29362
29373
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
@@ -29377,6 +29388,7 @@ class bitbank extends _abstract_bitbank_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
29377
29388
  * @method
29378
29389
  * @name bitbank#fetchOrder
29379
29390
  * @description fetches information on an order made by the user
29391
+ * @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-order-information
29380
29392
  * @param {string} symbol unified symbol of the market the order was made in
29381
29393
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
29382
29394
  * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
@@ -29396,6 +29408,7 @@ class bitbank extends _abstract_bitbank_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
29396
29408
  * @method
29397
29409
  * @name bitbank#fetchOpenOrders
29398
29410
  * @description fetch all unfilled currently open orders
29411
+ * @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-active-orders
29399
29412
  * @param {string} symbol unified market symbol
29400
29413
  * @param {int} [since] the earliest time in ms to fetch open orders for
29401
29414
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -29423,6 +29436,7 @@ class bitbank extends _abstract_bitbank_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
29423
29436
  * @method
29424
29437
  * @name bitbank#fetchMyTrades
29425
29438
  * @description fetch all trades made by the user
29439
+ * @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-trade-history
29426
29440
  * @param {string} symbol unified market symbol
29427
29441
  * @param {int} [since] the earliest time in ms to fetch trades for
29428
29442
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -29452,6 +29466,7 @@ class bitbank extends _abstract_bitbank_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
29452
29466
  * @method
29453
29467
  * @name bitbank#fetchDepositAddress
29454
29468
  * @description fetch the deposit address for a currency associated with this account
29469
+ * @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#get-withdrawal-accounts
29455
29470
  * @param {string} code unified currency code
29456
29471
  * @param {object} [params] extra parameters specific to the bitbank api endpoint
29457
29472
  * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
@@ -29480,6 +29495,7 @@ class bitbank extends _abstract_bitbank_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
29480
29495
  * @method
29481
29496
  * @name bitbank#withdraw
29482
29497
  * @description make a withdrawal
29498
+ * @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#new-withdrawal-request
29483
29499
  * @param {string} code unified currency code
29484
29500
  * @param {float} amount the amount to withdraw
29485
29501
  * @param {string} address the address to withdraw to
@@ -33054,6 +33070,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
33054
33070
  * @method
33055
33071
  * @name bitfinex2#fetchStatus
33056
33072
  * @description the latest known information on the availability of the exchange API
33073
+ * @see https://docs.bitfinex.com/reference/rest-public-platform-status
33057
33074
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
33058
33075
  * @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
33059
33076
  */
@@ -33076,6 +33093,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
33076
33093
  * @method
33077
33094
  * @name bitfinex2#fetchMarkets
33078
33095
  * @description retrieves data on all markets for bitfinex2
33096
+ * @see https://docs.bitfinex.com/reference/rest-public-conf
33079
33097
  * @param {object} [params] extra parameters specific to the exchange api endpoint
33080
33098
  * @returns {object[]} an array of objects representing market data
33081
33099
  */
@@ -33204,6 +33222,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
33204
33222
  * @method
33205
33223
  * @name bitfinex2#fetchCurrencies
33206
33224
  * @description fetches all available currencies on an exchange
33225
+ * @see https://docs.bitfinex.com/reference/rest-public-conf
33207
33226
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
33208
33227
  * @returns {object} an associative dictionary of currencies
33209
33228
  */
@@ -33414,6 +33433,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
33414
33433
  * @method
33415
33434
  * @name bitfinex2#fetchBalance
33416
33435
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
33436
+ * @see https://docs.bitfinex.com/reference/rest-auth-wallets
33417
33437
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
33418
33438
  * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
33419
33439
  */
@@ -33454,6 +33474,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
33454
33474
  * @method
33455
33475
  * @name bitfinex2#transfer
33456
33476
  * @description transfer currency internally between wallets on the same account
33477
+ * @see https://docs.bitfinex.com/reference/rest-auth-transfer
33457
33478
  * @param {string} code unified currency code
33458
33479
  * @param {float} amount amount to transfer
33459
33480
  * @param {string} fromAccount account to transfer from
@@ -33599,6 +33620,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
33599
33620
  * @method
33600
33621
  * @name bitfinex2#fetchOrderBook
33601
33622
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
33623
+ * @see https://docs.bitfinex.com/reference/rest-public-book
33602
33624
  * @param {string} symbol unified symbol of the market to fetch the order book for
33603
33625
  * @param {int} [limit] the maximum amount of order book entries to return
33604
33626
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
@@ -33711,6 +33733,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
33711
33733
  * @method
33712
33734
  * @name bitfinex2#fetchTickers
33713
33735
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
33736
+ * @see https://docs.bitfinex.com/reference/rest-public-tickers
33714
33737
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
33715
33738
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
33716
33739
  * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
@@ -33780,6 +33803,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
33780
33803
  * @method
33781
33804
  * @name bitfinex2#fetchTicker
33782
33805
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
33806
+ * @see https://docs.bitfinex.com/reference/rest-public-ticker
33783
33807
  * @param {string} symbol unified symbol of the market to fetch the ticker for
33784
33808
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
33785
33809
  * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
@@ -33880,6 +33904,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
33880
33904
  * @method
33881
33905
  * @name bitfinex2#fetchTrades
33882
33906
  * @description get the list of most recent trades for a particular symbol
33907
+ * @see https://docs.bitfinex.com/reference/rest-public-tickers-history
33883
33908
  * @param {string} symbol unified symbol of the market to fetch trades for
33884
33909
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
33885
33910
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -33919,6 +33944,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
33919
33944
  * @method
33920
33945
  * @name bitfinex2#fetchOHLCV
33921
33946
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
33947
+ * @see https://docs.bitfinex.com/reference/rest-public-candles
33922
33948
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
33923
33949
  * @param {string} timeframe the length of time each candle represents
33924
33950
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -34085,6 +34111,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34085
34111
  * @method
34086
34112
  * @name bitfinex2#createOrder
34087
34113
  * @description Create an order on the exchange
34114
+ * @see https://docs.bitfinex.com/reference/rest-auth-submit-order
34088
34115
  * @param {string} symbol Unified CCXT market symbol
34089
34116
  * @param {string} type 'limit' or 'market'
34090
34117
  * @param {string} side 'buy' or 'sell'
@@ -34249,6 +34276,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34249
34276
  * @method
34250
34277
  * @name bitfinex2#cancelAllOrders
34251
34278
  * @description cancel all open orders
34279
+ * @see https://docs.bitfinex.com/reference/rest-auth-cancel-orders-multiple
34252
34280
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
34253
34281
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
34254
34282
  * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
@@ -34265,6 +34293,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34265
34293
  * @method
34266
34294
  * @name bitfinex2#cancelOrder
34267
34295
  * @description cancels an open order
34296
+ * @see https://docs.bitfinex.com/reference/rest-auth-cancel-order
34268
34297
  * @param {string} id order id
34269
34298
  * @param {string} symbol Not used by bitfinex2 cancelOrder ()
34270
34299
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
@@ -34297,6 +34326,8 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34297
34326
  * @method
34298
34327
  * @name bitfinex2#fetchOpenOrder
34299
34328
  * @description fetch an open order by it's id
34329
+ * @see https://docs.bitfinex.com/reference/rest-auth-retrieve-orders
34330
+ * @see https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
34300
34331
  * @param {string} id order id
34301
34332
  * @param {string} symbol unified market symbol, default is undefined
34302
34333
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
@@ -34317,6 +34348,8 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34317
34348
  * @method
34318
34349
  * @name bitfinex2#fetchClosedOrder
34319
34350
  * @description fetch an open order by it's id
34351
+ * @see https://docs.bitfinex.com/reference/rest-auth-retrieve-orders
34352
+ * @see https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
34320
34353
  * @param {string} id order id
34321
34354
  * @param {string} symbol unified market symbol, default is undefined
34322
34355
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
@@ -34337,6 +34370,8 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34337
34370
  * @method
34338
34371
  * @name bitfinex2#fetchOpenOrders
34339
34372
  * @description fetch all unfilled currently open orders
34373
+ * @see https://docs.bitfinex.com/reference/rest-auth-retrieve-orders
34374
+ * @see https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
34340
34375
  * @param {string} symbol unified market symbol
34341
34376
  * @param {int} [since] the earliest time in ms to fetch open orders for
34342
34377
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -34400,6 +34435,8 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34400
34435
  * @method
34401
34436
  * @name bitfinex2#fetchClosedOrders
34402
34437
  * @description fetches information on multiple closed orders made by the user
34438
+ * @see https://docs.bitfinex.com/reference/rest-auth-retrieve-orders
34439
+ * @see https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
34403
34440
  * @param {string} symbol unified market symbol of the market orders were made in
34404
34441
  * @param {int} [since] the earliest time in ms to fetch orders for
34405
34442
  * @param {int} [limit] the maximum number of orde structures to retrieve
@@ -34470,6 +34507,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34470
34507
  * @method
34471
34508
  * @name bitfinex2#fetchOrderTrades
34472
34509
  * @description fetch all the trades made from a single order
34510
+ * @see https://docs.bitfinex.com/reference/rest-auth-order-trades
34473
34511
  * @param {string} id order id
34474
34512
  * @param {string} symbol unified market symbol
34475
34513
  * @param {int} [since] the earliest time in ms to fetch trades for
@@ -34496,6 +34534,8 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34496
34534
  * @method
34497
34535
  * @name bitfinex2#fetchMyTrades
34498
34536
  * @description fetch all trades made by the user
34537
+ * @see https://docs.bitfinex.com/reference/rest-auth-trades
34538
+ * @see https://docs.bitfinex.com/reference/rest-auth-trades-by-symbol
34499
34539
  * @param {string} symbol unified market symbol
34500
34540
  * @param {int} [since] the earliest time in ms to fetch trades for
34501
34541
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -34513,13 +34553,15 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34513
34553
  if (limit !== undefined) {
34514
34554
  request['limit'] = limit; // default 25, max 1000
34515
34555
  }
34516
- let method = 'privatePostAuthRTradesHist';
34556
+ let response = undefined;
34517
34557
  if (symbol !== undefined) {
34518
34558
  market = this.market(symbol);
34519
34559
  request['symbol'] = market['id'];
34520
- method = 'privatePostAuthRTradesSymbolHist';
34560
+ response = await this.privatePostAuthRTradesSymbolHist(this.extend(request, params));
34561
+ }
34562
+ else {
34563
+ response = await this.privatePostAuthRTradesHist(this.extend(request, params));
34521
34564
  }
34522
- const response = await this[method](this.extend(request, params));
34523
34565
  return this.parseTrades(response, market, since, limit);
34524
34566
  }
34525
34567
  async createDepositAddress(code, params = {}) {
@@ -34527,6 +34569,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34527
34569
  * @method
34528
34570
  * @name bitfinex2#createDepositAddress
34529
34571
  * @description create a currency deposit address
34572
+ * @see https://docs.bitfinex.com/reference/rest-auth-deposit-address
34530
34573
  * @param {string} code unified currency code of the currency for the deposit address
34531
34574
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
34532
34575
  * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
@@ -34542,6 +34585,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34542
34585
  * @method
34543
34586
  * @name bitfinex2#fetchDepositAddress
34544
34587
  * @description fetch the deposit address for a currency associated with this account
34588
+ * @see https://docs.bitfinex.com/reference/rest-auth-deposit-address
34545
34589
  * @param {string} code unified currency code
34546
34590
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
34547
34591
  * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
@@ -34756,6 +34800,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34756
34800
  * @method
34757
34801
  * @name bitfinex2#fetchTradingFees
34758
34802
  * @description fetch the trading fees for multiple markets
34803
+ * @see https://docs.bitfinex.com/reference/rest-auth-summary
34759
34804
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
34760
34805
  * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
34761
34806
  */
@@ -34869,6 +34914,8 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34869
34914
  * @method
34870
34915
  * @name bitfinex2#fetchDepositsWithdrawals
34871
34916
  * @description fetch history of deposits and withdrawals
34917
+ * @see https://docs.bitfinex.com/reference/movement-info
34918
+ * @see https://docs.bitfinex.com/reference/rest-auth-movements
34872
34919
  * @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
34873
34920
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
34874
34921
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
@@ -34878,19 +34925,21 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34878
34925
  await this.loadMarkets();
34879
34926
  let currency = undefined;
34880
34927
  const request = {};
34881
- let method = 'privatePostAuthRMovementsHist';
34882
- if (code !== undefined) {
34883
- currency = this.currency(code);
34884
- request['currency'] = currency['uppercaseId'];
34885
- method = 'privatePostAuthRMovementsCurrencyHist';
34886
- }
34887
34928
  if (since !== undefined) {
34888
34929
  request['start'] = since;
34889
34930
  }
34890
34931
  if (limit !== undefined) {
34891
34932
  request['limit'] = limit; // max 1000
34892
34933
  }
34893
- const response = await this[method](this.extend(request, params));
34934
+ let response = undefined;
34935
+ if (code !== undefined) {
34936
+ currency = this.currency(code);
34937
+ request['currency'] = currency['uppercaseId'];
34938
+ response = await this.privatePostAuthRMovementsCurrencyHist(this.extend(request, params));
34939
+ }
34940
+ else {
34941
+ response = await this.privatePostAuthRMovementsHist(this.extend(request, params));
34942
+ }
34894
34943
  //
34895
34944
  // [
34896
34945
  // [
@@ -34926,6 +34975,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
34926
34975
  * @method
34927
34976
  * @name bitfinex2#withdraw
34928
34977
  * @description make a withdrawal
34978
+ * @see https://docs.bitfinex.com/reference/rest-auth-withdraw
34929
34979
  * @param {string} code unified currency code
34930
34980
  * @param {float} amount the amount to withdraw
34931
34981
  * @param {string} address the address to withdraw to
@@ -35264,6 +35314,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
35264
35314
  * @method
35265
35315
  * @name bitfinex2#fetchLedger
35266
35316
  * @description fetch the history of changes, actions done by the user or operations that altered balance of the user
35317
+ * @see https://docs.bitfinex.com/reference/rest-auth-ledgers
35267
35318
  * @param {string} code unified currency code, default is undefined
35268
35319
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
35269
35320
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
@@ -35274,19 +35325,21 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
35274
35325
  await this.loadMarkets();
35275
35326
  let currency = undefined;
35276
35327
  const request = {};
35277
- let method = 'privatePostAuthRLedgersHist';
35278
- if (code !== undefined) {
35279
- currency = this.currency(code);
35280
- request['currency'] = currency['uppercaseId'];
35281
- method = 'privatePostAuthRLedgersCurrencyHist';
35282
- }
35283
35328
  if (since !== undefined) {
35284
35329
  request['start'] = since;
35285
35330
  }
35286
35331
  if (limit !== undefined) {
35287
35332
  request['limit'] = limit; // max 2500
35288
35333
  }
35289
- const response = await this[method](this.extend(request, params));
35334
+ let response = undefined;
35335
+ if (code !== undefined) {
35336
+ currency = this.currency(code);
35337
+ request['currency'] = currency['uppercaseId'];
35338
+ response = await this.privatePostAuthRLedgersCurrencyHist(this.extend(request, params));
35339
+ }
35340
+ else {
35341
+ response = await this.privatePostAuthRLedgersHist(this.extend(request, params));
35342
+ }
35290
35343
  //
35291
35344
  // [
35292
35345
  // [
@@ -272422,7 +272475,7 @@ SOFTWARE.
272422
272475
 
272423
272476
  //-----------------------------------------------------------------------------
272424
272477
  // this is updated by vss.js when building
272425
- const version = '4.0.103';
272478
+ const version = '4.0.104';
272426
272479
  _src_base_Exchange_js__WEBPACK_IMPORTED_MODULE_0__/* .Exchange.ccxtVersion */ .e.ccxtVersion = version;
272427
272480
  //-----------------------------------------------------------------------------
272428
272481