@orbis-systems/orbis-api-clients 0.5.2 → 0.5.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.
@@ -251,7 +251,7 @@ class $538ed1203bac2e79$export$f280b732bbc5934b extends (0, $3621850f1f570615$ex
251
251
  isTokenExpired(token) {
252
252
  const payload = (0, $5Loj3$jwtdecode.jwtDecode)(token);
253
253
  if (!payload.exp) return true;
254
- return (0, $5Loj3$datefns.isBefore)((0, $5Loj3$datefns.subMinutes)(payload.exp * 1000, 5), Date.now());
254
+ return (0, $5Loj3$datefns.isBefore)((0, $5Loj3$datefns.subMinutes)(payload.exp * 1000, 1), Date.now());
255
255
  }
256
256
  async renewToken() {
257
257
  const callback = this.config.onRenewToken ?? this.renewTokenCallback;
@@ -1525,6 +1525,22 @@ class $da89e2663382a79a$export$82b8d343c504672 {
1525
1525
  responseType: 'json'
1526
1526
  });
1527
1527
  }
1528
+ /**
1529
+ * @tags Quote
1530
+ * @name GetOptionDayChart
1531
+ * @summary Query Option Day Chart - All users - available in Microservice
1532
+ * @request GET:/api/quote/option-day-chart
1533
+ * @secure
1534
+ */ getOptionDayChart(query, config) {
1535
+ return this.apiClient.request({
1536
+ ...config,
1537
+ url: `/quote/option-day-chart`,
1538
+ method: 'GET',
1539
+ params: query,
1540
+ secure: true,
1541
+ responseType: 'json'
1542
+ });
1543
+ }
1528
1544
  /**
1529
1545
  * @tags Quote
1530
1546
  * @name GetEquiductLevel1
@@ -1737,14 +1753,14 @@ class $cbc117ce07829f62$export$304305f55794ea0e {
1737
1753
  }
1738
1754
  /**
1739
1755
  * @tags QuotesReformat
1740
- * @name GetEquityHistorical
1741
- * @summary Query Historical Day Chart. No weekly data point support yet. No rsiSpan support. - All users - available in Microservice
1742
- * @request GET:/api/quotes/equity/historical
1756
+ * @name GetOptionHistorical
1757
+ * @summary Query option Day Chart. No weekly data point support yet. No rsiSpan support. - All users - available in Microservice
1758
+ * @request GET:/api/quotes/option/historical
1743
1759
  * @secure
1744
- */ getEquityHistorical(query, config) {
1760
+ */ getOptionHistorical(query, config) {
1745
1761
  return this.apiClient.request({
1746
1762
  ...config,
1747
- url: `/quotes/equity/historical`,
1763
+ url: `/quotes/option/historical`,
1748
1764
  method: 'GET',
1749
1765
  params: query,
1750
1766
  secure: true,
@@ -1814,6 +1830,22 @@ class $cbc117ce07829f62$export$304305f55794ea0e {
1814
1830
  responseType: 'json'
1815
1831
  });
1816
1832
  }
1833
+ /**
1834
+ * @tags QuotesReformat
1835
+ * @name GetEquityHistorical
1836
+ * @summary Query Historical Day Chart. No weekly data point support yet. No rsiSpan support. - All users - available in Microservice
1837
+ * @request GET:/api/quotes/equity/historical
1838
+ * @secure
1839
+ */ getEquityHistorical(query, config) {
1840
+ return this.apiClient.request({
1841
+ ...config,
1842
+ url: `/quotes/equity/historical`,
1843
+ method: 'GET',
1844
+ params: query,
1845
+ secure: true,
1846
+ responseType: 'json'
1847
+ });
1848
+ }
1817
1849
  /**
1818
1850
  * @tags QuotesReformat
1819
1851
  * @name GetBonds