Skip to content

Commit

Permalink
Use PMAT package
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii committed Feb 11, 2024
1 parent 424b1b4 commit 09f910d
Show file tree
Hide file tree
Showing 39 changed files with 958 additions and 3,275 deletions.
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

0 comments on commit 09f910d

Please sign in to comment.