You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: contract_stat.rb
    path of file: ./repos/cryptoexchange/lib/cryptoexchange/exchanges/binance_futures/services
    
    the code of the file until where you have to start completion: module Cryptoexchange::Exchanges
  module BinanceFutures
    module Services
      class ContractStat < Cryptoexchange::Services::Market
        class << self
          def supports_individual_ticker_query?
            true
          end
        end

        def fetch(mar
    
        def fetch(market_pair)
          if market_pair.contract_interval == "perpetual"
            root_api_url = Cryptoexchange::Exchanges::BinanceFutures::Market::API_URL
            futures_expire_info = nil
          elsif market_pair.contract_interval == "futures"
            root_api_url = Cryptoexchange::Exchanges::BinanceFutures::Market::FUTURES_API_URL
            futures_expire_info = super(futures_expire_url(market_pair))
            futures_expire_info = futures_expire_info["symbols"].select { |exchange_info| exchange_info["symbol"] == market_pair.inst_id }.first
          end