market depth calculation