Closed MikeHathaway closed 4 years ago
Is there an opportunity to subclass
OkcoinMarketMakerKeeper
fromOkexMarketMakerKeeper
? Admittedly, most of the keepers have a lot of duplicated code. But this seems like a shining opportunity for code reuse. I think youd just need a new
init` method.
I'm not sure there's a way to do that without also modifying the OkexMarketMakerKeeper - there's a number of hardcoded arguments like prog
that would need to be parameterized. This would be easily doable, but it would also require changes to production keepers.
Given the similarities between all the keepers, would it instead be worthwhile to work on developing a common abstract class?
Each subclass would need their own
__init__
method. @grandizzy introducedPyexApi
after manypyexchange
integrations were baked, so at least integrations which followed, and API updates, could make use of the interface. Perhaps for future integrations, we could develop such a base class.
I agree. Perhaps a Base class for CEX and a base for DEX?
Codecov Report
0% <0%> (ø)
50% <0%> (ø)
0% <0%> (ø)
Continue to review full report at Codecov.