create account

RE: Continuous Process Improvements by ecotheexploiter

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @txracer/re-ecotheexploiter-suaqdw

· @ecotheexploiter ·
Math is fun.  Pools are "harder", the beeswap hive> swap.hive  convert is not a pool, its just two balances on one account.  Hive, and Swap.Hive.

I have another friend working on some tools that will make working with pools easier, by indexing historical hive-engine data.  

Do what you want!  Always!  If its not fun, its not learning.

I just make recommendations.
properties (22)
authorecotheexploiter
permlinkre-txracer-suaqjb
categoryhive-186392
json_metadata{"tags":["hive-186392"],"app":"peakd/2025.4.1","image":[],"users":[]}
created2025-04-06 12:26:00
last_update2025-04-06 12:26:00
depth6
children2
last_payout2025-04-13 12:26:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length368
author_reputation294,106,913,118
root_title"Continuous Process Improvements"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id141,927,311
net_rshares0
@txracer ·
$0.16
Oh, I have been keeping my L1 and L2 separate for the most part. I am trying to play around with L2 lps to maybe help other projects with liquidity. 
All my HP and HBD have just been staked or put in the savings account to slowly grow into something useful. 

Is uswap.app using the same lp that is on the other platforms, or are they a seperate L2?

Share more please about the other friend working on tracking lp data.
👍  , , , , , , , ,
properties (23)
authortxracer
permlinkre-ecotheexploiter-suash7
categoryhive-186392
json_metadata{"tags":["hive-186392"],"app":"peakd/2025.4.1"}
created2025-04-06 13:07:57
last_update2025-04-06 13:07:57
depth7
children1
last_payout2025-04-13 13:07:57
cashout_time1969-12-31 23:59:59
total_payout_value0.078 HBD
curator_payout_value0.077 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length420
author_reputation2,264,595,810,179
root_title"Continuous Process Improvements"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id141,928,256
net_rshares501,894,556,112
author_curate_reward""
vote details (9)
@theghost1980 ·
$1.17
Hi there. I have been working to do something that I think is not done yet. Even when I am mostly a Frontend I can handle backend as well. So I am testing an index for Volume trading on Liquidity Pools.

> The idea is having a data index of each pool about their trading activity.

For example: If I need to calculate the fees based on a trading liquidity pool, right now there is no index to keep that 24 hours data. The only place having it is tribaldex.com and I can see they have no plans to open an API.

So I did this, which is in test mode:
https://hive-liquidity-pools-data-index.onrender.com/

----

![image.png](https://files.peakd.com/file/peakd-hive/theghost1980/23tHbg12BRhWJGk4VoywetdXVqUYHUV3J1DpzZuRgwVyTUMTATmE7v6Z7bQprETeZcdk1.png)

-----

Basically if you navigate within: https://hive-liquidity-pools-data-index.onrender.com/data/ you will see the actual index. This is a cron-job taking 24 hours snapshots of trading volumen for each available Liquidity Pool pair.

If you open a folder you will find the data, stored in a json file per day:

![image.png](https://files.peakd.com/file/peakd-hive/theghost1980/23w3Cvexi9M2graJDtxbTYUNKkVRb3tsrwCroQYfZj31HsyXLhUHsRuLaxa4PCAFis6CZ.png)

```
 "_id": 112,
  "tokenPair": "AFIT:AFITX",
  "baseQuantity": "2640357.59843536",
  "baseVolume": "41742999.59466189",
  "basePrice": "0.00050848",
  "quoteQuantity": "1342.58242031",
  "quoteVolume": "11664.08687893",
  "quotePrice": "1966.62607709",
  "totalShares": "58727.31265509210142249948",
  "precision": 8,
  "creator": "actifit",
  "isoDate": "2025-04-06T00:00:03.000Z"
```

Some public routes I did so far are:
1. Status https://hive-liquidity-pools-data-index.onrender.com/status
2. List all LP token pairs available for data: https://hive-liquidity-pools-data-index.onrender.com/public/available-data-pool-token-pair

And many more to come if this keep gaining track!

By having this we, in the future, I mean WE as developers, we can easily calculate Fees on each pools, earnings on each pools and positions.

If you want to take a look at the code check here:
https://github.com/theghost1980/hive-liquidity-pools-data-index

I am open to ideas, so far I have enabled some public routes and the storage needs seems to be around 1.3 MB of data daily.

The good friend @ecoinstant is pushing me to do this and we will make this work. I truly believe HIVE needs to get his dev community straight and open up for new ideas and also "find a better way to unify thoughts".

I came up with the idea if the LP Index, because I plan to make an app that will benefit the community, basically will be a HIVE Pool simulator, but in order to get there first I need access to the real time data of trading volume.

So also there is a mechanism to ensure always to get data, kind of, which is testing the rpc nodes and selecting the one responds first but I am aware this Index needs much more work and thinking process.

What do you think about this index guys?
What do you suggest?
👍  , , , , , , , , , , ,
properties (23)
authortheghost1980
permlinkre-txracer-sub3au
categoryhive-186392
json_metadata{"tags":["hive-186392"],"app":"peakd/2025.4.1","image":["https://files.peakd.com/file/peakd-hive/theghost1980/23tHbg12BRhWJGk4VoywetdXVqUYHUV3J1DpzZuRgwVyTUMTATmE7v6Z7bQprETeZcdk1.png","https://files.peakd.com/file/peakd-hive/theghost1980/23w3Cvexi9M2graJDtxbTYUNKkVRb3tsrwCroQYfZj31HsyXLhUHsRuLaxa4PCAFis6CZ.png"],"users":["ecoinstant"]}
created2025-04-06 17:01:45
last_update2025-04-06 17:01:45
depth8
children0
last_payout2025-04-13 17:01:45
cashout_time1969-12-31 23:59:59
total_payout_value0.588 HBD
curator_payout_value0.586 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,991
author_reputation101,447,694,550,284
root_title"Continuous Process Improvements"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id141,933,041
net_rshares3,790,231,836,598
author_curate_reward""
vote details (12)