ManifoldMarketManager.rule.manifold.this
Contain rules that reference the market that is calling them.
- class ManifoldMarketManager.rule.manifold.this.CurrentValueRule(slug: Optional[str] = None, url: Optional[str] = None, id_: str = 'N/A')[source]
Bases:
OtherMarketValue
[T
],ThisToOtherConverter
Resolve to the current market-consensus value.
- _abc_impl = <_abc_data object>
- _is_protocol = False
- api_market(client: Optional[ManifoldClient] = None, market: Optional[Market] = None) APIMarket
Return an APIMarket object associated with this rule’s market.
- explain_abstract(indent: int = 0, **kwargs: Any) str
Explain how the market will resolve and decide to resolve.
- explain_specific(market: Market, indent: int = 0, sig_figs: int = 4) str
Explain why the market is resolving the way that it is.
- f_api_market(client: Optional[ManifoldClient] = None, market: Optional[Market] = None) Future[APIMarket]
Return a Futures which resolves to the APIMarket object associated with this rule’s market.
- classmethod from_dict(env: ModJSONDict) T
Take a dictionary and return an instance of the associated class.
- id_: str
- logger: Logger
- slug: Optional[str]
- tags_used: set[str]
- url: Optional[str]
- class ManifoldMarketManager.rule.manifold.this.FibonacciValueRule(exclude: set[int] = NOTHING, min_rewarded: float = 0.0001)[source]
Bases:
Rule
[Union
[float
,Mapping
[int
,float
]]]Resolve each value with a fibonacci weight, ranked by probability.
- _abc_impl = <_abc_data object>
- _is_protocol = False
- exclude: set[int]
- explain_abstract(indent: int = 0, **kwargs: Any) str
Explain how the market will resolve and decide to resolve.
- explain_specific(market: Market, indent: int = 0, sig_figs: int = 4) str
Explain why the market is resolving the way that it is.
- classmethod from_dict(env: ModJSONDict) T
Take a dictionary and return an instance of the associated class.
- logger: Logger
- min_rewarded: float
- tags_used: set[str]
- class ManifoldMarketManager.rule.manifold.this.PopularValueRule(size: int = 1)[source]
Bases:
Rule
[Union
[Literal
[‘CANCEL’],Mapping
[str
,float
],Mapping
[int
,float
],Mapping
[float
,float
]]]Resolve to the n most likely market-consensus values, weighted by their probability.
- _abc_impl = <_abc_data object>
- _is_protocol = False
- explain_abstract(indent: int = 0, **kwargs: Any) str
Explain how the market will resolve and decide to resolve.
- explain_specific(market: Market, indent: int = 0, sig_figs: int = 4) str
Explain why the market is resolving the way that it is.
- classmethod from_dict(env: ModJSONDict) T
Take a dictionary and return an instance of the associated class.
- logger: Logger
- size: int
- tags_used: set[str]
- class ManifoldMarketManager.rule.manifold.this.RoundValueRule(slug: Optional[str] = None, url: Optional[str] = None, id_: str = 'N/A')[source]
Bases:
CurrentValueRule
[Union
[Literal
[‘CANCEL’],bool
,float
]]Resolve to the current market-consensus value, but rounded.
- _abc_impl = <_abc_data object>
- _explain_abstract(indent: int = 0, **kwargs: Any) str
- _explainer_stub: ClassVar[str] = 'Resolves to round(MKT)'
- _is_protocol = False
- api_market(client: Optional[ManifoldClient] = None, market: Optional[Market] = None) APIMarket
Return an APIMarket object associated with this rule’s market.
- explain_abstract(indent: int = 0, **kwargs: Any) str
Explain how the market will resolve and decide to resolve.
- explain_specific(market: Market, indent: int = 0, sig_figs: int = 4) str
Explain why the market is resolving the way that it is.
- f_api_market(client: Optional[ManifoldClient] = None, market: Optional[Market] = None) Future[APIMarket]
Return a Futures which resolves to the APIMarket object associated with this rule’s market.
- classmethod from_dict(env: ModJSONDict) T
Take a dictionary and return an instance of the associated class.
- id_: str
- logger: Logger
- slug: Optional[str]
- tags_used: set[str]
- url: Optional[str]
- class ManifoldMarketManager.rule.manifold.this.ThisMarketClosed(slug: Optional[str] = None, url: Optional[str] = None, id_: str = 'N/A')[source]
Bases:
OtherMarketClosed
,ThisToOtherConverter
A rule that checks whether its associated market is closed.
- _abc_impl = <_abc_data object>
- _is_protocol = False
- api_market(client: Optional[ManifoldClient] = None, market: Optional[Market] = None) APIMarket
Return an APIMarket object associated with this rule’s market.
- explain_abstract(indent: int = 0, **kwargs: Any) str
Explain how the market will resolve and decide to resolve.
- explain_specific(market: Market, indent: int = 0, sig_figs: int = 4) str
Explain why the market is resolving the way that it is.
- f_api_market(client: Optional[ManifoldClient] = None, market: Optional[Market] = None) Future[APIMarket]
Return a Futures which resolves to the APIMarket object associated with this rule’s market.
- classmethod from_dict(env: ModJSONDict) T
Take a dictionary and return an instance of the associated class.
- id_: str
- logger: Logger
- slug: Optional[str]
- tags_used: set[str]
- url: Optional[str]
- class ManifoldMarketManager.rule.manifold.this.ThisToOtherConverter(slug: Optional[str] = None, url: Optional[str] = None, id_: str = 'N/A')[source]
Bases:
ManifoldMarketMixin
A mixin class that converts market accesses to reuse other code.
- api_market(client: Optional[ManifoldClient] = None, market: Optional[Market] = None) APIMarket [source]
Return an APIMarket object associated with this rule’s market.
- f_api_market(client: Optional[ManifoldClient] = None, market: Optional[Market] = None) Future[APIMarket]
Return a Futures which resolves to the APIMarket object associated with this rule’s market.
- id_: str
- slug: Optional[str]
- url: Optional[str]
- class ManifoldMarketManager.rule.manifold.this.UniqueTradersRule(slug: Optional[str] = None, url: Optional[str] = None, id_: str = 'N/A')[source]
Bases:
ThisToOtherConverter
,OtherMarketUniqueTraders
Resolve to the current number of unique traders.
- _abc_impl = <_abc_data object>
- _is_protocol = False
- api_market(client: Optional[ManifoldClient] = None, market: Optional[Market] = None) APIMarket
Return an APIMarket object associated with this rule’s market.
- explain_abstract(indent: int = 0, **kwargs: Any) str
Explain how the market will resolve and decide to resolve.
- explain_specific(market: Market, indent: int = 0, sig_figs: int = 4) str
Explain why the market is resolving the way that it is.
- f_api_market(client: Optional[ManifoldClient] = None, market: Optional[Market] = None) Future[APIMarket]
Return a Futures which resolves to the APIMarket object associated with this rule’s market.
- classmethod from_dict(env: ModJSONDict) T
Take a dictionary and return an instance of the associated class.
- id_: str
- logger: Logger
- slug: Optional[str]
- tags_used: set[str]
- url: Optional[str]