interlay / interbtc-squid

Subquid GraphQL schema and indexer for the Interlay and Kintsugi networks
Apache License 2.0
4 stars 7 forks source link

Portfolio value of a user #85

Open bvotteler opened 1 year ago

bvotteler commented 1 year ago

Add portfolio values tracking per user for all assets ~converted to BTC and/or USDT~.

~Note: Some assets may not have oracle values (to get BTC value). Meaning we need to rely on other sources to get an exchange rate.~

Update: Removing conversion requirement. To be done at a later stage, possibly not as part of squid processing.

bvotteler commented 1 year ago

We should be able to keep tally of a regular (ie. not modl, fees type) account's balance by tracking 4 events: