Automate the lifecycle of prediction market liquidity by bridging Magna's sophisticated token management with Polymarket's high-frequency trading capabilities. Streamline complex workflows from automated vesting distributions to programmatic capital deployment within Polymarket prediction markets.
Periodically checks market positions and automatically closes any assets that fall below a predefined price threshold. It then sends a notification via Slack once a position is liquidated.
Polymarket Search Markets
ActionSearch and browse Polymarket prediction markets. Use orderBy 'volume'/'newest'/'liquidity' to browse all active markets without any filters. Add a query for keyword search, or date filters (endDateMin/Max) for time-bounded browsing. Returns markets with question, outcomes, prices, volume, liquidity, and parent eventSlug/eventTitle. Search ranking: keyword queries match against EVENT titles, then surface that event's markets — so per-game markets (e.g. 'Belgium vs. Egypt') only appear when the query matches the event title. Tournament-level queries like 'World Cup 2026' bury per-game events under featured tournament markets (e.g. 'World Cup Winner'); for specific matchups, search by team/entity names alone (e.g. 'Belgium Egypt'). Absence from one query does not mean absence from Polymarket. Query vs tag: use `query` for keyword/entity search (e.g. 'bitcoin', 'Belgium Egypt'); use `tag` to BROWSE a whole category by its Polymarket slug (e.g. tag: 'weather' | 'sports' | 'politics' | 'fifa-world-cup'), which returns the same live markets as polymarket.com/<slug>. Prefer `tag` for topic/category requests — keyword search misses category markets whose text omits the word (e.g. query 'weather' finds nothing, but tag 'weather' surfaces the live 'Highest temperature in <city>' markets). A bare `tag` browses by volume. Ideal for: market discovery, automated market selection, finding short-duration markets, dashboards.
Polymarket Get Positions
ActionGet current positions (open bets) for a given wallet address on Polymarket. Returns position details including size, average price, current value, and P&L. Optionally filter by market. Ideal for: portfolio tracking, P&L monitoring, position management, automated rebalancing.
Polymarket Get Balance
ActionGet pUSD balance for Polymarket trading. Returns the pUSD collateral balance available for placing orders and allowance status. Ideal for: balance monitoring, pre-trade checks, portfolio overview, automated trading workflows.
Polymarket Place Bet
ActionPlace a bet (order) on Polymarket prediction markets. Supports BUY/SELL orders with GTC, FOK, or FAK order types. Flexible pricing modes: market, limit, or copy from variables. Ideal for: automated trading strategies, event-based betting, portfolio diversification, prediction market arbitrage.
Polymarket Get Orderbook
ActionGet the order book for one or more Polymarket tokens showing all bids and asks. Supports single token (tokenId) or batch mode (tokenIds array) for efficient multi-token lookup. Returns full depth of market with price levels, sizes, and spread information. Ideal for: market analysis, liquidity assessment, spread monitoring, trading strategy development.
Polymarket Get Leaderboard
ActionRetrieve top traders from the Polymarket leaderboard ranked by profit or volume. Supports filtering by category (crypto, politics, sports, etc.) and time period (day, week, month, all). Ideal for: copy-trading research, market intelligence, finding top performers, competitive analysis.