ManifoldMarketManager.consts

Store constants, shared values, and enumerations.

class ManifoldMarketManager.consts.EnvironmentVariable(value)[source]

Bases: str, Enum

Represents an Environment Variable that is used by this program.

DBName = 'DBName'
GithubAccessToken = 'GithubAccessToken'
GithubUsername = 'GithubUsername'
LogFile = 'LogFile'
ManifoldAPIKey = 'ManifoldAPIKey'
TelegramAPIKey = 'TelegramAPIKey'
TelegramChatID = 'TelegramChatID'
_generate_next_value_(start, count, last_values)

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None

_member_map_ = {'DBName': EnvironmentVariable.DBName, 'GithubAccessToken': EnvironmentVariable.GithubAccessToken, 'GithubUsername': EnvironmentVariable.GithubUsername, 'LogFile': EnvironmentVariable.LogFile, 'ManifoldAPIKey': EnvironmentVariable.ManifoldAPIKey, 'TelegramAPIKey': EnvironmentVariable.TelegramAPIKey, 'TelegramChatID': EnvironmentVariable.TelegramChatID}
_member_names_ = ['ManifoldAPIKey', 'GithubUsername', 'GithubAccessToken', 'DBName', 'TelegramAPIKey', 'TelegramChatID', 'LogFile']
_member_type_

alias of str

_value2member_map_ = {'DBName': EnvironmentVariable.DBName, 'GithubAccessToken': EnvironmentVariable.GithubAccessToken, 'GithubUsername': EnvironmentVariable.GithubUsername, 'LogFile': EnvironmentVariable.LogFile, 'ManifoldAPIKey': EnvironmentVariable.ManifoldAPIKey, 'TelegramAPIKey': EnvironmentVariable.TelegramAPIKey, 'TelegramChatID': EnvironmentVariable.TelegramChatID}
class ManifoldMarketManager.consts.MarketStatus(value)[source]

Bases: Enum

Represent the status of a market at a high level.

CLOSED = 2
OPEN = 1
RESOLVED = 3
class ManifoldMarketManager.consts.Outcome(value)[source]

Bases: str, Enum

Represent possible outcomes of markets, and exposing groups of related types.

BINARY = 'BINARY'
static BINARY_LIKE() Sequence[OutcomeType][source]

Return the group of markets that resolves using the binary market API.

FREE_RESPONSE = 'FREE_RESPONSE'
static MC_LIKE() Sequence[OutcomeType][source]

Return the group of markets that resolves using the free response market API.

MULTIPLE_CHOICE = 'MULTIPLE_CHOICE'
PSEUDO_NUMERIC = 'PSEUDO_NUMERIC'
_generate_next_value_(start, count, last_values)

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None

_member_map_ = {'BINARY': Outcome.BINARY, 'FREE_RESPONSE': Outcome.FREE_RESPONSE, 'MULTIPLE_CHOICE': Outcome.MULTIPLE_CHOICE, 'PSEUDO_NUMERIC': Outcome.PSEUDO_NUMERIC}
_member_names_ = ['BINARY', 'FREE_RESPONSE', 'PSEUDO_NUMERIC', 'MULTIPLE_CHOICE']
_member_type_

alias of str

_value2member_map_ = {'BINARY': Outcome.BINARY, 'FREE_RESPONSE': Outcome.FREE_RESPONSE, 'MULTIPLE_CHOICE': Outcome.MULTIPLE_CHOICE, 'PSEUDO_NUMERIC': Outcome.PSEUDO_NUMERIC}
class ManifoldMarketManager.consts.Response(value)[source]

Bases: IntEnum

Possible responses from the Telegram Bot, other than YES or NO.

CANCEL = 3
NO_ACTION = 1
USE_DEFAULT = 2