ccxt 4.2.47 → 4.2.49

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.
Files changed (59) hide show
  1. package/README.md +3 -3
  2. package/build.sh +7 -0
  3. package/dist/ccxt.browser.js +681 -84
  4. package/dist/ccxt.browser.min.js +3 -3
  5. package/dist/cjs/ccxt.js +1 -1
  6. package/dist/cjs/src/binance.js +10 -4
  7. package/dist/cjs/src/bitmart.js +30 -4
  8. package/dist/cjs/src/bitstamp.js +8 -0
  9. package/dist/cjs/src/btcalpha.js +4 -0
  10. package/dist/cjs/src/btcmarkets.js +4 -0
  11. package/dist/cjs/src/btcturk.js +4 -0
  12. package/dist/cjs/src/bybit.js +138 -6
  13. package/dist/cjs/src/idex.js +52 -1
  14. package/dist/cjs/src/independentreserve.js +48 -0
  15. package/dist/cjs/src/indodax.js +120 -19
  16. package/dist/cjs/src/latoken.js +16 -0
  17. package/dist/cjs/src/luno.js +18 -0
  18. package/dist/cjs/src/lykke.js +19 -0
  19. package/dist/cjs/src/ndax.js +18 -0
  20. package/dist/cjs/src/okx.js +32 -5
  21. package/dist/cjs/src/pro/ascendex.js +22 -7
  22. package/dist/cjs/src/pro/bitget.js +28 -7
  23. package/dist/cjs/src/pro/bitstamp.js +1 -1
  24. package/dist/cjs/src/pro/hitbtc.js +6 -11
  25. package/dist/cjs/src/pro/mexc.js +2 -1
  26. package/dist/cjs/src/upbit.js +100 -17
  27. package/js/ccxt.d.ts +1 -1
  28. package/js/ccxt.js +1 -1
  29. package/js/src/abstract/bitstamp.d.ts +8 -0
  30. package/js/src/abstract/indodax.d.ts +9 -8
  31. package/js/src/binance.js +10 -4
  32. package/js/src/bitmart.js +30 -4
  33. package/js/src/bitstamp.js +8 -0
  34. package/js/src/btcalpha.js +4 -0
  35. package/js/src/btcmarkets.js +4 -0
  36. package/js/src/btcturk.js +4 -0
  37. package/js/src/bybit.d.ts +3 -1
  38. package/js/src/bybit.js +138 -6
  39. package/js/src/idex.d.ts +7 -0
  40. package/js/src/idex.js +52 -1
  41. package/js/src/independentreserve.d.ts +15 -1
  42. package/js/src/independentreserve.js +48 -0
  43. package/js/src/indodax.d.ts +3 -1
  44. package/js/src/indodax.js +120 -19
  45. package/js/src/latoken.js +16 -0
  46. package/js/src/luno.js +18 -0
  47. package/js/src/lykke.js +19 -0
  48. package/js/src/ndax.js +18 -0
  49. package/js/src/okx.js +32 -5
  50. package/js/src/pro/ascendex.d.ts +1 -0
  51. package/js/src/pro/ascendex.js +22 -7
  52. package/js/src/pro/bitget.js +28 -7
  53. package/js/src/pro/bitstamp.js +1 -1
  54. package/js/src/pro/hitbtc.js +6 -11
  55. package/js/src/pro/mexc.js +2 -1
  56. package/js/src/upbit.d.ts +2 -0
  57. package/js/src/upbit.js +100 -17
  58. package/package.json +3 -1
  59. package/skip-tests.json +4 -2
@@ -41,6 +41,9 @@ class independentreserve extends independentreserve$1 {
41
41
  'fetchClosedOrders': true,
42
42
  'fetchCrossBorrowRate': false,
43
43
  'fetchCrossBorrowRates': false,
44
+ 'fetchDepositAddress': true,
45
+ 'fetchDepositAddresses': false,
46
+ 'fetchDepositAddressesByNetwork': false,
44
47
  'fetchFundingHistory': false,
45
48
  'fetchFundingRate': false,
46
49
  'fetchFundingRateHistory': false,
@@ -720,6 +723,51 @@ class independentreserve extends independentreserve$1 {
720
723
  };
721
724
  return await this.privatePostCancelOrder(this.extend(request, params));
722
725
  }
726
+ async fetchDepositAddress(code, params = {}) {
727
+ /**
728
+ * @method
729
+ * @name independentreserve#fetchDepositAddress
730
+ * @description fetch the deposit address for a currency associated with this account
731
+ * @see https://www.independentreserve.com/features/api#GetDigitalCurrencyDepositAddress
732
+ * @param {string} code unified currency code
733
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
734
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
735
+ */
736
+ await this.loadMarkets();
737
+ const currency = this.currency(code);
738
+ const request = {
739
+ 'primaryCurrencyCode': currency['id'],
740
+ };
741
+ const response = await this.privatePostGetDigitalCurrencyDepositAddress(this.extend(request, params));
742
+ //
743
+ // {
744
+ // Tag: '3307446684',
745
+ // DepositAddress: 'GCCQH4HACMRAD56EZZZ4TOIDQQRVNADMJ35QOFWF4B2VQGODMA2WVQ22',
746
+ // LastCheckedTimestampUtc: '2024-02-20T11:13:35.6912985Z',
747
+ // NextUpdateTimestampUtc: '2024-02-20T11:14:56.5112394Z'
748
+ // }
749
+ //
750
+ return this.parseDepositAddress(response);
751
+ }
752
+ parseDepositAddress(depositAddress, currency = undefined) {
753
+ //
754
+ // {
755
+ // Tag: '3307446684',
756
+ // DepositAddress: 'GCCQH4HACMRAD56EZZZ4TOIDQQRVNADMJ35QOFWF4B2VQGODMA2WVQ22',
757
+ // LastCheckedTimestampUtc: '2024-02-20T11:13:35.6912985Z',
758
+ // NextUpdateTimestampUtc: '2024-02-20T11:14:56.5112394Z'
759
+ // }
760
+ //
761
+ const address = this.safeString(depositAddress, 'DepositAddress');
762
+ this.checkAddress(address);
763
+ return {
764
+ 'info': depositAddress,
765
+ 'currency': this.safeString(currency, 'code'),
766
+ 'address': address,
767
+ 'tag': this.safeString(depositAddress, 'Tag'),
768
+ 'network': undefined,
769
+ };
770
+ }
723
771
  sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
724
772
  let url = this.urls['api'][api] + '/' + path;
725
773
  if (api === 'public') {
@@ -97,7 +97,7 @@ class indodax extends indodax$1 {
97
97
  'urls': {
98
98
  'logo': 'https://user-images.githubusercontent.com/51840849/87070508-9358c880-c221-11ea-8dc5-5391afbbb422.jpg',
99
99
  'api': {
100
- 'public': 'https://indodax.com/api',
100
+ 'public': 'https://indodax.com',
101
101
  'private': 'https://indodax.com/tapi',
102
102
  },
103
103
  'www': 'https://www.indodax.com',
@@ -107,14 +107,15 @@ class indodax extends indodax$1 {
107
107
  'api': {
108
108
  'public': {
109
109
  'get': {
110
- 'server_time': 5,
111
- 'pairs': 5,
112
- 'price_increments': 5,
113
- 'summaries': 5,
114
- 'ticker_all': 5,
115
- '{pair}/ticker': 5,
116
- '{pair}/trades': 5,
117
- '{pair}/depth': 5,
110
+ 'api/server_time': 5,
111
+ 'api/pairs': 5,
112
+ 'api/price_increments': 5,
113
+ 'api/summaries': 5,
114
+ 'api/ticker/{pair}': 5,
115
+ 'api/ticker_all': 5,
116
+ 'api/trades/{pair}': 5,
117
+ 'api/depth/{pair}': 5,
118
+ 'tradingview/history_v2': 5,
118
119
  },
119
120
  },
120
121
  'private': {
@@ -179,6 +180,16 @@ class indodax extends indodax$1 {
179
180
  // 'ETH': 'eth'
180
181
  // 'BASE': 'base'
181
182
  },
183
+ 'timeframes': {
184
+ '1m': '1',
185
+ '15m': '15',
186
+ '30m': '30',
187
+ '1h': '60',
188
+ '4h': '240',
189
+ '1d': '1D',
190
+ '3d': '3D',
191
+ '1w': '1W',
192
+ },
182
193
  },
183
194
  'commonCurrencies': {
184
195
  'STR': 'XLM',
@@ -198,10 +209,11 @@ class indodax extends indodax$1 {
198
209
  * @method
199
210
  * @name indodax#fetchTime
200
211
  * @description fetches the current integer timestamp in milliseconds from the exchange server
212
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#server-time
201
213
  * @param {object} [params] extra parameters specific to the exchange API endpoint
202
214
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
203
215
  */
204
- const response = await this.publicGetServerTime(params);
216
+ const response = await this.publicGetApiServerTime(params);
205
217
  //
206
218
  // {
207
219
  // "timezone": "UTC",
@@ -215,10 +227,11 @@ class indodax extends indodax$1 {
215
227
  * @method
216
228
  * @name indodax#fetchMarkets
217
229
  * @description retrieves data on all markets for indodax
230
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#pairs
218
231
  * @param {object} [params] extra parameters specific to the exchange API endpoint
219
232
  * @returns {object[]} an array of objects representing market data
220
233
  */
221
- const response = await this.publicGetPairs(params);
234
+ const response = await this.publicGetApiPairs(params);
222
235
  //
223
236
  // [
224
237
  // {
@@ -335,6 +348,7 @@ class indodax extends indodax$1 {
335
348
  * @method
336
349
  * @name indodax#fetchBalance
337
350
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
351
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#get-info-endpoint
338
352
  * @param {object} [params] extra parameters specific to the exchange API endpoint
339
353
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
340
354
  */
@@ -377,6 +391,7 @@ class indodax extends indodax$1 {
377
391
  * @method
378
392
  * @name indodax#fetchOrderBook
379
393
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
394
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#depth
380
395
  * @param {string} symbol unified symbol of the market to fetch the order book for
381
396
  * @param {int} [limit] the maximum amount of order book entries to return
382
397
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -385,9 +400,9 @@ class indodax extends indodax$1 {
385
400
  await this.loadMarkets();
386
401
  const market = this.market(symbol);
387
402
  const request = {
388
- 'pair': market['id'],
403
+ 'pair': market['base'] + market['quote'],
389
404
  };
390
- const orderbook = await this.publicGetPairDepth(this.extend(request, params));
405
+ const orderbook = await this.publicGetApiDepthPair(this.extend(request, params));
391
406
  return this.parseOrderBook(orderbook, market['symbol'], undefined, 'buy', 'sell');
392
407
  }
393
408
  parseTicker(ticker, market = undefined) {
@@ -436,6 +451,7 @@ class indodax extends indodax$1 {
436
451
  * @method
437
452
  * @name indodax#fetchTicker
438
453
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
454
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker
439
455
  * @param {string} symbol unified symbol of the market to fetch the ticker for
440
456
  * @param {object} [params] extra parameters specific to the exchange API endpoint
441
457
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -443,9 +459,9 @@ class indodax extends indodax$1 {
443
459
  await this.loadMarkets();
444
460
  const market = this.market(symbol);
445
461
  const request = {
446
- 'pair': market['id'],
462
+ 'pair': market['base'] + market['quote'],
447
463
  };
448
- const response = await this.publicGetPairTicker(this.extend(request, params));
464
+ const response = await this.publicGetApiTickerPair(this.extend(request, params));
449
465
  //
450
466
  // {
451
467
  // "ticker": {
@@ -490,7 +506,7 @@ class indodax extends indodax$1 {
490
506
  // }
491
507
  // }
492
508
  //
493
- const response = await this.publicGetTickerAll(params);
509
+ const response = await this.publicGetApiTickerAll(params);
494
510
  const tickers = this.safeValue(response, 'tickers');
495
511
  return this.parseTickers(tickers, symbols);
496
512
  }
@@ -517,6 +533,7 @@ class indodax extends indodax$1 {
517
533
  * @method
518
534
  * @name indodax#fetchTrades
519
535
  * @description get the list of most recent trades for a particular symbol
536
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#trades
520
537
  * @param {string} symbol unified symbol of the market to fetch trades for
521
538
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
522
539
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -526,11 +543,81 @@ class indodax extends indodax$1 {
526
543
  await this.loadMarkets();
527
544
  const market = this.market(symbol);
528
545
  const request = {
529
- 'pair': market['id'],
546
+ 'pair': market['base'] + market['quote'],
530
547
  };
531
- const response = await this.publicGetPairTrades(this.extend(request, params));
548
+ const response = await this.publicGetApiTradesPair(this.extend(request, params));
532
549
  return this.parseTrades(response, market, since, limit);
533
550
  }
551
+ parseOHLCV(ohlcv, market = undefined) {
552
+ //
553
+ // {
554
+ // "Time": 1708416900,
555
+ // "Open": 51707.52,
556
+ // "High": 51707.52,
557
+ // "Low": 51707.52,
558
+ // "Close": 51707.52,
559
+ // "Volume": "0"
560
+ // }
561
+ //
562
+ return [
563
+ this.safeTimestamp(ohlcv, 'Time'),
564
+ this.safeNumber(ohlcv, 'Open'),
565
+ this.safeNumber(ohlcv, 'High'),
566
+ this.safeNumber(ohlcv, 'Low'),
567
+ this.safeNumber(ohlcv, 'Close'),
568
+ this.safeNumber(ohlcv, 'Volume'),
569
+ ];
570
+ }
571
+ async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
572
+ /**
573
+ * @method
574
+ * @name indodax#fetchOHLCV
575
+ * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
576
+ * @param {string} symbol unified symbol of the market to fetch OHLCV data for
577
+ * @param {string} timeframe the length of time each candle represents
578
+ * @param {int} [since] timestamp in ms of the earliest candle to fetch
579
+ * @param {int} [limit] the maximum amount of candles to fetch
580
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
581
+ * @param {int} [params.until] timestamp in ms of the latest candle to fetch
582
+ * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
583
+ */
584
+ await this.loadMarkets();
585
+ const market = this.market(symbol);
586
+ const timeframes = this.options['timeframes'];
587
+ const selectedTimeframe = this.safeString(timeframes, timeframe, timeframe);
588
+ const now = this.seconds();
589
+ const until = this.safeInteger2(params, 'until', 'till', now);
590
+ params = this.omit(params, ['until', 'till']);
591
+ const request = {
592
+ 'to': until,
593
+ 'tf': selectedTimeframe,
594
+ 'symbol': market['base'] + market['quote'],
595
+ };
596
+ if (limit === undefined) {
597
+ limit = 1000;
598
+ }
599
+ if (since !== undefined) {
600
+ request['from'] = Math.floor(since / 1000);
601
+ }
602
+ else {
603
+ const duration = this.parseTimeframe(timeframe);
604
+ request['from'] = now - limit * duration - 1;
605
+ }
606
+ const response = await this.publicGetTradingviewHistoryV2(this.extend(request, params));
607
+ //
608
+ // [
609
+ // {
610
+ // "Time": 1708416900,
611
+ // "Open": 51707.52,
612
+ // "High": 51707.52,
613
+ // "Low": 51707.52,
614
+ // "Close": 51707.52,
615
+ // "Volume": "0"
616
+ // }
617
+ // ]
618
+ //
619
+ return this.parseOHLCVs(response, market, timeframe, since, limit);
620
+ }
534
621
  parseOrderStatus(status) {
535
622
  const statuses = {
536
623
  'open': 'open',
@@ -622,6 +709,7 @@ class indodax extends indodax$1 {
622
709
  * @method
623
710
  * @name indodax#fetchOrder
624
711
  * @description fetches information on an order made by the user
712
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#get-order-endpoints
625
713
  * @param {string} symbol unified symbol of the market the order was made in
626
714
  * @param {object} [params] extra parameters specific to the exchange API endpoint
627
715
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -646,6 +734,7 @@ class indodax extends indodax$1 {
646
734
  * @method
647
735
  * @name indodax#fetchOpenOrders
648
736
  * @description fetch all unfilled currently open orders
737
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#open-orders-endpoints
649
738
  * @param {string} symbol unified market symbol
650
739
  * @param {int} [since] the earliest time in ms to fetch open orders for
651
740
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -686,6 +775,7 @@ class indodax extends indodax$1 {
686
775
  * @method
687
776
  * @name indodax#fetchClosedOrders
688
777
  * @description fetches information on multiple closed orders made by the user
778
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#order-history
689
779
  * @param {string} symbol unified market symbol of the market orders were made in
690
780
  * @param {int} [since] the earliest time in ms to fetch orders for
691
781
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -710,6 +800,7 @@ class indodax extends indodax$1 {
710
800
  * @method
711
801
  * @name indodax#createOrder
712
802
  * @description create a trade order
803
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#trade-endpoints
713
804
  * @param {string} symbol unified symbol of the market to create an order in
714
805
  * @param {string} type 'market' or 'limit'
715
806
  * @param {string} side 'buy' or 'sell'
@@ -749,6 +840,7 @@ class indodax extends indodax$1 {
749
840
  * @method
750
841
  * @name indodax#cancelOrder
751
842
  * @description cancels an open order
843
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#cancel-order-endpoints
752
844
  * @param {string} id order id
753
845
  * @param {string} symbol unified symbol of the market the order was made in
754
846
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -775,6 +867,7 @@ class indodax extends indodax$1 {
775
867
  * @method
776
868
  * @name indodax#fetchTransactionFee
777
869
  * @description fetch the fee for a transaction
870
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#withdraw-fee-endpoints
778
871
  * @param {string} code unified currency code
779
872
  * @param {object} [params] extra parameters specific to the exchange API endpoint
780
873
  * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
@@ -808,6 +901,7 @@ class indodax extends indodax$1 {
808
901
  * @method
809
902
  * @name indodax#fetchDepositsWithdrawals
810
903
  * @description fetch history of deposits and withdrawals
904
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#transaction-history-endpoints
811
905
  * @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
812
906
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
813
907
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
@@ -909,6 +1003,7 @@ class indodax extends indodax$1 {
909
1003
  * @method
910
1004
  * @name indodax#withdraw
911
1005
  * @description make a withdrawal
1006
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#withdraw-coin-endpoints
912
1007
  * @param {string} code unified currency code
913
1008
  * @param {float} amount the amount to withdraw
914
1009
  * @param {string} address the address to withdraw to
@@ -1042,6 +1137,7 @@ class indodax extends indodax$1 {
1042
1137
  * @method
1043
1138
  * @name indodax#fetchDepositAddresses
1044
1139
  * @description fetch deposit addresses for multiple currencies and chain types
1140
+ * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Private-RestAPI.md#general-information-on-endpoints
1045
1141
  * @param {string[]} [codes] list of unified currency codes, default is undefined
1046
1142
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1047
1143
  * @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
@@ -1124,7 +1220,12 @@ class indodax extends indodax$1 {
1124
1220
  sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
1125
1221
  let url = this.urls['api'][api];
1126
1222
  if (api === 'public') {
1127
- url += '/' + this.implodeParams(path, params);
1223
+ const query = this.omit(params, this.extractParams(path));
1224
+ const requestPath = '/' + this.implodeParams(path, params);
1225
+ url = url + requestPath;
1226
+ if (Object.keys(query).length) {
1227
+ url += '?' + this.urlencodeWithArrayRepeat(query);
1228
+ }
1128
1229
  }
1129
1230
  else {
1130
1231
  this.checkRequiredCredentials();
@@ -232,6 +232,7 @@ class latoken extends latoken$1 {
232
232
  * @method
233
233
  * @name latoken#fetchTime
234
234
  * @description fetches the current integer timestamp in milliseconds from the exchange server
235
+ * @see https://api.latoken.com/doc/v2/#tag/Time/operation/currentTime
235
236
  * @param {object} [params] extra parameters specific to the exchange API endpoint
236
237
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
237
238
  */
@@ -248,6 +249,7 @@ class latoken extends latoken$1 {
248
249
  * @method
249
250
  * @name latoken#fetchMarkets
250
251
  * @description retrieves data on all markets for latoken
252
+ * @see https://api.latoken.com/doc/v2/#tag/Pair/operation/getActivePairs
251
253
  * @param {object} [params] extra parameters specific to the exchange API endpoint
252
254
  * @returns {object[]} an array of objects representing market data
253
255
  */
@@ -484,6 +486,7 @@ class latoken extends latoken$1 {
484
486
  * @method
485
487
  * @name latoken#fetchBalance
486
488
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
489
+ * @see https://api.latoken.com/doc/v2/#tag/Account/operation/getBalancesByUser
487
490
  * @param {object} [params] extra parameters specific to the exchange API endpoint
488
491
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
489
492
  */
@@ -550,6 +553,7 @@ class latoken extends latoken$1 {
550
553
  * @method
551
554
  * @name latoken#fetchOrderBook
552
555
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
556
+ * @see https://api.latoken.com/doc/v2/#tag/Order-Book/operation/getOrderBook
553
557
  * @param {string} symbol unified symbol of the market to fetch the order book for
554
558
  * @param {int} [limit] the maximum amount of order book entries to return
555
559
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -635,6 +639,7 @@ class latoken extends latoken$1 {
635
639
  * @method
636
640
  * @name latoken#fetchTicker
637
641
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
642
+ * @see https://api.latoken.com/doc/v2/#tag/Ticker/operation/getTicker
638
643
  * @param {string} symbol unified symbol of the market to fetch the ticker for
639
644
  * @param {object} [params] extra parameters specific to the exchange API endpoint
640
645
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -673,6 +678,7 @@ class latoken extends latoken$1 {
673
678
  * @method
674
679
  * @name latoken#fetchTickers
675
680
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
681
+ * @see https://api.latoken.com/doc/v2/#tag/Ticker/operation/getAllTickers
676
682
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
677
683
  * @param {object} [params] extra parameters specific to the exchange API endpoint
678
684
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -795,6 +801,7 @@ class latoken extends latoken$1 {
795
801
  * @method
796
802
  * @name latoken#fetchTrades
797
803
  * @description get the list of most recent trades for a particular symbol
804
+ * @see https://api.latoken.com/doc/v2/#tag/Trade/operation/getTradesByPair
798
805
  * @param {string} symbol unified symbol of the market to fetch trades for
799
806
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
800
807
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -827,6 +834,8 @@ class latoken extends latoken$1 {
827
834
  * @method
828
835
  * @name latoken#fetchTradingFee
829
836
  * @description fetch the trading fees for a market
837
+ * @see https://api.latoken.com/doc/v2/#tag/Trade/operation/getFeeByPair
838
+ * @see https://api.latoken.com/doc/v2/#tag/Trade/operation/getAuthFeeByPair
830
839
  * @param {string} symbol unified market symbol
831
840
  * @param {object} [params] extra parameters specific to the exchange API endpoint
832
841
  * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
@@ -896,6 +905,8 @@ class latoken extends latoken$1 {
896
905
  * @method
897
906
  * @name latoken#fetchMyTrades
898
907
  * @description fetch all trades made by the user
908
+ * @see https://api.latoken.com/doc/v2/#tag/Trade/operation/getTradesByTrader
909
+ * @see https://api.latoken.com/doc/v2/#tag/Trade/operation/getTradesByAssetAndTrader
899
910
  * @param {string} symbol unified market symbol
900
911
  * @param {int} [since] the earliest time in ms to fetch trades for
901
912
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -1403,6 +1414,7 @@ class latoken extends latoken$1 {
1403
1414
  * @name latoken#fetchTransactions
1404
1415
  * @deprecated
1405
1416
  * @description use fetchDepositsWithdrawals instead
1417
+ * @see https://api.latoken.com/doc/v2/#tag/Transaction/operation/getUserTransactions
1406
1418
  * @param {string} code unified currency code for the currency of the transactions, default is undefined
1407
1419
  * @param {int} [since] timestamp in ms of the earliest transaction, default is undefined
1408
1420
  * @param {int} [limit] max number of transactions to return, default is undefined
@@ -1531,6 +1543,7 @@ class latoken extends latoken$1 {
1531
1543
  * @method
1532
1544
  * @name latoken#fetchTransfers
1533
1545
  * @description fetch a history of internal transfers made on an account
1546
+ * @see https://api.latoken.com/doc/v2/#tag/Transfer/operation/getUsersTransfers
1534
1547
  * @param {string} code unified currency code of the currency transferred
1535
1548
  * @param {int} [since] the earliest time in ms to fetch transfers for
1536
1549
  * @param {int} [limit] the maximum number of transfers structures to retrieve
@@ -1579,6 +1592,9 @@ class latoken extends latoken$1 {
1579
1592
  * @method
1580
1593
  * @name latoken#transfer
1581
1594
  * @description transfer currency internally between wallets on the same account
1595
+ * @see https://api.latoken.com/doc/v2/#tag/Transfer/operation/transferByEmail
1596
+ * @see https://api.latoken.com/doc/v2/#tag/Transfer/operation/transferById
1597
+ * @see https://api.latoken.com/doc/v2/#tag/Transfer/operation/transferByPhone
1582
1598
  * @param {string} code unified currency code
1583
1599
  * @param {float} amount amount to transfer
1584
1600
  * @param {string} fromAccount account to transfer from
@@ -182,6 +182,7 @@ class luno extends luno$1 {
182
182
  * @method
183
183
  * @name luno#fetchMarkets
184
184
  * @description retrieves data on all markets for luno
185
+ * @see https://www.luno.com/en/developers/api#tag/Market/operation/Markets
185
186
  * @param {object} [params] extra parameters specific to the exchange API endpoint
186
187
  * @returns {object[]} an array of objects representing market data
187
188
  */
@@ -272,6 +273,7 @@ class luno extends luno$1 {
272
273
  * @method
273
274
  * @name luno#fetchAccounts
274
275
  * @description fetch all the accounts associated with a profile
276
+ * @see https://www.luno.com/en/developers/api#tag/Accounts/operation/getBalances
275
277
  * @param {object} [params] extra parameters specific to the exchange API endpoint
276
278
  * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
277
279
  */
@@ -326,6 +328,7 @@ class luno extends luno$1 {
326
328
  * @method
327
329
  * @name luno#fetchBalance
328
330
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
331
+ * @see https://www.luno.com/en/developers/api#tag/Accounts/operation/getBalances
329
332
  * @param {object} [params] extra parameters specific to the exchange API endpoint
330
333
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
331
334
  */
@@ -348,6 +351,8 @@ class luno extends luno$1 {
348
351
  * @method
349
352
  * @name luno#fetchOrderBook
350
353
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
354
+ * @see https://www.luno.com/en/developers/api#tag/Market/operation/GetOrderBookFull
355
+ * @see https://www.luno.com/en/developers/api#tag/Market/operation/GetOrderBook
351
356
  * @param {string} symbol unified symbol of the market to fetch the order book for
352
357
  * @param {int} [limit] the maximum amount of order book entries to return
353
358
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -456,6 +461,7 @@ class luno extends luno$1 {
456
461
  * @method
457
462
  * @name luno#fetchOrder
458
463
  * @description fetches information on an order made by the user
464
+ * @see https://www.luno.com/en/developers/api#tag/Orders/operation/GetOrder
459
465
  * @param {string} symbol not used by luno fetchOrder
460
466
  * @param {object} [params] extra parameters specific to the exchange API endpoint
461
467
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -487,6 +493,7 @@ class luno extends luno$1 {
487
493
  * @method
488
494
  * @name luno#fetchOrders
489
495
  * @description fetches information on multiple orders made by the user
496
+ * @see https://www.luno.com/en/developers/api#tag/Orders/operation/ListOrders
490
497
  * @param {string} symbol unified market symbol of the market orders were made in
491
498
  * @param {int} [since] the earliest time in ms to fetch orders for
492
499
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -500,6 +507,7 @@ class luno extends luno$1 {
500
507
  * @method
501
508
  * @name luno#fetchOpenOrders
502
509
  * @description fetch all unfilled currently open orders
510
+ * @see https://www.luno.com/en/developers/api#tag/Orders/operation/ListOrders
503
511
  * @param {string} symbol unified market symbol
504
512
  * @param {int} [since] the earliest time in ms to fetch open orders for
505
513
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -513,6 +521,7 @@ class luno extends luno$1 {
513
521
  * @method
514
522
  * @name luno#fetchClosedOrders
515
523
  * @description fetches information on multiple closed orders made by the user
524
+ * @see https://www.luno.com/en/developers/api#tag/Orders/operation/ListOrders
516
525
  * @param {string} symbol unified market symbol of the market orders were made in
517
526
  * @param {int} [since] the earliest time in ms to fetch orders for
518
527
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -563,6 +572,7 @@ class luno extends luno$1 {
563
572
  * @method
564
573
  * @name luno#fetchTickers
565
574
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
575
+ * @see https://www.luno.com/en/developers/api#tag/Market/operation/GetTickers
566
576
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
567
577
  * @param {object} [params] extra parameters specific to the exchange API endpoint
568
578
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -587,6 +597,7 @@ class luno extends luno$1 {
587
597
  * @method
588
598
  * @name luno#fetchTicker
589
599
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
600
+ * @see https://www.luno.com/en/developers/api#tag/Market/operation/GetTicker
590
601
  * @param {string} symbol unified symbol of the market to fetch the ticker for
591
602
  * @param {object} [params] extra parameters specific to the exchange API endpoint
592
603
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -708,6 +719,7 @@ class luno extends luno$1 {
708
719
  * @method
709
720
  * @name luno#fetchTrades
710
721
  * @description get the list of most recent trades for a particular symbol
722
+ * @see https://www.luno.com/en/developers/api#tag/Market/operation/ListTrades
711
723
  * @param {string} symbol unified symbol of the market to fetch trades for
712
724
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
713
725
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -808,6 +820,7 @@ class luno extends luno$1 {
808
820
  * @method
809
821
  * @name luno#fetchMyTrades
810
822
  * @description fetch all trades made by the user
823
+ * @see https://www.luno.com/en/developers/api#tag/Orders/operation/ListUserTrades
811
824
  * @param {string} symbol unified market symbol
812
825
  * @param {int} [since] the earliest time in ms to fetch trades for
813
826
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -858,6 +871,7 @@ class luno extends luno$1 {
858
871
  * @method
859
872
  * @name luno#fetchTradingFee
860
873
  * @description fetch the trading fees for a market
874
+ * @see https://www.luno.com/en/developers/api#tag/Orders/operation/getFeeInfo
861
875
  * @param {string} symbol unified market symbol
862
876
  * @param {object} [params] extra parameters specific to the exchange API endpoint
863
877
  * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
@@ -887,6 +901,8 @@ class luno extends luno$1 {
887
901
  * @method
888
902
  * @name luno#createOrder
889
903
  * @description create a trade order
904
+ * @see https://www.luno.com/en/developers/api#tag/Orders/operation/PostMarketOrder
905
+ * @see https://www.luno.com/en/developers/api#tag/Orders/operation/PostLimitOrder
890
906
  * @param {string} symbol unified symbol of the market to create an order in
891
907
  * @param {string} type 'market' or 'limit'
892
908
  * @param {string} side 'buy' or 'sell'
@@ -928,6 +944,7 @@ class luno extends luno$1 {
928
944
  * @method
929
945
  * @name luno#cancelOrder
930
946
  * @description cancels an open order
947
+ * @see https://www.luno.com/en/developers/api#tag/Orders/operation/StopOrder
931
948
  * @param {string} id order id
932
949
  * @param {string} symbol unified symbol of the market the order was made in
933
950
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -959,6 +976,7 @@ class luno extends luno$1 {
959
976
  * @method
960
977
  * @name luno#fetchLedger
961
978
  * @description fetch the history of changes, actions done by the user or operations that altered balance of the user
979
+ * @see https://www.luno.com/en/developers/api#tag/Accounts/operation/ListTransactions
962
980
  * @param {string} code unified currency code, default is undefined
963
981
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
964
982
  * @param {int} [limit] max number of ledger entrys to return, default is undefined