laplace-api 2.1.0 → 3.0.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "laplace-api",
3
- "version": "2.1.0",
3
+ "version": "3.0.0",
4
4
  "description": "Client library for Laplace API for the US stock market and BIST (Istanbul stock market) fundamental financial data.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -212,7 +212,7 @@ export class FinancialClient extends Client {
212
212
  currency: Currency,
213
213
  region: Region
214
214
  ): Promise<HistoricalFinancialSheets> {
215
- const url = new URL(`${this['baseUrl']}/api/v1/stock/historical-financial-sheets`);
215
+ const url = new URL(`${this['baseUrl']}/api/v2/stock/historical-financial-sheets`);
216
216
  url.searchParams.append('symbol', symbol);
217
217
  url.searchParams.append('from', `${from.year.toString().padStart(4, '0')}-${from.month.toString().padStart(2, '0')}-${from.day.toString().padStart(2, '0')}`);
218
218
  url.searchParams.append('to', `${to.year.toString().padStart(4, '0')}-${to.month.toString().padStart(2, '0')}-${to.day.toString().padStart(2, '0')}`);
@@ -68,10 +68,10 @@ describe('FinancialRatios', () => {
68
68
  const resp = await financialClient.getHistoricalFinancialSheets(
69
69
  'TUPRS',
70
70
  { year: 2022, month: 1, day: 1 },
71
- { year: 2023, month: 1, day: 1 },
72
- FinancialSheetType.BalanceSheet,
73
- FinancialSheetPeriod.Annual,
74
- Currency.EUR,
71
+ { year: 2025, month: 1, day: 1 },
72
+ FinancialSheetType.CashFlow,
73
+ FinancialSheetPeriod.Quarterly,
74
+ Currency.TRY,
75
75
  Region.Tr
76
76
  );
77
77
  expect(resp).not.toBeEmpty();