Skip to main content
The SDK uses this as the default mainnet subgraph endpoint:
https://builder.ostium.io/v1/subgraph/gn
It backs read methods such as:
  • getPairs()
  • getOpenPositions()
  • getOpenOrders()
  • getOrders()
  • getBuilderOrders()
  • getFills()
  • getFillsByTime()
  • getSimSlippage()
  • getSimOrderbook()

SDK configuration

Override the endpoint with subgraphUrl when creating the client.
const client = await OstiumClient.createReadOnly({
  subgraphUrl: 'https://your-subgraph.example.com/graphql',
});
For direct GraphQL usage, use the SDK reference pages as the response-shape source of truth for each read method.