betcode-org / betfair

betfairlightweight - Betfair API-NG python wrapper (with streaming)
MIT License
418 stars 146 forks source link

market_definition returns None #482

Closed sunb2021 closed 2 years ago

sunb2021 commented 2 years ago

I may be missing something fundamental here, but when running examplestreaming.py market_definitions are returning None. Below is the only difference.

market_filter = streaming_market_filter( market_ids= Final(), event_type_ids=["1"], market_types=["FIRST_HALF_GOALS_05"] )

market_data_filter = streaming_market_data_filter( fields=["EX_BEST_OFFERS_DISP"], ladder_levels=1 )

Appreciate any help with this, thank you.

liampauling commented 2 years ago

EX_MARKET_DEF same link

sunb2021 commented 2 years ago

Thanks Liam, I had tried that, but the following is returned, <betfairlightweight.resources.streamingresources.MarketDefinition object at 0x000001CF58AC8D30>

liampauling commented 2 years ago

Yep that is correct, use your debugger to inspect or use lightweight=True if you want the raw dictionary