-
Notifications
You must be signed in to change notification settings - Fork 262
Refactor volume filter function #604
Comments
When looking at the above flowchart, we’re basically trying to answer: when should either the base or quote asset keep being sold?
If one of the above conditions is not met for exactly one asset, we return no operation. |
Flowchart is awesome, well done! 💯 |
Tip:
This raises the question of whether a buy operation (buying base and selling quote) will be constrained by a "sell quote" filter. I don't think so. I think it should only be affected by "buy" filters. similarly for sell operations. (we should document this correctly in the config file and review tests in dailyVolumeByDate, added as a separate issue here so we don't forget: #623) This may require us to have logic at the top of the flowchart where we do a passthrough if the filter type (buy/sell) is different from the offer type (buy/sell). |
Good call on the conversion back to buy ops, doesn’t seem like it’s required. I think we can get to the desired solution with the above proposal and can’t think of anything in particular that sticks out. Thanks for putting this together. Let’s get this converted to code! 🎉 |
I believe this is fully completed (unless I've missed something), reflecting by closing issue. |
The
volumeFilterFn
withinplugins/volumeFilter.go
can be significantly streamlined. The below flowchart outlines its logical flow to help guide a refactor.The text was updated successfully, but these errors were encountered: