A market approach to fractional matching