1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "chains": [
10 "ethereum",
11 "base",
12 "arbitrum",
13 "optimism",
14 ],
15 "protocols": [
16 "aave",
17 "compound",
18 "morpho",
19 "spark",
20 ],
21 "assets": [
22 "USDC",
23 "USDT",
24 "WETH",
25 "WBTC",
26 "DAI",
27 ],
28 "intervalSeconds": 600,
29 "aprChangeThreshold": 20,
30 "minTvlUsd": 1000000,
31 "maxRuns": 1,
32}
33
34
35run = client.actor("yunaremaia/defi-yield-monitor").call(run_input=run_input)
36
37
38print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
39for item in client.dataset(run.default_dataset_id).iterate_items():
40 print(item)
41
42