Katana GraphQL API
Overview
The Katana schema is used to fetch any data related to Katana DEX.
Endpoint
Katana GraphQL endpoint
https://api-gateway.skymavis.com/graphql/katana
Before you start
Before you start querying Katana over GraphQL, make sure you have the following:
- An API key for request authentication. To get an API key, create an app in the Developer Console.
- Understanding of GraphQL basics.
Example
This section contains an example GraphQL query that you can run in the GraphQL Playground. Make sure to select the Katana schema from the list at the top of the page.
Get volume and liquidity data
This query returns the transaction volume and total liquidity on Katana for a given date. The date is set in the startTime
parameter as the Unix timestamp in seconds. For example, 1686139200
for Wednesday, June 7, 2023 12:00:00 PM (GMT).
Get volume and liquidity data
query katanaDayDatas($startTime: Int!) {
katanaDayDatas(first: 1000, skip: 0, where: {date_gt: $startTime}, orderBy: date, orderDirection: asc) {
id
date
totalVolumeUSD
dailyVolumeUSD
dailyVolumeETH
totalLiquidityUSD
totalLiquidityETH
}
}
Was this helpful?
Happy React is loading...