A two-armed bandit theory of market pricing