Subgraph
Overview
Trading and other data is stored via The Graph. Query the subgraph using GraphQL.
https://github.com/perpetual-protocol/lugia-subgraph
Examples
owedRealizedPnl
owedRealizedPnl
Retrieve a trader's unrealized P&L
{
traderProfiles(
where: {
trader:"0x6cf8aba4b2bc2cd9be2e78cf61ef617b02893502" // Lowercase only
}
)
{
owedRealizedPnl
market {
id
}
}
}
Last updated
Was this helpful?