TPD failing on v2.5.6
derek-cl opened this issue · 1 comments
derek-cl commented
I get the following error with v2.5.6 of Flumine:
line 182, in _process_sports_data
event_id = sports_data.event_id
AttributeError: 'Race' object has no attribute 'event_id'
Code snippet to re-create issue:
`class ExampleStrategy(BaseStrategy):
def process_sports_data(self, market, sports_data) -> None:
# called on each update from sports-data-stream
print('***',market, sports_data)
client = clients.BetfairClient(trading)
framework = Flumine(client)
strategy = ExampleStrategy(
market_filter=streaming_market_filter(
event_type_ids=["7"], market_types=["WIN"],
country_codes=['GB' ],
),
sports_data_filter=['raceSubscription'],
)
framework.add_strategy(strategy)
framework.run()`
derek-cl commented
Thanks!