Alpha Creates a new Premia V3 SDK instance.
The SDK needs to be initialized before it can be used with non-default parameters.
The apollo subgraph client used to fetch data from the Premia subgraph.
ApolloClient
Optional queryThe subgraph-specific parameters to be used for upcoming subgraph queries.
{} (empty object)
The subgraph URL to use for fetching indexed contract data.
Optional orderType: OrderTypeOptional isOpen: booleanOptional options: { Optional maturity?: BigNumberishOptional strike?: BigNumberishOptional type: stringOptional poolAddress: stringOptional account: stringOptional startTime: numberOptional endTime: numberOptional searchInput: stringOptional type: stringOptional vaultAddress: stringOptional account: stringOptional startTime: numberOptional endTime: numberOptional searchInput: stringGenerated using TypeDoc
The PremiaSubgraph class is the entry point for interacting with the Premia V3 subgraph to query on-chain and indexed data using various APIs and services