https://github.com/acalanetwork/karura-reports
https://github.com/acalanetwork/karura-reports
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/acalanetwork/karura-reports
- Owner: AcalaNetwork
- Created: 2021-12-06T22:14:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-22T17:50:47.000Z (almost 3 years ago)
- Last Synced: 2025-01-19T07:16:00.924Z (4 months ago)
- Language: HTML
- Size: 2.42 MB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# karura-reports
The report is available at https://karura.rogerjbos.com.
This HTML report is written R. It queries the [Karura swap data](https://apps.karura.network/swap) from [SubQuery Network](https://subquery.network/) using the following GraphQL query:
```
{
query {
dexActions(filter: {timestamp: {greaterThanOrEqualTo: "2021-12-01"}}) {
nodes {
timestamp
id
nodeId
accountId
type
token0Id
token1Id
token0Amount
token1Amount
volumeUSD
extrinsicId
data
}
}
}
}
```The report shows a dashboard followed by a chart of the activity over the past 8 days for each of the following four measures:
* Active Users
* Number of trades
* Avg trades per user
* Trading VolumeEach dashboard and chart compares the latest day's swap activity to the prior 7-day average, coloring the box green (success), yellow (warning), or red (danger). If the latest day's activity is above the 7-day average (a ratio of 1.0 or above), the box is green. If the ratio is below 0.5, it is red. Otherwise it is yellow.
These dashboards are available at the aggregate level and for each trading pair.
The data can be downloaded from the report.
The source code is available in the report and also on [Github](https://github.com/AcalaNetwork/karura-reports).