Hegic GraphQL API
Hegic is a decentralized peer-to-pool options trading protocol deployed on Ethereum and Arbitrum. The GraphQL API is served via The Graph Protocol subgraph maintained by cvauclair, indexing Hegic smart contract events including option creation, exercise, expiry, liquidity provision and withdrawal, and implied volatility updates. Developers can query open and closed option positions, pool state, premium and settlement fee history, and profit/loss records for liquidity providers.
Overview
Hegic GraphQL API is a GraphQL API specification published by Hegic on the APIs.io network.
Hegic is a decentralized peer-to-pool options trading protocol deployed on Ethereum and Arbitrum. The GraphQL API is served via The Graph Protocol subgraph maintained by cvauclair, indexing Hegic smart contract events including option creation, exercise, expiry, liquidity provision and withdrawal, and implied volatility updates. Developers can query open and closed option positions, pool state, premium and settlement fee history, and profit/loss records for liquidity providers.
The GraphQL endpoint is available at https://api.thegraph.com/subgraphs/name/cvauclair/hegic. documentation is published at https://thegraph.com/hosted-service/subgraph/cvauclair/hegic.
The specification includes 2 reference links.
Tagged areas include DeFi, Options Trading, On-Chain, Arbitrum, and Ethereum.
Endpoint
References
- Documentation https://thegraph.com/docs/en/subgraphs/querying/introduction/
- GettingStarted https://github.com/cvauclair/hegic-subgraph