Some information relevant for betting is only provided in market catalogues (e.g. race length, race class, trap numbers for greyhound races). Right now, processing such information needs to be done inside process_market_book, which is both clunky and not synchronised with the actual market catalogue updates (which are pulled in another thread).
Bet logging facility may also require this metadata.
Proposal
Add BaseStrategy.process_market_catalogue() method and call it inside BaseFlumine._process_market_catalogues() on each market catalogue update.
Opening this thread for discussion, expect a PR at some point later.
Rationale
Some information relevant for betting is only provided in market catalogues (e.g. race length, race class, trap numbers for greyhound races). Right now, processing such information needs to be done inside
process_market_book
, which is both clunky and not synchronised with the actual market catalogue updates (which are pulled in another thread).Bet logging facility may also require this metadata.
Proposal
Add
BaseStrategy.process_market_catalogue()
method and call it insideBaseFlumine._process_market_catalogues()
on each market catalogue update.Opening this thread for discussion, expect a PR at some point later.