-
Notifications
You must be signed in to change notification settings - Fork 655
Weekday Session Schedule #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hmm.. Did you consider just adding the logic to the DefaultSessionSchedule? It feels like this is a comparable behavioural change to Non-Stop-Session or Weekly Sessions to me. Why not just have it be used if Weekdays is set, rather than having to pick a different SessionSchedule and then that Schedule throw an error when it's not set? By making it a factory choice you have to pick for an entire QFJ session factory which will be used, rather than picking on a session by session basis. |
When I wrote this it was outside the QuickFIXJ codebase so I didn't have the option to refactor DefaultSessionSchedule. You're probably right though. I could have a look at integrating it into DefaultSessionSchedule if people prefer that and it's likely to be accepted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Arthurm1 , thanks for the PR. As @philipwhiuk pointed out it would be better to have this on a per-Session basis.
But I see nothing against merging this and we can do the changes later as it is an improvement to the current situation.
However, could you please also add the parameter to the configuration.html file?
Thanks,
Chris.
Hi @Arthurm1 , I just started to work on unifying the WeekdaySessionSchedule and DefaultSessionSchedule. So if you could just add the missing documentation that would be great. |
@chrjohn That's great. I was going to take a look at it myself next week but if you've already started. I'm good to add Looking at how |
Thanks for putting it in the DefaultSessionSchedule - that looks better than my extra classes. |
This is a weekday based session schedule that can be used instead of
DefaultSessionSchedule
.It uses a new session setting ID
Weekdays
which is a comma-delimited list of the days to start the session on.A standard western trading week example...
StartDay
andEndDay
are not used.To tell QuickFIX/J to use the weekly schedule, a
WeekdaySessionScheduleFactory
instance must be passed to theDefaultSessionFactory
constructor.