prediction-market-agent-tooling 0.58.4__py3-none-any.whl → 0.58.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- prediction_market_agent_tooling/deploy/agent.py +13 -2
- prediction_market_agent_tooling/markets/metaculus/data_models.py +1 -1
- {prediction_market_agent_tooling-0.58.4.dist-info → prediction_market_agent_tooling-0.58.5.dist-info}/METADATA +1 -1
- {prediction_market_agent_tooling-0.58.4.dist-info → prediction_market_agent_tooling-0.58.5.dist-info}/RECORD +7 -7
- {prediction_market_agent_tooling-0.58.4.dist-info → prediction_market_agent_tooling-0.58.5.dist-info}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.58.4.dist-info → prediction_market_agent_tooling-0.58.5.dist-info}/WHEEL +0 -0
- {prediction_market_agent_tooling-0.58.4.dist-info → prediction_market_agent_tooling-0.58.5.dist-info}/entry_points.txt +0 -0
@@ -361,17 +361,23 @@ class DeployablePredictionAgent(DeployableAgent):
|
|
361
361
|
if self.have_bet_on_market_since(
|
362
362
|
market, since=self.same_market_trade_interval.get(market=market)
|
363
363
|
):
|
364
|
+
logger.info(
|
365
|
+
f"Market already bet on within {self.same_market_trade_interval}."
|
366
|
+
)
|
364
367
|
return False
|
365
368
|
|
366
369
|
# Manifold allows to bet only on markets with probability between 1 and 99.
|
367
370
|
if market_type == MarketType.MANIFOLD and not (1 < market.current_p_yes < 99):
|
371
|
+
logger.info("Manifold's market probability not in the range 1-99.")
|
368
372
|
return False
|
369
373
|
|
370
374
|
# Do as a last check, as it uses paid OpenAI API.
|
371
375
|
if not is_predictable_binary(market.question):
|
376
|
+
logger.info("Market question is not predictable.")
|
372
377
|
return False
|
373
378
|
|
374
379
|
if not self.allow_invalid_questions and is_invalid(market.question):
|
380
|
+
logger.info("Market question is invalid.")
|
375
381
|
return False
|
376
382
|
|
377
383
|
return True
|
@@ -481,7 +487,10 @@ class DeployablePredictionAgent(DeployableAgent):
|
|
481
487
|
)
|
482
488
|
processed = 0
|
483
489
|
|
484
|
-
for market in available_markets:
|
490
|
+
for market_idx, market in enumerate(available_markets):
|
491
|
+
logger.info(
|
492
|
+
f"Going to process market {market_idx+1} / {len(available_markets)}."
|
493
|
+
)
|
485
494
|
self.before_process_market(market_type, market)
|
486
495
|
processed_market = self.process_market(market_type, market)
|
487
496
|
self.after_process_market(market_type, market, processed_market)
|
@@ -492,7 +501,9 @@ class DeployablePredictionAgent(DeployableAgent):
|
|
492
501
|
if processed == self.bet_on_n_markets_per_run:
|
493
502
|
break
|
494
503
|
|
495
|
-
logger.info(
|
504
|
+
logger.info(
|
505
|
+
f"All markets processed. Successfully processed {processed}/{len(available_markets)}."
|
506
|
+
)
|
496
507
|
|
497
508
|
def after_process_markets(self, market_type: MarketType) -> None:
|
498
509
|
"""
|
@@ -23,7 +23,7 @@ prediction_market_agent_tooling/benchmark/agents.py,sha256=B1-uWdyeN4GGKMWGK_-Cc
|
|
23
23
|
prediction_market_agent_tooling/benchmark/benchmark.py,sha256=MqTiaaJ3cYiOLUVR7OyImLWxcEya3Rl5JyFYW-K0lwM,17097
|
24
24
|
prediction_market_agent_tooling/benchmark/utils.py,sha256=D0MfUkVZllmvcU0VOurk9tcKT7JTtwwOp-63zuCBVuc,2880
|
25
25
|
prediction_market_agent_tooling/config.py,sha256=owJ3goDbH1aeX8PzeJCeGK5pitYJqqk7yFOkaTbDarY,9209
|
26
|
-
prediction_market_agent_tooling/deploy/agent.py,sha256=
|
26
|
+
prediction_market_agent_tooling/deploy/agent.py,sha256=fFUxATQjSTRz70oDxBrgCk93NzF1i506cklJ8WtS_S0,24199
|
27
27
|
prediction_market_agent_tooling/deploy/agent_example.py,sha256=dIIdZashExWk9tOdyDjw87AuUcGyM7jYxNChYrVK2dM,1001
|
28
28
|
prediction_market_agent_tooling/deploy/betting_strategy.py,sha256=Y6Pb8OfSb6galRbfdNBvvNTgO-4dR2ybJ4o5GKJcMoM,12894
|
29
29
|
prediction_market_agent_tooling/deploy/constants.py,sha256=M5ty8URipYMGe_G-RzxRydK3AFL6CyvmqCraJUrLBnE,82
|
@@ -49,7 +49,7 @@ prediction_market_agent_tooling/markets/manifold/utils.py,sha256=_gGlWid0sPF127O
|
|
49
49
|
prediction_market_agent_tooling/markets/market_fees.py,sha256=Q64T9uaJx0Vllt0BkrPmpMEz53ra-hMVY8Czi7CEP7s,1227
|
50
50
|
prediction_market_agent_tooling/markets/markets.py,sha256=OMADWd1C5wD7sVdcY_GVdxAFDndkU9kn6Ble4GXCw0c,4045
|
51
51
|
prediction_market_agent_tooling/markets/metaculus/api.py,sha256=4TRPGytQQbSdf42DCg2M_JWYPAuNjqZ3eBqaQBLkNks,2736
|
52
|
-
prediction_market_agent_tooling/markets/metaculus/data_models.py,sha256=
|
52
|
+
prediction_market_agent_tooling/markets/metaculus/data_models.py,sha256=FaBCTPPezXbBwZ9p791CiVgQ4vB696xnMbz9XVXmiVI,3267
|
53
53
|
prediction_market_agent_tooling/markets/metaculus/metaculus.py,sha256=86TIx6cavEWc8Cv4KpZxSvwiSw9oFybXE3YB49pg-CA,4377
|
54
54
|
prediction_market_agent_tooling/markets/omen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
55
55
|
prediction_market_agent_tooling/markets/omen/data_models.py,sha256=uT8ILKrg2g4jGodPxtolPErk25buNzMYndb01ZL2dYE,28421
|
@@ -120,8 +120,8 @@ prediction_market_agent_tooling/tools/tokens/main_token.py,sha256=5iHO7-iehSlXuu
|
|
120
120
|
prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
|
121
121
|
prediction_market_agent_tooling/tools/utils.py,sha256=jLG4nbEoIzzJiZ4RgMx4Q969Zdl0p0s63p8uET_0Fuw,6440
|
122
122
|
prediction_market_agent_tooling/tools/web3_utils.py,sha256=e7lqqQddVZaa905rhBb6L1fC3o39Yr-PDJsJjHFBeRE,12523
|
123
|
-
prediction_market_agent_tooling-0.58.
|
124
|
-
prediction_market_agent_tooling-0.58.
|
125
|
-
prediction_market_agent_tooling-0.58.
|
126
|
-
prediction_market_agent_tooling-0.58.
|
127
|
-
prediction_market_agent_tooling-0.58.
|
123
|
+
prediction_market_agent_tooling-0.58.5.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
|
124
|
+
prediction_market_agent_tooling-0.58.5.dist-info/METADATA,sha256=rPCTjBMlKpKZHpIpANRKiO-FIZRUqMA_P0DUcps9pcI,8629
|
125
|
+
prediction_market_agent_tooling-0.58.5.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
126
|
+
prediction_market_agent_tooling-0.58.5.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
|
127
|
+
prediction_market_agent_tooling-0.58.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|