don't need the elementMatch function , you can query from subdocument as :
function request(symbol, from, to) { return model.findOne({ symbol : symbol, 'data.timestamp' : { $gte: from, $lt: to } } }).then(res => res.data)}