Cross Defi Queries

Query data from Raydium, Orca, Openbook, and more in a single call.

Cross program queries are only possible with Shyft's GraphQL APIs. Fastest and easiest way to query multiple protocols in a single call.

We often need to get data from multiple protocols. For eg, fetching all liquidity pools for USDC token across Raydium, Orca, and more. Right now if you want to achieve this

  • You can use respective Dex's SDK and do a getProgramAccounts call. This is super slow.

  • Index data from multiple DEXs on your own. This is super tough.

With Shyft's GraphQL APIs, you can query multiple protocols in a single call. So fetching all liquidity pools from Raydium, Orca and more can be done in a single call. On top of that, you get data in a parsed format.

Going through our getting started section will help you understand few basics first.

pageGetting Started

TLDR: In order to start querying protocols, follow these steps:

  • Get an API key if you don't have one.

  • Head to any GraphQL client of your choice, for example Hasura.

  • Enter the GraphQL endpoint for your preferred network

    • Mainnet:{api-key}&network=mainnet-beta

    • Devnet:{api-key}&network=devnet

  • Start filtering, sorting and querying data.

Last updated