1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "baseAssets": [],
12 "quoteAssets": [
13 "USDT"
14 ],
15 "minSpreadPct": 0.5,
16 "maxResults": 50,
17 "exchanges": [
18 "binance",
19 "okx",
20 "coinbase",
21 "kraken",
22 "bybit",
23 "kucoin",
24 "gate",
25 "bitget",
26 "htx",
27 "mexc",
28 "bitfinex",
29 "bitstamp",
30 "cryptocom",
31 "bingx",
32 "bitmart",
33 "poloniex",
34 "whitebit",
35 "xt",
36 "upbit",
37 "bithumb"
38 ],
39 "takerFeePctPerSide": 0.1,
40 "minQuoteVolume24h": 50000,
41 "checkTransferStatus": true,
42 "onlyTransferable": true,
43 "onlyConfirmedTransferable": false,
44 "maxSpreadPct": 20,
45 "includeSuspicious": false,
46 "includeLeveragedTokens": false
47};
48
49
50const run = await client.actor("alpine-data/crypto-spread-scanner").call(input);
51
52
53console.log('Results from dataset');
54console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
55const { items } = await client.dataset(run.defaultDatasetId).listItems();
56items.forEach((item) => {
57 console.dir(item);
58});
59
60