Skip to content

Commit d4252ba

Browse files
committed
Throw descriptive error if start date passed for float turnover calc isn't in data or wasn't a trading day.
1 parent 962c58c commit d4252ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

calculateFloatTurnover.js

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const getFloatTurnovers = (volByDate, totalFloat, startDate, reverse) => {
2525
return calculateCycles(daysSubset, totalFloat, reverse);
2626
}
2727
}
28+
throw `${ticker} - Start date ${startDate} not found in data.`;
2829
};
2930

3031
function calculateCycles(volByDate, totalFloat, reverse) {

0 commit comments

Comments
 (0)