added sampleSize parameter in favor of tradesPerPrice