Skip to main contentSubgraph Overview
Polymarket has written and open sourced a subgraph that provides, via a GraphQL query interface, useful aggregate calculations and event indexing for things like volume, user position, market and liquidity data. The subgraph updates in real time to be able to be mixed, and match core data from the primary Polymarket interface, providing positional data, activity history and more. The subgraph can be hosted by anyone.
Source
The Polymarket subgraph is entirely open source and can be found on the Polymarket Github.
Subgraph Github Repository
Note: The available models/schemas can be found in the schema.graphql file.