prediction-market-agent-tooling 0.48.12__py3-none-any.whl → 0.48.13__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.
@@ -78,7 +78,7 @@ class BettingStrategy(ABC):
78
78
 
79
79
  if prev_amount.currency != new_amount.currency:
80
80
  raise ValueError("Cannot handle positions with different currencies")
81
- diff_amount = prev_amount.amount - new_amount.amount
81
+ diff_amount = new_amount.amount - prev_amount.amount
82
82
  if diff_amount == 0:
83
83
  continue
84
84
  trade_type = TradeType.SELL if diff_amount < 0 else TradeType.BUY
@@ -219,7 +219,8 @@ class AgentMarket(BaseModel):
219
219
  def has_unsuccessful_resolution(self) -> bool:
220
220
  return self.resolution in [Resolution.CANCEL, Resolution.MKT]
221
221
 
222
- def get_outcome_str_from_bool(self, outcome: bool) -> OutcomeStr:
222
+ @staticmethod
223
+ def get_outcome_str_from_bool(outcome: bool) -> OutcomeStr:
223
224
  raise NotImplementedError("Subclasses must implement this method")
224
225
 
225
226
  def get_outcome_str(self, outcome_index: int) -> str:
@@ -422,7 +422,8 @@ class OmenAgentMarket(AgentMarket):
422
422
  cls.get_outcome_str(cls.index_set_to_outcome_index(index_set))
423
423
  )
424
424
 
425
- def get_outcome_str_from_bool(self, outcome: bool) -> OutcomeStr:
425
+ @staticmethod
426
+ def get_outcome_str_from_bool(outcome: bool) -> OutcomeStr:
426
427
  return (
427
428
  OutcomeStr(OMEN_TRUE_OUTCOME) if outcome else OutcomeStr(OMEN_FALSE_OUTCOME)
428
429
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.48.12
3
+ Version: 0.48.13
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.12
@@ -31,7 +31,7 @@ Requires-Dist: openai (>=1.0.0,<2.0.0) ; extra == "openai"
31
31
  Requires-Dist: prompt-toolkit (>=3.0.43,<4.0.0)
32
32
  Requires-Dist: psycopg2-binary (>=2.9.9,<3.0.0)
33
33
  Requires-Dist: pydantic (>=2.6.1,<3.0.0)
34
- Requires-Dist: pydantic-settings (>=2.1.0,<3.0.0)
34
+ Requires-Dist: pydantic-settings (>=2.4.0,<3.0.0)
35
35
  Requires-Dist: pymongo (>=4.8.0,<5.0.0)
36
36
  Requires-Dist: safe-cli (>=1.0.0,<2.0.0)
37
37
  Requires-Dist: safe-eth-py (>=6.0.0b14,<7.0.0)
@@ -17,14 +17,14 @@ prediction_market_agent_tooling/benchmark/utils.py,sha256=D0MfUkVZllmvcU0VOurk9t
17
17
  prediction_market_agent_tooling/config.py,sha256=9h68Nb9O1YZabZqtOBrH1S-4U5aIdLKfVYLSKspfUeA,6008
18
18
  prediction_market_agent_tooling/deploy/agent.py,sha256=vLAfzWXzgIdNft07gqHsGDOWQHb8jTM9jqKECAi44j0,18700
19
19
  prediction_market_agent_tooling/deploy/agent_example.py,sha256=dIIdZashExWk9tOdyDjw87AuUcGyM7jYxNChYrVK2dM,1001
20
- prediction_market_agent_tooling/deploy/betting_strategy.py,sha256=yVHzJtxSoRfzSycWbXPYKVQX-51DwUdezDaYy-JZFUE,6905
20
+ prediction_market_agent_tooling/deploy/betting_strategy.py,sha256=TX5xRaUz7JWQs92dPp8Y_cdRiJH8I9yvtaSMmNkty10,6905
21
21
  prediction_market_agent_tooling/deploy/constants.py,sha256=M5ty8URipYMGe_G-RzxRydK3AFL6CyvmqCraJUrLBnE,82
22
22
  prediction_market_agent_tooling/deploy/gcp/deploy.py,sha256=CYUgnfy-9XVk04kkxA_5yp0GE9Mw5caYqlFUZQ2j3ks,3739
23
23
  prediction_market_agent_tooling/deploy/gcp/kubernetes_models.py,sha256=qYIHRxQLac3yxtZ8ChikiPG9O1aUQucHW0muTSm1nto,2627
24
24
  prediction_market_agent_tooling/deploy/gcp/utils.py,sha256=oyW0jgrUT2Tr49c7GlpcMsYNQjoCSOcWis3q-MmVAhU,6089
25
25
  prediction_market_agent_tooling/gtypes.py,sha256=ezM2iAycTRJ0uHKK03s0z76a8YFSF438kjOwT_BAqz4,2474
26
26
  prediction_market_agent_tooling/loggers.py,sha256=JiBTgvb34O9dKHYKZyQ0UzojPUy6KSFQSTfbBIXopSY,3721
27
- prediction_market_agent_tooling/markets/agent_market.py,sha256=ygIAXDsBHaLxiGgAfAZrigAYcpPfxA9Pg3kvykXj77M,10164
27
+ prediction_market_agent_tooling/markets/agent_market.py,sha256=nVJO1MY7_l-YP1Q7-mGLtRgIHK8M-yt3Ht1yyQPwImM,10176
28
28
  prediction_market_agent_tooling/markets/categorize.py,sha256=jsoHWvZk9pU6n17oWSCcCxNNYVwlb_NXsZxKRI7vmsk,1301
29
29
  prediction_market_agent_tooling/markets/data_models.py,sha256=vaJ049j2Anf5sZWjNflsCEag-Y0G1mTu6bCWT74HxqM,3266
30
30
  prediction_market_agent_tooling/markets/manifold/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -38,7 +38,7 @@ prediction_market_agent_tooling/markets/metaculus/data_models.py,sha256=6TBy17xn
38
38
  prediction_market_agent_tooling/markets/metaculus/metaculus.py,sha256=1aaainHlMExDSp6nfKY31iATQsaJx1LdYp9p2PkQVAs,3453
39
39
  prediction_market_agent_tooling/markets/omen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
40
  prediction_market_agent_tooling/markets/omen/data_models.py,sha256=vCDr8FX3FA5LIQydormq8q1aU4GxMh2tQ8i59v_X134,16887
41
- prediction_market_agent_tooling/markets/omen/omen.py,sha256=zPfOFDeI2JakytpkDAmcxiBUmijPBve2lRbUh0dJDcs,42960
41
+ prediction_market_agent_tooling/markets/omen/omen.py,sha256=BuDfmZBegHqqJCErFDstzbqzVDLVuFpoSbyYD4ZteSI,42972
42
42
  prediction_market_agent_tooling/markets/omen/omen_contracts.py,sha256=MfaWfDDfEzHYVAbeT3Dgtl8KG7XsqEpdY3m3-rsOPwo,23588
43
43
  prediction_market_agent_tooling/markets/omen/omen_resolving.py,sha256=Awaw1r32IBAClCktrXbYJ24RNyLDWcLb8RqAx6FGSkI,9529
44
44
  prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py,sha256=EwknHxU_EkK8H5-6fWW5IN5k6OAW5il4T2FhXrSKEJc,29984
@@ -78,8 +78,8 @@ prediction_market_agent_tooling/tools/tavily_storage/tavily_models.py,sha256=Uq2
78
78
  prediction_market_agent_tooling/tools/tavily_storage/tavily_storage.py,sha256=xrtQH9v5pXycBRyc5j45pWqkSffkoc9efNIU1_G633Q,3706
79
79
  prediction_market_agent_tooling/tools/utils.py,sha256=JE9YWtPPhnTgLiOyGAZDNG5K8nCwUY9IZEuAlm9UcxA,6611
80
80
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=IZDxHhUJH5RsaRkK9DW6z1RYdk2cz5RqLMZG3T6Gv1U,11602
81
- prediction_market_agent_tooling-0.48.12.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
82
- prediction_market_agent_tooling-0.48.12.dist-info/METADATA,sha256=1Ana_qFpbYW-L7MrmyCxeOY33rRyhpgLzXSihHqXiU4,7811
83
- prediction_market_agent_tooling-0.48.12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
84
- prediction_market_agent_tooling-0.48.12.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
85
- prediction_market_agent_tooling-0.48.12.dist-info/RECORD,,
81
+ prediction_market_agent_tooling-0.48.13.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
82
+ prediction_market_agent_tooling-0.48.13.dist-info/METADATA,sha256=hzpD4sc9MsTT8zyAaLg8feXkawAQ25AnDorJfCuQBKI,7811
83
+ prediction_market_agent_tooling-0.48.13.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
84
+ prediction_market_agent_tooling-0.48.13.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
85
+ prediction_market_agent_tooling-0.48.13.dist-info/RECORD,,