ccxt 4.2.46 → 4.2.48

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.
@@ -23830,12 +23830,14 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
23830
23830
  const trailingDelta = this.safeString(params, 'trailingDelta');
23831
23831
  const trailingTriggerPrice = this.safeString2(params, 'trailingTriggerPrice', 'activationPrice', this.numberToString(price));
23832
23832
  const trailingPercent = this.safeString2(params, 'trailingPercent', 'callbackRate');
23833
+ const priceMatch = this.safeString(params, 'priceMatch');
23833
23834
  const isTrailingPercentOrder = trailingPercent !== undefined;
23834
23835
  const isStopLoss = stopLossPrice !== undefined || trailingDelta !== undefined;
23835
23836
  const isTakeProfit = takeProfitPrice !== undefined;
23836
23837
  const isTriggerOrder = triggerPrice !== undefined;
23837
23838
  const isConditional = isTriggerOrder || isTrailingPercentOrder || isStopLoss || isTakeProfit;
23838
23839
  const isPortfolioMarginConditional = (isPortfolioMargin && isConditional);
23840
+ const isPriceMatch = priceMatch !== undefined;
23839
23841
  let uppercaseType = type.toUpperCase();
23840
23842
  let stopPrice = undefined;
23841
23843
  if (isTrailingPercentOrder) {
@@ -24016,7 +24018,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
24016
24018
  request['quantity'] = this.amountToPrecision(symbol, amount);
24017
24019
  }
24018
24020
  }
24019
- if (priceIsRequired) {
24021
+ if (priceIsRequired && !isPriceMatch) {
24020
24022
  if (price === undefined) {
24021
24023
  throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_2__.InvalidOrder(this.id + ' createOrder() requires a price argument for a ' + type + ' order');
24022
24024
  }
@@ -87417,11 +87419,194 @@ class bybit extends _abstract_bybit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
87417
87419
  const data = this.safeValue(result, 'dataList', []);
87418
87420
  return this.parseOrders(data, market, since, limit);
87419
87421
  }
87422
+ async fetchOrderClassic(id, symbol = undefined, params = {}) {
87423
+ /**
87424
+ * @method
87425
+ * @name bybit#fetchOrderClassic
87426
+ * @description fetches information on an order made by the user *classic accounts only*
87427
+ * @see https://bybit-exchange.github.io/docs/v5/order/order-list
87428
+ * @param {string} symbol unified symbol of the market the order was made in
87429
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
87430
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
87431
+ */
87432
+ if (symbol === undefined) {
87433
+ throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
87434
+ }
87435
+ await this.loadMarkets();
87436
+ const market = this.market(symbol);
87437
+ if (market['spot']) {
87438
+ throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.NotSupported(this.id + ' fetchOrder() is not supported for spot markets');
87439
+ }
87440
+ const request = {
87441
+ 'orderId': id,
87442
+ };
87443
+ const result = await this.fetchOrders(symbol, undefined, undefined, this.extend(request, params));
87444
+ const length = result.length;
87445
+ if (length === 0) {
87446
+ const isTrigger = this.safeBoolN(params, ['trigger', 'stop'], false);
87447
+ const extra = isTrigger ? '' : 'If you are trying to fetch SL/TP conditional order, you might try setting params["trigger"] = true';
87448
+ throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.OrderNotFound('Order ' + id.toString() + ' was not found.' + extra);
87449
+ }
87450
+ if (length > 1) {
87451
+ throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.InvalidOrder(this.id + ' returned more than one order');
87452
+ }
87453
+ return this.safeValue(result, 0);
87454
+ }
87420
87455
  async fetchOrder(id, symbol = undefined, params = {}) {
87421
- throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.NotSupported(this.id + ' fetchOrder() is not supported after the 5/02 update, please use fetchOpenOrder or fetchClosedOrder');
87456
+ /**
87457
+ * @method
87458
+ * @name bybit#fetchOrderClassic
87459
+ * @description *classic accounts only/ spot not supported* fetches information on an order made by the user *classic accounts only*
87460
+ * @see https://bybit-exchange.github.io/docs/v5/order/order-list
87461
+ * @param {string} symbol unified symbol of the market the order was made in
87462
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
87463
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
87464
+ */
87465
+ const res = await this.isUnifiedEnabled();
87466
+ const enableUnifiedAccount = this.safeBool(res, 1);
87467
+ if (enableUnifiedAccount) {
87468
+ throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.NotSupported(this.id + ' fetchOrder() is not supported after the 5/02 update for UTA accounts, please use fetchOpenOrder or fetchClosedOrder');
87469
+ }
87470
+ return await this.fetchOrderClassic(id, symbol, params);
87422
87471
  }
87423
87472
  async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
87424
- throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.NotSupported(this.id + ' fetchOrders() is not supported after the 5/02 update, please use fetchOpenOrders, fetchClosedOrders or fetchCanceledOrders');
87473
+ const res = await this.isUnifiedEnabled();
87474
+ /**
87475
+ * @method
87476
+ * @name bybit#fetchOrders
87477
+ * @description *classic accounts only/ spot not supported* fetches information on multiple orders made by the user *classic accounts only/ spot not supported*
87478
+ * @see https://bybit-exchange.github.io/docs/v5/order/order-list
87479
+ * @param {string} symbol unified market symbol of the market orders were made in
87480
+ * @param {int} [since] the earliest time in ms to fetch orders for
87481
+ * @param {int} [limit] the maximum number of order structures to retrieve
87482
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
87483
+ * @param {boolean} [params.stop] true if stop order
87484
+ * @param {string} [params.type] market type, ['swap', 'option']
87485
+ * @param {string} [params.subType] market subType, ['linear', 'inverse']
87486
+ * @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
87487
+ * @param {int} [params.until] the latest time in ms to fetch entries for
87488
+ * @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)
87489
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
87490
+ */
87491
+ const enableUnifiedAccount = this.safeBool(res, 1);
87492
+ if (enableUnifiedAccount) {
87493
+ throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.NotSupported(this.id + ' fetchOrders() is not supported after the 5/02 update for UTA accounts, please use fetchOpenOrders, fetchClosedOrders or fetchCanceledOrders');
87494
+ }
87495
+ return await this.fetchOrdersClassic(symbol, since, limit, params);
87496
+ }
87497
+ async fetchOrdersClassic(symbol = undefined, since = undefined, limit = undefined, params = {}) {
87498
+ /**
87499
+ * @method
87500
+ * @name bybit#fetchOrders
87501
+ * @description fetches information on multiple orders made by the user *classic accounts only*
87502
+ * @see https://bybit-exchange.github.io/docs/v5/order/order-list
87503
+ * @param {string} symbol unified market symbol of the market orders were made in
87504
+ * @param {int} [since] the earliest time in ms to fetch orders for
87505
+ * @param {int} [limit] the maximum number of order structures to retrieve
87506
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
87507
+ * @param {boolean} [params.stop] true if stop order
87508
+ * @param {string} [params.type] market type, ['swap', 'option', 'spot']
87509
+ * @param {string} [params.subType] market subType, ['linear', 'inverse']
87510
+ * @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
87511
+ * @param {int} [params.until] the latest time in ms to fetch entries for
87512
+ * @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)
87513
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
87514
+ */
87515
+ await this.loadMarkets();
87516
+ let paginate = false;
87517
+ [paginate, params] = this.handleOptionAndParams(params, 'fetchOrders', 'paginate');
87518
+ if (paginate) {
87519
+ return await this.fetchPaginatedCallCursor('fetchOrders', symbol, since, limit, params, 'nextPageCursor', 'nextPageCursor', undefined, 50);
87520
+ }
87521
+ const [enableUnifiedMargin, enableUnifiedAccount] = await this.isUnifiedEnabled();
87522
+ const isUnifiedAccount = (enableUnifiedMargin || enableUnifiedAccount);
87523
+ const request = {};
87524
+ let market = undefined;
87525
+ let isUsdcSettled = false;
87526
+ if (symbol !== undefined) {
87527
+ market = this.market(symbol);
87528
+ isUsdcSettled = market['settle'] === 'USDC';
87529
+ request['symbol'] = market['id'];
87530
+ }
87531
+ let type = undefined;
87532
+ [type, params] = this.getBybitType('fetchOrders', market, params);
87533
+ if (((type === 'option') || isUsdcSettled) && !isUnifiedAccount) {
87534
+ return await this.fetchUsdcOrders(symbol, since, limit, params);
87535
+ }
87536
+ if (type === 'spot') {
87537
+ throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.NotSupported(this.id + ' fetchOrders() is not supported for spot markets');
87538
+ }
87539
+ request['category'] = type;
87540
+ const isStop = this.safeBoolN(params, ['trigger', 'stop'], false);
87541
+ params = this.omit(params, ['trigger', 'stop']);
87542
+ if (isStop) {
87543
+ request['orderFilter'] = 'StopOrder';
87544
+ }
87545
+ if (limit !== undefined) {
87546
+ request['limit'] = limit;
87547
+ }
87548
+ if (since !== undefined) {
87549
+ request['startTime'] = since;
87550
+ }
87551
+ const until = this.safeInteger2(params, 'until', 'till'); // unified in milliseconds
87552
+ const endTime = this.safeInteger(params, 'endTime', until); // exchange-specific in milliseconds
87553
+ params = this.omit(params, ['endTime', 'till', 'until']);
87554
+ if (endTime !== undefined) {
87555
+ request['endTime'] = endTime;
87556
+ }
87557
+ const response = await this.privateGetV5OrderHistory(this.extend(request, params));
87558
+ //
87559
+ // {
87560
+ // "retCode": 0,
87561
+ // "retMsg": "OK",
87562
+ // "result": {
87563
+ // "nextPageCursor": "03234de9-1332-41eb-b805-4a9f42c136a3%3A1672220109387%2C03234de9-1332-41eb-b805-4a9f42c136a3%3A1672220109387",
87564
+ // "category": "linear",
87565
+ // "list": [
87566
+ // {
87567
+ // "symbol": "BTCUSDT",
87568
+ // "orderType": "Limit",
87569
+ // "orderLinkId": "test-001",
87570
+ // "orderId": "03234de9-1332-41eb-b805-4a9f42c136a3",
87571
+ // "cancelType": "CancelByUser",
87572
+ // "avgPrice": "0",
87573
+ // "stopOrderType": "UNKNOWN",
87574
+ // "lastPriceOnCreated": "16656.5",
87575
+ // "orderStatus": "Cancelled",
87576
+ // "takeProfit": "",
87577
+ // "cumExecValue": "0",
87578
+ // "triggerDirection": 0,
87579
+ // "blockTradeId": "",
87580
+ // "rejectReason": "EC_PerCancelRequest",
87581
+ // "isLeverage": "",
87582
+ // "price": "18000",
87583
+ // "orderIv": "",
87584
+ // "createdTime": "1672220109387",
87585
+ // "tpTriggerBy": "UNKNOWN",
87586
+ // "positionIdx": 0,
87587
+ // "timeInForce": "GoodTillCancel",
87588
+ // "leavesValue": "0",
87589
+ // "updatedTime": "1672220114123",
87590
+ // "side": "Sell",
87591
+ // "triggerPrice": "",
87592
+ // "cumExecFee": "0",
87593
+ // "slTriggerBy": "UNKNOWN",
87594
+ // "leavesQty": "0",
87595
+ // "closeOnTrigger": false,
87596
+ // "cumExecQty": "0",
87597
+ // "reduceOnly": false,
87598
+ // "qty": "0.1",
87599
+ // "stopLoss": "",
87600
+ // "triggerBy": "UNKNOWN"
87601
+ // }
87602
+ // ]
87603
+ // },
87604
+ // "retExtInfo": {},
87605
+ // "time": 1672221263862
87606
+ // }
87607
+ //
87608
+ const data = this.addPaginationCursorToResult(response);
87609
+ return this.parseOrders(data, market, since, limit);
87425
87610
  }
87426
87611
  async fetchClosedOrder(id, symbol = undefined, params = {}) {
87427
87612
  /**
@@ -111272,6 +111457,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
111272
111457
  * @method
111273
111458
  * @name coinsph#fetchStatus
111274
111459
  * @description the latest known information on the availability of the exchange API
111460
+ * @see https://coins-docs.github.io/rest-api/#test-connectivity
111275
111461
  * @param {object} [params] extra parameters specific to the exchange API endpoint
111276
111462
  * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
111277
111463
  */
@@ -111289,6 +111475,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
111289
111475
  * @method
111290
111476
  * @name coinsph#fetchTime
111291
111477
  * @description fetches the current integer timestamp in milliseconds from the exchange server
111478
+ * @see https://coins-docs.github.io/rest-api/#check-server-time
111292
111479
  * @param {object} [params] extra parameters specific to the exchange API endpoint
111293
111480
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
111294
111481
  */
@@ -111303,6 +111490,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
111303
111490
  * @method
111304
111491
  * @name coinsph#fetchMarkets
111305
111492
  * @description retrieves data on all markets for coinsph
111493
+ * @see https://coins-docs.github.io/rest-api/#exchange-information
111306
111494
  * @param {object} [params] extra parameters specific to the exchange API endpoint
111307
111495
  * @returns {object[]} an array of objects representing market data
111308
111496
  */
@@ -111439,6 +111627,9 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
111439
111627
  * @method
111440
111628
  * @name coinsph#fetchTickers
111441
111629
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
111630
+ * @see https://coins-docs.github.io/rest-api/#24hr-ticker-price-change-statistics
111631
+ * @see https://coins-docs.github.io/rest-api/#symbol-price-ticker
111632
+ * @see https://coins-docs.github.io/rest-api/#symbol-order-book-ticker
111442
111633
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
111443
111634
  * @param {object} [params] extra parameters specific to the exchange API endpoint
111444
111635
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -111474,6 +111665,9 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
111474
111665
  * @method
111475
111666
  * @name coinsph#fetchTicker
111476
111667
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
111668
+ * @see https://coins-docs.github.io/rest-api/#24hr-ticker-price-change-statistics
111669
+ * @see https://coins-docs.github.io/rest-api/#symbol-price-ticker
111670
+ * @see https://coins-docs.github.io/rest-api/#symbol-order-book-ticker
111477
111671
  * @param {string} symbol unified symbol of the market to fetch the ticker for
111478
111672
  * @param {object} [params] extra parameters specific to the exchange API endpoint
111479
111673
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -111581,6 +111775,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
111581
111775
  * @method
111582
111776
  * @name coinsph#fetchOrderBook
111583
111777
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
111778
+ * @see https://coins-docs.github.io/rest-api/#order-book
111584
111779
  * @param {string} symbol unified symbol of the market to fetch the order book for
111585
111780
  * @param {int} [limit] the maximum amount of order book entries to return (default 100, max 200)
111586
111781
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -111617,6 +111812,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
111617
111812
  * @method
111618
111813
  * @name coinsph#fetchOHLCV
111619
111814
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
111815
+ * @see https://coins-docs.github.io/rest-api/#klinecandlestick-data
111620
111816
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
111621
111817
  * @param {string} timeframe the length of time each candle represents
111622
111818
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -111683,6 +111879,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
111683
111879
  * @method
111684
111880
  * @name coinsph#fetchTrades
111685
111881
  * @description get the list of most recent trades for a particular symbol
111882
+ * @see https://coins-docs.github.io/rest-api/#recent-trades-list
111686
111883
  * @param {string} symbol unified symbol of the market to fetch trades for
111687
111884
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
111688
111885
  * @param {int} [limit] the maximum amount of trades to fetch (default 500, max 1000)
@@ -111724,6 +111921,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
111724
111921
  * @method
111725
111922
  * @name coinsph#fetchMyTrades
111726
111923
  * @description fetch all trades made by the user
111924
+ * @see https://coins-docs.github.io/rest-api/#account-trade-list-user_data
111727
111925
  * @param {string} symbol unified market symbol
111728
111926
  * @param {int} [since] the earliest time in ms to fetch trades for
111729
111927
  * @param {int} [limit] the maximum number of trades structures to retrieve (default 500, max 1000)
@@ -111754,6 +111952,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
111754
111952
  * @method
111755
111953
  * @name coinsph#fetchOrderTrades
111756
111954
  * @description fetch all the trades made from a single order
111955
+ * @see https://coins-docs.github.io/rest-api/#account-trade-list-user_data
111757
111956
  * @param {string} id order id
111758
111957
  * @param {string} symbol unified market symbol
111759
111958
  * @param {int} [since] the earliest time in ms to fetch trades for
@@ -111860,6 +112059,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
111860
112059
  * @method
111861
112060
  * @name coinsph#fetchBalance
111862
112061
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
112062
+ * @see https://coins-docs.github.io/rest-api/#accept-the-quote
111863
112063
  * @param {object} [params] extra parameters specific to the exchange API endpoint
111864
112064
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
111865
112065
  */
@@ -111919,11 +112119,14 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
111919
112119
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
111920
112120
  * @param {object} [params] extra parameters specific to the exchange API endpoint
111921
112121
  * @param {float} [params.cost] the quote quantity that can be used as an alternative for the amount for market buy orders
112122
+ * @param {bool} [params.test] set to true to test an order, no order will be created but the request will be validated
111922
112123
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
111923
112124
  */
111924
112125
  // todo: add test order low priority
111925
112126
  await this.loadMarkets();
111926
112127
  const market = this.market(symbol);
112128
+ const testOrder = this.safeBool(params, 'test', false);
112129
+ params = this.omit(params, 'test');
111927
112130
  let orderType = this.safeString(params, 'type', type);
111928
112131
  orderType = this.encodeOrderType(orderType);
111929
112132
  params = this.omit(params, 'type');
@@ -111988,7 +112191,13 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
111988
112191
  }
111989
112192
  request['newOrderRespType'] = newOrderRespType;
111990
112193
  params = this.omit(params, 'price', 'stopPrice', 'triggerPrice', 'quantity', 'quoteOrderQty');
111991
- const response = await this.privatePostOpenapiV1Order(this.extend(request, params));
112194
+ let response = undefined;
112195
+ if (testOrder) {
112196
+ response = await this.privatePostOpenapiV1OrderTest(this.extend(request, params));
112197
+ }
112198
+ else {
112199
+ response = await this.privatePostOpenapiV1Order(this.extend(request, params));
112200
+ }
111992
112201
  //
111993
112202
  // {
111994
112203
  // "symbol": "ETHUSDT",
@@ -112023,6 +112232,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
112023
112232
  * @method
112024
112233
  * @name coinsph#fetchOrder
112025
112234
  * @description fetches information on an order made by the user
112235
+ * @see https://coins-docs.github.io/rest-api/#query-order-user_data
112026
112236
  * @param {int|string} id order id
112027
112237
  * @param {string} symbol not used by coinsph fetchOrder ()
112028
112238
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -112046,6 +112256,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
112046
112256
  * @method
112047
112257
  * @name coinsph#fetchOpenOrders
112048
112258
  * @description fetch all unfilled currently open orders
112259
+ * @see https://coins-docs.github.io/rest-api/#query-order-user_data
112049
112260
  * @param {string} symbol unified market symbol
112050
112261
  * @param {int} [since] the earliest time in ms to fetch open orders for
112051
112262
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -112067,6 +112278,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
112067
112278
  * @method
112068
112279
  * @name coinsph#fetchClosedOrders
112069
112280
  * @description fetches information on multiple closed orders made by the user
112281
+ * @see https://coins-docs.github.io/rest-api/#history-orders-user_data
112070
112282
  * @param {string} symbol unified market symbol of the market orders were made in
112071
112283
  * @param {int} [since] the earliest time in ms to fetch orders for
112072
112284
  * @param {int} [limit] the maximum number of order structures to retrieve (default 500, max 1000)
@@ -112097,6 +112309,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
112097
112309
  * @method
112098
112310
  * @name coinsph#cancelOrder
112099
112311
  * @description cancels an open order
112312
+ * @see https://coins-docs.github.io/rest-api/#cancel-order-trade
112100
112313
  * @param {string} id order id
112101
112314
  * @param {string} symbol not used by coinsph cancelOrder ()
112102
112315
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -112120,6 +112333,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
112120
112333
  * @method
112121
112334
  * @name coinsph#cancelAllOrders
112122
112335
  * @description cancel open orders of market
112336
+ * @see https://coins-docs.github.io/rest-api/#cancel-all-open-orders-on-a-symbol-trade
112123
112337
  * @param {string} symbol unified market symbol
112124
112338
  * @param {object} [params] extra parameters specific to the exchange API endpoint
112125
112339
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -112302,6 +112516,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
112302
112516
  * @method
112303
112517
  * @name coinsph#fetchTradingFee
112304
112518
  * @description fetch the trading fees for a market
112519
+ * @see https://coins-docs.github.io/rest-api/#trade-fee-user_data
112305
112520
  * @param {string} symbol unified market symbol
112306
112521
  * @param {object} [params] extra parameters specific to the exchange API endpoint
112307
112522
  * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
@@ -112329,6 +112544,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
112329
112544
  * @method
112330
112545
  * @name coinsph#fetchTradingFees
112331
112546
  * @description fetch the trading fees for multiple markets
112547
+ * @see https://coins-docs.github.io/rest-api/#trade-fee-user_data
112332
112548
  * @param {object} [params] extra parameters specific to the exchange API endpoint
112333
112549
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
112334
112550
  */
@@ -116657,6 +116873,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
116657
116873
  * @method
116658
116874
  * @name currencycom#fetchTime
116659
116875
  * @description fetches the current integer timestamp in milliseconds from the exchange server
116876
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/timeUsingGET
116660
116877
  * @param {object} [params] extra parameters specific to the exchange API endpoint
116661
116878
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
116662
116879
  */
@@ -116673,6 +116890,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
116673
116890
  * @method
116674
116891
  * @name currencycom#fetchCurrencies
116675
116892
  * @description fetches all available currencies on an exchange
116893
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getCurrenciesUsingGET
116676
116894
  * @param {object} [params] extra parameters specific to the exchange API endpoint
116677
116895
  * @returns {object} an associative dictionary of currencies
116678
116896
  */
@@ -116745,6 +116963,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
116745
116963
  * @method
116746
116964
  * @name currencycom#fetchMarkets
116747
116965
  * @description retrieves data on all markets for currencycom
116966
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/exchangeInfoUsingGET
116748
116967
  * @param {object} [params] extra parameters specific to the exchange API endpoint
116749
116968
  * @returns {object[]} an array of objects representing market data
116750
116969
  */
@@ -116933,6 +117152,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
116933
117152
  * @method
116934
117153
  * @name currencycom#fetchAccounts
116935
117154
  * @description fetch all the accounts associated with a profile
117155
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/accountUsingGET
116936
117156
  * @param {object} [params] extra parameters specific to the exchange API endpoint
116937
117157
  * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
116938
117158
  */
@@ -116989,6 +117209,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
116989
117209
  * @method
116990
117210
  * @name currencycom#fetchTradingFees
116991
117211
  * @description fetch the trading fees for multiple markets
117212
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/accountUsingGET
116992
117213
  * @param {object} [params] extra parameters specific to the exchange API endpoint
116993
117214
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
116994
117215
  */
@@ -117065,6 +117286,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
117065
117286
  * @method
117066
117287
  * @name currencycom#fetchBalance
117067
117288
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
117289
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/accountUsingGET
117068
117290
  * @param {object} [params] extra parameters specific to the exchange API endpoint
117069
117291
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
117070
117292
  */
@@ -117108,6 +117330,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
117108
117330
  * @method
117109
117331
  * @name currencycom#fetchOrderBook
117110
117332
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
117333
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/depthUsingGET
117111
117334
  * @param {string} symbol unified symbol of the market to fetch the order book for
117112
117335
  * @param {int} [limit] the maximum amount of order book entries to return
117113
117336
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -117224,6 +117447,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
117224
117447
  * @method
117225
117448
  * @name currencycom#fetchTicker
117226
117449
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
117450
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/ticker_24hrUsingGET
117227
117451
  * @param {string} symbol unified symbol of the market to fetch the ticker for
117228
117452
  * @param {object} [params] extra parameters specific to the exchange API endpoint
117229
117453
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -117261,6 +117485,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
117261
117485
  * @method
117262
117486
  * @name currencycom#fetchTickers
117263
117487
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
117488
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/ticker_24hrUsingGET
117264
117489
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
117265
117490
  * @param {object} [params] extra parameters specific to the exchange API endpoint
117266
117491
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -117312,6 +117537,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
117312
117537
  * @method
117313
117538
  * @name currencycom#fetchOHLCV
117314
117539
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
117540
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/klinesUsingGET
117315
117541
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
117316
117542
  * @param {string} timeframe the length of time each candle represents
117317
117543
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -117424,6 +117650,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
117424
117650
  * @method
117425
117651
  * @name currencycom#fetchTrades
117426
117652
  * @description get the list of most recent trades for a particular symbol
117653
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/aggTradesUsingGET
117427
117654
  * @param {string} symbol unified symbol of the market to fetch trades for
117428
117655
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
117429
117656
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -117608,6 +117835,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
117608
117835
  * @method
117609
117836
  * @name currencycom#createOrder
117610
117837
  * @description create a trade order
117838
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/orderUsingPOST
117611
117839
  * @param {string} symbol unified symbol of the market to create an order in
117612
117840
  * @param {string} type 'market' or 'limit'
117613
117841
  * @param {string} side 'buy' or 'sell'
@@ -117748,6 +117976,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
117748
117976
  * @method
117749
117977
  * @name currencycom#fetchOpenOrders
117750
117978
  * @description fetch all unfilled currently open orders
117979
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/openOrdersUsingGET
117751
117980
  * @param {string} symbol unified market symbol
117752
117981
  * @param {int} [since] the earliest time in ms to fetch open orders for
117753
117982
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -117794,6 +118023,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
117794
118023
  * @method
117795
118024
  * @name currencycom#cancelOrder
117796
118025
  * @description cancels an open order
118026
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/cancelOrderUsingDELETE
117797
118027
  * @param {string} id order id
117798
118028
  * @param {string} symbol unified symbol of the market the order was made in
117799
118029
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -117837,6 +118067,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
117837
118067
  * @method
117838
118068
  * @name currencycom#fetchMyTrades
117839
118069
  * @description fetch all trades made by the user
118070
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/myTradesUsingGET
117840
118071
  * @param {string} symbol unified market symbol
117841
118072
  * @param {int} [since] the earliest time in ms to fetch trades for
117842
118073
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -117880,6 +118111,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
117880
118111
  * @method
117881
118112
  * @name currencycom#fetchDeposits
117882
118113
  * @description fetch all deposits made to an account
118114
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getDepositsUsingGET
117883
118115
  * @param {string} code unified currency code
117884
118116
  * @param {int} [since] the earliest time in ms to fetch deposits for
117885
118117
  * @param {int} [limit] the maximum number of deposits structures to retrieve
@@ -117893,6 +118125,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
117893
118125
  * @method
117894
118126
  * @name currencycom#fetchWithdrawals
117895
118127
  * @description fetch all withdrawals made from an account
118128
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getWithdrawalsUsingGET
117896
118129
  * @param {string} code unified currency code
117897
118130
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
117898
118131
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
@@ -117906,6 +118139,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
117906
118139
  * @method
117907
118140
  * @name currencycom#fetchDepositsWithdrawals
117908
118141
  * @description fetch history of deposits and withdrawals
118142
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getTransactionsUsingGET
117909
118143
  * @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
117910
118144
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
117911
118145
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
@@ -118028,6 +118262,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
118028
118262
  * @method
118029
118263
  * @name currencycom#fetchLedger
118030
118264
  * @description fetch the history of changes, actions done by the user or operations that altered balance of the user
118265
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getLedgerUsingGET
118031
118266
  * @param {string} code unified currency code, default is undefined
118032
118267
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
118033
118268
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
@@ -118129,6 +118364,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
118129
118364
  * @method
118130
118365
  * @name currencycom#fetchLeverage
118131
118366
  * @description fetch the set leverage for a market
118367
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/leverageSettingsUsingGET
118132
118368
  * @param {string} symbol unified market symbol
118133
118369
  * @param {object} [params] extra parameters specific to the exchange API endpoint
118134
118370
  * @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
@@ -118152,6 +118388,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
118152
118388
  * @method
118153
118389
  * @name currencycom#fetchDepositAddress
118154
118390
  * @description fetch the deposit address for a currency associated with this account
118391
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getDepositAddressUsingGET
118155
118392
  * @param {string} code unified currency code
118156
118393
  * @param {object} [params] extra parameters specific to the exchange API endpoint
118157
118394
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
@@ -118218,6 +118455,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
118218
118455
  * @method
118219
118456
  * @name currencycom#fetchPositions
118220
118457
  * @description fetch all open positions
118458
+ * @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/tradingPositionsUsingGET
118221
118459
  * @param {string[]|undefined} symbols list of unified market symbols
118222
118460
  * @param {object} [params] extra parameters specific to the exchange API endpoint
118223
118461
  * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
@@ -122205,6 +122443,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
122205
122443
  * @method
122206
122444
  * @name deribit#fetchTime
122207
122445
  * @description fetches the current integer timestamp in milliseconds from the exchange server
122446
+ * @see https://docs.deribit.com/#public-get_time
122208
122447
  * @param {object} [params] extra parameters specific to the exchange API endpoint
122209
122448
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
122210
122449
  */
@@ -122300,6 +122539,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
122300
122539
  * @method
122301
122540
  * @name deribit#fetchStatus
122302
122541
  * @description the latest known information on the availability of the exchange API
122542
+ * @see https://docs.deribit.com/#public-status
122303
122543
  * @param {object} [params] extra parameters specific to the exchange API endpoint
122304
122544
  * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
122305
122545
  */
@@ -122332,6 +122572,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
122332
122572
  * @method
122333
122573
  * @name deribit#fetchAccounts
122334
122574
  * @description fetch all the accounts associated with a profile
122575
+ * @see https://docs.deribit.com/#private-get_subaccounts
122335
122576
  * @param {object} [params] extra parameters specific to the exchange API endpoint
122336
122577
  * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
122337
122578
  */
@@ -122401,6 +122642,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
122401
122642
  * @method
122402
122643
  * @name deribit#fetchMarkets
122403
122644
  * @description retrieves data on all markets for deribit
122645
+ * @see https://docs.deribit.com/#public-get_currencies
122404
122646
  * @param {object} [params] extra parameters specific to the exchange API endpoint
122405
122647
  * @returns {object[]} an array of objects representing market data
122406
122648
  */
@@ -122637,6 +122879,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
122637
122879
  * @method
122638
122880
  * @name deribit#fetchBalance
122639
122881
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
122882
+ * @see https://docs.deribit.com/#private-get_account_summary
122640
122883
  * @param {object} [params] extra parameters specific to the exchange API endpoint
122641
122884
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
122642
122885
  */
@@ -122697,6 +122940,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
122697
122940
  * @method
122698
122941
  * @name deribit#createDepositAddress
122699
122942
  * @description create a currency deposit address
122943
+ * @see https://docs.deribit.com/#private-create_deposit_address
122700
122944
  * @param {string} code unified currency code of the currency for the deposit address
122701
122945
  * @param {object} [params] extra parameters specific to the exchange API endpoint
122702
122946
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
@@ -122734,6 +122978,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
122734
122978
  * @method
122735
122979
  * @name deribit#fetchDepositAddress
122736
122980
  * @description fetch the deposit address for a currency associated with this account
122981
+ * @see https://docs.deribit.com/#private-get_current_deposit_address
122737
122982
  * @param {string} code unified currency code
122738
122983
  * @param {object} [params] extra parameters specific to the exchange API endpoint
122739
122984
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
@@ -122852,6 +123097,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
122852
123097
  * @method
122853
123098
  * @name deribit#fetchTicker
122854
123099
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
123100
+ * @see https://docs.deribit.com/#public-ticker
122855
123101
  * @param {string} symbol unified symbol of the market to fetch the ticker for
122856
123102
  * @param {object} [params] extra parameters specific to the exchange API endpoint
122857
123103
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -122898,6 +123144,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
122898
123144
  * @method
122899
123145
  * @name deribit#fetchTickers
122900
123146
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
123147
+ * @see https://docs.deribit.com/#public-get_book_summary_by_currency
122901
123148
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
122902
123149
  * @param {object} [params] extra parameters specific to the exchange API endpoint
122903
123150
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -122954,6 +123201,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
122954
123201
  * @method
122955
123202
  * @name deribit#fetchOHLCV
122956
123203
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
123204
+ * @see https://docs.deribit.com/#public-get_tradingview_chart_data
122957
123205
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
122958
123206
  * @param {string} timeframe the length of time each candle represents
122959
123207
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -123103,7 +123351,8 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
123103
123351
  /**
123104
123352
  * @method
123105
123353
  * @name deribit#fetchTrades
123106
- * @see https://docs.deribit.com/#private-get_user_trades_by_currency
123354
+ * @see https://docs.deribit.com/#public-get_last_trades_by_instrument
123355
+ * @see https://docs.deribit.com/#public-get_last_trades_by_instrument_and_time
123107
123356
  * @description get the list of most recent trades for a particular symbol.
123108
123357
  * @param {string} symbol unified symbol of the market to fetch trades for
123109
123358
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
@@ -123164,6 +123413,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
123164
123413
  * @method
123165
123414
  * @name deribit#fetchTradingFees
123166
123415
  * @description fetch the trading fees for multiple markets
123416
+ * @see https://docs.deribit.com/#private-get_account_summary
123167
123417
  * @param {object} [params] extra parameters specific to the exchange API endpoint
123168
123418
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
123169
123419
  */
@@ -123284,6 +123534,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
123284
123534
  * @method
123285
123535
  * @name deribit#fetchOrderBook
123286
123536
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
123537
+ * @see https://docs.deribit.com/#public-get_order_book
123287
123538
  * @param {string} symbol unified symbol of the market to fetch the order book for
123288
123539
  * @param {int} [limit] the maximum amount of order book entries to return
123289
123540
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -123474,6 +123725,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
123474
123725
  * @method
123475
123726
  * @name deribit#fetchOrder
123476
123727
  * @description fetches information on an order made by the user
123728
+ * @see https://docs.deribit.com/#private-get_order_state
123477
123729
  * @param {string} symbol unified symbol of the market the order was made in
123478
123730
  * @param {object} [params] extra parameters specific to the exchange API endpoint
123479
123731
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -123524,6 +123776,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
123524
123776
  * @name deribit#createOrder
123525
123777
  * @description create a trade order
123526
123778
  * @see https://docs.deribit.com/#private-buy
123779
+ * @see https://docs.deribit.com/#private-sell
123527
123780
  * @param {string} symbol unified symbol of the market to create an order in
123528
123781
  * @param {string} type 'market' or 'limit'
123529
123782
  * @param {string} side 'buy' or 'sell'
@@ -123745,6 +123998,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
123745
123998
  * @method
123746
123999
  * @name deribit#cancelOrder
123747
124000
  * @description cancels an open order
124001
+ * @see https://docs.deribit.com/#private-cancel
123748
124002
  * @param {string} id order id
123749
124003
  * @param {string} symbol not used by deribit cancelOrder ()
123750
124004
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -123763,6 +124017,8 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
123763
124017
  * @method
123764
124018
  * @name deribit#cancelAllOrders
123765
124019
  * @description cancel all open orders
124020
+ * @see https://docs.deribit.com/#private-cancel_all
124021
+ * @see https://docs.deribit.com/#private-cancel_all_by_instrument
123766
124022
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
123767
124023
  * @param {object} [params] extra parameters specific to the exchange API endpoint
123768
124024
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -123785,6 +124041,8 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
123785
124041
  * @method
123786
124042
  * @name deribit#fetchOpenOrders
123787
124043
  * @description fetch all unfilled currently open orders
124044
+ * @see https://docs.deribit.com/#private-get_open_orders_by_currency
124045
+ * @see https://docs.deribit.com/#private-get_open_orders_by_instrument
123788
124046
  * @param {string} symbol unified market symbol
123789
124047
  * @param {int} [since] the earliest time in ms to fetch open orders for
123790
124048
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -123814,6 +124072,8 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
123814
124072
  * @method
123815
124073
  * @name deribit#fetchClosedOrders
123816
124074
  * @description fetches information on multiple closed orders made by the user
124075
+ * @see https://docs.deribit.com/#private-get_order_history_by_currency
124076
+ * @see https://docs.deribit.com/#private-get_order_history_by_instrument
123817
124077
  * @param {string} symbol unified market symbol of the market orders were made in
123818
124078
  * @param {int} [since] the earliest time in ms to fetch orders for
123819
124079
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -123843,6 +124103,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
123843
124103
  * @method
123844
124104
  * @name deribit#fetchOrderTrades
123845
124105
  * @description fetch all the trades made from a single order
124106
+ * @see https://docs.deribit.com/#private-get_user_trades_by_order
123846
124107
  * @param {string} id order id
123847
124108
  * @param {string} symbol unified market symbol
123848
124109
  * @param {int} [since] the earliest time in ms to fetch trades for
@@ -123896,6 +124157,10 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
123896
124157
  * @method
123897
124158
  * @name deribit#fetchMyTrades
123898
124159
  * @description fetch all trades made by the user
124160
+ * @see https://docs.deribit.com/#private-get_user_trades_by_currency
124161
+ * @see https://docs.deribit.com/#private-get_user_trades_by_currency_and_time
124162
+ * @see https://docs.deribit.com/#private-get_user_trades_by_instrument
124163
+ * @see https://docs.deribit.com/#private-get_user_trades_by_instrument_and_time
123899
124164
  * @param {string} symbol unified market symbol
123900
124165
  * @param {int} [since] the earliest time in ms to fetch trades for
123901
124166
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -123976,6 +124241,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
123976
124241
  * @method
123977
124242
  * @name deribit#fetchDeposits
123978
124243
  * @description fetch all deposits made to an account
124244
+ * @see https://docs.deribit.com/#private-get_deposits
123979
124245
  * @param {string} code unified currency code
123980
124246
  * @param {int} [since] the earliest time in ms to fetch deposits for
123981
124247
  * @param {int} [limit] the maximum number of deposits structures to retrieve
@@ -124023,6 +124289,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
124023
124289
  * @method
124024
124290
  * @name deribit#fetchWithdrawals
124025
124291
  * @description fetch all withdrawals made from an account
124292
+ * @see https://docs.deribit.com/#private-get_withdrawals
124026
124293
  * @param {string} code unified currency code
124027
124294
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
124028
124295
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
@@ -124395,6 +124662,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
124395
124662
  * @method
124396
124663
  * @name deribit#fetchTransfers
124397
124664
  * @description fetch a history of internal transfers made on an account
124665
+ * @see https://docs.deribit.com/#private-get_transfers
124398
124666
  * @param {string} code unified currency code of the currency transferred
124399
124667
  * @param {int} [since] the earliest time in ms to fetch transfers for
124400
124668
  * @param {int} [limit] the maximum number of transfers structures to retrieve
@@ -124455,6 +124723,8 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
124455
124723
  * @method
124456
124724
  * @name deribit#transfer
124457
124725
  * @description transfer currency internally between wallets on the same account
124726
+ * @see https://docs.deribit.com/#private-submit_transfer_to_user
124727
+ * @see https://docs.deribit.com/#private-submit_transfer_to_subaccount
124458
124728
  * @param {string} code unified currency code
124459
124729
  * @param {float} amount amount to transfer
124460
124730
  * @param {string} fromAccount account to transfer from
@@ -124547,6 +124817,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
124547
124817
  * @method
124548
124818
  * @name deribit#withdraw
124549
124819
  * @description make a withdrawal
124820
+ * @see https://docs.deribit.com/#private-withdraw
124550
124821
  * @param {string} code unified currency code
124551
124822
  * @param {float} amount the amount to withdraw
124552
124823
  * @param {string} address the address to withdraw to
@@ -129751,6 +130022,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
129751
130022
  * @method
129752
130023
  * @name exmo#reduceMargin
129753
130024
  * @description remove margin from a position
130025
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#eebf9f25-0289-4946-9482-89872c738449
129754
130026
  * @param {string} symbol unified market symbol
129755
130027
  * @param {float} amount the amount of margin to remove
129756
130028
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -129763,6 +130035,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
129763
130035
  * @method
129764
130036
  * @name exmo#addMargin
129765
130037
  * @description add margin
130038
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#143ef808-79ca-4e49-9e79-a60ea4d8c0e3
129766
130039
  * @param {string} symbol unified market symbol
129767
130040
  * @param {float} amount amount of margin to add
129768
130041
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -129775,6 +130048,8 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
129775
130048
  * @method
129776
130049
  * @name exmo#fetchTradingFees
129777
130050
  * @description fetch the trading fees for multiple markets
130051
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#90927062-256c-4b03-900f-2b99131f9a54
130052
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa
129778
130053
  * @param {object} [params] extra parameters specific to the exchange API endpoint
129779
130054
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
129780
130055
  */
@@ -130062,6 +130337,8 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
130062
130337
  * @method
130063
130338
  * @name exmo#fetchCurrencies
130064
130339
  * @description fetches all available currencies on an exchange
130340
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7cdf0ca8-9ff6-4cf3-aa33-bcec83155c49
130341
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
130065
130342
  * @param {object} [params] extra parameters specific to the exchange API endpoint
130066
130343
  * @returns {object} an associative dictionary of currencies
130067
130344
  */
@@ -130188,6 +130465,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
130188
130465
  * @method
130189
130466
  * @name exmo#fetchMarkets
130190
130467
  * @description retrieves data on all markets for exmo
130468
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa
130191
130469
  * @param {object} [params] extra parameters specific to the exchange API endpoint
130192
130470
  * @returns {object[]} an array of objects representing market data
130193
130471
  */
@@ -130315,6 +130593,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
130315
130593
  * @method
130316
130594
  * @name exmo#fetchOHLCV
130317
130595
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
130596
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#65eeb949-74e5-4631-9184-c38387fe53e8
130318
130597
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
130319
130598
  * @param {string} timeframe the length of time each candle represents
130320
130599
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -130428,6 +130707,8 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
130428
130707
  * @method
130429
130708
  * @name exmo#fetchBalance
130430
130709
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
130710
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#59c5160f-27a1-4d9a-8cfb-7979c7ffaac6
130711
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c8388df7-1f9f-4d41-81c4-5a387d171dc6
130431
130712
  * @param {object} [params] extra parameters specific to the exchange API endpoint
130432
130713
  * @param {string} [params.marginMode] *isolated* fetches the isolated margin balance
130433
130714
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
@@ -130475,6 +130756,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
130475
130756
  * @method
130476
130757
  * @name exmo#fetchOrderBook
130477
130758
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
130759
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c60c51a8-e683-4f45-a000-820723d37871
130478
130760
  * @param {string} symbol unified symbol of the market to fetch the order book for
130479
130761
  * @param {int} [limit] the maximum amount of order book entries to return
130480
130762
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -130497,6 +130779,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
130497
130779
  * @method
130498
130780
  * @name exmo#fetchOrderBooks
130499
130781
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
130782
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c60c51a8-e683-4f45-a000-820723d37871
130500
130783
  * @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
130501
130784
  * @param {int} [limit] max number of entries per orderbook to return, default is undefined
130502
130785
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -130577,6 +130860,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
130577
130860
  * @method
130578
130861
  * @name exmo#fetchTickers
130579
130862
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
130863
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4c8e6459-3503-4361-b012-c34bb9f7e385
130580
130864
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
130581
130865
  * @param {object} [params] extra parameters specific to the exchange API endpoint
130582
130866
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -130615,6 +130899,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
130615
130899
  * @method
130616
130900
  * @name exmo#fetchTicker
130617
130901
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
130902
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4c8e6459-3503-4361-b012-c34bb9f7e385
130618
130903
  * @param {string} symbol unified symbol of the market to fetch the ticker for
130619
130904
  * @param {object} [params] extra parameters specific to the exchange API endpoint
130620
130905
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -130719,6 +131004,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
130719
131004
  * @method
130720
131005
  * @name exmo#fetchTrades
130721
131006
  * @description get the list of most recent trades for a particular symbol
131007
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#5a5a9c0d-cf17-47f6-9d62-6d4404ebd5ac
130722
131008
  * @param {string} symbol unified symbol of the market to fetch trades for
130723
131009
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
130724
131010
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -131559,6 +131845,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
131559
131845
  * @method
131560
131846
  * @name exmo#fetchDepositAddress
131561
131847
  * @description fetch the deposit address for a currency associated with this account
131848
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c8f9ced9-7ab6-4383-a6a4-bc54469ba60e
131562
131849
  * @param {string} code unified currency code
131563
131850
  * @param {object} [params] extra parameters specific to the exchange API endpoint
131564
131851
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
@@ -131605,6 +131892,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
131605
131892
  * @method
131606
131893
  * @name exmo#withdraw
131607
131894
  * @description make a withdrawal
131895
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#3ab9c34d-ad58-4f87-9c57-2e2ea88a8325
131608
131896
  * @param {string} code unified currency code
131609
131897
  * @param {float} amount the amount to withdraw
131610
131898
  * @param {string} address the address to withdraw to
@@ -131784,6 +132072,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
131784
132072
  * @method
131785
132073
  * @name exmo#fetchDepositsWithdrawals
131786
132074
  * @description fetch history of deposits and withdrawals
132075
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#31e69a33-4849-4e6a-b4b4-6d574238f6a7
131787
132076
  * @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
131788
132077
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
131789
132078
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
@@ -131837,6 +132126,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
131837
132126
  * @method
131838
132127
  * @name exmo#fetchWithdrawals
131839
132128
  * @description fetch all withdrawals made from an account
132129
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
131840
132130
  * @param {string} code unified currency code
131841
132131
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
131842
132132
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
@@ -131890,6 +132180,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
131890
132180
  * @method
131891
132181
  * @name exmo#fetchWithdrawal
131892
132182
  * @description fetch data on a currency withdrawal via the withdrawal id
132183
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
131893
132184
  * @param {string} id withdrawal id
131894
132185
  * @param {string} code unified currency code of the currency withdrawn, default is undefined
131895
132186
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -131941,6 +132232,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
131941
132232
  * @method
131942
132233
  * @name exmo#fetchDeposit
131943
132234
  * @description fetch information on a deposit
132235
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
131944
132236
  * @param {string} id deposit id
131945
132237
  * @param {string} code unified currency code, default is undefined
131946
132238
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -131992,6 +132284,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
131992
132284
  * @method
131993
132285
  * @name exmo#fetchDeposits
131994
132286
  * @description fetch all deposits made to an account
132287
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
131995
132288
  * @param {string} code unified currency code
131996
132289
  * @param {int} [since] the earliest time in ms to fetch deposits for
131997
132290
  * @param {int} [limit] the maximum number of deposits structures to retrieve
@@ -139634,6 +139927,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
139634
139927
  * @method
139635
139928
  * @name gemini#fetchMarkets
139636
139929
  * @description retrieves data on all markets for gemini
139930
+ * @see https://docs.gemini.com/rest-api/#symbols
139637
139931
  * @param {object} [params] extra parameters specific to the exchange API endpoint
139638
139932
  * @returns {object[]} an array of objects representing market data
139639
139933
  */
@@ -139894,6 +140188,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
139894
140188
  * @method
139895
140189
  * @name gemini#fetchOrderBook
139896
140190
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
140191
+ * @see https://docs.gemini.com/rest-api/#current-order-book
139897
140192
  * @param {string} symbol unified symbol of the market to fetch the order book for
139898
140193
  * @param {int} [limit] the maximum amount of order book entries to return
139899
140194
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -139972,6 +140267,8 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
139972
140267
  * @method
139973
140268
  * @name gemini#fetchTicker
139974
140269
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
140270
+ * @see https://docs.gemini.com/rest-api/#ticker
140271
+ * @see https://docs.gemini.com/rest-api/#ticker-v2
139975
140272
  * @param {string} symbol unified symbol of the market to fetch the ticker for
139976
140273
  * @param {object} [params] extra parameters specific to the exchange API endpoint
139977
140274
  * @param {object} [params.fetchTickerMethod] 'fetchTickerV2', 'fetchTickerV1' or 'fetchTickerV1AndV2' - 'fetchTickerV1' for original ccxt.gemini.fetchTicker - 'fetchTickerV1AndV2' for 2 api calls to get the result of both fetchTicker methods - default = 'fetchTickerV1'
@@ -140085,6 +140382,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
140085
140382
  * @method
140086
140383
  * @name gemini#fetchTickers
140087
140384
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
140385
+ * @see https://docs.gemini.com/rest-api/#price-feed
140088
140386
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
140089
140387
  * @param {object} [params] extra parameters specific to the exchange API endpoint
140090
140388
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -140227,6 +140525,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
140227
140525
  * @method
140228
140526
  * @name gemini#fetchTradingFees
140229
140527
  * @description fetch the trading fees for multiple markets
140528
+ * @see https://docs.gemini.com/rest-api/#get-notional-volume
140230
140529
  * @param {object} [params] extra parameters specific to the exchange API endpoint
140231
140530
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
140232
140531
  */
@@ -140285,6 +140584,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
140285
140584
  * @method
140286
140585
  * @name gemini#fetchBalance
140287
140586
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
140587
+ * @see https://docs.gemini.com/rest-api/#get-available-balances
140288
140588
  * @param {object} [params] extra parameters specific to the exchange API endpoint
140289
140589
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
140290
140590
  */
@@ -140466,6 +140766,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
140466
140766
  * @method
140467
140767
  * @name gemini#fetchOrder
140468
140768
  * @description fetches information on an order made by the user
140769
+ * @see https://docs.gemini.com/rest-api/#order-status
140469
140770
  * @param {string} symbol unified symbol of the market the order was made in
140470
140771
  * @param {object} [params] extra parameters specific to the exchange API endpoint
140471
140772
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -140505,6 +140806,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
140505
140806
  * @method
140506
140807
  * @name gemini#fetchOpenOrders
140507
140808
  * @description fetch all unfilled currently open orders
140809
+ * @see https://docs.gemini.com/rest-api/#get-active-orders
140508
140810
  * @param {string} symbol unified market symbol
140509
140811
  * @param {int} [since] the earliest time in ms to fetch open orders for
140510
140812
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -140647,6 +140949,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
140647
140949
  * @method
140648
140950
  * @name gemini#cancelOrder
140649
140951
  * @description cancels an open order
140952
+ * @see https://docs.gemini.com/rest-api/#cancel-order
140650
140953
  * @param {string} id order id
140651
140954
  * @param {string} symbol unified symbol of the market the order was made in
140652
140955
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -140688,6 +140991,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
140688
140991
  * @method
140689
140992
  * @name gemini#fetchMyTrades
140690
140993
  * @description fetch all trades made by the user
140994
+ * @see https://docs.gemini.com/rest-api/#get-past-trades
140691
140995
  * @param {string} symbol unified market symbol
140692
140996
  * @param {int} [since] the earliest time in ms to fetch trades for
140693
140997
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -140716,6 +141020,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
140716
141020
  * @method
140717
141021
  * @name gemini#withdraw
140718
141022
  * @description make a withdrawal
141023
+ * @see https://docs.gemini.com/rest-api/#withdraw-crypto-funds
140719
141024
  * @param {string} code unified currency code
140720
141025
  * @param {float} amount the amount to withdraw
140721
141026
  * @param {string} address the address to withdraw to
@@ -140774,6 +141079,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
140774
141079
  * @method
140775
141080
  * @name gemini#fetchDepositsWithdrawals
140776
141081
  * @description fetch history of deposits and withdrawals
141082
+ * @see https://docs.gemini.com/rest-api/#transfers
140777
141083
  * @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
140778
141084
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
140779
141085
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
@@ -140985,6 +141291,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
140985
141291
  * @method
140986
141292
  * @name gemini#createDepositAddress
140987
141293
  * @description create a currency deposit address
141294
+ * @see https://docs.gemini.com/rest-api/#new-deposit-address
140988
141295
  * @param {string} code unified currency code of the currency for the deposit address
140989
141296
  * @param {object} [params] extra parameters specific to the exchange API endpoint
140990
141297
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
@@ -141009,6 +141316,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
141009
141316
  * @method
141010
141317
  * @name gemini#fetchOHLCV
141011
141318
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
141319
+ * @see https://docs.gemini.com/rest-api/#candles
141012
141320
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
141013
141321
  * @param {string} timeframe the length of time each candle represents
141014
141322
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -144873,6 +145181,9 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
144873
145181
  'trades': 1,
144874
145182
  'chart': 1,
144875
145183
  'charts': 1,
145184
+ 'minicharts': 1,
145185
+ 'oracle/prices': 1,
145186
+ 'quick-trade': 1,
144876
145187
  // TradingView
144877
145188
  'udf/config': 1,
144878
145189
  'udf/history': 1,
@@ -144948,6 +145259,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
144948
145259
  * @method
144949
145260
  * @name hollaex#fetchMarkets
144950
145261
  * @description retrieves data on all markets for hollaex
145262
+ * @see https://apidocs.hollaex.com/#constants
144951
145263
  * @param {object} [params] extra parameters specific to the exchange API endpoint
144952
145264
  * @returns {object[]} an array of objects representing market data
144953
145265
  */
@@ -145150,6 +145462,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145150
145462
  * @method
145151
145463
  * @name hollaex#fetchOrderBooks
145152
145464
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
145465
+ * @see https://apidocs.hollaex.com/#orderbooks
145153
145466
  * @param {string[]|undefined} symbols not used by hollaex fetchOrderBooks ()
145154
145467
  * @param {int} [limit] not used by hollaex fetchOrderBooks ()
145155
145468
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -145173,6 +145486,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145173
145486
  * @method
145174
145487
  * @name hollaex#fetchOrderBook
145175
145488
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
145489
+ * @see https://apidocs.hollaex.com/#orderbook
145176
145490
  * @param {string} symbol unified symbol of the market to fetch the order book for
145177
145491
  * @param {int} [limit] the maximum amount of order book entries to return
145178
145492
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -145183,7 +145497,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145183
145497
  const request = {
145184
145498
  'symbol': market['id'],
145185
145499
  };
145186
- const response = await this.publicGetOrderbooks(this.extend(request, params));
145500
+ const response = await this.publicGetOrderbook(this.extend(request, params));
145187
145501
  //
145188
145502
  // {
145189
145503
  // "btc-usdt": {
@@ -145212,6 +145526,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145212
145526
  * @method
145213
145527
  * @name hollaex#fetchTicker
145214
145528
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
145529
+ * @see https://apidocs.hollaex.com/#ticker
145215
145530
  * @param {string} symbol unified symbol of the market to fetch the ticker for
145216
145531
  * @param {object} [params] extra parameters specific to the exchange API endpoint
145217
145532
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -145240,6 +145555,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145240
145555
  * @method
145241
145556
  * @name hollaex#fetchTickers
145242
145557
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
145558
+ * @see https://apidocs.hollaex.com/#tickers
145243
145559
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
145244
145560
  * @param {object} [params] extra parameters specific to the exchange API endpoint
145245
145561
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -145337,6 +145653,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145337
145653
  * @method
145338
145654
  * @name hollaex#fetchTrades
145339
145655
  * @description get the list of most recent trades for a particular symbol
145656
+ * @see https://apidocs.hollaex.com/#trades
145340
145657
  * @param {string} symbol unified symbol of the market to fetch trades for
145341
145658
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
145342
145659
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -145425,6 +145742,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145425
145742
  * @method
145426
145743
  * @name hollaex#fetchTradingFees
145427
145744
  * @description fetch the trading fees for multiple markets
145745
+ * @see https://apidocs.hollaex.com/#tiers
145428
145746
  * @param {object} [params] extra parameters specific to the exchange API endpoint
145429
145747
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
145430
145748
  */
@@ -145484,6 +145802,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145484
145802
  * @method
145485
145803
  * @name hollaex#fetchOHLCV
145486
145804
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
145805
+ * @see https://apidocs.hollaex.com/#chart
145487
145806
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
145488
145807
  * @param {string} timeframe the length of time each candle represents
145489
145808
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -145578,6 +145897,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145578
145897
  * @method
145579
145898
  * @name hollaex#fetchBalance
145580
145899
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
145900
+ * @see https://apidocs.hollaex.com/#get-balance
145581
145901
  * @param {object} [params] extra parameters specific to the exchange API endpoint
145582
145902
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
145583
145903
  */
@@ -145602,6 +145922,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145602
145922
  * @method
145603
145923
  * @name hollaex#fetchOpenOrder
145604
145924
  * @description fetch an open order by it's id
145925
+ * @see https://apidocs.hollaex.com/#get-order
145605
145926
  * @param {string} id order id
145606
145927
  * @param {string} symbol not used by hollaex fetchOpenOrder ()
145607
145928
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -145643,6 +145964,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145643
145964
  * @method
145644
145965
  * @name hollaex#fetchOpenOrders
145645
145966
  * @description fetch all unfilled currently open orders
145967
+ * @see https://apidocs.hollaex.com/#get-all-orders
145646
145968
  * @param {string} symbol unified market symbol
145647
145969
  * @param {int} [since] the earliest time in ms to fetch open orders for
145648
145970
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -145659,6 +145981,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145659
145981
  * @method
145660
145982
  * @name hollaex#fetchClosedOrders
145661
145983
  * @description fetches information on multiple closed orders made by the user
145984
+ * @see https://apidocs.hollaex.com/#get-all-orders
145662
145985
  * @param {string} symbol unified market symbol of the market orders were made in
145663
145986
  * @param {int} [since] the earliest time in ms to fetch orders for
145664
145987
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -145675,6 +145998,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145675
145998
  * @method
145676
145999
  * @name hollaex#fetchOrder
145677
146000
  * @description fetches information on an order made by the user
146001
+ * @see https://apidocs.hollaex.com/#get-order
145678
146002
  * @param {string} symbol unified symbol of the market the order was made in
145679
146003
  * @param {object} [params] extra parameters specific to the exchange API endpoint
145680
146004
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -145717,6 +146041,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145717
146041
  * @method
145718
146042
  * @name hollaex#fetchOrders
145719
146043
  * @description fetches information on multiple orders made by the user
146044
+ * @see https://apidocs.hollaex.com/#get-all-orders
145720
146045
  * @param {string} symbol unified market symbol of the market orders were made in
145721
146046
  * @param {int} [since] the earliest time in ms to fetch orders for
145722
146047
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -145861,6 +146186,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145861
146186
  * @method
145862
146187
  * @name hollaex#createOrder
145863
146188
  * @description create a trade order
146189
+ * @see https://apidocs.hollaex.com/#create-order
145864
146190
  * @param {string} symbol unified symbol of the market to create an order in
145865
146191
  * @param {string} type 'market' or 'limit'
145866
146192
  * @param {string} side 'buy' or 'sell'
@@ -145929,6 +146255,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145929
146255
  * @method
145930
146256
  * @name hollaex#cancelOrder
145931
146257
  * @description cancels an open order
146258
+ * @see https://apidocs.hollaex.com/#cancel-order
145932
146259
  * @param {string} id order id
145933
146260
  * @param {string} symbol unified symbol of the market the order was made in
145934
146261
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -145959,6 +146286,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145959
146286
  * @method
145960
146287
  * @name hollaex#cancelAllOrders
145961
146288
  * @description cancel all open orders in a market
146289
+ * @see https://apidocs.hollaex.com/#cancel-all-orders
145962
146290
  * @param {string} symbol unified market symbol of the market to cancel orders in
145963
146291
  * @param {object} [params] extra parameters specific to the exchange API endpoint
145964
146292
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -145994,6 +146322,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
145994
146322
  * @method
145995
146323
  * @name hollaex#fetchMyTrades
145996
146324
  * @description fetch all trades made by the user
146325
+ * @see https://apidocs.hollaex.com/#get-trades
145997
146326
  * @param {string} symbol unified market symbol
145998
146327
  * @param {int} [since] the earliest time in ms to fetch trades for
145999
146328
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -146075,6 +146404,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
146075
146404
  * @method
146076
146405
  * @name hollaex#fetchDepositAddresses
146077
146406
  * @description fetch deposit addresses for multiple currencies and chain types
146407
+ * @see https://apidocs.hollaex.com/#get-user
146078
146408
  * @param {string[]|undefined} codes list of unified currency codes, default is undefined
146079
146409
  * @param {object} [params] extra parameters specific to the exchange API endpoint
146080
146410
  * @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
@@ -146137,6 +146467,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
146137
146467
  * @method
146138
146468
  * @name hollaex#fetchDeposits
146139
146469
  * @description fetch all deposits made to an account
146470
+ * @see https://apidocs.hollaex.com/#get-deposits
146140
146471
  * @param {string} code unified currency code
146141
146472
  * @param {int} [since] the earliest time in ms to fetch deposits for
146142
146473
  * @param {int} [limit] the maximum number of deposits structures to retrieve
@@ -146196,6 +146527,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
146196
146527
  * @method
146197
146528
  * @name hollaex#fetchWithdrawal
146198
146529
  * @description fetch data on a currency withdrawal via the withdrawal id
146530
+ * @see https://apidocs.hollaex.com/#get-withdrawals
146199
146531
  * @param {string} id withdrawal id
146200
146532
  * @param {string} code unified currency code of the currency withdrawn, default is undefined
146201
146533
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -146243,6 +146575,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
146243
146575
  * @method
146244
146576
  * @name hollaex#fetchWithdrawals
146245
146577
  * @description fetch all withdrawals made from an account
146578
+ * @see https://apidocs.hollaex.com/#get-withdrawals
146246
146579
  * @param {string} code unified currency code
146247
146580
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
146248
146581
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
@@ -146403,6 +146736,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
146403
146736
  * @method
146404
146737
  * @name hollaex#withdraw
146405
146738
  * @description make a withdrawal
146739
+ * @see https://apidocs.hollaex.com/#withdrawal
146406
146740
  * @param {string} code unified currency code
146407
146741
  * @param {float} amount the amount to withdraw
146408
146742
  * @param {string} address the address to withdraw to
@@ -157852,8 +158186,10 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
157852
158186
  'fetchPositions': false,
157853
158187
  'fetchPositionsRisk': false,
157854
158188
  'fetchPremiumIndexOHLCV': false,
158189
+ 'fetchStatus': true,
157855
158190
  'fetchTicker': true,
157856
158191
  'fetchTickers': true,
158192
+ 'fetchTime': true,
157857
158193
  'fetchTrades': true,
157858
158194
  'fetchTradingFee': false,
157859
158195
  'fetchTradingFees': true,
@@ -157967,6 +158303,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
157967
158303
  * @method
157968
158304
  * @name idex#fetchMarkets
157969
158305
  * @description retrieves data on all markets for idex
158306
+ * @see https://api-docs-v3.idex.io/#get-markets
157970
158307
  * @param {object} [params] extra parameters specific to the exchange API endpoint
157971
158308
  * @returns {object[]} an array of objects representing market data
157972
158309
  */
@@ -158097,6 +158434,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
158097
158434
  * @method
158098
158435
  * @name idex#fetchTicker
158099
158436
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
158437
+ * @see https://api-docs-v3.idex.io/#get-tickers
158100
158438
  * @param {string} symbol unified symbol of the market to fetch the ticker for
158101
158439
  * @param {object} [params] extra parameters specific to the exchange API endpoint
158102
158440
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -158133,6 +158471,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
158133
158471
  * @method
158134
158472
  * @name idex#fetchTickers
158135
158473
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
158474
+ * @see https://api-docs-v3.idex.io/#get-tickers
158136
158475
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
158137
158476
  * @param {object} [params] extra parameters specific to the exchange API endpoint
158138
158477
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -158209,6 +158548,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
158209
158548
  * @method
158210
158549
  * @name idex#fetchOHLCV
158211
158550
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
158551
+ * @see https://api-docs-v3.idex.io/#get-candles
158212
158552
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
158213
158553
  * @param {string} timeframe the length of time each candle represents
158214
158554
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -158271,6 +158611,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
158271
158611
  * @method
158272
158612
  * @name idex#fetchTrades
158273
158613
  * @description get the list of most recent trades for a particular symbol
158614
+ * @see https://api-docs-v3.idex.io/#get-trades
158274
158615
  * @param {string} symbol unified symbol of the market to fetch trades for
158275
158616
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
158276
158617
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -158384,6 +158725,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
158384
158725
  * @method
158385
158726
  * @name idex#fetchTradingFees
158386
158727
  * @description fetch the trading fees for multiple markets
158728
+ * @see https://api-docs-v3.idex.io/#get-api-account
158387
158729
  * @param {object} [params] extra parameters specific to the exchange API endpoint
158388
158730
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
158389
158731
  */
@@ -158429,6 +158771,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
158429
158771
  * @method
158430
158772
  * @name idex#fetchOrderBook
158431
158773
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
158774
+ * @see https://api-docs-v3.idex.io/#get-order-books
158432
158775
  * @param {string} symbol unified symbol of the market to fetch the order book for
158433
158776
  * @param {int} [limit] the maximum amount of order book entries to return
158434
158777
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -158492,6 +158835,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
158492
158835
  * @method
158493
158836
  * @name idex#fetchCurrencies
158494
158837
  * @description fetches all available currencies on an exchange
158838
+ * @see https://api-docs-v3.idex.io/#get-assets
158495
158839
  * @param {object} [params] extra parameters specific to the exchange API endpoint
158496
158840
  * @returns {object} an associative dictionary of currencies
158497
158841
  */
@@ -158557,6 +158901,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
158557
158901
  * @method
158558
158902
  * @name idex#fetchBalance
158559
158903
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
158904
+ * @see https://api-docs-v3.idex.io/#get-balances
158560
158905
  * @param {object} [params] extra parameters specific to the exchange API endpoint
158561
158906
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
158562
158907
  */
@@ -158601,6 +158946,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
158601
158946
  * @method
158602
158947
  * @name idex#fetchMyTrades
158603
158948
  * @description fetch all trades made by the user
158949
+ * @see https://api-docs-v3.idex.io/#get-fills
158604
158950
  * @param {string} symbol unified market symbol
158605
158951
  * @param {int} [since] the earliest time in ms to fetch trades for
158606
158952
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -158669,6 +159015,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
158669
159015
  * @method
158670
159016
  * @name idex#fetchOrder
158671
159017
  * @description fetches information on an order made by the user
159018
+ * @see https://api-docs-v3.idex.io/#get-orders
158672
159019
  * @param {string} symbol unified symbol of the market the order was made in
158673
159020
  * @param {object} [params] extra parameters specific to the exchange API endpoint
158674
159021
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -158683,6 +159030,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
158683
159030
  * @method
158684
159031
  * @name idex#fetchOpenOrders
158685
159032
  * @description fetch all unfilled currently open orders
159033
+ * @see https://api-docs-v3.idex.io/#get-orders
158686
159034
  * @param {string} symbol unified market symbol
158687
159035
  * @param {int} [since] the earliest time in ms to fetch open orders for
158688
159036
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -158699,6 +159047,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
158699
159047
  * @method
158700
159048
  * @name idex#fetchClosedOrders
158701
159049
  * @description fetches information on multiple closed orders made by the user
159050
+ * @see https://api-docs-v3.idex.io/#get-orders
158702
159051
  * @param {string} symbol unified market symbol of the market orders were made in
158703
159052
  * @param {int} [since] the earliest time in ms to fetch orders for
158704
159053
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -158910,16 +159259,20 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
158910
159259
  * @method
158911
159260
  * @name idex#createOrder
158912
159261
  * @description create a trade order, https://docs.idex.io/#create-order
159262
+ * @see https://api-docs-v3.idex.io/#create-order
158913
159263
  * @param {string} symbol unified symbol of the market to create an order in
158914
159264
  * @param {string} type 'market' or 'limit'
158915
159265
  * @param {string} side 'buy' or 'sell'
158916
159266
  * @param {float} amount how much of currency you want to trade in units of base currency
158917
159267
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
158918
159268
  * @param {object} [params] extra parameters specific to the exchange API endpoint
159269
+ * @param {bool} [params.test] set to true to test an order, no order will be created but the request will be validated
158919
159270
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
158920
159271
  */
158921
159272
  this.checkRequiredCredentials();
158922
159273
  await this.loadMarkets();
159274
+ const testOrder = this.safeBool(params, 'test', false);
159275
+ params = this.omit(params, 'test');
158923
159276
  const market = this.market(symbol);
158924
159277
  const nonce = this.uuidv1();
158925
159278
  let typeEnum = undefined;
@@ -159100,7 +159453,13 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
159100
159453
  // "avgExecutionPrice": "0.09905990"
159101
159454
  // }
159102
159455
  // we don't use extend here because it is a signed endpoint
159103
- const response = await this.privatePostOrders(request);
159456
+ let response = undefined;
159457
+ if (testOrder) {
159458
+ response = await this.privatePostOrdersTest(request);
159459
+ }
159460
+ else {
159461
+ response = await this.privatePostOrders(request);
159462
+ }
159104
159463
  return this.parseOrder(response, market);
159105
159464
  }
159106
159465
  async withdraw(code, amount, address, tag = undefined, params = {}) {
@@ -159108,6 +159467,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
159108
159467
  * @method
159109
159468
  * @name idex#withdraw
159110
159469
  * @description make a withdrawal
159470
+ * @see https://api-docs-v3.idex.io/#withdraw-funds
159111
159471
  * @param {string} code unified currency code
159112
159472
  * @param {float} amount the amount to withdraw
159113
159473
  * @param {string} address the address to withdraw to
@@ -159161,6 +159521,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
159161
159521
  * @method
159162
159522
  * @name idex#cancelAllOrders
159163
159523
  * @description cancel all open orders
159524
+ * @see https://api-docs-v3.idex.io/#cancel-order
159164
159525
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
159165
159526
  * @param {object} [params] extra parameters specific to the exchange API endpoint
159166
159527
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -159200,6 +159561,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
159200
159561
  * @method
159201
159562
  * @name idex#cancelOrder
159202
159563
  * @description cancels an open order
159564
+ * @see https://api-docs-v3.idex.io/#cancel-order
159203
159565
  * @param {string} id order id
159204
159566
  * @param {string} symbol unified symbol of the market the order was made in
159205
159567
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -159251,6 +159613,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
159251
159613
  * @method
159252
159614
  * @name idex#fetchDeposit
159253
159615
  * @description fetch information on a deposit
159616
+ * @see https://api-docs-v3.idex.io/#get-deposits
159254
159617
  * @param {string} id deposit id
159255
159618
  * @param {string} code not used by idex fetchDeposit ()
159256
159619
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -159271,6 +159634,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
159271
159634
  * @method
159272
159635
  * @name idex#fetchDeposits
159273
159636
  * @description fetch all deposits made to an account
159637
+ * @see https://api-docs-v3.idex.io/#get-deposits
159274
159638
  * @param {string} code unified currency code
159275
159639
  * @param {int} [since] the earliest time in ms to fetch deposits for
159276
159640
  * @param {int} [limit] the maximum number of deposits structures to retrieve
@@ -159282,11 +159646,30 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
159282
159646
  }, params);
159283
159647
  return await this.fetchTransactionsHelper(code, since, limit, params);
159284
159648
  }
159649
+ async fetchStatus(params = {}) {
159650
+ /**
159651
+ * @method
159652
+ * @name idex#fetchStatus
159653
+ * @description the latest known information on the availability of the exchange API
159654
+ * @see https://api-docs-v3.idex.io/#get-ping
159655
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
159656
+ * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
159657
+ */
159658
+ const response = await this.publicGetPing(params);
159659
+ return {
159660
+ 'status': 'ok',
159661
+ 'updated': undefined,
159662
+ 'eta': undefined,
159663
+ 'url': undefined,
159664
+ 'info': response,
159665
+ };
159666
+ }
159285
159667
  async fetchTime(params = {}) {
159286
159668
  /**
159287
159669
  * @method
159288
159670
  * @name idex#fetchTime
159289
159671
  * @description fetches the current integer timestamp in milliseconds from the exchange server
159672
+ * @see https://api-docs-v3.idex.io/#get-time
159290
159673
  * @param {object} [params] extra parameters specific to the exchange API endpoint
159291
159674
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
159292
159675
  */
@@ -159301,6 +159684,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
159301
159684
  * @method
159302
159685
  * @name idex#fetchWithdrawal
159303
159686
  * @description fetch data on a currency withdrawal via the withdrawal id
159687
+ * @see https://api-docs-v3.idex.io/#get-withdrawals
159304
159688
  * @param {string} id withdrawal id
159305
159689
  * @param {string} code not used by idex.fetchWithdrawal
159306
159690
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -159321,6 +159705,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
159321
159705
  * @method
159322
159706
  * @name idex#fetchWithdrawals
159323
159707
  * @description fetch all withdrawals made from an account
159708
+ * @see https://api-docs-v3.idex.io/#get-withdrawals
159324
159709
  * @param {string} code unified currency code
159325
159710
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
159326
159711
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
@@ -160425,6 +160810,9 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
160425
160810
  'fetchCrossBorrowRate': false,
160426
160811
  'fetchCrossBorrowRates': false,
160427
160812
  'fetchDeposit': false,
160813
+ 'fetchDepositAddress': 'emulated',
160814
+ 'fetchDepositAddresses': true,
160815
+ 'fetchDepositAddressesByNetwork': false,
160428
160816
  'fetchDeposits': false,
160429
160817
  'fetchDepositsWithdrawals': true,
160430
160818
  'fetchFundingHistory': false,
@@ -160473,7 +160861,7 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
160473
160861
  'urls': {
160474
160862
  'logo': 'https://user-images.githubusercontent.com/51840849/87070508-9358c880-c221-11ea-8dc5-5391afbbb422.jpg',
160475
160863
  'api': {
160476
- 'public': 'https://indodax.com/api',
160864
+ 'public': 'https://indodax.com',
160477
160865
  'private': 'https://indodax.com/tapi',
160478
160866
  },
160479
160867
  'www': 'https://www.indodax.com',
@@ -160483,14 +160871,15 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
160483
160871
  'api': {
160484
160872
  'public': {
160485
160873
  'get': {
160486
- 'server_time': 5,
160487
- 'pairs': 5,
160488
- 'price_increments': 5,
160489
- 'summaries': 5,
160490
- 'ticker_all': 5,
160491
- '{pair}/ticker': 5,
160492
- '{pair}/trades': 5,
160493
- '{pair}/depth': 5,
160874
+ 'api/server_time': 5,
160875
+ 'api/pairs': 5,
160876
+ 'api/price_increments': 5,
160877
+ 'api/summaries': 5,
160878
+ 'api/ticker/{pair}': 5,
160879
+ 'api/ticker_all': 5,
160880
+ 'api/trades/{pair}': 5,
160881
+ 'api/depth/{pair}': 5,
160882
+ 'tradingview/history_v2': 5,
160494
160883
  },
160495
160884
  },
160496
160885
  'private': {
@@ -160536,7 +160925,35 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
160536
160925
  'options': {
160537
160926
  'recvWindow': 5 * 1000,
160538
160927
  'timeDifference': 0,
160539
- 'adjustForTimeDifference': false, // controls the adjustment logic upon instantiation
160928
+ 'adjustForTimeDifference': false,
160929
+ 'networks': {
160930
+ 'XLM': 'Stellar Token',
160931
+ 'BSC': 'bep20',
160932
+ 'TRC20': 'trc20',
160933
+ 'MATIC': 'polygon',
160934
+ // 'BEP2': 'bep2',
160935
+ // 'ARB': 'arb',
160936
+ // 'ERC20': 'erc20',
160937
+ // 'KIP7': 'kip7',
160938
+ // 'MAINNET': 'mainnet', // TODO: does mainnet just mean the default?
160939
+ // 'OEP4': 'oep4',
160940
+ // 'OP': 'op',
160941
+ // 'SPL': 'spl',
160942
+ // 'TRC10': 'trc10',
160943
+ // 'ZRC2': 'zrc2'
160944
+ // 'ETH': 'eth'
160945
+ // 'BASE': 'base'
160946
+ },
160947
+ 'timeframes': {
160948
+ '1m': '1',
160949
+ '15m': '15',
160950
+ '30m': '30',
160951
+ '1h': '60',
160952
+ '4h': '240',
160953
+ '1d': '1D',
160954
+ '3d': '3D',
160955
+ '1w': '1W',
160956
+ },
160540
160957
  },
160541
160958
  'commonCurrencies': {
160542
160959
  'STR': 'XLM',
@@ -160556,10 +160973,11 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
160556
160973
  * @method
160557
160974
  * @name indodax#fetchTime
160558
160975
  * @description fetches the current integer timestamp in milliseconds from the exchange server
160976
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#server-time
160559
160977
  * @param {object} [params] extra parameters specific to the exchange API endpoint
160560
160978
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
160561
160979
  */
160562
- const response = await this.publicGetServerTime(params);
160980
+ const response = await this.publicGetApiServerTime(params);
160563
160981
  //
160564
160982
  // {
160565
160983
  // "timezone": "UTC",
@@ -160573,10 +160991,11 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
160573
160991
  * @method
160574
160992
  * @name indodax#fetchMarkets
160575
160993
  * @description retrieves data on all markets for indodax
160994
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#pairs
160576
160995
  * @param {object} [params] extra parameters specific to the exchange API endpoint
160577
160996
  * @returns {object[]} an array of objects representing market data
160578
160997
  */
160579
- const response = await this.publicGetPairs(params);
160998
+ const response = await this.publicGetApiPairs(params);
160580
160999
  //
160581
161000
  // [
160582
161001
  // {
@@ -160693,6 +161112,7 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
160693
161112
  * @method
160694
161113
  * @name indodax#fetchBalance
160695
161114
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
161115
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#get-info-endpoint
160696
161116
  * @param {object} [params] extra parameters specific to the exchange API endpoint
160697
161117
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
160698
161118
  */
@@ -160735,6 +161155,7 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
160735
161155
  * @method
160736
161156
  * @name indodax#fetchOrderBook
160737
161157
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
161158
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#depth
160738
161159
  * @param {string} symbol unified symbol of the market to fetch the order book for
160739
161160
  * @param {int} [limit] the maximum amount of order book entries to return
160740
161161
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -160743,9 +161164,9 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
160743
161164
  await this.loadMarkets();
160744
161165
  const market = this.market(symbol);
160745
161166
  const request = {
160746
- 'pair': market['id'],
161167
+ 'pair': market['base'] + market['quote'],
160747
161168
  };
160748
- const orderbook = await this.publicGetPairDepth(this.extend(request, params));
161169
+ const orderbook = await this.publicGetApiDepthPair(this.extend(request, params));
160749
161170
  return this.parseOrderBook(orderbook, market['symbol'], undefined, 'buy', 'sell');
160750
161171
  }
160751
161172
  parseTicker(ticker, market = undefined) {
@@ -160794,6 +161215,7 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
160794
161215
  * @method
160795
161216
  * @name indodax#fetchTicker
160796
161217
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
161218
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker
160797
161219
  * @param {string} symbol unified symbol of the market to fetch the ticker for
160798
161220
  * @param {object} [params] extra parameters specific to the exchange API endpoint
160799
161221
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -160801,9 +161223,9 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
160801
161223
  await this.loadMarkets();
160802
161224
  const market = this.market(symbol);
160803
161225
  const request = {
160804
- 'pair': market['id'],
161226
+ 'pair': market['base'] + market['quote'],
160805
161227
  };
160806
- const response = await this.publicGetPairTicker(this.extend(request, params));
161228
+ const response = await this.publicGetApiTickerPair(this.extend(request, params));
160807
161229
  //
160808
161230
  // {
160809
161231
  // "ticker": {
@@ -160848,7 +161270,7 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
160848
161270
  // }
160849
161271
  // }
160850
161272
  //
160851
- const response = await this.publicGetTickerAll(params);
161273
+ const response = await this.publicGetApiTickerAll(params);
160852
161274
  const tickers = this.safeValue(response, 'tickers');
160853
161275
  return this.parseTickers(tickers, symbols);
160854
161276
  }
@@ -160875,6 +161297,7 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
160875
161297
  * @method
160876
161298
  * @name indodax#fetchTrades
160877
161299
  * @description get the list of most recent trades for a particular symbol
161300
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#trades
160878
161301
  * @param {string} symbol unified symbol of the market to fetch trades for
160879
161302
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
160880
161303
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -160884,11 +161307,81 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
160884
161307
  await this.loadMarkets();
160885
161308
  const market = this.market(symbol);
160886
161309
  const request = {
160887
- 'pair': market['id'],
161310
+ 'pair': market['base'] + market['quote'],
160888
161311
  };
160889
- const response = await this.publicGetPairTrades(this.extend(request, params));
161312
+ const response = await this.publicGetApiTradesPair(this.extend(request, params));
160890
161313
  return this.parseTrades(response, market, since, limit);
160891
161314
  }
161315
+ parseOHLCV(ohlcv, market = undefined) {
161316
+ //
161317
+ // {
161318
+ // "Time": 1708416900,
161319
+ // "Open": 51707.52,
161320
+ // "High": 51707.52,
161321
+ // "Low": 51707.52,
161322
+ // "Close": 51707.52,
161323
+ // "Volume": "0"
161324
+ // }
161325
+ //
161326
+ return [
161327
+ this.safeTimestamp(ohlcv, 'Time'),
161328
+ this.safeNumber(ohlcv, 'Open'),
161329
+ this.safeNumber(ohlcv, 'High'),
161330
+ this.safeNumber(ohlcv, 'Low'),
161331
+ this.safeNumber(ohlcv, 'Close'),
161332
+ this.safeNumber(ohlcv, 'Volume'),
161333
+ ];
161334
+ }
161335
+ async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
161336
+ /**
161337
+ * @method
161338
+ * @name indodax#fetchOHLCV
161339
+ * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
161340
+ * @param {string} symbol unified symbol of the market to fetch OHLCV data for
161341
+ * @param {string} timeframe the length of time each candle represents
161342
+ * @param {int} [since] timestamp in ms of the earliest candle to fetch
161343
+ * @param {int} [limit] the maximum amount of candles to fetch
161344
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
161345
+ * @param {int} [params.until] timestamp in ms of the latest candle to fetch
161346
+ * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
161347
+ */
161348
+ await this.loadMarkets();
161349
+ const market = this.market(symbol);
161350
+ const timeframes = this.options['timeframes'];
161351
+ const selectedTimeframe = this.safeString(timeframes, timeframe, timeframe);
161352
+ const now = this.seconds();
161353
+ const until = this.safeInteger2(params, 'until', 'till', now);
161354
+ params = this.omit(params, ['until', 'till']);
161355
+ const request = {
161356
+ 'to': until,
161357
+ 'tf': selectedTimeframe,
161358
+ 'symbol': market['base'] + market['quote'],
161359
+ };
161360
+ if (limit === undefined) {
161361
+ limit = 1000;
161362
+ }
161363
+ if (since !== undefined) {
161364
+ request['from'] = Math.floor(since / 1000);
161365
+ }
161366
+ else {
161367
+ const duration = this.parseTimeframe(timeframe);
161368
+ request['from'] = now - limit * duration - 1;
161369
+ }
161370
+ const response = await this.publicGetTradingviewHistoryV2(this.extend(request, params));
161371
+ //
161372
+ // [
161373
+ // {
161374
+ // "Time": 1708416900,
161375
+ // "Open": 51707.52,
161376
+ // "High": 51707.52,
161377
+ // "Low": 51707.52,
161378
+ // "Close": 51707.52,
161379
+ // "Volume": "0"
161380
+ // }
161381
+ // ]
161382
+ //
161383
+ return this.parseOHLCVs(response, market, timeframe, since, limit);
161384
+ }
160892
161385
  parseOrderStatus(status) {
160893
161386
  const statuses = {
160894
161387
  'open': 'open',
@@ -160980,6 +161473,7 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
160980
161473
  * @method
160981
161474
  * @name indodax#fetchOrder
160982
161475
  * @description fetches information on an order made by the user
161476
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#get-order-endpoints
160983
161477
  * @param {string} symbol unified symbol of the market the order was made in
160984
161478
  * @param {object} [params] extra parameters specific to the exchange API endpoint
160985
161479
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -161004,6 +161498,7 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
161004
161498
  * @method
161005
161499
  * @name indodax#fetchOpenOrders
161006
161500
  * @description fetch all unfilled currently open orders
161501
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#open-orders-endpoints
161007
161502
  * @param {string} symbol unified market symbol
161008
161503
  * @param {int} [since] the earliest time in ms to fetch open orders for
161009
161504
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -161044,6 +161539,7 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
161044
161539
  * @method
161045
161540
  * @name indodax#fetchClosedOrders
161046
161541
  * @description fetches information on multiple closed orders made by the user
161542
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#order-history
161047
161543
  * @param {string} symbol unified market symbol of the market orders were made in
161048
161544
  * @param {int} [since] the earliest time in ms to fetch orders for
161049
161545
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -161068,6 +161564,7 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
161068
161564
  * @method
161069
161565
  * @name indodax#createOrder
161070
161566
  * @description create a trade order
161567
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#trade-endpoints
161071
161568
  * @param {string} symbol unified symbol of the market to create an order in
161072
161569
  * @param {string} type 'market' or 'limit'
161073
161570
  * @param {string} side 'buy' or 'sell'
@@ -161107,6 +161604,7 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
161107
161604
  * @method
161108
161605
  * @name indodax#cancelOrder
161109
161606
  * @description cancels an open order
161607
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#cancel-order-endpoints
161110
161608
  * @param {string} id order id
161111
161609
  * @param {string} symbol unified symbol of the market the order was made in
161112
161610
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -161133,6 +161631,7 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
161133
161631
  * @method
161134
161632
  * @name indodax#fetchTransactionFee
161135
161633
  * @description fetch the fee for a transaction
161634
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#withdraw-fee-endpoints
161136
161635
  * @param {string} code unified currency code
161137
161636
  * @param {object} [params] extra parameters specific to the exchange API endpoint
161138
161637
  * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
@@ -161166,6 +161665,7 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
161166
161665
  * @method
161167
161666
  * @name indodax#fetchDepositsWithdrawals
161168
161667
  * @description fetch history of deposits and withdrawals
161668
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#transaction-history-endpoints
161169
161669
  * @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
161170
161670
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
161171
161671
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
@@ -161267,6 +161767,7 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
161267
161767
  * @method
161268
161768
  * @name indodax#withdraw
161269
161769
  * @description make a withdrawal
161770
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#withdraw-coin-endpoints
161270
161771
  * @param {string} code unified currency code
161271
161772
  * @param {float} amount the amount to withdraw
161272
161773
  * @param {string} address the address to withdraw to
@@ -161395,10 +161896,100 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
161395
161896
  };
161396
161897
  return this.safeString(statuses, status, status);
161397
161898
  }
161899
+ async fetchDepositAddresses(codes = undefined, params = {}) {
161900
+ /**
161901
+ * @method
161902
+ * @name indodax#fetchDepositAddresses
161903
+ * @description fetch deposit addresses for multiple currencies and chain types
161904
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#general-information-on-endpoints
161905
+ * @param {string[]} [codes] list of unified currency codes, default is undefined
161906
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
161907
+ * @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
161908
+ */
161909
+ await this.loadMarkets();
161910
+ const response = await this.privatePostGetInfo(params);
161911
+ //
161912
+ // {
161913
+ // success: '1',
161914
+ // return: {
161915
+ // server_time: '1708031570',
161916
+ // balance: {
161917
+ // idr: '29952',
161918
+ // ...
161919
+ // },
161920
+ // balance_hold: {
161921
+ // idr: '0',
161922
+ // ...
161923
+ // },
161924
+ // address: {
161925
+ // btc: '1KMntgzvU7iTSgMBWc11nVuJjAyfW3qJyk',
161926
+ // ...
161927
+ // },
161928
+ // memo_is_required: {
161929
+ // btc: { mainnet: false },
161930
+ // ...
161931
+ // },
161932
+ // network: {
161933
+ // btc: 'mainnet',
161934
+ // ...
161935
+ // },
161936
+ // user_id: '276011',
161937
+ // name: '',
161938
+ // email: 'testbitcoincoid@mailforspam.com',
161939
+ // profile_picture: null,
161940
+ // verification_status: 'unverified',
161941
+ // gauth_enable: true,
161942
+ // withdraw_status: '0'
161943
+ // }
161944
+ // }
161945
+ //
161946
+ const data = this.safeDict(response, 'return');
161947
+ const addresses = this.safeDict(data, 'address', {});
161948
+ const networks = this.safeDict(data, 'network', {});
161949
+ const addressKeys = Object.keys(addresses);
161950
+ const result = {
161951
+ 'info': data,
161952
+ };
161953
+ for (let i = 0; i < addressKeys.length; i++) {
161954
+ const marketId = addressKeys[i];
161955
+ const code = this.safeCurrencyCode(marketId);
161956
+ const address = this.safeString(addresses, marketId);
161957
+ if ((address !== undefined) && ((codes === undefined) || (this.inArray(code, codes)))) {
161958
+ this.checkAddress(address);
161959
+ let network = undefined;
161960
+ if (marketId in networks) {
161961
+ const networkId = this.safeString(networks, marketId);
161962
+ if (networkId.indexOf(',') >= 0) {
161963
+ network = [];
161964
+ const networkIds = networkId.split(',');
161965
+ for (let j = 0; j < networkIds.length; j++) {
161966
+ network.push(this.networkIdToCode(networkIds[j]).toUpperCase());
161967
+ }
161968
+ }
161969
+ else {
161970
+ network = this.networkIdToCode(networkId).toUpperCase();
161971
+ }
161972
+ }
161973
+ result[code] = {
161974
+ 'info': {},
161975
+ 'currency': code,
161976
+ 'address': address,
161977
+ 'network': network,
161978
+ 'tag': undefined,
161979
+ };
161980
+ }
161981
+ }
161982
+ return result;
161983
+ }
161398
161984
  sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
161399
161985
  let url = this.urls['api'][api];
161400
161986
  if (api === 'public') {
161401
- url += '/' + this.implodeParams(path, params);
161987
+ const query = this.omit(params, this.extractParams(path));
161988
+ const requestPath = '/' + this.implodeParams(path, params);
161989
+ url = url + requestPath;
161990
+ if (Object.keys(query).length) {
161991
+ url += '?' + this.urlencodeWithArrayRepeat(query);
161992
+ }
161402
161993
  }
161403
161994
  else {
161404
161995
  this.checkRequiredCredentials();
@@ -202803,6 +203394,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
202803
203394
  * @method
202804
203395
  * @name okx#fetchPositions
202805
203396
  * @see https://www.okx.com/docs-v5/en/#rest-api-account-get-positions
203397
+ * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-positions-history history
202806
203398
  * @description fetch all open positions
202807
203399
  * @param {string[]|undefined} symbols list of unified market symbols
202808
203400
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -202943,13 +203535,38 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
202943
203535
  // "vegaBS": "",
202944
203536
  // "vegaPA": ""
202945
203537
  // }
203538
+ // history
203539
+ // {
203540
+ // "cTime":"1708351230102",
203541
+ // "ccy":"USDT",
203542
+ // "closeAvgPx":"1.2567",
203543
+ // "closeTotalPos":"40",
203544
+ // "direction":"short",
203545
+ // "fee":"-0.0351036",
203546
+ // "fundingFee":"0",
203547
+ // "instId":"SUSHI-USDT-SWAP",
203548
+ // "instType":"SWAP",
203549
+ // "lever":"10.0",
203550
+ // "liqPenalty":"0",
203551
+ // "mgnMode":"isolated",
203552
+ // "openAvgPx":"1.2462",
203553
+ // "openMaxPos":"40",
203554
+ // "pnl":"-0.42",
203555
+ // "pnlRatio":"-0.0912982667308618",
203556
+ // "posId":"666159086676836352",
203557
+ // "realizedPnl":"-0.4551036",
203558
+ // "triggerPx":"",
203559
+ // "type":"2",
203560
+ // "uTime":"1708354805699",
203561
+ // "uly":"SUSHI-USDT"
203562
+ // }
202946
203563
  //
202947
203564
  const marketId = this.safeString(position, 'instId');
202948
203565
  market = this.safeMarket(marketId, market);
202949
203566
  const symbol = market['symbol'];
202950
203567
  const pos = this.safeString(position, 'pos'); // 'pos' field: One way mode: 0 if position is not open, 1 if open | Two way (hedge) mode: -1 if short, 1 if long, 0 if position is not open
202951
203568
  const contractsAbs = _base_Precise_js__WEBPACK_IMPORTED_MODULE_3__/* .Precise */ .O.stringAbs(pos);
202952
- let side = this.safeString(position, 'posSide');
203569
+ let side = this.safeString2(position, 'posSide', 'direction');
202953
203570
  const hedged = side !== 'net';
202954
203571
  const contracts = this.parseNumber(contractsAbs);
202955
203572
  if (market['margin']) {
@@ -202990,7 +203607,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
202990
203607
  const notional = this.parseNumber(notionalString);
202991
203608
  const marginMode = this.safeString(position, 'mgnMode');
202992
203609
  let initialMarginString = undefined;
202993
- const entryPriceString = this.safeString(position, 'avgPx');
203610
+ const entryPriceString = this.safeString2(position, 'avgPx', 'openAvgPx');
202994
203611
  const unrealizedPnlString = this.safeString(position, 'upl');
202995
203612
  const leverageString = this.safeString(position, 'lever');
202996
203613
  let initialMarginPercentage = undefined;
@@ -203021,23 +203638,24 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
203021
203638
  const marginRatio = this.parseNumber(_base_Precise_js__WEBPACK_IMPORTED_MODULE_3__/* .Precise */ .O.stringDiv(maintenanceMarginString, collateralString, 4));
203022
203639
  return this.safePosition({
203023
203640
  'info': position,
203024
- 'id': undefined,
203641
+ 'id': this.safeString(position, 'posId'),
203025
203642
  'symbol': symbol,
203026
203643
  'notional': notional,
203027
203644
  'marginMode': marginMode,
203028
203645
  'liquidationPrice': liquidationPrice,
203029
203646
  'entryPrice': this.parseNumber(entryPriceString),
203030
203647
  'unrealizedPnl': this.parseNumber(unrealizedPnlString),
203648
+ 'realizedPnl': this.safeNumber(position, 'realizedPnl'),
203031
203649
  'percentage': percentage,
203032
203650
  'contracts': contracts,
203033
203651
  'contractSize': contractSize,
203034
203652
  'markPrice': this.parseNumber(markPriceString),
203035
- 'lastPrice': undefined,
203653
+ 'lastPrice': this.safeNumber(position, 'closeAvgPx'),
203036
203654
  'side': side,
203037
203655
  'hedged': hedged,
203038
203656
  'timestamp': timestamp,
203039
203657
  'datetime': this.iso8601(timestamp),
203040
- 'lastUpdateTimestamp': undefined,
203658
+ 'lastUpdateTimestamp': this.safeInteger(position, 'uTime'),
203041
203659
  'maintenanceMargin': maintenanceMargin,
203042
203660
  'maintenanceMarginPercentage': maintenanceMarginPercentage,
203043
203661
  'collateral': this.parseNumber(collateralString),
@@ -246337,7 +246955,7 @@ class hitbtc extends _hitbtc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z
246337
246955
  'symbols': [market['id']],
246338
246956
  },
246339
246957
  };
246340
- const orderbook = await this.subscribePublic(name, name, [symbol], this.deepExtend(request, params));
246958
+ const orderbook = await this.subscribePublic(name, 'orderbooks', [symbol], this.deepExtend(request, params));
246341
246959
  return orderbook.limit();
246342
246960
  }
246343
246961
  handleOrderBook(client, message) {
@@ -246366,13 +246984,12 @@ class hitbtc extends _hitbtc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z
246366
246984
  //
246367
246985
  const data = this.safeValue2(message, 'snapshot', 'update', {});
246368
246986
  const marketIds = Object.keys(data);
246369
- const channel = this.safeString(message, 'ch');
246370
246987
  for (let i = 0; i < marketIds.length; i++) {
246371
246988
  const marketId = marketIds[i];
246372
246989
  const market = this.safeMarket(marketId);
246373
246990
  const symbol = market['symbol'];
246374
246991
  const item = data[marketId];
246375
- const messageHash = channel + '::' + symbol;
246992
+ const messageHash = 'orderbooks::' + symbol;
246376
246993
  if (!(symbol in this.orderbooks)) {
246377
246994
  const subscription = this.safeValue(client.subscriptions, messageHash, {});
246378
246995
  const limit = this.safeInteger(subscription, 'limit');
@@ -246430,7 +247047,7 @@ class hitbtc extends _hitbtc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z
246430
247047
  'symbols': [market['id']],
246431
247048
  },
246432
247049
  };
246433
- const result = await this.subscribePublic(name, 'ticker', [symbol], this.deepExtend(request, params));
247050
+ const result = await this.subscribePublic(name, 'tickers', [symbol], this.deepExtend(request, params));
246434
247051
  return this.safeValue(result, symbol);
246435
247052
  }
246436
247053
  async watchTickers(symbols = undefined, params = {}) {
@@ -246513,7 +247130,6 @@ class hitbtc extends _hitbtc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z
246513
247130
  //
246514
247131
  const data = this.safeValue(message, 'data', {});
246515
247132
  const marketIds = Object.keys(data);
246516
- const channel = this.safeString(message, 'ch');
246517
247133
  const newTickers = {};
246518
247134
  for (let i = 0; i < marketIds.length; i++) {
246519
247135
  const marketId = marketIds[i];
@@ -246522,8 +247138,6 @@ class hitbtc extends _hitbtc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z
246522
247138
  const ticker = this.parseWsTicker(data[marketId], market);
246523
247139
  this.tickers[symbol] = ticker;
246524
247140
  newTickers[symbol] = ticker;
246525
- const messageHash = channel + '::' + symbol;
246526
- client.resolve(newTickers, messageHash);
246527
247141
  }
246528
247142
  client.resolve(newTickers, 'tickers');
246529
247143
  const messageHashes = this.findMessageHashes(client, 'tickers::');
@@ -246539,7 +247153,6 @@ class hitbtc extends _hitbtc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z
246539
247153
  client.resolve(tickers, messageHash);
246540
247154
  }
246541
247155
  }
246542
- client.resolve(this.tickers, channel);
246543
247156
  return message;
246544
247157
  }
246545
247158
  parseWsTicker(ticker, market = undefined) {
@@ -246620,7 +247233,7 @@ class hitbtc extends _hitbtc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z
246620
247233
  request['limit'] = limit;
246621
247234
  }
246622
247235
  const name = 'trades';
246623
- const trades = await this.subscribePublic(name, name, [symbol], this.deepExtend(request, params));
247236
+ const trades = await this.subscribePublic(name, 'trades', [symbol], this.deepExtend(request, params));
246624
247237
  if (this.newUpdates) {
246625
247238
  limit = trades.getLimit(symbol, limit);
246626
247239
  }
@@ -246749,7 +247362,7 @@ class hitbtc extends _hitbtc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z
246749
247362
  if (limit !== undefined) {
246750
247363
  request['params']['limit'] = limit;
246751
247364
  }
246752
- const ohlcv = await this.subscribePublic(name, name, [symbol], this.deepExtend(request, params));
247365
+ const ohlcv = await this.subscribePublic(name, 'candles', [symbol], this.deepExtend(request, params));
246753
247366
  if (this.newUpdates) {
246754
247367
  limit = ohlcv.getLimit(symbol, limit);
246755
247368
  }
@@ -246810,7 +247423,7 @@ class hitbtc extends _hitbtc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z
246810
247423
  for (let j = 0; j < ohlcvs.length; j++) {
246811
247424
  stored.append(ohlcvs[j]);
246812
247425
  }
246813
- const messageHash = channel + '::' + symbol;
247426
+ const messageHash = 'candles::' + symbol;
246814
247427
  client.resolve(stored, messageHash);
246815
247428
  }
246816
247429
  return message;
@@ -286545,6 +287158,7 @@ class upbit extends _abstract_upbit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
286545
287158
  'fetchClosedOrders': true,
286546
287159
  'fetchDepositAddress': true,
286547
287160
  'fetchDepositAddresses': true,
287161
+ 'fetchDeposit': true,
286548
287162
  'fetchDeposits': true,
286549
287163
  'fetchFundingHistory': false,
286550
287164
  'fetchFundingRate': false,
@@ -286570,6 +287184,7 @@ class upbit extends _abstract_upbit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
286570
287184
  'fetchTradingFee': true,
286571
287185
  'fetchTradingFees': false,
286572
287186
  'fetchTransactions': false,
287187
+ 'fetchWithdrawal': true,
286573
287188
  'fetchWithdrawals': true,
286574
287189
  'transfer': false,
286575
287190
  'withdraw': true,
@@ -287695,6 +288310,45 @@ class upbit extends _abstract_upbit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
287695
288310
  //
287696
288311
  return this.parseTransactions(response, currency, since, limit);
287697
288312
  }
288313
+ async fetchDeposit(id, code = undefined, params = {}) {
288314
+ /**
288315
+ * @method
288316
+ * @name upbit#fetchDeposit
288317
+ * @description fetch information on a deposit
288318
+ * @see https://global-docs.upbit.com/reference/individual-deposit-inquiry
288319
+ * @param {string} id the unique id for the deposit
288320
+ * @param {string} [code] unified currency code of the currency deposited
288321
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
288322
+ * @param {string} [params.txid] withdrawal transaction id, the id argument is reserved for uuid
288323
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
288324
+ */
288325
+ await this.loadMarkets();
288326
+ const request = {
288327
+ 'uuid': id,
288328
+ };
288329
+ let currency = undefined;
288330
+ if (code !== undefined) {
288331
+ currency = this.currency(code);
288332
+ request['currency'] = currency['id'];
288333
+ }
288334
+ const response = await this.privateGetDeposit(this.extend(request, params));
288335
+ //
288336
+ // {
288337
+ // "type": "deposit",
288338
+ // "uuid": "7f54527e-2eee-4268-860e-fd8b9d7fe3c7",
288339
+ // "currency": "ADA",
288340
+ // "net_type": "ADA",
288341
+ // "txid": "99795bbfeca91eaa071068bb659b33eeb65d8aaff2551fdf7c78f345d188952b",
288342
+ // "state": "ACCEPTED",
288343
+ // "created_at": "2023-12-12T04:58:41Z",
288344
+ // "done_at": "2023-12-12T05:31:50Z",
288345
+ // "amount": "35.72344",
288346
+ // "fee": "0.0",
288347
+ // "transaction_type": "default"
288348
+ // }
288349
+ //
288350
+ return this.parseTransaction(response, currency);
288351
+ }
287698
288352
  async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
287699
288353
  /**
287700
288354
  * @method
@@ -287739,13 +288393,52 @@ class upbit extends _abstract_upbit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
287739
288393
  //
287740
288394
  return this.parseTransactions(response, currency, since, limit);
287741
288395
  }
288396
+ async fetchWithdrawal(id, code = undefined, params = {}) {
288397
+ /**
288398
+ * @method
288399
+ * @name upbit#fetchWithdrawal
288400
+ * @description fetch data on a currency withdrawal via the withdrawal id
288401
+ * @see https://global-docs.upbit.com/reference/individual-withdrawal-inquiry
288402
+ * @param {string} id the unique id for the withdrawal
288403
+ * @param {string} [code] unified currency code of the currency withdrawn
288404
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
288405
+ * @param {string} [params.txid] withdrawal transaction id, the id argument is reserved for uuid
288406
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
288407
+ */
288408
+ await this.loadMarkets();
288409
+ const request = {
288410
+ 'uuid': id,
288411
+ };
288412
+ let currency = undefined;
288413
+ if (code !== undefined) {
288414
+ currency = this.currency(code);
288415
+ request['currency'] = currency['id'];
288416
+ }
288417
+ const response = await this.privateGetWithdraw(this.extend(request, params));
288418
+ //
288419
+ // {
288420
+ // "type": "withdraw",
288421
+ // "uuid": "95ef274b-23a6-4de4-95b0-5cbef4ca658f",
288422
+ // "currency": "ADA",
288423
+ // "net_type": "ADA",
288424
+ // "txid": "b1528f149297a71671b86636f731f8fdb0ff53da0f1d8c19093d59df96f34583",
288425
+ // "state": "DONE",
288426
+ // "created_at": "2023-12-14T02:46:52Z",
288427
+ // "done_at": "2023-12-14T03:10:11Z",
288428
+ // "amount": "35.22344",
288429
+ // "fee": "0.5",
288430
+ // "transaction_type": "default"
288431
+ // }
288432
+ //
288433
+ return this.parseTransaction(response, currency);
288434
+ }
287742
288435
  parseTransactionStatus(status) {
287743
288436
  const statuses = {
287744
288437
  'submitting': 'pending',
287745
288438
  'submitted': 'pending',
287746
288439
  'almost_accepted': 'pending',
287747
288440
  'rejected': 'failed',
287748
- 'accepted': 'pending',
288441
+ 'accepted': 'ok',
287749
288442
  'processing': 'pending',
287750
288443
  'done': 'ok',
287751
288444
  'canceled': 'canceled', // 취소됨
@@ -287754,7 +288447,7 @@ class upbit extends _abstract_upbit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
287754
288447
  }
287755
288448
  parseTransaction(transaction, currency = undefined) {
287756
288449
  //
287757
- // fetchDeposits
288450
+ // fetchDeposits, fetchDeposit
287758
288451
  //
287759
288452
  // {
287760
288453
  // "type": "deposit",
@@ -287768,7 +288461,7 @@ class upbit extends _abstract_upbit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
287768
288461
  // "fee": "0.0"
287769
288462
  // }
287770
288463
  //
287771
- // fetchWithdrawals
288464
+ // fetchWithdrawals, fetchWithdrawal
287772
288465
  //
287773
288466
  // {
287774
288467
  // "type": "withdraw",
@@ -287783,27 +288476,21 @@ class upbit extends _abstract_upbit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
287783
288476
  // "krw_amount": "80420.0"
287784
288477
  // }
287785
288478
  //
287786
- const id = this.safeString(transaction, 'uuid');
287787
- const amount = this.safeNumber(transaction, 'amount');
287788
288479
  const address = undefined; // not present in the data structure received from the exchange
287789
288480
  const tag = undefined; // not present in the data structure received from the exchange
287790
- const txid = this.safeString(transaction, 'txid');
287791
288481
  const updatedRaw = this.safeString(transaction, 'done_at');
287792
- const updated = this.parse8601(updatedRaw);
287793
288482
  const timestamp = this.parse8601(this.safeString(transaction, 'created_at', updatedRaw));
287794
288483
  let type = this.safeString(transaction, 'type');
287795
288484
  if (type === 'withdraw') {
287796
288485
  type = 'withdrawal';
287797
288486
  }
287798
288487
  const currencyId = this.safeString(transaction, 'currency');
287799
- const code = this.safeCurrencyCode(currencyId);
287800
- const status = this.parseTransactionStatus(this.safeStringLower(transaction, 'state'));
287801
- const feeCost = this.safeNumber(transaction, 'fee');
288488
+ const code = this.safeCurrencyCode(currencyId, currency);
287802
288489
  return {
287803
288490
  'info': transaction,
287804
- 'id': id,
288491
+ 'id': this.safeString(transaction, 'uuid'),
287805
288492
  'currency': code,
287806
- 'amount': amount,
288493
+ 'amount': this.safeNumber(transaction, 'amount'),
287807
288494
  'network': undefined,
287808
288495
  'address': address,
287809
288496
  'addressTo': undefined,
@@ -287811,17 +288498,17 @@ class upbit extends _abstract_upbit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
287811
288498
  'tag': tag,
287812
288499
  'tagTo': undefined,
287813
288500
  'tagFrom': undefined,
287814
- 'status': status,
288501
+ 'status': this.parseTransactionStatus(this.safeStringLower(transaction, 'state')),
287815
288502
  'type': type,
287816
- 'updated': updated,
287817
- 'txid': txid,
288503
+ 'updated': this.parse8601(updatedRaw),
288504
+ 'txid': this.safeString(transaction, 'txid'),
287818
288505
  'timestamp': timestamp,
287819
288506
  'datetime': this.iso8601(timestamp),
287820
288507
  'internal': undefined,
287821
288508
  'comment': undefined,
287822
288509
  'fee': {
287823
288510
  'currency': code,
287824
- 'cost': feeCost,
288511
+ 'cost': this.safeNumber(transaction, 'fee'),
287825
288512
  },
287826
288513
  };
287827
288514
  }
@@ -306631,7 +307318,7 @@ SOFTWARE.
306631
307318
 
306632
307319
  //-----------------------------------------------------------------------------
306633
307320
  // this is updated by vss.js when building
306634
- const version = '4.2.46';
307321
+ const version = '4.2.48';
306635
307322
  _src_base_Exchange_js__WEBPACK_IMPORTED_MODULE_0__/* .Exchange */ .e.ccxtVersion = version;
306636
307323
  //-----------------------------------------------------------------------------
306637
307324