1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "marketA": {
10 "platform": "Polymarket",
11 "title": "Will Bitcoin reach $150,000 by December 31, 2027?",
12 "resolutionRules": "This market will resolve to Yes if any Binance 1 minute candle for BTC/USDT between Jan 1, 2027 00:00 and Dec 31, 2027 23:59 ET has a final High price of $150,000 or higher. Otherwise it resolves to No. The resolution source is Binance BTC/USDT with the 1m candle selected.",
13 "yesPrice": 0.31,
14 "noPrice": 0.7,
15 "feeBps": 0,
16 "endDate": "2027-12-31T23:59:00-05:00",
17 },
18 "marketB": {
19 "platform": "Kalshi",
20 "title": "Bitcoin price at the end of 2027: above $150,000?",
21 "resolutionRules": "If the CF Benchmarks BRTI price at 5:00 PM EST on December 31, 2027 is above $150,000, then the market resolves to Yes. Otherwise it resolves to No. The Source Agency is CF Benchmarks; the value is the average BRTI over the 60 seconds before the expiration time.",
22 "yesPrice": 0.22,
23 "noPrice": 0.79,
24 "yesFeeBps": 546,
25 "noFeeBps": 147,
26 "endDate": "2027-12-31T17:00:00-05:00",
27 },
28 "minEdgeBps": "100",
29 "bankrollUsd": "10000",
30}
31
32
33run = client.actor("davidcondrey/wl-arbitrage-lawyer").call(run_input=run_input)
34
35
36print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40