penumbra-zone / penumbra

Penumbra is a fully private proof-of-stake network and decentralized exchange for the Cosmos ecosystem.
https://penumbra.zone
Apache License 2.0
380 stars 295 forks source link

Dex Public Trading Insights #4914

Open cronokirby opened 3 hours ago

cronokirby commented 3 hours ago

For the purposes of the dex explorer, we want to flesh out our indexer a bit more.

We need, over the time frames:

Per Directed Pair

and then the change over the window

In Aggregate

cronokirby commented 3 hours ago

For the trade count, we can use position executions, since this tracks when assets actually change hands between parties, and accounts for both swaps, limit orders, and auctions.