1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "data": {
10 "open": [
11 150,
12 152.5,
13 151,
14 153.5,
15 155,
16 154,
17 156,
18 158.5,
19 157,
20 159,
21 ],
22 "high": [
23 153,
24 154,
25 153.5,
26 156,
27 157,
28 156.5,
29 159,
30 160,
31 159.5,
32 162,
33 ],
34 "low": [
35 149,
36 151,
37 150,
38 152,
39 153.5,
40 152.5,
41 154.5,
42 157,
43 156,
44 158,
45 ],
46 "close": [
47 152,
48 151.5,
49 153,
50 154.5,
51 154,
52 155.5,
53 158,
54 157.5,
55 159,
56 161.5,
57 ],
58 "volume": [
59 1000,
60 1200,
61 1100,
62 1300,
63 1250,
64 1400,
65 1500,
66 1450,
67 1600,
68 1550,
69 ],
70 },
71 "indicators": [
72 {
73 "name": "SMA",
74 "params": { "timeperiod": 3 },
75 },
76 {
77 "name": "RSI",
78 "params": { "timeperiod": 14 },
79 },
80 ],
81}
82
83
84run = client.actor("ozito/technical-analysis-calculator").call(run_input=run_input)
85
86
87print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
88for item in client.dataset(run["defaultDatasetId"]).iterate_items():
89 print(item)
90
91