A dual approach for dynamic pricing in multi-demand markets