1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "setups": [
12 {
13 "name": "XAUUSD_Gold_Nanpin_Grid",
14 "symbol": "XAUUSD",
15 "balanceUsd": 1000,
16 "baseLots": 0.01,
17 "monthlyTrades": 160,
18 "gridMultiplier": 1.4,
19 "stepPips": 20
20 },
21 {
22 "name": "USDJPY_Tokyo_Scalper_EA",
23 "symbol": "USDJPY",
24 "balanceUsd": 3000,
25 "baseLots": 0.1,
26 "monthlyTrades": 200,
27 "gridMultiplier": 1.3,
28 "stepPips": 15
29 },
30 {
31 "name": "EURUSD_London_Breakout",
32 "symbol": "EURUSD",
33 "balanceUsd": 5000,
34 "baseLots": 0.2,
35 "monthlyTrades": 120,
36 "gridMultiplier": 1.2,
37 "stepPips": 18
38 },
39 {
40 "name": "XAUUSD_PropFirm_FTMO_Challenge",
41 "symbol": "XAUUSD",
42 "balanceUsd": 10000,
43 "baseLots": 0.3,
44 "monthlyTrades": 140,
45 "gridMultiplier": 1,
46 "stepPips": 25
47 },
48 {
49 "name": "NAS100_NY_Open_Momentum",
50 "symbol": "NAS100",
51 "balanceUsd": 5000,
52 "baseLots": 0.15,
53 "monthlyTrades": 100,
54 "gridMultiplier": 1.25,
55 "stepPips": 30
56 },
57 {
58 "name": "GBPUSD_Swing_Carry_Audit",
59 "symbol": "GBPUSD",
60 "balanceUsd": 2000,
61 "baseLots": 0.05,
62 "monthlyTrades": 90,
63 "gridMultiplier": 1.35,
64 "stepPips": 20
65 }
66 ]
67};
68
69
70const run = await client.actor("invaluable_rondeau/forex-gold-propfirm-broker-spread-auditor").call(input);
71
72
73console.log('Results from dataset');
74console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
75const { items } = await client.dataset(run.defaultDatasetId).listItems();
76items.forEach((item) => {
77 console.dir(item);
78});
79
80