Subgraph

Overview

Trading and other data is stored via The Graph. Query the subgraph using GraphQL.

Examples

owedRealizedPnl

Retrieve a trader's unrealized P&L

{
  traderProfiles(
    where: {
      trader:"0x6cf8aba4b2bc2cd9be2e78cf61ef617b02893502" // Lowercase only
      }
    )
  {
    owedRealizedPnl
    market {
      id
    }
  }
}

Last updated