prediction-market-agent-tooling 0.67.4.dev992__py3-none-any.whl → 0.68.0.dev998__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.
@@ -387,6 +387,9 @@ class BinaryKellyBettingStrategy(BettingStrategy):
387
387
  answer: CategoricalProbabilisticAnswer,
388
388
  override_p_yes: float | None = None,
389
389
  ) -> BinaryKellyBet:
390
+ if not market.is_binary:
391
+ raise ValueError("This strategy is usable only with binary markets.")
392
+
390
393
  estimated_p_yes = (
391
394
  answer.probability_for_market_outcome(direction)
392
395
  if not override_p_yes
@@ -633,9 +633,9 @@ class SeerAgentMarket(AgentMarket):
633
633
  amount_wei=amount_wei,
634
634
  web3=web3,
635
635
  )
636
- swap_pool_tx_hash = tx_receipt["transactionHash"].hex()
636
+ swap_pool_tx_hash = tx_receipt["transactionHash"]
637
637
  logger.info(f"TxHash is {swap_pool_tx_hash=}.")
638
- return swap_pool_tx_hash
638
+ return swap_pool_tx_hash.hex()
639
639
 
640
640
  def place_bet(
641
641
  self,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.67.4.dev992
3
+ Version: 0.68.0.dev998
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.13
@@ -29,7 +29,7 @@ prediction_market_agent_tooling/config.py,sha256=-kJfdDr-m0R-tGZ1KRI-hJJk0mXDt14
29
29
  prediction_market_agent_tooling/data_download/langfuse_data_downloader.py,sha256=VY23h324VKIVkevj1B1O-zL1eEp9AElmcfn6SwYDUSc,14246
30
30
  prediction_market_agent_tooling/deploy/agent.py,sha256=N0lbYOfxv3QsmfyteT_xisEg8jEwFujUe1ZsM6WvtTY,30348
31
31
  prediction_market_agent_tooling/deploy/agent_example.py,sha256=yS1fWkHynr9MYGNOM2WsCnRWLPaffY4bOc6bIudrdd4,1377
32
- prediction_market_agent_tooling/deploy/betting_strategy.py,sha256=OfRat95Z1BwKFKVJ5lyToUi1Mheh14bs_bYxDw5vS9s,26217
32
+ prediction_market_agent_tooling/deploy/betting_strategy.py,sha256=594k3vcRqdd6dcyEJ4cmc88-nwm0Zp261E_3PiysTQA,26333
33
33
  prediction_market_agent_tooling/deploy/constants.py,sha256=iobTlZpQD6_2UL9TfoElAnBEbqzIIAKZSsAoMCGhwmA,331
34
34
  prediction_market_agent_tooling/deploy/gcp/deploy.py,sha256=CYUgnfy-9XVk04kkxA_5yp0GE9Mw5caYqlFUZQ2j3ks,3739
35
35
  prediction_market_agent_tooling/deploy/gcp/kubernetes_models.py,sha256=OsPboCFGiZKsvGyntGZHwdqPlLTthITkNF5rJFvGgU8,2582
@@ -73,7 +73,7 @@ prediction_market_agent_tooling/markets/polymarket/utils.py,sha256=A_diygWKYyp4W
73
73
  prediction_market_agent_tooling/markets/seer/data_models.py,sha256=d8J-hgUmGGhhv41u816O7xvBsi9m-TginULvj82hf_g,6681
74
74
  prediction_market_agent_tooling/markets/seer/exceptions.py,sha256=cEObdjluivD94tgOLzmimR7wgQEOt6SRakrYdhsRQtk,112
75
75
  prediction_market_agent_tooling/markets/seer/price_manager.py,sha256=PZf6-6zc6DvH1u65wHWyeD55lgG-UGnN_xzBMvrb3ug,7120
76
- prediction_market_agent_tooling/markets/seer/seer.py,sha256=i_a7VtAogk3NvLWCgLjF9EqK-C1AChuEaDpl06fsJYc,28861
76
+ prediction_market_agent_tooling/markets/seer/seer.py,sha256=78WlI3Z5siN6Thrb9yN_aUCwLAbgtXbNnmOWRl_9Gig,28861
77
77
  prediction_market_agent_tooling/markets/seer/seer_contracts.py,sha256=JqfQNFSRWREPw6pQGpJoh-No5ZlKwmTiALJiAYEuvW8,5516
78
78
  prediction_market_agent_tooling/markets/seer/seer_subgraph_handler.py,sha256=Ta4wb-P42Q0_GJfAtHkTjRUlknxwgHmjwdUqrgfHi0s,17133
79
79
  prediction_market_agent_tooling/markets/seer/subgraph_data_models.py,sha256=7szvK5we3LF38UthWHg5V3LD6C137O5_WMEcP9Dwl8w,1763
@@ -129,8 +129,8 @@ prediction_market_agent_tooling/tools/tokens/usd.py,sha256=yuW8iPPtcpP4eLH2nORMD
129
129
  prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
130
130
  prediction_market_agent_tooling/tools/utils.py,sha256=mbOGoWKalNIm7M2K51TEPGwU9oVp1Z6SPsFaBgbn6ws,7397
131
131
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=0r26snqCXGdLKCWA8jpe7DV8x2NPYWZwOy4oyKyDCYk,12615
132
- prediction_market_agent_tooling-0.67.4.dev992.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
133
- prediction_market_agent_tooling-0.67.4.dev992.dist-info/METADATA,sha256=Aet2qwsvChkVHwUFwQrc9EswNQ7Ba4Ko6h3Jp6t-DUg,8777
134
- prediction_market_agent_tooling-0.67.4.dev992.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
135
- prediction_market_agent_tooling-0.67.4.dev992.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
136
- prediction_market_agent_tooling-0.67.4.dev992.dist-info/RECORD,,
132
+ prediction_market_agent_tooling-0.68.0.dev998.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
133
+ prediction_market_agent_tooling-0.68.0.dev998.dist-info/METADATA,sha256=8CQD00yptDBnZaGy5fkjuFbWed8hXQ2JJ1x-h2zvGfg,8777
134
+ prediction_market_agent_tooling-0.68.0.dev998.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
135
+ prediction_market_agent_tooling-0.68.0.dev998.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
136
+ prediction_market_agent_tooling-0.68.0.dev998.dist-info/RECORD,,