# GraphQL

> Markdown export of the Gearbox Protocol documentation page for agents and retrieval systems.

Canonical page: https://docs.gearbox.finance/developers/gm-start-graphql
Source file: content/developers/gm-start-graphql.mdx
Section router: https://docs.gearbox.finance/developers/llms.txt
Section full export: https://docs.gearbox.finance/developers/llms-full.txt

GraphQL integration for querying indexed Gearbox protocol data.

> This guide is coming soon. The GraphQL API is currently under development.

## What to Expect

The GraphQL API will provide:

- Indexed market and pool data with historical snapshots
- Credit account state queries with filtering and pagination
- Event-based activity feeds (deposits, borrows, liquidations)
- Real-time subscriptions for position monitoring

## In the Meantime

Use the [TypeScript SDK](https://docs.gearbox.finance/developers/gm-start-ts) for all integrations. It provides:

- Cached market data via `marketRegister`
- Real-time queries via [Compressors](https://docs.gearbox.finance/developers/gm-ref-compressors) (on-chain data aggregation contracts)
- Credit account indexing via `AccountsPlugin`
