oceanprotocol / pdr-backend

Instructions & code to run predictoors, traders, more.
Apache License 2.0
28 stars 22 forks source link

[Sim] model for slippage, via openmesh.network data. Bonus: put into trader #274

Closed trentmc closed 7 months ago

trentmc commented 11 months ago

Background / motivation

We've found that slippage makes a huge difference to profitability. Slippage can be thought of as extra fees.

For bot flow (pdr_backend/trader): fees and slippage are naturally modeled in trader bots, because they're trading on real world data in real time. We've observed this in practice.

For simulation flow (pdr_backend/predictoor/approach3): it already models fees. But it does not model slippage.

Jaime's simulations do model slippage by bringing in historical + realtime orderbook data purchased from kaiko. By modeling it, and accurately, he was able to devise a trading strategy to account for it.

In early Oct 2023, Trent met the founder of openmesh.network (Ashton) who shared that they have historical + realtime orderbook data, for free.

TODOs

trentmc commented 7 months ago

Using a github issue isn't the place to track this. We are tracking in the "Make $" GDoc. Can close this, to reduce mental overhead