1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "watchlist",
12 "symbols": [
13 "BTC",
14 "ETH",
15 "SOL",
16 "XRP",
17 "DOGE"
18 ],
19 "topN": 100,
20 "vsCurrency": "usd",
21 "useBinanceFallback": true,
22 "dexQueries": [
23 "So11111111111111111111111111111111111111112",
24 "PEPE"
25 ],
26 "dexChain": "solana",
27 "dexMaxPairsPerToken": 3,
28 "walletAddresses": [
29 "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
30 ],
31 "walletChain": "eth",
32 "walletPeriod": "7d",
33 "responseFormat": "detailed"
34};
35
36
37const run = await client.actor("khadinakbar/crypto-price-tracker").call(input);
38
39
40console.log('Results from dataset');
41console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
42const { items } = await client.dataset(run.defaultDatasetId).listItems();
43items.forEach((item) => {
44 console.dir(item);
45});
46
47