Spatial competition and price formation