prediction-market-agent-tooling 0.65.3__py3-none-any.whl → 0.65.4__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/omen/omen_subgraph_handler.py +7 -0
- {prediction_market_agent_tooling-0.65.3.dist-info → prediction_market_agent_tooling-0.65.4.dist-info}/METADATA +1 -1
- {prediction_market_agent_tooling-0.65.3.dist-info → prediction_market_agent_tooling-0.65.4.dist-info}/RECORD +6 -6
- {prediction_market_agent_tooling-0.65.3.dist-info → prediction_market_agent_tooling-0.65.4.dist-info}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.65.3.dist-info → prediction_market_agent_tooling-0.65.4.dist-info}/WHEEL +0 -0
- {prediction_market_agent_tooling-0.65.3.dist-info → prediction_market_agent_tooling-0.65.4.dist-info}/entry_points.txt +0 -0
@@ -238,6 +238,7 @@ class OmenSubgraphHandler(BaseSubgraphHandler):
|
|
238
238
|
collateral_token_address_in: tuple[ChecksumAddress, ...] | None,
|
239
239
|
category: str | None,
|
240
240
|
include_categorical_markets: bool = False,
|
241
|
+
include_scalar_markets: bool = False,
|
241
242
|
) -> dict[str, t.Any]:
|
242
243
|
where_stms: dict[str, t.Any] = {
|
243
244
|
"title_not": None,
|
@@ -247,6 +248,10 @@ class OmenSubgraphHandler(BaseSubgraphHandler):
|
|
247
248
|
where_stms["outcomeSlotCount"] = 2
|
248
249
|
where_stms["outcomes"] = OMEN_BINARY_MARKET_OUTCOMES
|
249
250
|
|
251
|
+
if not include_scalar_markets:
|
252
|
+
# scalar markets can be identified
|
253
|
+
where_stms["outcomes_not"] = None
|
254
|
+
|
250
255
|
where_stms["question_"] = self.get_omen_question_filters(
|
251
256
|
question_id=question_id,
|
252
257
|
opened_before=question_opened_before,
|
@@ -413,6 +418,7 @@ class OmenSubgraphHandler(BaseSubgraphHandler):
|
|
413
418
|
) = SAFE_COLLATERAL_TOKENS_ADDRESSES,
|
414
419
|
category: str | None = None,
|
415
420
|
include_categorical_markets: bool = True,
|
421
|
+
include_scalar_markets: bool = False,
|
416
422
|
) -> t.List[OmenMarket]:
|
417
423
|
"""
|
418
424
|
Complete method to fetch Omen markets with various filters, use `get_omen_markets_simple` for simplified version that uses FilterBy and SortBy enums.
|
@@ -438,6 +444,7 @@ class OmenSubgraphHandler(BaseSubgraphHandler):
|
|
438
444
|
collateral_token_address_in=collateral_token_address_in,
|
439
445
|
category=category,
|
440
446
|
include_categorical_markets=include_categorical_markets,
|
447
|
+
include_scalar_markets=include_scalar_markets,
|
441
448
|
)
|
442
449
|
|
443
450
|
# These values can not be set to `None`, but they can be omitted.
|
@@ -60,7 +60,7 @@ prediction_market_agent_tooling/markets/omen/omen.py,sha256=jyoAV-E_Qcbqqs4oi7ju
|
|
60
60
|
prediction_market_agent_tooling/markets/omen/omen_constants.py,sha256=D9oflYKafLQiHYtB5sScMHqmXyzM8JP8J0yATmc4SQQ,233
|
61
61
|
prediction_market_agent_tooling/markets/omen/omen_contracts.py,sha256=f0dKbdVM2OUTSpkCSZdPtKqeckS2c48j3rjnK8oD3wE,29716
|
62
62
|
prediction_market_agent_tooling/markets/omen/omen_resolving.py,sha256=05x-Yb0bUsJSEtsWQLqSHyl4HqLChksIb64OGygN-Rw,10226
|
63
|
-
prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py,sha256=
|
63
|
+
prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py,sha256=149T_tJxK2GFnGCulOlGr2Mwiaa7sa74E4lqYsuCv68,39962
|
64
64
|
prediction_market_agent_tooling/markets/polymarket/api.py,sha256=UZ4_TG8ceb9Y-qgsOKs8Qiv8zDt957QkT8IX2c83yqo,4800
|
65
65
|
prediction_market_agent_tooling/markets/polymarket/data_models.py,sha256=U1SXTz93FIG3GO1h5BJWSt1hPKn_YAMBeZ3k8IS-ook,4552
|
66
66
|
prediction_market_agent_tooling/markets/polymarket/data_models_web.py,sha256=wCwpZ8Kppy8JG_1HZDfEK_Gg1g1sL7NCbGoPeTeMSko,12756
|
@@ -116,8 +116,8 @@ prediction_market_agent_tooling/tools/tokens/usd.py,sha256=yuW8iPPtcpP4eLH2nORMD
|
|
116
116
|
prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
|
117
117
|
prediction_market_agent_tooling/tools/utils.py,sha256=Jzpck3_QwShhejhgbAhmNxPSOPQJssBQep0eVemVjZ4,7064
|
118
118
|
prediction_market_agent_tooling/tools/web3_utils.py,sha256=zRq-eeBGWt8uUGN9G_WfjmJ0eVvO8aWE9S0Pz_Y6AOA,12342
|
119
|
-
prediction_market_agent_tooling-0.65.
|
120
|
-
prediction_market_agent_tooling-0.65.
|
121
|
-
prediction_market_agent_tooling-0.65.
|
122
|
-
prediction_market_agent_tooling-0.65.
|
123
|
-
prediction_market_agent_tooling-0.65.
|
119
|
+
prediction_market_agent_tooling-0.65.4.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
|
120
|
+
prediction_market_agent_tooling-0.65.4.dist-info/METADATA,sha256=bG8oQxcVytt5TcAg1I-7qsmGqL2aCOZJ-FvKB-7tgQE,8734
|
121
|
+
prediction_market_agent_tooling-0.65.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
122
|
+
prediction_market_agent_tooling-0.65.4.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
|
123
|
+
prediction_market_agent_tooling-0.65.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|