Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PMAT package #28

Merged
merged 5 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions examples/cloud_deployment/agent.py

This file was deleted.

37 changes: 0 additions & 37 deletions examples/cloud_deployment/deploy.py

This file was deleted.

8 changes: 2 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import typer
import prediction_market_agent as pma
from decimal import Decimal
from prediction_market_agent.tools.utils import should_not_happen
from prediction_market_agent.agents.all_agents import AgentType, get_agent
from prediction_market_agent.tools.gtypes import xDai, Mana
from prediction_market_agent.markets.all_markets import (
from prediction_market_agent_tooling.markets.markets import (
MarketType,
get_bet_amount,
omen,
manifold,
get_binary_markets,
place_bet,
)
Expand All @@ -22,7 +18,7 @@ def main(
"""
Picks one market and answers it, optionally placing a bet.
"""
keys = pma.utils.get_keys()
keys = pma.utils.APIKeys()

# Pick a market
market = get_binary_markets(market_type)[0].to_agent_market()
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[mypy]
python_version = 3.9
files = main.py, prediction_market_agent/, scripts/, tests/, examples/
files = main.py, prediction_market_agent/, tests/
plugins = pydantic.mypy
warn_redundant_casts = True
warn_unused_ignores = True
Expand Down
1,502 changes: 885 additions & 617 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions prediction_market_agent/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
from . import utils
from . import agents
from .markets import manifold
from .markets import omen
Loading
Loading