An open API service indexing awesome lists of open source software.

https://github.com/acalanetwork/karura-reports


https://github.com/acalanetwork/karura-reports

Last synced: 2 months ago
JSON representation

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 Volume

Each 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).