1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "rows": [
12 {
13 "symbol": "EURUSD",
14 "timestamp": "2026-01-01T00:00:00Z",
15 "open": 1.1,
16 "high": 1.2,
17 "low": 1,
18 "close": 1.15,
19 "volume": 100
20 },
21 {
22 "symbol": "EURUSD",
23 "timestamp": "2026-01-01T02:00:00Z",
24 "open": 1.15,
25 "high": 1.25,
26 "low": 1.1,
27 "close": 1.2,
28 "volume": 90
29 }
30 ],
31 "intervalSeconds": 3600
32};
33
34
35const run = await client.actor("alaudinburki/ohlcv-integrity-auditor").call(input);
36
37
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45