1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "exchanges": [
12 "binance",
13 "bybit",
14 "okx",
15 "hyperliquid",
16 "deribit",
17 "bitget",
18 "gate",
19 "mexc",
20 "kucoin",
21 "dydx"
22 ],
23 "assets": [
24 "BTC",
25 "ETH",
26 "SOL"
27 ],
28 "proxyConfiguration": {
29 "useApifyProxy": true,
30 "apifyProxyGroups": [
31 "RESIDENTIAL"
32 ],
33 "apifyProxyCountry": "DE"
34 }
35};
36
37
38const run = await client.actor("datamole/crypto-funding-rates-open-interest").call(input);
39
40
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48