gateio-api 1.2.2 → 1.2.3

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 (41) hide show
  1. package/dist/cjs/RestClient.js +55 -55
  2. package/dist/cjs/RestClient.js.map +1 -1
  3. package/dist/cjs/WebsocketClient.js +11 -9
  4. package/dist/cjs/WebsocketClient.js.map +1 -1
  5. package/dist/cjs/lib/BaseRestClient.js.map +1 -1
  6. package/dist/cjs/lib/BaseWSClient.d.ts +0 -1
  7. package/dist/cjs/lib/BaseWSClient.js +10 -8
  8. package/dist/cjs/lib/BaseWSClient.js.map +1 -1
  9. package/dist/cjs/lib/misc-util.js +1 -2
  10. package/dist/cjs/lib/misc-util.js.map +1 -1
  11. package/dist/cjs/lib/requestUtils.js +4 -4
  12. package/dist/cjs/lib/requestUtils.js.map +1 -1
  13. package/dist/cjs/lib/webCryptoAPI.js +2 -3
  14. package/dist/cjs/lib/webCryptoAPI.js.map +1 -1
  15. package/dist/cjs/lib/websocket/WsStore.js +2 -2
  16. package/dist/cjs/lib/websocket/WsStore.js.map +1 -1
  17. package/dist/cjs/lib/websocket/WsStore.types.d.ts +0 -1
  18. package/dist/cjs/lib/websocket/websocket-util.js +7 -7
  19. package/dist/cjs/lib/websocket/websocket-util.js.map +1 -1
  20. package/dist/cjs/types/response/spot.d.ts +7 -7
  21. package/dist/cjs/types/response/spot.js +0 -4
  22. package/dist/cjs/types/response/spot.js.map +1 -1
  23. package/dist/cjs/types/websockets/wsAPI.d.ts +87 -87
  24. package/dist/cjs/types/websockets/wsAPI.js +5 -0
  25. package/dist/cjs/types/websockets/wsAPI.js.map +1 -1
  26. package/dist/mjs/RestClient.js +55 -55
  27. package/dist/mjs/RestClient.js.map +1 -1
  28. package/dist/mjs/WebsocketClient.js +11 -9
  29. package/dist/mjs/WebsocketClient.js.map +1 -1
  30. package/dist/mjs/lib/BaseRestClient.js.map +1 -1
  31. package/dist/mjs/lib/BaseWSClient.d.ts +0 -1
  32. package/dist/mjs/lib/BaseWSClient.js +10 -8
  33. package/dist/mjs/lib/BaseWSClient.js.map +1 -1
  34. package/dist/mjs/lib/websocket/WsStore.types.d.ts +0 -1
  35. package/dist/mjs/types/response/spot.d.ts +7 -7
  36. package/dist/mjs/types/response/spot.js +0 -4
  37. package/dist/mjs/types/response/spot.js.map +1 -1
  38. package/dist/mjs/types/websockets/wsAPI.d.ts +87 -87
  39. package/dist/mjs/types/websockets/wsAPI.js +5 -0
  40. package/dist/mjs/types/websockets/wsAPI.js.map +1 -1
  41. package/package.json +6 -6
@@ -2371,7 +2371,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2371
2371
  * @returns Promise<{ name: string; index_price: string }[]>
2372
2372
  */
2373
2373
  getOptionsUnderlyings() {
2374
- return this.get(`/options/underlyings`);
2374
+ return this.get('/options/underlyings');
2375
2375
  }
2376
2376
  /**
2377
2377
  * List all expiration times
@@ -2380,7 +2380,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2380
2380
  * @returns Promise<number[]>
2381
2381
  */
2382
2382
  getOptionsExpirationTimes(params) {
2383
- return this.get(`/options/expirations`, params);
2383
+ return this.get('/options/expirations', params);
2384
2384
  }
2385
2385
  /**
2386
2386
  * List all the contracts with specified underlying and expiration time
@@ -2389,7 +2389,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2389
2389
  * @returns Promise<GetOptionsContractsResp[]>
2390
2390
  */
2391
2391
  getOptionsContracts(params) {
2392
- return this.get(`/options/contracts`, params);
2392
+ return this.get('/options/contracts', params);
2393
2393
  }
2394
2394
  /**
2395
2395
  * Query specified contract detail
@@ -2407,7 +2407,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2407
2407
  * @returns Promise<GetOptionsSettlementHistoryResp[]>
2408
2408
  */
2409
2409
  getOptionsSettlementHistory(params) {
2410
- return this.get(`/options/settlements`, params);
2410
+ return this.get('/options/settlements', params);
2411
2411
  }
2412
2412
  /**
2413
2413
  * Get specified contract's settlement
@@ -2426,7 +2426,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2426
2426
  * @returns Promise<GetOptionsMySettlementsResp[]>
2427
2427
  */
2428
2428
  getOptionsMySettlements(params) {
2429
- return this.getPrivate(`/options/my_settlements`, params);
2429
+ return this.getPrivate('/options/my_settlements', params);
2430
2430
  }
2431
2431
  /**
2432
2432
  * Options order book
@@ -2437,7 +2437,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2437
2437
  * @returns Promise<GetOptionsOrderBookResp>
2438
2438
  */
2439
2439
  getOptionsOrderBook(params) {
2440
- return this.get(`/options/order_book`, params);
2440
+ return this.get('/options/order_book', params);
2441
2441
  }
2442
2442
  /**
2443
2443
  * List tickers of options contracts
@@ -2446,7 +2446,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2446
2446
  * @returns Promise<GetOptionsTickersResp[]>
2447
2447
  */
2448
2448
  getOptionsTickers(params) {
2449
- return this.get(`/options/tickers`, params);
2449
+ return this.get('/options/tickers', params);
2450
2450
  }
2451
2451
  /**
2452
2452
  * Get underlying ticker
@@ -2468,7 +2468,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2468
2468
  * @returns Promise<GetOptionsCandlesResp[]>
2469
2469
  */
2470
2470
  getOptionsCandles(params) {
2471
- return this.get(`/options/candlesticks`, params);
2471
+ return this.get('/options/candlesticks', params);
2472
2472
  }
2473
2473
  /**
2474
2474
  * Mark price Candles of an underlying
@@ -2477,7 +2477,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2477
2477
  * @returns Promise<GetOptionsUnderlyingCandlesResp[]>
2478
2478
  */
2479
2479
  getOptionsUnderlyingCandles(params) {
2480
- return this.get(`/options/underlying/candlesticks`, params);
2480
+ return this.get('/options/underlying/candlesticks', params);
2481
2481
  }
2482
2482
  /**
2483
2483
  * Options trade history
@@ -2486,7 +2486,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2486
2486
  * @returns Promise<GetOptionsTradesResp[]>
2487
2487
  */
2488
2488
  getOptionsTrades(params) {
2489
- return this.get(`/options/trades`, params);
2489
+ return this.get('/options/trades', params);
2490
2490
  }
2491
2491
  /**
2492
2492
  * List options account
@@ -2494,7 +2494,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2494
2494
  * @returns Promise<GetOptionsAccountResp>
2495
2495
  */
2496
2496
  getOptionsAccount() {
2497
- return this.getPrivate(`/options/accounts`);
2497
+ return this.getPrivate('/options/accounts');
2498
2498
  }
2499
2499
  /**
2500
2500
  * List account changing history
@@ -2503,7 +2503,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2503
2503
  * @returns Promise<GetOptionsAccountChangeResp[]>
2504
2504
  */
2505
2505
  getOptionsAccountChange(params) {
2506
- return this.getPrivate(`/options/account_book`, params);
2506
+ return this.getPrivate('/options/account_book', params);
2507
2507
  }
2508
2508
  /**
2509
2509
  * List user's positions of specified underlying
@@ -2512,7 +2512,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2512
2512
  * @returns Promise<GetOptionsPositionsUnderlyingResp[]>
2513
2513
  */
2514
2514
  getOptionsPositionsUnderlying(params) {
2515
- return this.getPrivate(`/options/positions`, params);
2515
+ return this.getPrivate('/options/positions', params);
2516
2516
  }
2517
2517
  /**
2518
2518
  * Get specified contract position
@@ -2530,7 +2530,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2530
2530
  * @returns Promise<GetOptionsLiquidationResp[]>
2531
2531
  */
2532
2532
  getOptionsLiquidation(params) {
2533
- return this.getPrivate(`/options/position_close`, params);
2533
+ return this.getPrivate('/options/position_close', params);
2534
2534
  }
2535
2535
  /**
2536
2536
  * Create an options order
@@ -2539,7 +2539,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2539
2539
  * @returns Promise<SubmitOptionsOrderResp>
2540
2540
  */
2541
2541
  submitOptionsOrder(params) {
2542
- return this.postPrivate(`/options/orders`, { body: params });
2542
+ return this.postPrivate('/options/orders', { body: params });
2543
2543
  }
2544
2544
  /**
2545
2545
  * List options orders
@@ -2548,7 +2548,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2548
2548
  * @returns Promise<SubmitOptionsOrderResp[]>
2549
2549
  */
2550
2550
  getOptionsOrders(params) {
2551
- return this.getPrivate(`/options/orders`, params);
2551
+ return this.getPrivate('/options/orders', params);
2552
2552
  }
2553
2553
  /**
2554
2554
  * Cancel all open orders matched
@@ -2557,7 +2557,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2557
2557
  * @returns Promise<SubmitOptionsOrderResp[]>
2558
2558
  */
2559
2559
  cancelAllOpenOptionsOrders(params) {
2560
- return this.deletePrivate(`/options/orders`, { query: params });
2560
+ return this.deletePrivate('/options/orders', { query: params });
2561
2561
  }
2562
2562
  /**
2563
2563
  * Get a single order
@@ -2600,7 +2600,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2600
2600
  * @returns Promise<GetOptionsPersonalHistoryResp[]>
2601
2601
  */
2602
2602
  getOptionsPersonalHistory(params) {
2603
- return this.getPrivate(`/options/my_trades`, params);
2603
+ return this.getPrivate('/options/my_trades', params);
2604
2604
  }
2605
2605
  /**
2606
2606
  * Set MMP (Market Maker Protection) settings
@@ -2639,7 +2639,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2639
2639
  * @returns Promise<GetLendingCurrenciesResp[]>
2640
2640
  */
2641
2641
  getLendingCurrencies() {
2642
- return this.get(`/earn/uni/currencies`);
2642
+ return this.get('/earn/uni/currencies');
2643
2643
  }
2644
2644
  /**
2645
2645
  * Get currency detail for lending
@@ -2657,7 +2657,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2657
2657
  * @returns Promise<any>
2658
2658
  */
2659
2659
  submitLendOrRedeemOrder(params) {
2660
- return this.postPrivate(`/earn/uni/lends`, { body: params });
2660
+ return this.postPrivate('/earn/uni/lends', { body: params });
2661
2661
  }
2662
2662
  /**
2663
2663
  * List user's lending orders
@@ -2666,7 +2666,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2666
2666
  * @returns Promise<GetLendingOrdersResp[]>
2667
2667
  */
2668
2668
  getLendingOrders(params) {
2669
- return this.getPrivate(`/earn/uni/lends`, params);
2669
+ return this.getPrivate('/earn/uni/lends', params);
2670
2670
  }
2671
2671
  /**
2672
2672
  * Amend lending order
@@ -2677,7 +2677,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2677
2677
  * @returns Promise<any>
2678
2678
  */
2679
2679
  updateLendingOrder(params) {
2680
- return this.patchPrivate(`/earn/uni/lends`, { query: params });
2680
+ return this.patchPrivate('/earn/uni/lends', { query: params });
2681
2681
  }
2682
2682
  /**
2683
2683
  * List records of lending
@@ -2686,7 +2686,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2686
2686
  * @returns Promise<GetLendingRecordsResp[]>
2687
2687
  */
2688
2688
  getLendingRecords(params) {
2689
- return this.getPrivate(`/earn/uni/lend_records`, params);
2689
+ return this.getPrivate('/earn/uni/lend_records', params);
2690
2690
  }
2691
2691
  /**
2692
2692
  * Get the user's total interest income of specified currency
@@ -2707,7 +2707,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2707
2707
  * @returns Promise<GetLendingInterestRecordsResp[]>
2708
2708
  */
2709
2709
  getLendingInterestRecords(params) {
2710
- return this.getPrivate(`/earn/uni/interest_records`, params);
2710
+ return this.getPrivate('/earn/uni/interest_records', params);
2711
2711
  }
2712
2712
  /**
2713
2713
  * Set interest reinvestment toggle
@@ -2717,7 +2717,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2717
2717
  * @returns Promise<any>
2718
2718
  */
2719
2719
  updateInterestReinvestment(params) {
2720
- return this.putPrivate(`/earn/uni/interest_reinvest`, { body: params });
2720
+ return this.putPrivate('/earn/uni/interest_reinvest', { body: params });
2721
2721
  }
2722
2722
  /**
2723
2723
  * Query currency interest compounding status
@@ -2756,7 +2756,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2756
2756
  * @returns Promise<{ order_id: number }>
2757
2757
  */
2758
2758
  submitLoanOrder(params) {
2759
- return this.postPrivate(`/loan/collateral/orders`, { body: params });
2759
+ return this.postPrivate('/loan/collateral/orders', { body: params });
2760
2760
  }
2761
2761
  /**
2762
2762
  * List Orders
@@ -2765,7 +2765,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2765
2765
  * @returns Promise<GetLoanOrdersResp[]>
2766
2766
  */
2767
2767
  getLoanOrders(params) {
2768
- return this.getPrivate(`/loan/collateral/orders`, params);
2768
+ return this.getPrivate('/loan/collateral/orders', params);
2769
2769
  }
2770
2770
  /**
2771
2771
  * Get a single order
@@ -2786,7 +2786,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2786
2786
  * }>
2787
2787
  */
2788
2788
  submitLoanRepay(params) {
2789
- return this.postPrivate(`/loan/collateral/repay`, { body: params });
2789
+ return this.postPrivate('/loan/collateral/repay', { body: params });
2790
2790
  }
2791
2791
  /**
2792
2792
  * Repayment history
@@ -2795,7 +2795,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2795
2795
  * @returns Promise<GetLoanRepaymentHistoryResp[]>
2796
2796
  */
2797
2797
  getLoanRepaymentHistory(params) {
2798
- return this.getPrivate(`/loan/collateral/repay_records`, params);
2798
+ return this.getPrivate('/loan/collateral/repay_records', params);
2799
2799
  }
2800
2800
  /**
2801
2801
  * Increase or redeem collateral
@@ -2804,7 +2804,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2804
2804
  * @returns Promise<any>
2805
2805
  */
2806
2806
  updateLoanCollateral(params) {
2807
- return this.postPrivate(`/loan/collateral/collaterals`, { body: params });
2807
+ return this.postPrivate('/loan/collateral/collaterals', { body: params });
2808
2808
  }
2809
2809
  /**
2810
2810
  * Query collateral adjustment records
@@ -2813,7 +2813,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2813
2813
  * @returns Promise<GetLoanCollateralRecordsResp[]>
2814
2814
  */
2815
2815
  getLoanCollateralRecords(params) {
2816
- return this.getPrivate(`/loan/collateral/collaterals`, params);
2816
+ return this.getPrivate('/loan/collateral/collaterals', params);
2817
2817
  }
2818
2818
  /**
2819
2819
  * Query the total borrowing and collateral amount for the user
@@ -2824,7 +2824,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2824
2824
  * }>
2825
2825
  */
2826
2826
  getLoanTotalAmount() {
2827
- return this.getPrivate(`/loan/collateral/total_amount`);
2827
+ return this.getPrivate('/loan/collateral/total_amount');
2828
2828
  }
2829
2829
  /**
2830
2830
  * Query user's collateralization ratio
@@ -2833,7 +2833,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2833
2833
  * @returns Promise<GetLoanCollateralizationRatioResp>
2834
2834
  */
2835
2835
  getLoanCollateralizationRatio(params) {
2836
- return this.getPrivate(`/loan/collateral/ltv`, params);
2836
+ return this.getPrivate('/loan/collateral/ltv', params);
2837
2837
  }
2838
2838
  /**
2839
2839
  * Query supported borrowing and collateral currencies
@@ -2845,7 +2845,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2845
2845
  * }[]>
2846
2846
  */
2847
2847
  getLoanSupportedCurrencies(params) {
2848
- return this.get(`/loan/collateral/currencies`, params);
2848
+ return this.get('/loan/collateral/currencies', params);
2849
2849
  }
2850
2850
  /**==========================================================================================================================
2851
2851
  * MULTI COLLATERAL LOAN
@@ -2858,7 +2858,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2858
2858
  * @returns Promise<{ order_id: number }>
2859
2859
  */
2860
2860
  submitMultiLoanOrder(params) {
2861
- return this.postPrivate(`/loan/multi_collateral/orders`, { body: params });
2861
+ return this.postPrivate('/loan/multi_collateral/orders', { body: params });
2862
2862
  }
2863
2863
  /**
2864
2864
  * List Multi-Collateral Orders
@@ -2867,7 +2867,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2867
2867
  * @returns Promise<GetMultiLoanOrdersResp[]>
2868
2868
  */
2869
2869
  getMultiLoanOrders(params) {
2870
- return this.getPrivate(`/loan/multi_collateral/orders`, params);
2870
+ return this.getPrivate('/loan/multi_collateral/orders', params);
2871
2871
  }
2872
2872
  /**
2873
2873
  * Get Multi-Collateral Order Detail
@@ -2885,7 +2885,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2885
2885
  * @returns Promise<RepayMultiLoanResp>
2886
2886
  */
2887
2887
  repayMultiLoan(params) {
2888
- return this.postPrivate(`/loan/multi_collateral/repay`, { body: params });
2888
+ return this.postPrivate('/loan/multi_collateral/repay', { body: params });
2889
2889
  }
2890
2890
  /**
2891
2891
  * List Multi-Collateral Repay Records
@@ -2894,7 +2894,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2894
2894
  * @returns Promise<GetMultiLoanRepayRecordsResp[]>
2895
2895
  */
2896
2896
  getMultiLoanRepayRecords(params) {
2897
- return this.getPrivate(`/loan/multi_collateral/repay`, params);
2897
+ return this.getPrivate('/loan/multi_collateral/repay', params);
2898
2898
  }
2899
2899
  /**
2900
2900
  * Operate Multi-Collateral
@@ -2903,7 +2903,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2903
2903
  * @returns Promise<UpdateMultiLoanResp>
2904
2904
  */
2905
2905
  updateMultiLoan(params) {
2906
- return this.postPrivate(`/loan/multi_collateral/mortgage`, {
2906
+ return this.postPrivate('/loan/multi_collateral/mortgage', {
2907
2907
  body: params,
2908
2908
  });
2909
2909
  }
@@ -2914,7 +2914,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2914
2914
  * @returns Promise<GetMultiLoanAdjustmentRecordsResp[]>
2915
2915
  */
2916
2916
  getMultiLoanAdjustmentRecords(params) {
2917
- return this.getPrivate(`/loan/multi_collateral/mortgage`, params);
2917
+ return this.getPrivate('/loan/multi_collateral/mortgage', params);
2918
2918
  }
2919
2919
  /**
2920
2920
  * List User Currency Quota
@@ -2923,7 +2923,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2923
2923
  * @returns Promise<GetMultiLoanCurrencyQuotaResp[]>
2924
2924
  */
2925
2925
  getMultiLoanCurrencyQuota(params) {
2926
- return this.getPrivate(`/loan/multi_collateral/currency_quota`, params);
2926
+ return this.getPrivate('/loan/multi_collateral/currency_quota', params);
2927
2927
  }
2928
2928
  /**
2929
2929
  * Query supported borrowing and collateral currencies in Multi-Collateral
@@ -2931,7 +2931,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2931
2931
  * @returns Promise<GetMultiLoanSupportedCurrenciesResp>
2932
2932
  */
2933
2933
  getMultiLoanSupportedCurrencies() {
2934
- return this.get(`/loan/multi_collateral/currencies`);
2934
+ return this.get('/loan/multi_collateral/currencies');
2935
2935
  }
2936
2936
  /**
2937
2937
  * Get Multi-Collateral ratio
@@ -2939,7 +2939,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2939
2939
  * @returns Promise<GetMultiLoanRatioResp>
2940
2940
  */
2941
2941
  getMultiLoanRatio() {
2942
- return this.get(`/loan/multi_collateral/ltv`);
2942
+ return this.get('/loan/multi_collateral/ltv');
2943
2943
  }
2944
2944
  /**
2945
2945
  * Query fixed interest rates for the currency for 7 days and 30 days
@@ -2947,7 +2947,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2947
2947
  * @returns Promise<GetMultiLoanFixedRatesResp[]>
2948
2948
  */
2949
2949
  getMultiLoanFixedRates() {
2950
- return this.get(`/loan/multi_collateral/fixed_rate`);
2950
+ return this.get('/loan/multi_collateral/fixed_rate');
2951
2951
  }
2952
2952
  /**
2953
2953
  * Query the current interest rate of currencies
@@ -2972,7 +2972,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2972
2972
  * @returns Promise<any>
2973
2973
  */
2974
2974
  submitEth2Swap(params) {
2975
- return this.postPrivate(`/earn/staking/eth2/swap`, { body: params });
2975
+ return this.postPrivate('/earn/staking/eth2/swap', { body: params });
2976
2976
  }
2977
2977
  /**
2978
2978
  * Get ETH2 historical rate of return data
@@ -2982,7 +2982,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2982
2982
  * @returns Promise<Array<{date_time: number, date: string, rate: string}>>
2983
2983
  */
2984
2984
  getEth2RateHistory() {
2985
- return this.getPrivate(`/earn/staking/eth2/rate_records`);
2985
+ return this.getPrivate('/earn/staking/eth2/rate_records');
2986
2986
  }
2987
2987
  /**
2988
2988
  * Dual Investment product list
@@ -2990,7 +2990,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2990
2990
  * @returns Promise<GetDualInvestmentProductsResp[]>
2991
2991
  */
2992
2992
  getDualInvestmentProducts(params) {
2993
- return this.get(`/earn/dual/investment_plan`, params);
2993
+ return this.get('/earn/dual/investment_plan', params);
2994
2994
  }
2995
2995
  /**
2996
2996
  * Dual Investment order list
@@ -2998,7 +2998,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
2998
2998
  * @returns Promise<GetDualInvestmentOrdersResp[]>
2999
2999
  */
3000
3000
  getDualInvestmentOrders(params) {
3001
- return this.getPrivate(`/earn/dual/orders`, params);
3001
+ return this.getPrivate('/earn/dual/orders', params);
3002
3002
  }
3003
3003
  /**
3004
3004
  * Place Dual Investment order
@@ -3007,7 +3007,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
3007
3007
  * @returns Promise<any>
3008
3008
  */
3009
3009
  submitDualInvestmentOrder(params) {
3010
- return this.postPrivate(`/earn/dual/orders`, { body: params });
3010
+ return this.postPrivate('/earn/dual/orders', { body: params });
3011
3011
  }
3012
3012
  /**
3013
3013
  * Structured Product List
@@ -3016,7 +3016,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
3016
3016
  * @returns Promise<GetStructuredProductListResp[]>
3017
3017
  */
3018
3018
  getStructuredProducts(params) {
3019
- return this.get(`/earn/structured/products`, params);
3019
+ return this.get('/earn/structured/products', params);
3020
3020
  }
3021
3021
  /**
3022
3022
  * Structured Product Order List
@@ -3025,7 +3025,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
3025
3025
  * @returns Promise<GetStructuredProductOrdersResp[]>
3026
3026
  */
3027
3027
  getStructuredProductOrders(params) {
3028
- return this.getPrivate(`/earn/structured/orders`, params);
3028
+ return this.getPrivate('/earn/structured/orders', params);
3029
3029
  }
3030
3030
  /**
3031
3031
  * Place Structured Product Order
@@ -3034,7 +3034,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
3034
3034
  * @returns Promise<any>
3035
3035
  */
3036
3036
  submitStructuredProductOrder(params) {
3037
- return this.postPrivate(`/earn/structured/orders`, { body: params });
3037
+ return this.postPrivate('/earn/structured/orders', { body: params });
3038
3038
  }
3039
3039
  /**
3040
3040
  * List staking coins
@@ -3064,7 +3064,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
3064
3064
  * @returns Promise<GetAccountDetailResp>
3065
3065
  */
3066
3066
  getAccountDetail() {
3067
- return this.getPrivate(`/account/detail`);
3067
+ return this.getPrivate('/account/detail');
3068
3068
  }
3069
3069
  /**
3070
3070
  * Get user transaction rate limit information
@@ -3081,7 +3081,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
3081
3081
  * @returns Promise<CreateStpGroupResp>
3082
3082
  */
3083
3083
  createStpGroup(params) {
3084
- return this.postPrivate(`/account/stp_groups`, { body: params });
3084
+ return this.postPrivate('/account/stp_groups', { body: params });
3085
3085
  }
3086
3086
  /**
3087
3087
  * List STP Groups
@@ -3090,7 +3090,7 @@ class RestClient extends BaseRestClient_js_1.BaseRestClient {
3090
3090
  * @returns Promise<CreateStpGroupResp[]>
3091
3091
  */
3092
3092
  getStpGroups(params) {
3093
- return this.getPrivate(`/account/stp_groups`, params);
3093
+ return this.getPrivate('/account/stp_groups', params);
3094
3094
  }
3095
3095
  /**
3096
3096
  * List users of the STP group