rainlanguage / arb-bot

NodeJS app that finds arbitrage trades for Rain orderbook orders against major DeFi platforms liquidity
7 stars 4 forks source link

track KPIs #82

Open thedavidmeister opened 4 months ago

thedavidmeister commented 4 months ago

todo:

update: dashboard for second kpi question is set, but the first one, it cant be achieved at least in a way that it doesnt significantly increase the hyperdx data usage, since it would a need sep trace per order, or decoupled from the orders, so it would end up needing some form of refactor in spans setup in codebase.

so this will be put into backlog for now, and will be pursued later. this issue will be updated this if I manage to find any workaround/solution for this.

Edit:

how many blocks elapsed between opportunity and execution? means to fiind the very first block the opportunity was available vs when bot found it and executed it.

rouzwelt commented 2 months ago

there are some new filtering options on hyperdx, that can most probably can help us implement this easily, im gonna update this more, once I have more details

rouzwelt commented 2 months ago

right now the hyperdx charts have a feature that can filter logs with only specific criteria, so using that + logging the block difference we can make that KPI chart in hyperdx,

todo:

rouzwelt commented 2 days ago

how many blocks elapsed between opportunity and execution?

means to fiind the very first block the opportunity was available vs when bot found it and executed it