Skip to content

Logs DEX trade events to a Redis stream

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

INTEARnear/trade-indexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trade Indexer

This indexer watches DEX trade events and sends them to Redis streams trade_pool (one event for each trade action, so 1 transaction can have multiple of these), trade_swap (in this case, multi-step swaps are stored as 1 event, also contains net balance changes for each asset), and trade_pool_change (changes in the pool, triggered by swaps, LP events, pool edit events, and more. If you want the most precise price change events, you should watch for this one).

To run it, set REDIS_URL environment variable and cargo run --release.

About

Logs DEX trade events to a Redis stream

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages