import random
import logging


def trade_logic(market, market_data, database_data):
    """ 
    Makes decision on whether to trade given the latest market data and 
    information on current state and past prices (from our database)
    
    Returns: 'go long', 'go short', 'exit position', None
    """

    action = random.choice(["go long", "go short", "exit position", None])
    logging.info(f"{market} - Trading logic decision => {action}.")

    return action