code: def market_filter(text_query=None, event_type_ids=None, event_ids=None, competition_ids=None, market_ids=None,
                    venues=None, bsp_only=None, turn_in_play_enabled=None, in_play_only=None, market_betting_types=None,
                    market_countries=None, market_type_codes=None, market_start_time=None, with_orders=None,
                    race_types=None):
      
      args = locals()
      return {
          to_camel_case(k): v for k, v in args.items() if v is not None
      }
docs: :param str text_query: restrict markets by text associated with it, e.g name, event, comp.
      :param list event_type_ids: filter market data to data pertaining to specific event_type ids.
      :param list event_ids: filter market data to data pertaining to specific event ids.
      :param list competition_ids: filter market data to data pertaining to specific competition ids.
      :param list market_ids: filter market data to data pertaining to specific marketIds.
      :param list venues: restrict markets by venue (only horse racing has venue at the moment)
      :param bool bsp_only: restriction on bsp, not supplied will return all.
      :param bool turn_in_play_enabled: restriction on whether market will turn in play or not, not supplied returns all.
      :param bool in_play_only: restriction to currently inplay, not supplied returns all.
      :param list market_betting_types: filter market data by market betting types.
      :param list market_countries: filter market data by country codes.
      :param list market_type_codes: filter market data to match the type of market e.g. MATCH_ODDS.
      :param dict market_start_time: filter market data by time at which it starts.
      :param str with_orders: filter market data by specified order status.
      :param list race_types: filter race types.
  
      :return: dict