gateio-api 1.2.1 → 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 +8 -7
@@ -2368,7 +2368,7 @@ export class RestClient extends BaseRestClient {
2368
2368
  * @returns Promise<{ name: string; index_price: string }[]>
2369
2369
  */
2370
2370
  getOptionsUnderlyings() {
2371
- return this.get(`/options/underlyings`);
2371
+ return this.get('/options/underlyings');
2372
2372
  }
2373
2373
  /**
2374
2374
  * List all expiration times
@@ -2377,7 +2377,7 @@ export class RestClient extends BaseRestClient {
2377
2377
  * @returns Promise<number[]>
2378
2378
  */
2379
2379
  getOptionsExpirationTimes(params) {
2380
- return this.get(`/options/expirations`, params);
2380
+ return this.get('/options/expirations', params);
2381
2381
  }
2382
2382
  /**
2383
2383
  * List all the contracts with specified underlying and expiration time
@@ -2386,7 +2386,7 @@ export class RestClient extends BaseRestClient {
2386
2386
  * @returns Promise<GetOptionsContractsResp[]>
2387
2387
  */
2388
2388
  getOptionsContracts(params) {
2389
- return this.get(`/options/contracts`, params);
2389
+ return this.get('/options/contracts', params);
2390
2390
  }
2391
2391
  /**
2392
2392
  * Query specified contract detail
@@ -2404,7 +2404,7 @@ export class RestClient extends BaseRestClient {
2404
2404
  * @returns Promise<GetOptionsSettlementHistoryResp[]>
2405
2405
  */
2406
2406
  getOptionsSettlementHistory(params) {
2407
- return this.get(`/options/settlements`, params);
2407
+ return this.get('/options/settlements', params);
2408
2408
  }
2409
2409
  /**
2410
2410
  * Get specified contract's settlement
@@ -2423,7 +2423,7 @@ export class RestClient extends BaseRestClient {
2423
2423
  * @returns Promise<GetOptionsMySettlementsResp[]>
2424
2424
  */
2425
2425
  getOptionsMySettlements(params) {
2426
- return this.getPrivate(`/options/my_settlements`, params);
2426
+ return this.getPrivate('/options/my_settlements', params);
2427
2427
  }
2428
2428
  /**
2429
2429
  * Options order book
@@ -2434,7 +2434,7 @@ export class RestClient extends BaseRestClient {
2434
2434
  * @returns Promise<GetOptionsOrderBookResp>
2435
2435
  */
2436
2436
  getOptionsOrderBook(params) {
2437
- return this.get(`/options/order_book`, params);
2437
+ return this.get('/options/order_book', params);
2438
2438
  }
2439
2439
  /**
2440
2440
  * List tickers of options contracts
@@ -2443,7 +2443,7 @@ export class RestClient extends BaseRestClient {
2443
2443
  * @returns Promise<GetOptionsTickersResp[]>
2444
2444
  */
2445
2445
  getOptionsTickers(params) {
2446
- return this.get(`/options/tickers`, params);
2446
+ return this.get('/options/tickers', params);
2447
2447
  }
2448
2448
  /**
2449
2449
  * Get underlying ticker
@@ -2465,7 +2465,7 @@ export class RestClient extends BaseRestClient {
2465
2465
  * @returns Promise<GetOptionsCandlesResp[]>
2466
2466
  */
2467
2467
  getOptionsCandles(params) {
2468
- return this.get(`/options/candlesticks`, params);
2468
+ return this.get('/options/candlesticks', params);
2469
2469
  }
2470
2470
  /**
2471
2471
  * Mark price Candles of an underlying
@@ -2474,7 +2474,7 @@ export class RestClient extends BaseRestClient {
2474
2474
  * @returns Promise<GetOptionsUnderlyingCandlesResp[]>
2475
2475
  */
2476
2476
  getOptionsUnderlyingCandles(params) {
2477
- return this.get(`/options/underlying/candlesticks`, params);
2477
+ return this.get('/options/underlying/candlesticks', params);
2478
2478
  }
2479
2479
  /**
2480
2480
  * Options trade history
@@ -2483,7 +2483,7 @@ export class RestClient extends BaseRestClient {
2483
2483
  * @returns Promise<GetOptionsTradesResp[]>
2484
2484
  */
2485
2485
  getOptionsTrades(params) {
2486
- return this.get(`/options/trades`, params);
2486
+ return this.get('/options/trades', params);
2487
2487
  }
2488
2488
  /**
2489
2489
  * List options account
@@ -2491,7 +2491,7 @@ export class RestClient extends BaseRestClient {
2491
2491
  * @returns Promise<GetOptionsAccountResp>
2492
2492
  */
2493
2493
  getOptionsAccount() {
2494
- return this.getPrivate(`/options/accounts`);
2494
+ return this.getPrivate('/options/accounts');
2495
2495
  }
2496
2496
  /**
2497
2497
  * List account changing history
@@ -2500,7 +2500,7 @@ export class RestClient extends BaseRestClient {
2500
2500
  * @returns Promise<GetOptionsAccountChangeResp[]>
2501
2501
  */
2502
2502
  getOptionsAccountChange(params) {
2503
- return this.getPrivate(`/options/account_book`, params);
2503
+ return this.getPrivate('/options/account_book', params);
2504
2504
  }
2505
2505
  /**
2506
2506
  * List user's positions of specified underlying
@@ -2509,7 +2509,7 @@ export class RestClient extends BaseRestClient {
2509
2509
  * @returns Promise<GetOptionsPositionsUnderlyingResp[]>
2510
2510
  */
2511
2511
  getOptionsPositionsUnderlying(params) {
2512
- return this.getPrivate(`/options/positions`, params);
2512
+ return this.getPrivate('/options/positions', params);
2513
2513
  }
2514
2514
  /**
2515
2515
  * Get specified contract position
@@ -2527,7 +2527,7 @@ export class RestClient extends BaseRestClient {
2527
2527
  * @returns Promise<GetOptionsLiquidationResp[]>
2528
2528
  */
2529
2529
  getOptionsLiquidation(params) {
2530
- return this.getPrivate(`/options/position_close`, params);
2530
+ return this.getPrivate('/options/position_close', params);
2531
2531
  }
2532
2532
  /**
2533
2533
  * Create an options order
@@ -2536,7 +2536,7 @@ export class RestClient extends BaseRestClient {
2536
2536
  * @returns Promise<SubmitOptionsOrderResp>
2537
2537
  */
2538
2538
  submitOptionsOrder(params) {
2539
- return this.postPrivate(`/options/orders`, { body: params });
2539
+ return this.postPrivate('/options/orders', { body: params });
2540
2540
  }
2541
2541
  /**
2542
2542
  * List options orders
@@ -2545,7 +2545,7 @@ export class RestClient extends BaseRestClient {
2545
2545
  * @returns Promise<SubmitOptionsOrderResp[]>
2546
2546
  */
2547
2547
  getOptionsOrders(params) {
2548
- return this.getPrivate(`/options/orders`, params);
2548
+ return this.getPrivate('/options/orders', params);
2549
2549
  }
2550
2550
  /**
2551
2551
  * Cancel all open orders matched
@@ -2554,7 +2554,7 @@ export class RestClient extends BaseRestClient {
2554
2554
  * @returns Promise<SubmitOptionsOrderResp[]>
2555
2555
  */
2556
2556
  cancelAllOpenOptionsOrders(params) {
2557
- return this.deletePrivate(`/options/orders`, { query: params });
2557
+ return this.deletePrivate('/options/orders', { query: params });
2558
2558
  }
2559
2559
  /**
2560
2560
  * Get a single order
@@ -2597,7 +2597,7 @@ export class RestClient extends BaseRestClient {
2597
2597
  * @returns Promise<GetOptionsPersonalHistoryResp[]>
2598
2598
  */
2599
2599
  getOptionsPersonalHistory(params) {
2600
- return this.getPrivate(`/options/my_trades`, params);
2600
+ return this.getPrivate('/options/my_trades', params);
2601
2601
  }
2602
2602
  /**
2603
2603
  * Set MMP (Market Maker Protection) settings
@@ -2636,7 +2636,7 @@ export class RestClient extends BaseRestClient {
2636
2636
  * @returns Promise<GetLendingCurrenciesResp[]>
2637
2637
  */
2638
2638
  getLendingCurrencies() {
2639
- return this.get(`/earn/uni/currencies`);
2639
+ return this.get('/earn/uni/currencies');
2640
2640
  }
2641
2641
  /**
2642
2642
  * Get currency detail for lending
@@ -2654,7 +2654,7 @@ export class RestClient extends BaseRestClient {
2654
2654
  * @returns Promise<any>
2655
2655
  */
2656
2656
  submitLendOrRedeemOrder(params) {
2657
- return this.postPrivate(`/earn/uni/lends`, { body: params });
2657
+ return this.postPrivate('/earn/uni/lends', { body: params });
2658
2658
  }
2659
2659
  /**
2660
2660
  * List user's lending orders
@@ -2663,7 +2663,7 @@ export class RestClient extends BaseRestClient {
2663
2663
  * @returns Promise<GetLendingOrdersResp[]>
2664
2664
  */
2665
2665
  getLendingOrders(params) {
2666
- return this.getPrivate(`/earn/uni/lends`, params);
2666
+ return this.getPrivate('/earn/uni/lends', params);
2667
2667
  }
2668
2668
  /**
2669
2669
  * Amend lending order
@@ -2674,7 +2674,7 @@ export class RestClient extends BaseRestClient {
2674
2674
  * @returns Promise<any>
2675
2675
  */
2676
2676
  updateLendingOrder(params) {
2677
- return this.patchPrivate(`/earn/uni/lends`, { query: params });
2677
+ return this.patchPrivate('/earn/uni/lends', { query: params });
2678
2678
  }
2679
2679
  /**
2680
2680
  * List records of lending
@@ -2683,7 +2683,7 @@ export class RestClient extends BaseRestClient {
2683
2683
  * @returns Promise<GetLendingRecordsResp[]>
2684
2684
  */
2685
2685
  getLendingRecords(params) {
2686
- return this.getPrivate(`/earn/uni/lend_records`, params);
2686
+ return this.getPrivate('/earn/uni/lend_records', params);
2687
2687
  }
2688
2688
  /**
2689
2689
  * Get the user's total interest income of specified currency
@@ -2704,7 +2704,7 @@ export class RestClient extends BaseRestClient {
2704
2704
  * @returns Promise<GetLendingInterestRecordsResp[]>
2705
2705
  */
2706
2706
  getLendingInterestRecords(params) {
2707
- return this.getPrivate(`/earn/uni/interest_records`, params);
2707
+ return this.getPrivate('/earn/uni/interest_records', params);
2708
2708
  }
2709
2709
  /**
2710
2710
  * Set interest reinvestment toggle
@@ -2714,7 +2714,7 @@ export class RestClient extends BaseRestClient {
2714
2714
  * @returns Promise<any>
2715
2715
  */
2716
2716
  updateInterestReinvestment(params) {
2717
- return this.putPrivate(`/earn/uni/interest_reinvest`, { body: params });
2717
+ return this.putPrivate('/earn/uni/interest_reinvest', { body: params });
2718
2718
  }
2719
2719
  /**
2720
2720
  * Query currency interest compounding status
@@ -2753,7 +2753,7 @@ export class RestClient extends BaseRestClient {
2753
2753
  * @returns Promise<{ order_id: number }>
2754
2754
  */
2755
2755
  submitLoanOrder(params) {
2756
- return this.postPrivate(`/loan/collateral/orders`, { body: params });
2756
+ return this.postPrivate('/loan/collateral/orders', { body: params });
2757
2757
  }
2758
2758
  /**
2759
2759
  * List Orders
@@ -2762,7 +2762,7 @@ export class RestClient extends BaseRestClient {
2762
2762
  * @returns Promise<GetLoanOrdersResp[]>
2763
2763
  */
2764
2764
  getLoanOrders(params) {
2765
- return this.getPrivate(`/loan/collateral/orders`, params);
2765
+ return this.getPrivate('/loan/collateral/orders', params);
2766
2766
  }
2767
2767
  /**
2768
2768
  * Get a single order
@@ -2783,7 +2783,7 @@ export class RestClient extends BaseRestClient {
2783
2783
  * }>
2784
2784
  */
2785
2785
  submitLoanRepay(params) {
2786
- return this.postPrivate(`/loan/collateral/repay`, { body: params });
2786
+ return this.postPrivate('/loan/collateral/repay', { body: params });
2787
2787
  }
2788
2788
  /**
2789
2789
  * Repayment history
@@ -2792,7 +2792,7 @@ export class RestClient extends BaseRestClient {
2792
2792
  * @returns Promise<GetLoanRepaymentHistoryResp[]>
2793
2793
  */
2794
2794
  getLoanRepaymentHistory(params) {
2795
- return this.getPrivate(`/loan/collateral/repay_records`, params);
2795
+ return this.getPrivate('/loan/collateral/repay_records', params);
2796
2796
  }
2797
2797
  /**
2798
2798
  * Increase or redeem collateral
@@ -2801,7 +2801,7 @@ export class RestClient extends BaseRestClient {
2801
2801
  * @returns Promise<any>
2802
2802
  */
2803
2803
  updateLoanCollateral(params) {
2804
- return this.postPrivate(`/loan/collateral/collaterals`, { body: params });
2804
+ return this.postPrivate('/loan/collateral/collaterals', { body: params });
2805
2805
  }
2806
2806
  /**
2807
2807
  * Query collateral adjustment records
@@ -2810,7 +2810,7 @@ export class RestClient extends BaseRestClient {
2810
2810
  * @returns Promise<GetLoanCollateralRecordsResp[]>
2811
2811
  */
2812
2812
  getLoanCollateralRecords(params) {
2813
- return this.getPrivate(`/loan/collateral/collaterals`, params);
2813
+ return this.getPrivate('/loan/collateral/collaterals', params);
2814
2814
  }
2815
2815
  /**
2816
2816
  * Query the total borrowing and collateral amount for the user
@@ -2821,7 +2821,7 @@ export class RestClient extends BaseRestClient {
2821
2821
  * }>
2822
2822
  */
2823
2823
  getLoanTotalAmount() {
2824
- return this.getPrivate(`/loan/collateral/total_amount`);
2824
+ return this.getPrivate('/loan/collateral/total_amount');
2825
2825
  }
2826
2826
  /**
2827
2827
  * Query user's collateralization ratio
@@ -2830,7 +2830,7 @@ export class RestClient extends BaseRestClient {
2830
2830
  * @returns Promise<GetLoanCollateralizationRatioResp>
2831
2831
  */
2832
2832
  getLoanCollateralizationRatio(params) {
2833
- return this.getPrivate(`/loan/collateral/ltv`, params);
2833
+ return this.getPrivate('/loan/collateral/ltv', params);
2834
2834
  }
2835
2835
  /**
2836
2836
  * Query supported borrowing and collateral currencies
@@ -2842,7 +2842,7 @@ export class RestClient extends BaseRestClient {
2842
2842
  * }[]>
2843
2843
  */
2844
2844
  getLoanSupportedCurrencies(params) {
2845
- return this.get(`/loan/collateral/currencies`, params);
2845
+ return this.get('/loan/collateral/currencies', params);
2846
2846
  }
2847
2847
  /**==========================================================================================================================
2848
2848
  * MULTI COLLATERAL LOAN
@@ -2855,7 +2855,7 @@ export class RestClient extends BaseRestClient {
2855
2855
  * @returns Promise<{ order_id: number }>
2856
2856
  */
2857
2857
  submitMultiLoanOrder(params) {
2858
- return this.postPrivate(`/loan/multi_collateral/orders`, { body: params });
2858
+ return this.postPrivate('/loan/multi_collateral/orders', { body: params });
2859
2859
  }
2860
2860
  /**
2861
2861
  * List Multi-Collateral Orders
@@ -2864,7 +2864,7 @@ export class RestClient extends BaseRestClient {
2864
2864
  * @returns Promise<GetMultiLoanOrdersResp[]>
2865
2865
  */
2866
2866
  getMultiLoanOrders(params) {
2867
- return this.getPrivate(`/loan/multi_collateral/orders`, params);
2867
+ return this.getPrivate('/loan/multi_collateral/orders', params);
2868
2868
  }
2869
2869
  /**
2870
2870
  * Get Multi-Collateral Order Detail
@@ -2882,7 +2882,7 @@ export class RestClient extends BaseRestClient {
2882
2882
  * @returns Promise<RepayMultiLoanResp>
2883
2883
  */
2884
2884
  repayMultiLoan(params) {
2885
- return this.postPrivate(`/loan/multi_collateral/repay`, { body: params });
2885
+ return this.postPrivate('/loan/multi_collateral/repay', { body: params });
2886
2886
  }
2887
2887
  /**
2888
2888
  * List Multi-Collateral Repay Records
@@ -2891,7 +2891,7 @@ export class RestClient extends BaseRestClient {
2891
2891
  * @returns Promise<GetMultiLoanRepayRecordsResp[]>
2892
2892
  */
2893
2893
  getMultiLoanRepayRecords(params) {
2894
- return this.getPrivate(`/loan/multi_collateral/repay`, params);
2894
+ return this.getPrivate('/loan/multi_collateral/repay', params);
2895
2895
  }
2896
2896
  /**
2897
2897
  * Operate Multi-Collateral
@@ -2900,7 +2900,7 @@ export class RestClient extends BaseRestClient {
2900
2900
  * @returns Promise<UpdateMultiLoanResp>
2901
2901
  */
2902
2902
  updateMultiLoan(params) {
2903
- return this.postPrivate(`/loan/multi_collateral/mortgage`, {
2903
+ return this.postPrivate('/loan/multi_collateral/mortgage', {
2904
2904
  body: params,
2905
2905
  });
2906
2906
  }
@@ -2911,7 +2911,7 @@ export class RestClient extends BaseRestClient {
2911
2911
  * @returns Promise<GetMultiLoanAdjustmentRecordsResp[]>
2912
2912
  */
2913
2913
  getMultiLoanAdjustmentRecords(params) {
2914
- return this.getPrivate(`/loan/multi_collateral/mortgage`, params);
2914
+ return this.getPrivate('/loan/multi_collateral/mortgage', params);
2915
2915
  }
2916
2916
  /**
2917
2917
  * List User Currency Quota
@@ -2920,7 +2920,7 @@ export class RestClient extends BaseRestClient {
2920
2920
  * @returns Promise<GetMultiLoanCurrencyQuotaResp[]>
2921
2921
  */
2922
2922
  getMultiLoanCurrencyQuota(params) {
2923
- return this.getPrivate(`/loan/multi_collateral/currency_quota`, params);
2923
+ return this.getPrivate('/loan/multi_collateral/currency_quota', params);
2924
2924
  }
2925
2925
  /**
2926
2926
  * Query supported borrowing and collateral currencies in Multi-Collateral
@@ -2928,7 +2928,7 @@ export class RestClient extends BaseRestClient {
2928
2928
  * @returns Promise<GetMultiLoanSupportedCurrenciesResp>
2929
2929
  */
2930
2930
  getMultiLoanSupportedCurrencies() {
2931
- return this.get(`/loan/multi_collateral/currencies`);
2931
+ return this.get('/loan/multi_collateral/currencies');
2932
2932
  }
2933
2933
  /**
2934
2934
  * Get Multi-Collateral ratio
@@ -2936,7 +2936,7 @@ export class RestClient extends BaseRestClient {
2936
2936
  * @returns Promise<GetMultiLoanRatioResp>
2937
2937
  */
2938
2938
  getMultiLoanRatio() {
2939
- return this.get(`/loan/multi_collateral/ltv`);
2939
+ return this.get('/loan/multi_collateral/ltv');
2940
2940
  }
2941
2941
  /**
2942
2942
  * Query fixed interest rates for the currency for 7 days and 30 days
@@ -2944,7 +2944,7 @@ export class RestClient extends BaseRestClient {
2944
2944
  * @returns Promise<GetMultiLoanFixedRatesResp[]>
2945
2945
  */
2946
2946
  getMultiLoanFixedRates() {
2947
- return this.get(`/loan/multi_collateral/fixed_rate`);
2947
+ return this.get('/loan/multi_collateral/fixed_rate');
2948
2948
  }
2949
2949
  /**
2950
2950
  * Query the current interest rate of currencies
@@ -2969,7 +2969,7 @@ export class RestClient extends BaseRestClient {
2969
2969
  * @returns Promise<any>
2970
2970
  */
2971
2971
  submitEth2Swap(params) {
2972
- return this.postPrivate(`/earn/staking/eth2/swap`, { body: params });
2972
+ return this.postPrivate('/earn/staking/eth2/swap', { body: params });
2973
2973
  }
2974
2974
  /**
2975
2975
  * Get ETH2 historical rate of return data
@@ -2979,7 +2979,7 @@ export class RestClient extends BaseRestClient {
2979
2979
  * @returns Promise<Array<{date_time: number, date: string, rate: string}>>
2980
2980
  */
2981
2981
  getEth2RateHistory() {
2982
- return this.getPrivate(`/earn/staking/eth2/rate_records`);
2982
+ return this.getPrivate('/earn/staking/eth2/rate_records');
2983
2983
  }
2984
2984
  /**
2985
2985
  * Dual Investment product list
@@ -2987,7 +2987,7 @@ export class RestClient extends BaseRestClient {
2987
2987
  * @returns Promise<GetDualInvestmentProductsResp[]>
2988
2988
  */
2989
2989
  getDualInvestmentProducts(params) {
2990
- return this.get(`/earn/dual/investment_plan`, params);
2990
+ return this.get('/earn/dual/investment_plan', params);
2991
2991
  }
2992
2992
  /**
2993
2993
  * Dual Investment order list
@@ -2995,7 +2995,7 @@ export class RestClient extends BaseRestClient {
2995
2995
  * @returns Promise<GetDualInvestmentOrdersResp[]>
2996
2996
  */
2997
2997
  getDualInvestmentOrders(params) {
2998
- return this.getPrivate(`/earn/dual/orders`, params);
2998
+ return this.getPrivate('/earn/dual/orders', params);
2999
2999
  }
3000
3000
  /**
3001
3001
  * Place Dual Investment order
@@ -3004,7 +3004,7 @@ export class RestClient extends BaseRestClient {
3004
3004
  * @returns Promise<any>
3005
3005
  */
3006
3006
  submitDualInvestmentOrder(params) {
3007
- return this.postPrivate(`/earn/dual/orders`, { body: params });
3007
+ return this.postPrivate('/earn/dual/orders', { body: params });
3008
3008
  }
3009
3009
  /**
3010
3010
  * Structured Product List
@@ -3013,7 +3013,7 @@ export class RestClient extends BaseRestClient {
3013
3013
  * @returns Promise<GetStructuredProductListResp[]>
3014
3014
  */
3015
3015
  getStructuredProducts(params) {
3016
- return this.get(`/earn/structured/products`, params);
3016
+ return this.get('/earn/structured/products', params);
3017
3017
  }
3018
3018
  /**
3019
3019
  * Structured Product Order List
@@ -3022,7 +3022,7 @@ export class RestClient extends BaseRestClient {
3022
3022
  * @returns Promise<GetStructuredProductOrdersResp[]>
3023
3023
  */
3024
3024
  getStructuredProductOrders(params) {
3025
- return this.getPrivate(`/earn/structured/orders`, params);
3025
+ return this.getPrivate('/earn/structured/orders', params);
3026
3026
  }
3027
3027
  /**
3028
3028
  * Place Structured Product Order
@@ -3031,7 +3031,7 @@ export class RestClient extends BaseRestClient {
3031
3031
  * @returns Promise<any>
3032
3032
  */
3033
3033
  submitStructuredProductOrder(params) {
3034
- return this.postPrivate(`/earn/structured/orders`, { body: params });
3034
+ return this.postPrivate('/earn/structured/orders', { body: params });
3035
3035
  }
3036
3036
  /**
3037
3037
  * List staking coins
@@ -3061,7 +3061,7 @@ export class RestClient extends BaseRestClient {
3061
3061
  * @returns Promise<GetAccountDetailResp>
3062
3062
  */
3063
3063
  getAccountDetail() {
3064
- return this.getPrivate(`/account/detail`);
3064
+ return this.getPrivate('/account/detail');
3065
3065
  }
3066
3066
  /**
3067
3067
  * Get user transaction rate limit information
@@ -3078,7 +3078,7 @@ export class RestClient extends BaseRestClient {
3078
3078
  * @returns Promise<CreateStpGroupResp>
3079
3079
  */
3080
3080
  createStpGroup(params) {
3081
- return this.postPrivate(`/account/stp_groups`, { body: params });
3081
+ return this.postPrivate('/account/stp_groups', { body: params });
3082
3082
  }
3083
3083
  /**
3084
3084
  * List STP Groups
@@ -3087,7 +3087,7 @@ export class RestClient extends BaseRestClient {
3087
3087
  * @returns Promise<CreateStpGroupResp[]>
3088
3088
  */
3089
3089
  getStpGroups(params) {
3090
- return this.getPrivate(`/account/stp_groups`, params);
3090
+ return this.getPrivate('/account/stp_groups', params);
3091
3091
  }
3092
3092
  /**
3093
3093
  * List users of the STP group