diff --git a/apps/stock/data-ingestion/src/handlers/qm/actions/financials.action.ts b/apps/stock/data-ingestion/src/handlers/qm/actions/financials.action.ts index c3465f6..fb62fd5 100644 --- a/apps/stock/data-ingestion/src/handlers/qm/actions/financials.action.ts +++ b/apps/stock/data-ingestion/src/handlers/qm/actions/financials.action.ts @@ -62,7 +62,7 @@ export async function updateFinancials( currency: 'true', lang: 'en', latestfiscaldate: 'true', - numberOfReports: lastRecordDate ? '5' : '300', + numberOfReports: lastRecordDate ? '5' : '250', pathName: '/demo/portal/company-research.php', qmodTool: 'Financials', reportType: reportType, diff --git a/apps/stock/data-ingestion/src/handlers/qm/shared/config.ts b/apps/stock/data-ingestion/src/handlers/qm/shared/config.ts index 62626c3..7f6c135 100644 --- a/apps/stock/data-ingestion/src/handlers/qm/shared/config.ts +++ b/apps/stock/data-ingestion/src/handlers/qm/shared/config.ts @@ -58,3 +58,23 @@ export function getQmHeaders(): Record { Referer: 'https://www.quotemedia.com/', }; } + + +curl 'https://app.quotemedia.com/datatool/getFinancialsEnhancedBySymbol.json?currency=true&lang=en&latestfiscaldate=true&numberOfReports=300&pathName=%2Fdemo%2Fportal%2Fcompany-research.php&qmodTool=Financials&reportType=Q&symbol=AAPL&webmasterId=500' \ + -H 'accept: */*' \ + -H 'accept-language: en' \ + -H 'cache-control: no-cache' \ + -b 'JSESSIONID=4960DF4F7AFADB62E678C6128553FAA3' \ + -H 'datatool-token: 0401d87a798899b5185fd0dae4d6829c3d1db7c15f44571637556a606b5a4474' \ + -H 'origin: https://client.quotemedia.com' \ + -H 'pragma: no-cache' \ + -H 'priority: u=1, i' \ + -H 'referer: https://client.quotemedia.com/' \ + -H 'sec-ch-ua: "Google Chrome";v="137", "Chromium";v="137", "Not/A)Brand";v="24"' \ + -H 'sec-ch-ua-mobile: ?0' \ + -H 'sec-ch-ua-platform: "Linux"' \ + -H 'sec-fetch-dest: empty' \ + -H 'sec-fetch-mode: cors' \ + -H 'sec-fetch-site: same-site' \ + -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36' \ + -o 'test.json' \ No newline at end of file