prediction-market-agent-tooling 0.55.1__py3-none-any.whl → 0.55.2.dev117__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.
@@ -283,10 +283,18 @@ def {entrypoint_function_name}(request) -> str:
283
283
 
284
284
  class DeployablePredictionAgent(DeployableAgent):
285
285
  bet_on_n_markets_per_run: int = 1
286
+
287
+ # Agent behaviour when fetching markets
286
288
  n_markets_to_fetch: int = MAX_AVAILABLE_MARKETS
287
- min_balance_to_keep_in_native_currency: xDai | None = xdai_type(0.1)
289
+ trade_on_markets_created_after: DatetimeUTC | None = None
290
+ get_markets_sort_by: SortBy = SortBy.CLOSING_SOONEST
291
+
292
+ # Agent behaviour when filtering fetched markets
288
293
  allow_invalid_questions: bool = False
289
294
  same_market_trade_interval: TradeInterval = FixedInterval(timedelta(hours=24))
295
+
296
+ min_balance_to_keep_in_native_currency: xDai | None = xdai_type(0.1)
297
+
290
298
  # Only Metaculus allows to post predictions without trading (buying/selling of outcome tokens).
291
299
  supported_markets: t.Sequence[MarketType] = [MarketType.METACULUS]
292
300
 
@@ -377,13 +385,14 @@ class DeployablePredictionAgent(DeployableAgent):
377
385
  def get_markets(
378
386
  self,
379
387
  market_type: MarketType,
380
- sort_by: SortBy = SortBy.CLOSING_SOONEST,
381
- filter_by: FilterBy = FilterBy.OPEN,
382
388
  ) -> t.Sequence[AgentMarket]:
383
389
  cls = market_type.market_class
384
390
  # Fetch the soonest closing markets to choose from
385
391
  available_markets = cls.get_binary_markets(
386
- limit=self.n_markets_to_fetch, sort_by=sort_by, filter_by=filter_by
392
+ limit=self.n_markets_to_fetch,
393
+ sort_by=self.get_markets_sort_by,
394
+ filter_by=FilterBy.OPEN,
395
+ created_after=self.trade_on_markets_created_after,
387
396
  )
388
397
  return available_markets
389
398
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.55.1
3
+ Version: 0.55.2.dev117
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.12
@@ -17,7 +17,7 @@ prediction_market_agent_tooling/benchmark/agents.py,sha256=B1-uWdyeN4GGKMWGK_-Cc
17
17
  prediction_market_agent_tooling/benchmark/benchmark.py,sha256=MqTiaaJ3cYiOLUVR7OyImLWxcEya3Rl5JyFYW-K0lwM,17097
18
18
  prediction_market_agent_tooling/benchmark/utils.py,sha256=D0MfUkVZllmvcU0VOurk9tcKT7JTtwwOp-63zuCBVuc,2880
19
19
  prediction_market_agent_tooling/config.py,sha256=114f3V9abaok27p5jX3UVr5b5gRUiSxBIYn8Snid34I,6731
20
- prediction_market_agent_tooling/deploy/agent.py,sha256=s3XVNeuJ9mtlfsRB1RWLWUR0q9fMoptZqu1u-I6oiws,22420
20
+ prediction_market_agent_tooling/deploy/agent.py,sha256=5jIZ_Wqj9XALGINCkFp2bkNV33bAnUQ_r9oNGrNgDmA,22654
21
21
  prediction_market_agent_tooling/deploy/agent_example.py,sha256=dIIdZashExWk9tOdyDjw87AuUcGyM7jYxNChYrVK2dM,1001
22
22
  prediction_market_agent_tooling/deploy/betting_strategy.py,sha256=kMrIE3wMv_IB6nJd_1DmDXDkEZhsXFOgyTd7JZ0gqHI,13068
23
23
  prediction_market_agent_tooling/deploy/constants.py,sha256=M5ty8URipYMGe_G-RzxRydK3AFL6CyvmqCraJUrLBnE,82
@@ -97,8 +97,8 @@ prediction_market_agent_tooling/tools/tavily/tavily_search.py,sha256=UPSp0S5Sql5
97
97
  prediction_market_agent_tooling/tools/tavily/tavily_storage.py,sha256=t-tZzbCzBBdFedRZDuVBn3A3mIDX8Z5wza6SxWswu_E,4093
98
98
  prediction_market_agent_tooling/tools/utils.py,sha256=W-9SqeCKd51BYMRhDjYPQ7lfNO_zE9EvYpmu2r5WXGA,7163
99
99
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=44W8siSLNQxeib98bbwAe7V5C609NHNlUuxwuWIRDiY,11838
100
- prediction_market_agent_tooling-0.55.1.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
101
- prediction_market_agent_tooling-0.55.1.dist-info/METADATA,sha256=chzNuISP7K3sgt_Mj0fFX6bQu9JFkOXTvYgmqaLFcMU,8056
102
- prediction_market_agent_tooling-0.55.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
103
- prediction_market_agent_tooling-0.55.1.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
104
- prediction_market_agent_tooling-0.55.1.dist-info/RECORD,,
100
+ prediction_market_agent_tooling-0.55.2.dev117.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
101
+ prediction_market_agent_tooling-0.55.2.dev117.dist-info/METADATA,sha256=XPjPKzzPVnhyJr-xtJUMpLViZYYAbYuVCJDELo1t2dQ,8063
102
+ prediction_market_agent_tooling-0.55.2.dev117.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
103
+ prediction_market_agent_tooling-0.55.2.dev117.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
104
+ prediction_market_agent_tooling-0.55.2.dev117.dist-info/RECORD,,