{"repo":"P-x-J/polymarket-arbitrage-bot","free":true,"listed":false,"github":"https://github.com/P-x-J/polymarket-arbitrage-bot","clone":"git clone https://github.com/P-x-J/polymarket-arbitrage-bot.git","description":"Scans Polymarket for arbitrage opportunities in both single-market (binary) and multi-market (categorical) events.","language":"Python","stars":39,"topics":["arbitrage","polymarket","trading","tradingbot","utils"],"license":"MIT","category":"trading","readme_excerpt":"Polymarket's Binary Arbitrage Bot How does binary arbitrage work? Let’s consider this market about Kamala winning Vermont by 32 points. We would classify this as Binary because there is 1 yes and 1 no option to place a bet on. Now, the first instance of arbitrage could be within the same market. If we add the 72c yes and the 35c no, we get a total of 107 , indicating that there is no arbitrage opportunity here. If for example, it were 72 and 25, we would say there is a 3% arbitrage opportunity because that total adds up to 97 . Explanation: If you owned both positions, winning the 72c bet would earn you 28c. However, you would lose 25c from the no position and be left with 3 cents (per contract) . Conversely, winning the 25c no bet would net you 75 cents, but you subtract 72 because you also own the 72c yes position, netting you 3 cents again. We see here that regardless of the outcome of this binary market, you are guaranteed a 3 cent profit per contract Credits to explanation: u/areebkhan280 Technical Overview The bot currently uses Polymarket’s Gamma Markets API, a RESTful service provided by Polymarket. This API serves as a hosted index of all on-chain market data and supplies: Resolved and unresolved market outcomes Market metadata (e.g., question text, categories, volumes) Token pairings and market structures Real-time price data for YES/NO or categorical outcomes By querying this API regularly, the bot identifies pricing discrepancies that signal arbitrage opportunitie","default_branch":null,"files":null,"tree":[],"storefront":"/r/P-x-J","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/P-x-J/polymarket-arbitrage-bot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}