market_logic