prediction-market-agent-tooling 0.61.1.dev477__py3-none-any.whl → 0.61.1.dev482__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/markets/seer/data_models.py +1 -0
- prediction_market_agent_tooling/markets/seer/seer_subgraph_handler.py +7 -2
- {prediction_market_agent_tooling-0.61.1.dev477.dist-info → prediction_market_agent_tooling-0.61.1.dev482.dist-info}/METADATA +1 -1
- {prediction_market_agent_tooling-0.61.1.dev477.dist-info → prediction_market_agent_tooling-0.61.1.dev482.dist-info}/RECORD +7 -7
- {prediction_market_agent_tooling-0.61.1.dev477.dist-info → prediction_market_agent_tooling-0.61.1.dev482.dist-info}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.61.1.dev477.dist-info → prediction_market_agent_tooling-0.61.1.dev482.dist-info}/WHEEL +0 -0
- {prediction_market_agent_tooling-0.61.1.dev477.dist-info → prediction_market_agent_tooling-0.61.1.dev482.dist-info}/entry_points.txt +0 -0
@@ -110,6 +110,7 @@ class SeerMarket(BaseModel):
|
|
110
110
|
has_answers: bool | None = Field(alias="hasAnswers")
|
111
111
|
payout_reported: bool = Field(alias="payoutReported")
|
112
112
|
payout_numerators: list[int] = Field(alias="payoutNumerators")
|
113
|
+
outcomes_supply: int = Field(alias="outcomesSupply")
|
113
114
|
|
114
115
|
@property
|
115
116
|
def has_valid_answer(self) -> bool:
|
@@ -49,6 +49,7 @@ class SeerSubgraphHandler(BaseSubgraphHandler):
|
|
49
49
|
markets_field.creator,
|
50
50
|
markets_field.conditionId,
|
51
51
|
markets_field.marketName,
|
52
|
+
markets_field.outcomesSupply,
|
52
53
|
markets_field.parentOutcome,
|
53
54
|
markets_field.outcomes,
|
54
55
|
markets_field.payoutReported,
|
@@ -124,8 +125,12 @@ class SeerSubgraphHandler(BaseSubgraphHandler):
|
|
124
125
|
case SortBy.CLOSING_SOONEST:
|
125
126
|
sort_direction = "asc"
|
126
127
|
sort_by_field = self.seer_subgraph.Market.openingTs
|
127
|
-
|
128
|
-
|
128
|
+
case SortBy.HIGHEST_LIQUIDITY | SortBy.LOWEST_LIQUIDITY:
|
129
|
+
sort_direction = (
|
130
|
+
"desc" if sort_by == SortBy.HIGHEST_LIQUIDITY else "asc"
|
131
|
+
)
|
132
|
+
sort_by_field = self.seer_subgraph.Market.outcomesSupply
|
133
|
+
case SortBy.NONE:
|
129
134
|
sort_direction = None
|
130
135
|
sort_by_field = None
|
131
136
|
case _:
|
@@ -61,10 +61,10 @@ prediction_market_agent_tooling/markets/polymarket/data_models.py,sha256=Fd5PI5y
|
|
61
61
|
prediction_market_agent_tooling/markets/polymarket/data_models_web.py,sha256=VZhVccTApygSKMmy6Au2G02JCJOKJnR_oVeKlaesuSg,12548
|
62
62
|
prediction_market_agent_tooling/markets/polymarket/polymarket.py,sha256=NRoZK71PtH8kkangMqme7twcAXhRJSSabbmOir-UnAI,3418
|
63
63
|
prediction_market_agent_tooling/markets/polymarket/utils.py,sha256=8kTeVjXPcXC6DkDvWYsZQLY7x8DS6CEp_yznSEazsNU,2037
|
64
|
-
prediction_market_agent_tooling/markets/seer/data_models.py,sha256=
|
64
|
+
prediction_market_agent_tooling/markets/seer/data_models.py,sha256=MeziPFz4_55a7c2AC3TG8o2ngTQdANIL97ar4Oi33gU,8325
|
65
65
|
prediction_market_agent_tooling/markets/seer/seer.py,sha256=r21sXj_4_oIG2L1N5l56vEYGI_q2RGem_6G-Sixkbck,12954
|
66
66
|
prediction_market_agent_tooling/markets/seer/seer_contracts.py,sha256=E7CYAKZiK6cg3dyj1kJuIPKSYYUft98F64shF5S0g4s,2730
|
67
|
-
prediction_market_agent_tooling/markets/seer/seer_subgraph_handler.py,sha256
|
67
|
+
prediction_market_agent_tooling/markets/seer/seer_subgraph_handler.py,sha256=GWredUYN3nCJVO1NhXdseUJZaiMXAnvLwnLZ7heO3Zg,8863
|
68
68
|
prediction_market_agent_tooling/monitor/financial_metrics/financial_metrics.py,sha256=fjIgjDIx5MhH5mwf7S0cspLOOSU3elYLhGYoIiM26mU,2746
|
69
69
|
prediction_market_agent_tooling/monitor/markets/manifold.py,sha256=TS4ERwTfQnot8dhekNyVNhJYf5ysYsjF-9v5_kM3aVI,3334
|
70
70
|
prediction_market_agent_tooling/monitor/markets/metaculus.py,sha256=LOnyWWBFdg10-cTWdb76nOsNjDloO8OfMT85GBzRCFI,1455
|
@@ -117,8 +117,8 @@ prediction_market_agent_tooling/tools/tokens/main_token.py,sha256=7JPgVF4RbiFzLD
|
|
117
117
|
prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
|
118
118
|
prediction_market_agent_tooling/tools/utils.py,sha256=jLG4nbEoIzzJiZ4RgMx4Q969Zdl0p0s63p8uET_0Fuw,6440
|
119
119
|
prediction_market_agent_tooling/tools/web3_utils.py,sha256=3wfqNxvMn44ivweFRoeKNVb9QRtFd7kFtp7VUY5juEE,12862
|
120
|
-
prediction_market_agent_tooling-0.61.1.
|
121
|
-
prediction_market_agent_tooling-0.61.1.
|
122
|
-
prediction_market_agent_tooling-0.61.1.
|
123
|
-
prediction_market_agent_tooling-0.61.1.
|
124
|
-
prediction_market_agent_tooling-0.61.1.
|
120
|
+
prediction_market_agent_tooling-0.61.1.dev482.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
|
121
|
+
prediction_market_agent_tooling-0.61.1.dev482.dist-info/METADATA,sha256=I-vzZaFFJcL_VhRFyqdJl4l8-hZHJqrFYFSNhpHxhxs,8636
|
122
|
+
prediction_market_agent_tooling-0.61.1.dev482.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
123
|
+
prediction_market_agent_tooling-0.61.1.dev482.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
|
124
|
+
prediction_market_agent_tooling-0.61.1.dev482.dist-info/RECORD,,
|
File without changes
|
File without changes
|