https://github.com/protofire/kyber-subgraph
Subgraph for the Kyber Network contracts
https://github.com/protofire/kyber-subgraph
Last synced: 6 months ago
JSON representation
Subgraph for the Kyber Network contracts
- Host: GitHub
- URL: https://github.com/protofire/kyber-subgraph
- Owner: protofire
- Created: 2020-03-25T17:16:39.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T22:55:09.000Z (about 3 years ago)
- Last Synced: 2023-04-10T04:54:30.814Z (almost 3 years ago)
- Language: TypeScript
- Size: 640 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Kyber subgraph
This subgraph is intended to be able to access Kyber Network data in an easier way.
We index NetworkProxy, Networks, Reserves, Trades, Orders and some metadata from transactions so that it's easier to access Kyber data to be used on any app that may require it!
[Here's the link to the deployed subgraph](https://thegraph.com/explorer/subgraph/protofire/kyber?selected=playground)
### Volume of trade
We keep some aggregated data of the total volume of trade in different levels, a reserve-wide level, a network-wide level (network as in network contract), and a total level. We do this so that it's possible to calculate not only the whole volume of trade of any token, but also in which reserves those trades are mostly happening.
Also with the total aggregated volume of trade and a cool feature of the Graph v0.17 called "time travel queries", it's possible to calculate volume of trade for any interval of time. [Here's an article](https://blocklytics.org/blog/ethereum-blocks-subgraph-made-for-time-travel/) that better explains this concept and how to use it.