Not just trades — one real-time, wallet-level stream of everything happening on Polymarket: every buy and sell, deposits, withdrawals, peer-to-peer transfers, and UMA oracle events (proposals, disputes, resolutions). The moment it hits the mempool. It's the data layer everything else is built on.
# pip install polyflux-client
import asyncio
from polyflux import Client
async def main():
client = Client("YOUR_API_KEY")
# typed events, wallet-level, in real time
async for trade in client.trades():
print(trade.wallet_address, trade.side, trade.notional)
asyncio.run(main()) Every buy and sell fill — wallet, side, outcome, price, and size — the instant it's seen in the mempool, before the chain confirms.
Deposits and withdrawals, plus peer-to-peer transfers between wallets. Follow capital moving in, out, and around.
Resolution proposals, disputes, and final resolutions as they hit the UMA oracle — catch contested outcomes the moment they open.
Trades stream from the mempool the instant they're seen — you react before the transaction is even confirmed on-chain.
Every message carries the wallet, market, outcome, side, price, and size — not aggregated candles. The raw order flow.
Open a plain WebSocket, or drop in the SDK and start consuming typed events in a few lines. Your language, your stack.
Beyond the live feed: query historical trades down to the wallet to backtest, build datasets, or research any past move.
Subscribe and get an API key. The same key authenticates the stream, the SDK, and the historical endpoints.
Connect a WebSocket to api.polyflux.io/stream — or initialize the SDK. Trades start flowing immediately.
Feed it into alerts, dashboards, models, or bots. It's the same layer that powers Trades Inspector, Wallet Spy, and Disputed Markets.
Get the real-time stream, the SDK, and historical access with your Polyflux subscription.