[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-72283":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":24,"defaultBranch":25,"hasWiki":23,"hasPages":24,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},72283,"agents","Polymarket\u002Fagents","Polymarket","Trade autonomously on Polymarket using AI Agents","",null,"Python",3652,813,33,18,0,19,43,185,57,30.73,"MIT License",true,false,"main",[],"2026-06-12 02:03:01","\u003C!-- PROJECT SHIELDS -->\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n\n\u003C!-- PROJECT LOGO -->\n\u003Cbr \u002F>\n\u003Cdiv align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpolymarket\u002Fagents\">\n    \u003Cimg src=\"docs\u002Fimages\u002Fcli.png\" alt=\"Logo\" width=\"466\" height=\"262\">\n  \u003C\u002Fa>\n\n\u003Ch3 align=\"center\">Polymarket Agents\u003C\u002Fh3>\n\n  \u003Cp align=\"center\">\n    Trade autonomously on Polymarket using AI Agents\n    \u003Cbr \u002F>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpolymarket\u002Fagents\">\u003Cstrong>Explore the docs »\u003C\u002Fstrong>\u003C\u002Fa>\n    \u003Cbr \u002F>\n    \u003Cbr \u002F>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpolymarket\u002Fagents\">View Demo\u003C\u002Fa>\n    ·\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpolymarket\u002Fagents\u002Fissues\u002Fnew?labels=bug&template=bug-report---.md\">Report Bug\u003C\u002Fa>\n    ·\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpolymarket\u002Fagents\u002Fissues\u002Fnew?labels=enhancement&template=feature-request---.md\">Request Feature\u003C\u002Fa>\n  \u003C\u002Fp>\n\u003C\u002Fdiv>\n\n\n\u003C!-- CONTENT -->\n# Polymarket Agents\n\nPolymarket Agents is a developer framework and set of utilities for building AI agents for Polymarket.\n\nThis code is free and publicly available under MIT License open source license ([terms of service](#terms-of-service))!\n\n## Features\n\n- Integration with Polymarket API\n- AI agent utilities for prediction markets\n- Local and remote RAG (Retrieval-Augmented Generation) support\n- Data sourcing from betting services, news providers, and web search\n- Comphrehensive LLM tools for prompt engineering\n\n# Getting started\n\nThis repo is inteded for use with Python 3.9\n\n1. Clone the repository\n\n   ```\n   git clone https:\u002F\u002Fgithub.com\u002F{username}\u002Fpolymarket-agents.git\n   cd polymarket-agents\n   ```\n\n2. Create the virtual environment\n\n   ```\n   virtualenv --python=python3.9 .venv\n   ```\n\n3. Activate the virtual environment\n\n   - On Windows:\n\n   ```\n   .venv\\Scripts\\activate\n   ```\n\n   - On macOS and Linux:\n\n   ```\n   source .venv\u002Fbin\u002Factivate\n   ```\n\n4. Install the required dependencies:\n\n   ```\n   pip install -r requirements.txt\n   ```\n\n5. Set up your environment variables:\n\n   - Create a `.env` file in the project root directory\n\n   ```\n   cp .env.example .env\n   ```\n\n   - Add the following environment variables:\n\n   ```\n   POLYGON_WALLET_PRIVATE_KEY=\"\"\n   OPENAI_API_KEY=\"\"\n   ```\n\n6. Load your wallet with USDC.\n\n7. Try the command line interface...\n\n   ```\n   python scripts\u002Fpython\u002Fcli.py\n   ```\n\n   Or just go trade! \n\n   ```\n   python agents\u002Fapplication\u002Ftrade.py\n   ```\n\n8. Note: If running the command outside of docker, please set the following env var:\n\n   ```\n   export PYTHONPATH=\".\"\n   ```\n\n   If running with docker is preferred, we provide the following scripts:\n\n   ```\n   .\u002Fscripts\u002Fbash\u002Fbuild-docker.sh\n   .\u002Fscripts\u002Fbash\u002Frun-docker-dev.sh\n   ```\n\n## Architecture\n\nThe Polymarket Agents architecture features modular components that can be maintained and extended by individual community members.\n\n### APIs\n\nPolymarket Agents connectors standardize data sources and order types.\n\n- `Chroma.py`: chroma DB for vectorizing news sources and other API data. Developers are able to add their own vector database implementations.\n\n- `Gamma.py`: defines `GammaMarketClient` class, which interfaces with the Polymarket Gamma API to fetch and parse market and event metadata. Methods to retrieve current and tradable markets, as well as defined information on specific markets and events.\n\n- `Polymarket.py`: defines a Polymarket class that interacts with the Polymarket API to retrieve and manage market and event data, and to execute orders on the Polymarket DEX. It includes methods for API key initialization, market and event data retrieval, and trade execution. The file also provides utility functions for building and signing orders, as well as examples for testing API interactions.\n\n- `Objects.py`: data models using Pydantic; representations for trades, markets, events, and related entities.\n\n### Scripts\n\nFiles for managing your local environment, server set-up to run the application remotely, and cli for end-user commands.\n\n`cli.py` is the primary user interface for the repo. Users can run various commands to interact with the Polymarket API, retrieve relevant news articles, query local data, send data\u002Fprompts to LLMs, and execute trades in Polymarkets.\n\nCommands should follow this format:\n\n`python scripts\u002Fpython\u002Fcli.py command_name [attribute value] [attribute value]`\n\nExample:\n\n`get-all-markets`\nRetrieve and display a list of markets from Polymarket, sorted by volume.\n\n   ```\n   python scripts\u002Fpython\u002Fcli.py get-all-markets --limit \u003CLIMIT> --sort-by \u003CSORT_BY>\n   ```\n\n- limit: The number of markets to retrieve (default: 5).\n- sort_by: The sorting criterion, either volume (default) or another valid attribute.\n\n# Contributing\n\nIf you would like to contribute to this project, please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch.\n3. Make your changes.\n4. Submit a pull request.\n\nPlease run pre-commit hooks before making contributions. To initialize them:\n\n   ```\n   pre-commit install\n   ```\n\n# Related Repos\n\n- [py-clob-client](https:\u002F\u002Fgithub.com\u002FPolymarket\u002Fpy-clob-client): Python client for the Polymarket CLOB\n- [python-order-utils](https:\u002F\u002Fgithub.com\u002FPolymarket\u002Fpython-order-utils): Python utilities to generate and sign orders from Polymarket's CLOB\n- [Polymarket CLOB client](https:\u002F\u002Fgithub.com\u002FPolymarket\u002Fclob-client): Typescript client for Polymarket CLOB\n- [Langchain](https:\u002F\u002Fgithub.com\u002Flangchain-ai\u002Flangchain): Utility for building context-aware reasoning applications\n- [Chroma](https:\u002F\u002Fdocs.trychroma.com\u002Fgetting-started): Chroma is an AI-native open-source vector database\n\n# Prediction markets reading\n\n- Prediction Markets: Bottlenecks and the Next Major Unlocks, Mikey 0x: https:\u002F\u002Fmirror.xyz\u002F1kx.eth\u002FjnQhA56Kx9p3RODKiGzqzHGGEODpbskivUUNdd7hwh0\n- The promise and challenges of crypto + AI applications, Vitalik Buterin: https:\u002F\u002Fvitalik.eth.limo\u002Fgeneral\u002F2024\u002F01\u002F30\u002Fcryptoai.html\n- Superforecasting: How to Upgrade Your Company's Judgement, Schoemaker and Tetlock: https:\u002F\u002Fhbr.org\u002F2016\u002F05\u002Fsuperforecasting-how-to-upgrade-your-companys-judgment\n\n# License\n\nThis project is licensed under the MIT License. See the [LICENSE](https:\u002F\u002Fgithub.com\u002FPolymarket\u002Fagents\u002Fblob\u002Fmain\u002FLICENSE.md) file for details.\n\n# Contact\n\nFor any questions or inquiries, please contact liam@polymarket.com or reach out at www.greenestreet.xyz\n\nEnjoy using the CLI application! If you encounter any issues, feel free to open an issue on the repository.\n\n# Terms of Service\n\n[Terms of Service](https:\u002F\u002Fpolymarket.com\u002Ftos) prohibit US persons and persons from certain other jurisdictions from trading on Polymarket (via UI & API and including agents developed by persons in restricted jurisdictions), although data and information is viewable globally.\n\n\n\u003C!-- LINKS -->\n[contributors-shield]: https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fcontributors\u002Fpolymarket\u002Fagents?style=for-the-badge\n[contributors-url]: https:\u002F\u002Fgithub.com\u002Fpolymarket\u002Fagents\u002Fgraphs\u002Fcontributors\n[forks-shield]: https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fforks\u002Fpolymarket\u002Fagents?style=for-the-badge\n[forks-url]: https:\u002F\u002Fgithub.com\u002Fpolymarket\u002Fagents\u002Fnetwork\u002Fmembers\n[stars-shield]: https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fpolymarket\u002Fagents?style=for-the-badge\n[stars-url]: https:\u002F\u002Fgithub.com\u002Fpolymarket\u002Fagents\u002Fstargazers\n[issues-shield]: https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fissues\u002Fpolymarket\u002Fagents?style=for-the-badge\n[issues-url]: https:\u002F\u002Fgithub.com\u002Fpolymarket\u002Fagents\u002Fissues\n[license-shield]: https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Fpolymarket\u002Fagents?style=for-the-badge\n[license-url]: https:\u002F\u002Fgithub.com\u002Fpolymarket\u002Fagents\u002Fblob\u002Fmaster\u002FLICENSE.md\n","Polymarket Agents 是一个用于在 Polymarket 平台上通过 AI 代理自动交易的开发框架。其核心功能包括与 Polymarket API 的集成、预测市场专用的 AI 代理工具、本地和远程 RAG 支持以及从博彩服务、新闻提供商和网络搜索中获取数据的能力，同时提供全面的大语言模型工具以支持提示工程。该项目采用 Python 编写，适合对自动化交易有兴趣或希望利用 AI 技术提升交易策略的研究者和开发者使用。",2,"2026-06-11 03:41:10","high_star"]