ManifoldMarketManager.account

Contains information needed to manage accounts.

class ManifoldMarketManager.account.Account(ManifoldToken: str, ManifoldUsername: str = '', GithubUsername: str = '', GithubToken: str = '', TelegramAPIKey: str = '', TelegramChatID: str = '', key: bytes = <factory>)[source]

Bases: object

Represent a Manifold account and its related API access keys.

GithubToken: str = ''
GithubUsername: str = ''
ManifoldToken: str
ManifoldUsername: str = ''
TelegramAPIKey: str = ''
TelegramChatID: str = ''
static from_bytes(buff: bytes, key: bytes) Account[source]

Decrypt and deserialize an Account from an encrypted bytestring.

static from_env() Account[source]

Try to infer an account from environment variables.

key: bytes
to_bytes() bytes[source]

Generate encrypted bytes to represent this account.