def parse_market(raw_market, sym_1, sym_2):
    """
    >>> raw_market = 'BTCETH'
    >>> parse_market(raw_market, 'ETH', 'BTC')
    ('BTC', 'ETH')
    >>> parse_market("QTMBTC", 'QTM', 'BTC')
    ('QTM', 'BTC')
    
    """
    if sym_1 not in raw_market or sym_2 not in raw_market:
        return None
    elif raw_market[0:len(sym_1)] == sym_1:
        return (sym_1, sym_2)
    else:
        return (sym_2, sym_1)