code: def mixin_market_params(exchange_name, params, market):
      """
      Applies a CCXT market dict to parameters of TradingPair init.
  
      Parameters
      ----------
      params: dict[Object]
      market: dict[Object]
  
      Returns
      -------
  
      """
      # TODO: make this more externalized / configurable
      if "lot" in market:
          params["min_trade_size"] = market["lot"]
          params["lot"] = market["lot"]
  
      if exchange_name == "bitfinex":
          params["maker"] = 0.001
          params["taker"] = 0.002
  
      elif (
          "maker" in market
          and "taker" in market
          and market["maker"] is not None
          and market["taker"] is not None
      ):
          params["maker"] = market["maker"]
          params["taker"] = market["taker"]
  
      else:
          # TODO: default commission, make configurable
          params["maker"] = 0.0015
          params["taker"] = 0.0025
  
      info = market["info"] if "info" in market else None
      if info:
          if "minimum_order_size" in info:
              params["min_trade_size"] = float(
                  info["minimum_order_size"]
              )
  
              if "lot" not in params:
                  params["lot"] = params["min_trade_size"]
  
      if "active" in market:
          params["trading_state"] = market["active"]
  
imports: import hashlib
  import json
  import os
  import pickle
  import shutil
  from datetime import date, datetime
  import pandas
  from catalyst.assets._assets import TradingPair
  from six import string_types
  from six.moves.urllib import request
  from catalyst.constants import DATE_FORMAT, SYMBOLS_URL
  from catalyst.exchange.exchange_errors import ExchangeSymbolsNotFound
  from catalyst.exchange.utils.serialization_utils import ExchangeJSONEncoder, ExchangeJSONDecoder
  from catalyst.utils.memoize import weak_lru_cache
  from catalyst.utils.paths import data_root, ensure_directory, last_modified_time
label_desc: Use image node_id 27 for calling a global function with example usage: mixin_market_params(exchange_name, params, market) without return types