1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "sources": [
10 "stocks",
11 "crypto",
12 "fx",
13 ],
14 "symbols": [
15 "AAPL",
16 "MSFT",
17 "GOOGL",
18 "AMZN",
19 "NVDA",
20 "META",
21 "TSLA",
22 "0700.HK",
23 "9988.HK",
24 "^GSPC",
25 "^IXIC",
26 "^HSI",
27 ],
28 "fxTargets": [
29 "EUR",
30 "GBP",
31 "JPY",
32 "CNY",
33 "HKD",
34 "AUD",
35 "CAD",
36 "CHF",
37 "KRW",
38 "INR",
39 ],
40}
41
42
43run = client.actor("gaivin/global-markets-stocks-crypto-fx").call(run_input=run_input)
44
45
46print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
47for item in client.dataset(run.default_dataset_id).iterate_items():
48 print(item)
49
50