Reidmcc / rockfish

Rockfish is an arbitrage bot for the Stellar Decentralized Exchange (SDEX)
MIT License
73 stars 23 forks source link

Make pathFinder more efficient about getting orderbooks #11

Closed Reidmcc closed 5 years ago

Reidmcc commented 5 years ago

Describe the solution you'd like Right now pathFinder grabs orderbooks for its calculations separately for each payment path, and this leads to duplicate API calls; if XLM-BTC is in more than one path, pathFinder queries Horizon that pair for each path that contains it.

Requirements

Reidmcc commented 5 years ago

This could be better accomplished with streaming mode: https://www.stellar.org/developers/horizon/reference/streaming.html

Reidmcc commented 5 years ago

closed by https://github.com/Reidmcc/rockfish/pull/19