Skip to content

Commit

Permalink
Use PMAT package (#28)
Browse files Browse the repository at this point in the history
* Use PMAT package

* Update poetry

* Don't use git in pyproject

* fix openai key
  • Loading branch information
kongzii authored Feb 12, 2024
1 parent 424b1b4 commit ba112e6
Show file tree
Hide file tree
Showing 39 changed files with 778 additions and 3,270 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.

9 changes: 2 additions & 7 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 Expand Up @@ -54,7 +50,6 @@ def main(
market=market.original_market,
amount=get_bet_amount(amount, market_type),
outcome=result,
keys=keys,
omen_auto_deposit=True,
)

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,312 changes: 703 additions & 609 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 ba112e6

Please sign in to comment.