1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "companies": [
12 {
13 "ticker": "NET",
14 "companyName": "Cloudflare",
15 "greenhouseBoardToken": "cloudflare"
16 }
17 ],
18 "lookbackDays": 7,
19 "maxNewsArticles": 20,
20 "maxEvidenceItems": 5,
21 "weights": {
22 "news": 0.4,
23 "hiring": 0.35,
24 "fundamentals": 0.25
25 },
26 "snapshotStoreName": "alternative-data-signal-snapshots",
27 "snapshotNamespace": "my-watchlist",
28 "secUserAgent": "MyResearchPipeline/1.0 research@example.com"
29};
30
31
32const run = await client.actor("automation-lab/alternative-data-signal-aggregator").call(input);
33
34
35console.log('Results from dataset');
36console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
37const { items } = await client.dataset(run.defaultDatasetId).listItems();
38items.forEach((item) => {
39 console.dir(item);
40});
41
42