Skip to content

Commit

Permalink
Get historical, not future.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssnyder-intrinio committed Oct 28, 2024
1 parent ab1768c commit a26c3f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Intrinio.Realtime/Composite/GreekClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ private void FetchInitialCompanyDividends()
switch (DateTime.UtcNow.DayOfWeek)
{
case DayOfWeek.Sunday:
subtract = TimeSpan.FromDays(-2);
subtract = TimeSpan.FromDays(2);
break;
case DayOfWeek.Monday:
subtract = TimeSpan.FromDays(-3);
subtract = TimeSpan.FromDays(3);
break;
default:
subtract = TimeSpan.FromDays(-1);
subtract = TimeSpan.FromDays(1);
break;
}
DateTime date = DateTime.Today - subtract; //Assume we're starting morning-ish, so today's values aren't available
Expand Down

0 comments on commit a26c3f7

Please sign in to comment.